bootstrap: add bootstrap_post_import_hook
[gnulib.git] / ChangeLog
1 2012-01-19  Jim Meyering  <meyering@redhat.com>
2
3         bootstrap: add bootstrap_post_import_hook
4         Bison does still need something like the gnulib_mk_hook whose
5         invocation I had to remove along with slurp in commit 767ccd40.
6         Technically, we could get along without it, but doing so would
7         have required living with a warning and a mandatory post-bootstrap
8         automake rerun.
9         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
10         (bootstrap_post_import_hook): New function.
11         Invoke it after gnulib-tool --import and before autoreconf.
12
13 2012-01-18  Jim Meyering  <meyering@redhat.com>
14
15         gitlog-to-changelog: don't use "no_"-prefixed variable name
16         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
17         to enable both --cluster and --no-cluster.  Change variable name,
18         s/\$no_cluster/$cluster/, and reverse usage to match.
19
20         gitlog-to-changelog: use "||", not "or" in expressions
21         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
22         expressions.
23
24 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
25
26         gitlog-to-changelog: new option --no-cluster
27         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
28         clustering of adjacent commit messages.
29
30 2012-01-17  Jim Meyering  <meyering@redhat.com>
31
32         maint: spell file systems with two words, not one
33         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
34         two words, not one.
35
36 2012-01-16  Jim Meyering  <meyering@redhat.com>
37
38         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40
41 2012-01-16  Eric Blake  <eblake@redhat.com>
42
43         bootstrap: cater to autoconf 2.59
44         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
45         is not available.
46
47         bootstrap: properly check for libtool
48         * build-aux/bootstrap (libtoolize): Also run libtool when older
49         usage is detected.
50
51 2012-01-15  Bruno Haible  <bruno@clisp.org>
52
53         Improve support for MSVC 9.
54         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
55         clashes on MSVC.
56         * lib/fcntl.in.h: Likewise.
57         * lib/stdlib.in.h: Likewise.
58         * lib/sys_stat.in.h: Likewise.
59
60 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
61
62         gnupload: we hold the master copy of this script now
63         For motivation and more information, see:
64         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
65         * build-aux/gnupload: Make it clear in the heading comments that the
66         master copy of this file is maintained by gnulib.  Since we are at
67         it, bump its copyright year and ...
68         ($scriptversion): ... the date in its version.
69         ($usage): Patches and bug reports should be sent to the gnulib list,
70         not the automake one.
71         * config/srclist.txt: Don't try to sync 'gnupload' from automake
72         anymore.
73
74 2012-01-15  Bruno Haible  <bruno@clisp.org>
75
76         Fix module 'random'.
77         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
78         initstate, setstate are declared.
79
80 2012-01-14  Bruno Haible  <bruno@clisp.org>
81
82         Tests for module 'random'.
83         * modules/random-tests: New file.
84         * tests/test-random.c: New file, based on tests/test-random_r.c.
85
86         New module 'random'.
87         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
88         declarations.
89         * lib/random.c: New file, based on glibc/stdlib/random.c.
90         * m4/random.m4: New file.
91         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
92         HAVE_RANDOM.
93         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
94         * modules/random: New file.
95         * config/srclist.txt: Add an entry for random.c.
96         * doc/posix-functions/random.texi: Mention the 'random' module.
97         * doc/posix-functions/initstate.texi: Likewise.
98         * doc/posix-functions/setstate.texi: Likewise.
99         * doc/posix-functions/srandom.texi: Likewise.
100
101 2012-01-12  Bruno Haible  <bruno@clisp.org>
102
103         random_r: Use common idioms.
104         * lib/random_r.c: Include <stdlib.h> first.
105
106         random_r: Override incompatible API on AIX, OSF/1.
107         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
108         Override the system function if REPLACE_RANDOM_R is 1.
109         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
110         and OSF/1, set REPLACE_RANDOM_R.
111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
112         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
113         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
114         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
115         * doc/glibc-functions/random_r.texi: Likewise.
116         * doc/glibc-functions/setstate_r.texi: Likewise.
117
118         random_r: Support for MSVC 9.
119         * lib/random_r.c: Include stdint.h, not inttypes.h.
120
121 2012-01-12  Eric Blake  <eblake@redhat.com>
122
123         inet_ntop: guard extra work by IF_LINT
124         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
125         better code generation when not checking for warnings.
126         Suggested by Paul Eggert and Jim Meyering.
127
128         strptime: fix regression on mingw
129         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
130         Fix regression.  Reported by Bruno Haible.
131
132 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
133             Bruno Haible  <bruno@clisp.org>
134
135         copy-file: add error-code-returning variant.
136         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
137         (qcopy_file_preserving): New declaration.
138         * lib/copy-file.c (qcopy_file_preserving): Renamed from
139         copy_file_preserving. Change return type to 'int'. Don't emit an error
140         message here.
141         (copy_file_preserving): New function.
142         * tests/test-copy-file.c: Include <stdlib.h>.
143         (main): Test qcopy_file_preserving if the environment variable
144         NO_STDERR_OUTPUT is set.
145         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
146         with NO_STDERR_OUTPUT
147         * tests/test-copy-file-2.sh: Likewise.
148
149 2012-01-10  Bruno Haible  <bruno@clisp.org>
150
151         copy-file: Use 'quote' module consistently.
152         * lib/copy-file.c (copy_file_preserving): Use quote().
153
154         copy-file: Refactor.
155         * lib/copy-file.c: Include quote.h.
156         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
157         message here.
158         * modules/copy-file (Depends-on): Add quote.
159
160         acl: Export qcopy_acl.
161         * lib/acl.h (qcopy_acl): New declaration.
162         * lib/copy-acl.c (qcopy_acl): Make non-static.
163
164         acl: Rename a local variable.
165         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
166
167         acl: Align return values of copy_acl and qcopy_acl.
168         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
169         maybe < -1.
170
171 2012-01-11  Eric Blake  <eblake@redhat.com>
172
173         strptime: silence gcc warnings
174         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
175         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
176         Reported by Daniel P. Berrange.
177
178         inet_ntop: silence gcc warning
179         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
180         Reported by Daniel P. Berrange.
181
182 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
183
184         getloadavg test: skip the test on GNU/Linux without /proc mounted
185         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
186         file.  When /proc is not mounted, it always fails with ENOENT.
187         * tests/test-getloadavg.c (main): Treat ENOENT return code from
188         getloadavg(3) the same way as ENOSYS and ENOTSUP.
189
190 2012-01-10  Bruno Haible  <bruno@clisp.org>
191
192         regex: Avoid link error on MSVC 9.
193         * modules/regex (Depends-on): Add wctype.
194
195 2012-01-10  Bruno Haible  <bruno@clisp.org>
196
197         doc: Mention --with-tests option.
198         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
199         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
200         --with-tests.
201         Reported by Reuben Thomas.
202
203 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
204
205         users.txt: order package names lexicographically.
206         * users.txt: Order package names lexicographically.
207
208 2012-01-10  Jim Meyering  <meyering@redhat.com>
209
210         maint.mk: fix description in comment
211         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
212
213         ignore-value: remove deprecated ignore_ptr function
214         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
215         * NEWS: Note this.
216
217 2012-01-09  Jim Meyering  <meyering@redhat.com>
218
219         test-init.sh: avoid a subshell
220         * tests/test-init.sh: Remove protective subshell.
221         Suggested by Bernhard Voelker.  While a subshell is normally
222         required to protect against older shells (Solaris, FreeBSD) that
223         warn about a missing program before performing redirection, the
224         shell-selection tests performed by init.sh probably exclude any
225         offending shell.
226
227 2012-01-08  Bruno Haible  <bruno@clisp.org>
228
229         setlocale tests: Avoid test failure on Solaris 11 2011-11.
230         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
231         variable.
232
233 2012-01-08  Bruno Haible  <bruno@clisp.org>
234
235         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
236         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
237         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
238         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
239         macro.
240         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
241         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
242         * lib/spawn_faction_addopen.c: Add workaround implementation if
243         HAVE_WORKING_POSIX_SPAWN.
244         * modules/spawn (Makefile): Substitute
245         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
246         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
247         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
248         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
249         (Depends-on): Update conditions.
250         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
251         the Solaris 11 bug.
252
253 2012-01-08  Bruno Haible  <bruno@clisp.org>
254
255         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
256         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
257         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
258         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
259         macro.
260         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
261         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
262         * lib/spawn_faction_adddup2.c: Add workaround implementation if
263         HAVE_WORKING_POSIX_SPAWN.
264         * modules/spawn (Makefile): Substitute
265         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
266         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
267         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
268         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
269         (Depends-on): Update conditions.
270         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
271         the Solaris 11 bug.
272
273 2012-01-08  Bruno Haible  <bruno@clisp.org>
274
275         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
276         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
277         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
278         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
279         HAVE_WORKING_POSIX_SPAWN.
280         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
281         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
282         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
283         * lib/spawn_faction_addclose.c: Add workaround implementation if
284         HAVE_WORKING_POSIX_SPAWN.
285         * modules/spawn (Makefile): Substitute
286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
287         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
288         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
289         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
290         (Depends-on): Update conditions.
291         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
292         the Solaris 11 bug.
293
294 2012-01-08  Bruno Haible  <bruno@clisp.org>
295
296         doc: Update for Solaris 11 2011-11.
297         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
298         * m4/printf.m4: Update comments.
299
300 2012-01-08  Bruno Haible  <bruno@clisp.org>
301
302         mktime: Avoid compilation error on Solaris 11.
303         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
304
305 2012-01-08  Bruno Haible  <bruno@clisp.org>
306
307         doc: Small fix.
308         * doc/posix-headers/nl_types.texi: Correct platforms list.
309
310 2012-01-08  Simon Josefsson  <simon@josefsson.org>
311
312         Add lgpl-3.0 module.
313         * MODULES.html.sh (Support for building documentation): Add
314         lgpl-3.0.
315         * modules/lgpl-3.0: New file.
316
317 2012-01-08  Jim Meyering  <meyering@redhat.com>
318
319         select.c: indent with spaces, not TABs
320         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
321
322 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
323
324         quotearg: do not use grave accent for left quote
325         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
326         locale_quoting_style.
327         (quotearg_buffer_restyled): Fix example.
328         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
329
330 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
331
332         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
333         Most programs do not have translation catalogs for English and much
334         less separate catalogs for British and American English.  Drop the
335         suggestion to translators about these two, and provide it
336         automatically for Unicode locales.  Like most programs, even those
337         using American English, we use single quotation marks.  This conflicts
338         with the American typographic convention, but works better when you
339         cite the entire error message within double quotes.  It also tries not
340         to clash with established practice and with what non-gnulib programs
341         will usually do.
342         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
343         using an UTF-8 or GB-18030 locale.  The list of other locales with
344         quotes was provided by Bruno Haible.
345         (quotearg_buffer_restyled): Adjust instructions to translators.
346         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
347         text, since this would be wrong when using Unicode.
348         * modules/quotearg: Depend on c-strcaseeq.
349
350 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
351
352         quotearg: fix Wikipedia link
353         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
354
355 2012-01-07  Simon Josefsson  <simon@josefsson.org>
356
357         Fix for mingw with MSVC9.
358         * m4/ld-version-script.m4: Check that compiler rejects version
359         scripts with syntax errors.  Reported by Bruno Haible
360         <bruno@clisp.org>.
361
362 2012-01-06  Bruno Haible  <bruno@clisp.org>
363
364         Talk about "native Windows API", not "Woe32".
365         * lib/accept4.c: Update comments to mention native Windows.
366         * lib/execute.c: Likewise.
367         * lib/fatal-signal.c: Likewise.
368         * lib/localcharset.c: Likewise.
369         * lib/nanosleep.c: Likewise.
370         * lib/nl_langinfo.c: Likewise.
371         * lib/pclose.c: Likewise.
372         * lib/pipe-filter-gi.c: Likewise.
373         * lib/pipe-filter-ii.c: Likewise.
374         * lib/pipe.c: Likewise.
375         * lib/pipe2.c: Likewise.
376         * lib/popen.c: Likewise.
377         * lib/progreloc.c: Likewise.
378         * lib/relocatable.c: Likewise.
379         * lib/sigaction.c: Likewise.
380         * lib/sigprocmask.c: Likewise.
381         * lib/spawn-pipe.h: Likewise.
382         * lib/spawn-pipe.c: Likewise.
383         * lib/spawni.c: Likewise.
384         * lib/stat-time.h: Likewise.
385         * lib/w32spawn.h: Likewise.
386         * tests/test-isatty.c: Likewise.
387         * lib/config.charset: More comments.
388         * doc/gnulib-intro.texi: Mention native Windows.
389         * doc/posix-functions/_Exit_C99.texi: Likewise.
390         * doc/posix-headers/fcntl.texi: Likewise.
391
392 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
393
394         argp: Avoid crash if translator uses % characters in a translation.
395         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
396         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
397
398 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
399
400         doc: C11 and C++11 are now official
401         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
402         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
403         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
404         * modules/stdalign:
405         Replace references to draft C1X to C11, and to draft C++0X to C++11.
406
407 2012-01-06  Bruno Haible  <bruno@clisp.org>
408
409         uc-is-grapheme-break tests: Tweak.
410         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
411         message.
412
413 2012-01-06  Bruno Haible  <bruno@clisp.org>
414
415         test-init.sh: correct the test for diff -u
416         * tests/test-init.sh: Also redirect stdout to /dev/null.
417
418 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
419
420         Use ', not `, for quoting output.
421         * build-aux/announce-gen (usage, sizes, print_news_deltas)
422         (print_changelog_deltas, get_tool_versions, main program):
423         * build-aux/git-version-gen:
424         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
425         * build-aux/move-if-change (help):
426         * build-aux/useless-if-before-free (usage, main program):
427         * check-module (parse_module_file, usage)
428         (find_included_lib_files, check_module):
429         * lib/argmatch.c (main) [TEST]:
430         * lib/argp-help.c (_help):
431         * lib/getopt1.c (main) [TEST]:
432         * lib/git-merge-changelog.c (usage):
433         * lib/xstrtol-error.c (xstrtol_error):
434         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
435         * m4/argz.m4 (gl_FUNC_ARGZ):
436         * m4/bison.m4 (gl_BISON):
437         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
438         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
439         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
440         * m4/fpending.m4 (gl_PREREQ_FPENDING):
441         * m4/gc-random.m4 (gl_GC_RANDOM):
442         * m4/intl.m4 (gt_CHECK_DECL):
443         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
444         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
445         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
447         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
448         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
449         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
450         * tests/test-dirname.c (main):
451         * tests/test-getpass.c (main):
452         * tests/test-iconvme.c (main):
453         * tests/test-parse-datetime.c (LOG):
454         * tests/test-xstrtoimax.sh:
455         * tests/test-xstrtol.sh:
456         * tests/test-xstrtoll.sh:
457         * tests/test-xstrtoumax.sh:
458         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
459         * top/GNUmakefile (abort-due-to-no-makefile):
460         Quote 'like this', not `like this', as per the recent change to
461         the GNU coding standards.
462
463 2012-01-05  Bruno Haible  <bruno@clisp.org>
464
465         strtoimax: Don't force a replacement on systems where intmax_t is int.
466         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
467         'intmax_t' is not larger than 'int'.
468         Reported by Pádraig Brady <P@draigBrady.com>.
469
470 2012-01-05  Bruno Haible  <bruno@clisp.org>
471
472         doc: Mention NetBSD bugs.
473         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
474         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
475
476 2012-01-05  Bruno Haible  <bruno@clisp.org>
477
478         strtoumax tests: Enhance tests.
479         * tests/test-strtoumax.c (main): Add tests for large values.
480
481 2012-01-05  Bruno Haible  <bruno@clisp.org>
482
483         strtoimax: Work around AIX 5.1 bug.
484         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
485         definition.
486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
487         Set HAVE_STRTOIMAX.
488         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
489         REPLACE_STRTOIMAX.
490         * modules/inttypes-incomplete (Makefile.am): Substitute
491         REPLACE_STRTOIMAX.
492         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
493         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
494         (Depends-on): Update conditions.
495         * tests/test-strtoimax.c (main): Add tests for large values.
496         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
497
498 2012-01-05  Bruno Haible  <bruno@clisp.org>
499
500         inttypes: Modernize.
501         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
502         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
503         (Makefile.am): Update inttypes.h rule.
504
505 2012-01-05  Jim Meyering  <meyering@redhat.com>
506
507         init.sh: don't waste a subshell just to redirect stderr
508         * tests/init.sh: In testing for diff -u and diff -c, use a
509         stderr-redirecting exec inside `...` rather than a subshell.
510
511         test-init.sh: avoid failure on HP-UX 11.00
512         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
513         resolves to diff -c or cmp.  Reported by Bruno Haible.
514
515 2012-01-05  Bruno Haible  <bruno@clisp.org>
516
517         Tests for module 'strtoull'.
518         * modules/strtoull-tests: New file.
519         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
520
521 2012-01-05  Bruno Haible  <bruno@clisp.org>
522
523         Tests for module 'strtoll'.
524         * modules/strtoll-tests: New file.
525         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
526
527 2012-01-05  Bruno Haible  <bruno@clisp.org>
528
529         Tests for module 'strtoul'.
530         * modules/strtoul-tests: New file.
531         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
532
533 2012-01-05  Bruno Haible  <bruno@clisp.org>
534
535         Tests for module 'strtol'.
536         * modules/strtol-tests: New file.
537         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
538
539 2012-01-04  Jim Meyering  <meyering@redhat.com>
540
541         test-init.sh: accommodate Solaris 5.10's different diff -u output
542         * tests/test-init.sh: Also exempt @@ lines from the comparison
543         of diff output, since Solaris 5.10 and GNU diff formats differ.
544         Reported by Stefano Lattarini.
545
546 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
547
548         test-posixtm: don't assume signed integer wraparound
549         * tests/test-posixtm.c (main): Don't assume wraparound semantics
550         after signed integer overflow.  Inspired by (though it may not
551         fix) Bruno Haible's bug report in
552         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
553
554         Spell out "Windows 9x" and "Windows XP".
555         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
556         "Windows 9x" and "WinXP" with "Windows XP".
557
558 2012-01-04  Jim Meyering  <meyering@redhat.com>
559
560         test-vc-list-files-cvs.sh: remove obsolete comment
561         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
562         double exit.  Now that's all encapsulated via skip_ and Exit.
563
564 2012-01-04  Bruno Haible  <bruno@clisp.org>
565
566         Talk about "native Windows API", not "Win32".
567         * lib/classpath.c: Update comments to mention native Windows.
568         * lib/csharpexec.c: Likewise.
569         * lib/dup2.c: Likewise.
570         * lib/error.c: Likewise.
571         * lib/fcntl.c: Likewise.
572         * lib/filename.h: Likewise.
573         * lib/findprog.c: Likewise.
574         * lib/get-rusage-as.c: Likewise.
575         * lib/get-rusage-data.c: Likewise.
576         * lib/getpagesize.c: Likewise.
577         * lib/javaexec.c: Likewise.
578         * lib/msvc-inval.c: Likewise.
579         * lib/msvc-nothrow.c: Likewise.
580         * lib/nanosleep.c: Likewise.
581         * lib/nonblocking.c: Likewise.
582         * lib/printf-parse.c: Likewise.
583         * lib/setlocale.c: Likewise.
584         * lib/sigaction.c: Likewise.
585         * lib/strerror_r.c: Likewise.
586         * lib/tmpdir.c: Likewise.
587         * lib/vasnprintf.c: Likewise.
588         * lib/w32spawn.h: Likewise.
589         * lib/waitpid.c: Likewise.
590         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
591         * m4/locale-ar.m4: Likewise.
592         * m4/locale-fr.m4: Likewise.
593         * m4/locale-ja.m4: Likewise.
594         * m4/locale-tr.m4: Likewise.
595         * m4/locale-zh.m4: Likewise.
596         * m4/printf.m4: Likewise.
597         * tests/test-cloexec.c: Likewise.
598         * tests/test-copy-acl.sh: Likewise.
599         * tests/test-copy-file.sh: Likewise.
600         * tests/test-file-has-acl.sh: Likewise.
601         * tests/test-set-mode-acl.sh: Likewise.
602         * tests/test-dup-safer.c: Likewise.
603         * tests/test-dup2.c: Likewise.
604         * tests/test-dup3.c: Likewise.
605         * tests/test-fcntl.c: Likewise.
606         * tests/test-nonblocking-pipe.h: Likewise.
607         * tests/test-nonblocking-socket.h: Likewise.
608         * tests/test-pipe.c: Likewise.
609         * tests/test-pipe2.c: Likewise.
610         * tests/test-spawn-pipe-child.c: Likewise.
611         * doc/acl-resources.txt: Likewise.
612         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
613         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
614         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
615         * lib/localcharset.c: Update comments to mention native Windows.
616         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
617         * lib/localename.c: Likewise.
618         * lib/progreloc.c: Likewise.
619         * lib/relocatable.c: Likewise.
620         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
621         (windows_compute_revents): Renamed from win32_compute_revents.
622         (windows_compute_revents_socket): Renamed from
623         win32_compute_revents_socket.
624         * lib/select.c: Update comments to mention native Windows.
625         (windows_poll_handle): Renamed from win32_poll_handle.
626         * m4/threadlib.m4: Update comments to mention native Windows.
627         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
628         --enable-threads=windows instead of --enable-threads=win32. Set
629         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
630         * lib/glthread/lock.h: Update comments to mention native Windows.
631         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
632         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
633         USE_WIN32_THREADS.
634         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
635         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
636         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
637         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
638         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
639         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
640         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
641         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
642         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
643         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
644         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
645         * tests/test-tls.c: Likewise.
646         Rationale:
647         Microsoft renamed the "Win32 API" to "Windows API", as it is available
648         on both 32-bit and 64-bit Windows systems.
649         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
650         line of distinction is between "native Windows" on one side and Unix/
651         POSIX systems on the other side. More details in
652         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
653         Suggested by Paul Eggert.
654
655 2012-01-03  Bruno Haible  <bruno@clisp.org>
656
657         isatty: Support for MSVC 9.
658         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
659         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
660         (_isatty_nothrow): New function.
661         (isatty): Use it instead of _isatty.
662         (IsConsoleHandle): Add comment, from Paolo Bonzini.
663         * lib/poll.c (IsConsoleHandle): Likewise.
664         * lib/select.c (IsConsoleHandle): Likewise.
665         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
666         (gl_PREREQ_ISATTY): New macro.
667         * modules/isatty (Depends-on): Add msvc-inval.
668         (configure.ac): Invoke gl_PREREQ_ISATTY.
669
670 2012-01-03  Jim Meyering  <meyering@redhat.com>
671
672         maint.mk: remove temporary transition aid from over 1.5 years ago
673         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
674         purpose was to aid in the transition (avoiding silent malfunction)
675         from that old name to the new _sc_search_regexp.  This shim was
676         added by commit 219c504b.
677
678         init.sh: do not try to accommodate compare arguments starting with "-"
679         * tests/init.sh (compare_dev_null_): Do not try to accommodate
680         compare arguments that start with "-".  Besides, we do not worry
681         about this when invoking diff or cmp; why start now with sed?
682         Using "--" to separate options from argument would trigger sed
683         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
684         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
685
686 2012-01-02  Bruno Haible  <bruno@clisp.org>
687
688         Enhance tests for module 'isatty'.
689         * modules/isatty-tests (Depends-on): Add pipe-posix.
690         * tests/test-isatty.c: Include <fcntl.h>.
691         (DEV_NULL): New macro.
692         (main): Test the resut of isatty() also on regular files, pipes, and
693         /dev/null.
694
695         New module 'isatty'.
696         * lib/unistd.in.h (isatty): New declaration.
697         * lib/isatty.c: New file, based on an idea of
698         Bastien Roucariès <roucaries.bastien@gmail.com>.
699         * m4/isatty.m4: New file.
700         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
701         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
702         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
703         REPLACE_ISATTY.
704         * modules/isatty: New file.
705         * doc/posix-functions/isatty.texi: Mention the new module.
706         Suggested by Paolo Bonzini.
707
708 2012-01-02  Bruno Haible  <bruno@clisp.org>
709
710         canonicalize: Tweak 2011-12-29 commit.
711         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
712         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
713
714 2012-01-02  Jim Meyering  <meyering@redhat.com>
715
716         gitlog-to-changelog: describe input syntax in --help output
717         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
718
719         gitlog-to-changelog: fix typo in --help: show backslash before email @
720         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
721         in sources, but not in actual output.
722
723 2011-12-30  Jim Meyering  <meyering@redhat.com>
724
725         gitlog-to-changelog: don't malfunction when name contains %-directive
726         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
727         in a name string cause trouble.  E.g., with a user name of "%s",
728         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
729
730 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
731
732         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
733         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
734         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
735         the "  (tiny change)" notation that is appended to the standard
736         ChangeLog "date  name  email" header line.
737
738 2012-01-01  Jim Meyering  <meyering@redhat.com>
739
740         test-framework-sh: init.sh: fix "make dist" failure
741         When using gnulib-tool's --with-tests option and any module that
742         depends on test-framework-sh, "make dist" would fail due to the
743         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
744         in the gltests directory, and not in the gllib/ directory.
745         One way to work around that is to move the EXTRA_DIST += init.sh
746         from the primary module to the -tests one:
747         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
748         * modules/test-framework-sh (Makefile.am): ...not here.
749         Reported by Tom G. Christensen in
750         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
751
752         version-etc: update copyright year reported by --version
753         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
754
755 2011-12-31  Pádraig Brady  <P@draigBrady.com>
756
757         canonicalize: only stat() if required
758         * lib/canonicalize.c (canonicalize_filename_mode):
759         Avoid calling l?stat() when both CAN_MISSING,
760         and CAN_NOLINKS are set, as we neither need
761         to resolve symlinks or test component existence.
762
763 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
764
765         doc: cover st_ino issues once; add OpenVMS etc.
766         * doc/posix-functions/stat.texi (stat):
767         * doc/posix-functions/lstat.texi (lstat):
768         * doc/posix-functions/fstatat.texi (fstatat):
769         * doc/posix-functions/fstat.texi (fstat):
770         Move general 'struct stat' stuff to sys_stat.texi,
771         leaving behind a pointer.
772         * doc/posix-headers/sys_stat.texi (sys/stat.h):
773         Merge duplicate info about 'struct stat' problems into here.
774         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
775         and suggest partial workarounds.
776
777         same-inode: port to OpenVMS
778         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
779         three st_ino values.
780
781 2011-12-30  Pádraig Brady  <P@draigBrady.com>
782
783         canonicalize: fix references to stat() and lstat()
784         * lib/canonicalize.c (canonicalize_filename_mode):
785         Ensure references always resolve to a replacement
786         function if required (even via a macro).
787
788 2011-12-30  Jim Meyering  <meyering@redhat.com>
789
790         gitlog-to-changelog: remove a little duplication
791         * build-aux/gitlog-to-changelog (main): Grep @lines once,
792         rather than twice.
793
794 2011-12-29  Pádraig Brady  <P@draigBrady.com>
795
796         canonicalize: add support for not resolving symlinks
797         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
798         indicate we don't want to follow symlinks.  Also
799         provide CAN_MODE_MASK to aid setting these existing
800         mutually exclusive values.
801         * lib/canonicalize.c (canonicalize_filename_mode):
802         Extract the flags from can_mode parameter, which
803         are currently just used to select between stat()
804         and lstat().  Also ensure that mutually exclusive
805         values are flagged immediately as invalid.
806         * tests/test-canonicalize.c: Verify symlinks are
807         not followed, and that invalid flag combinations
808         are diagnosed.
809
810 2011-12-25  Jim Meyering  <meyering@redhat.com>
811
812         gitlog-to-changelog: do not clump multi-paragraph entries
813         Identical header lines (date,name,email+coauthors) are suppressed,
814         thus putting all entries with those same characteristics under
815         a single header.  However, when a log entry consists of two or
816         more paragraphs, it may not be clear where it starts and ends.
817         This change makes it so that such an entry is always separated
818         from others by a header line, even when that header would
819         otherwise be suppressed.
820         * build-aux/gitlog-to-changelog: Implement the above.
821         Inspired by a related request from Stefano Lattarini in
822         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
823
824 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
825
826         announce-gen: fix `cmd' typo in diagnostic
827         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
828         diagnostic: a missing '$' meant that the command was not output.
829
830 2011-12-23  Jim Meyering  <meyering@redhat.com>
831
832         test-framework-sh: distribute init.sh
833         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
834         Otherwise, "make -C gnulib-tests check" (at least in grep) would
835         fail due to the lack of init.sh.
836
837         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
838         * modules/atexit-tests: Rather than listing tests/init.sh,
839         now that there's a module for it, simply depend on that new module.
840         * modules/closein-tests: Likewise.
841         * modules/exclude-tests: Likewise.
842         * modules/getcwd-tests: Likewise.
843         * modules/perror-tests: Likewise.
844         * modules/pread-tests: Likewise.
845         * modules/pwrite-tests: Likewise.
846         * modules/vc-list-files-tests: Likewise.
847         * modules/verify-tests: Likewise.
848         * modules/xalloc-die-tests: Likewise.
849         * modules/xstrtoimax-tests: Likewise.
850         * modules/xstrtol-tests: Likewise.
851         * modules/xstrtoll-tests: Likewise.
852         * modules/xstrtoumax-tests: Likewise.
853         * modules/yesno-tests: Likewise.
854
855 2011-12-22  Jim Meyering  <meyering@redhat.com>
856
857         test-framework-sh: add minimal tests of init.sh's compare function
858         * modules/test-framework-sh-tests: New file.
859         * tests/test-init.sh: New file.
860
861         test-framework-sh: new module
862         * modules/test-framework-sh: New file.
863         * MODULES.html.sh (Support for maintaining and releasing projects):
864         List it.
865
866         init.sh: do not emit simulated diff output to stderr
867         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
868
869 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
870
871         .gitignore: ignore gnulib.dvi and regex.info
872         * doc/.gitignore:add gnulib.dvi and regex.info
873
874 2011-12-22  Jim Meyering  <meyering@redhat.com>
875
876         init.sh: correct previous change
877         * tests/init.sh (compare): My previous change was wrong.
878         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
879
880         init.sh: avoid unwarranted test failure when using "set -e"
881         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
882         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
883         a use like "compare exp out" would get evoke an unconditional failure.
884
885 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
886
887         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
888         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
889         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
890         autoreconf that did not.
891         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
892         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
893
894 2011-12-17  Jim Meyering  <meyering@redhat.com>
895
896         bootstrap: remove some now-unneeded code
897         This script arose back when gnulib-tool was young.
898         Since then, it has seen improvements that render much of this
899         script unnecessary.  In particular, it can now make symlinks
900         to the files it uses.  Also, I no longer see as much value in
901         marking files as read-only via comments.
902         If you relied on the symlink-creation feature of the preceding
903         version of this script, you can get most of that functionality
904         by adding the --symlink option to the definition of
905         gnulib_tool_option_extras in your bootstrap.conf file.
906         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
907         Run autopoint and libtoolize *before* gnulib-tool.
908         After it, run an abbreviated autoreconf, rather than a loop around
909         all tools.
910         (slirp, bt_mark_as_generated): Remove functions.
911
912 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
913
914         ftoastr: fix typo
915         * lib/ftoastr.h: Fix misspelling in comment.
916
917 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
918
919         * top/README-release: fix punctuation.
920
921 2011-12-17  Jim Meyering  <meyering@redhat.com>
922
923         bootstrap: correct the recent buildreq change
924         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
925         had no effect.
926         * build-aux/bootstrap (buildreq): Bracket each search term with
927         "*...*", so that the shell "case" statement works as intended.
928         Add comments.
929
930 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
931
932         build: let bootstrap resort to wget when downloading .po files
933         * build-aux/bootstrap (download_po_files): Fallback to wget when
934         downloading the .po files via rsync fails.  This is necessary to
935         bootstrap from behind a strict firewall.
936
937 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
938
939         stdint: don't assume C++11 when compiling with g++
940         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
942         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
943         work also in C++ before C++11, as that improperly inhibits
944         generating a substitute stdint.h for that case.
945
946 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
947
948         alloca: protect comment from gnulib-tool
949         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
950         that gnulib-tool doesn't think it's a license, and munge it to
951         say "GCC version 3".
952
953 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
954
955         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
956         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
957         $(abs_top_builddir) instead of $(top_builddir).
958
959 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
960
961         strftime-tests: also test nanoseconds
962         * tests/test-strftime.c (T): Add a test of %N.
963
964 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
965
966         inttypes, stdint: add C++11 support
967         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
968         when including inttypes.h and stdint.h.  Support this change to
969         the standard.
970         * doc/posix-headers/inttypes.texi (inttypes.h):
971         * doc/posix-headers/stdint.texi (stdint.h): Document this.
972         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
973         Define if not defined already, for the benefit of pre-C++11 hosts.
974         Define the standard format macros (e.g., PRId8) always.
975         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
976         Likewise, if __cpluspus.  Define the standard constant and limit
977         macros (e.g., INT8_C, INT8_MAX) always.
978         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
979         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
980         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
981         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
982         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
983         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
984         Likewise.
985
986 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
987
988         nonblocking tests: Fix test failure on Linux/PPC.
989         Suggested by Prerna Saxena in
990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
991         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
992         Set to 1100000.
993
994 2011-12-12  Jim Meyering  <meyering@redhat.com>
995
996         argmatch: don't hard-code `' when listing valid option arguments
997         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
998         use the quote function to add quotes.  Use fputs rather than
999         fprintf for the format string with no format directive.
1000
1001 2011-12-07  Eric Blake  <eblake@redhat.com>
1002
1003         bootstrap: detect tools required by gnulib-tool
1004         * build-aux/bootstrap (buildreq): Provide minimum implicit
1005         dependencies.
1006         * DEPENDENCIES: Mention patch as a prereq.
1007
1008 2011-12-04  Bruno Haible  <bruno@clisp.org>
1009
1010         sethostname: Port to Windows platforms.
1011         * lib/sethostname.c: Provide an alternate implementation for Windows
1012         platforms.
1013         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1014         (main): Skip the test if sethostname() fails with EPERM. On Windows
1015         platforms, don't check the result of gethostname().
1016
1017 2011-12-04  Bruno Haible  <bruno@clisp.org>
1018             Jim Meyering  <meyering@redhat.com>
1019
1020         tests: Avoid spurious error message on platforms without mktemp program.
1021         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1022
1023 2011-12-04  Bruno Haible  <bruno@clisp.org>
1024
1025         sethostname: Fix documentation.
1026         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1027         "not fixed" section.
1028
1029 2011-12-03  Bruno Haible  <bruno@clisp.org>
1030
1031         gnulib-tool: Verify that the License field is present and non-empty.
1032         * gnulib-tool (func_get_license_raw): New function, extracted from
1033         func_get_license.
1034         (func_get_license): Use it. Warn if the module is not a test module and
1035         has no license.
1036         Suggested by Jim Meyering.
1037
1038 2011-12-03  Bruno Haible  <bruno@clisp.org>
1039
1040         sethostname tests: Fix link error on mingw.
1041         * tests/test-sethostname1.c: New file, extracted from
1042         tests/test-sethostname.c.
1043         * tests/test-sethostname2.c: New file, extracted from
1044         tests/test-sethostname.c.
1045         * tests/test-sethostname.c: Remove file.
1046         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1047         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1048         (Depends-on): Add gethostname.
1049         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1050         Link the latter with $(GETHOSTNAME_LIB).
1051
1052         sethostname tests: Fix compilation error on mingw.
1053         * tests/test-sethostname.c: Don't include <sys/types.h>.
1054         (geteuid): Use a dummy value without uid_t.
1055         * modules/sethostname-tests (Depends-on): Remove sys_types.
1056
1057         sethostname tests: Avoid a gcc warning.
1058         * tests/test-sethostname.c (main): Remove an unused variable.
1059
1060         Tweak last commit.
1061         * modules/sethostname-tests (Files): Sort by decreasing importance.
1062         (configure.ac): Check for geteuid.
1063         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1064         the test when there's nothing to test. Drop an unnecessary cast.
1065         Improve an error message. Verify that the final sethostname() call
1066         succeeds.
1067
1068 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1069
1070         Add a test suite for the sethostname module.
1071         * modules/sethostname-tests: New file.  A test program
1072         for the sethostname module.
1073         * tests/test-sethostname.c: Likewise.
1074
1075 2011-12-03  Bruno Haible  <bruno@clisp.org>
1076
1077         Tweak last commit.
1078         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1079         Fix preprocessor directives indentation. Fix typos.
1080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1081         * modules/unistd (Makefile): Likewise.
1082
1083 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1084
1085         Integrate the sethostname module into unistd.
1086         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1087         into the unistd.h header.
1088         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1089         preprocessor directives.
1090         * modules/unistd: Setup the Makefile substitutions of the
1091         SETHOSTNAME preprocessor directives.
1092
1093 2011-12-03  Bruno Haible  <bruno@clisp.org>
1094
1095         Tweak last commit.
1096         * lib/sethostname.c: Don't include <string.h>.
1097         (sethostname): No need to copy the argument string to the stack. Don't
1098         call clearerr. Preserve errno when fprintf failed.
1099         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1100         Don't invoke AC_REPLACE_FUNCS.
1101         * modules/sethostname (Link): Remove empty section.
1102         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1103         failure problem.
1104
1105 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1106
1107         New module 'sethostname'.
1108         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1109         for systems that lack it.
1110         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1111         sethostname declaration and function.
1112         * modules/sethostname: New file.  Define the sethostname module.
1113
1114 2011-12-03  Bruno Haible  <bruno@clisp.org>
1115
1116         Tweak last commit.
1117         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1118
1119 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1120
1121         Split the HOST_NAME_MAX detection into a separate m4 macro.
1122         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1123         macro so it can be used by the pending sethostname module.
1124
1125 2011-12-03  Bruno Haible  <bruno@clisp.org>
1126
1127         Fix module descriptions syntax.
1128         * modules/argv-iter (License): Fix syntax.
1129         * modules/di-set (License): Likewise.
1130         * modules/ino-map (License): Likewise.
1131         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1132
1133 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1134
1135         stdalign: port to Clang 3.0
1136         Problem reported by Simon Josefsson in
1137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1138         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1139         which has <stdalign.h> but which does not define alignof.
1140         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1141
1142 2011-12-01  Eric Blake  <eblake@redhat.com>
1143
1144         mktempd: silence dd usage
1145         * build-aux/mktempd (rand_bytes): Silence dd.
1146
1147 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1148
1149         manywarnings: Don't mention gcc version in docstring.
1150         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1151         Jim Meyering <meyering@redhat.com>.
1152
1153 2011-11-30  Jim Meyering  <meyering@redhat.com>
1154
1155         hash: mark a few floating point constants with "f" suffix
1156         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1157         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1158         floating point constants with "f", since they're destined to be
1159         saved/used as "float"s.
1160
1161 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1162
1163         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1164         * tests/test-float.c (test_long_double): Correct and re-enable the
1165         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1166
1167 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1168
1169         Avoid subtracting two pointers that don't point into the same block.
1170         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1171         only pointers into the same memory block are subtracted. We cannot
1172         assume that sizeof (ptrdiff_t) == sizeof (void *).
1173
1174 2011-11-29  Eric Blake  <eblake@redhat.com>
1175
1176         maint.mk: add syntax check for use of compare from init.sh
1177         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1178         moved here from coreutils.
1179
1180         manywarnings: drop -Wunsuffixed-float-constants
1181         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1182         '1.0D', which is the only way to silence this warning for 'double'.
1183
1184 2011-11-29  Jim Meyering  <meyering@redhat.com>
1185
1186         hash: mark compute_bucket_size with the pure attribute
1187         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1188
1189         quotearg, propername: correct pragma guard expression
1190         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1191         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1192
1193 2011-11-28  Jim Meyering  <meyering@redhat.com>
1194
1195         propername: do not mark proper_name with the const attribute
1196         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1197         since it examines data pointed to by its parameter.
1198         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1199         the suggestion from -Wsuggest-attribute=const.
1200
1201         propername: mark one more function as const
1202         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1203
1204 2011-11-27  Jim Meyering  <meyering@redhat.com>
1205
1206         mark functions with const and pure attributes
1207
1208         Mark functions per suggestions from gcc-4.6 when using these options:
1209         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1210         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1211         Follow these guidelines: when possible, apply the attribute to
1212         an extern declaration, not to its definition.  Apply it to the
1213         definition only when the definition is static.
1214         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1215         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1216         * lib/base64.h (isbase64): Likewise.
1217         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1218         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1219         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1220         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1221         (c_tolower, c_toupper): Likewise.
1222         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1223         * lib/chdir-long.c (find_non_slash): Likewise.
1224         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1225         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1226         * lib/file-type.h (file_type): Likewise.
1227         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1228         * lib/filevercmp.c (verrevcmp): Likewise.
1229         * lib/freadahead.h (freadahead): Likewise.
1230         * lib/fts.c (fts_maxarglen): Likewise.
1231         * lib/hash-pjw.h (hash_pjw): Likewise.
1232         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1233         * lib/hash.c (is_prime, next_prime): Likewise.
1234         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1235         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1236         (hash_table_ok, hash_get_first, hash_string): Likewise.
1237         (compute_bucket_size): Likewise.
1238         * lib/i-ring.h (i_ring_empty): Likewise.
1239         * lib/isnan.c (isnanl): Likewise.
1240         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1241         * lib/memcasecmp.h (memcasecmp): Likewise.
1242         * lib/memchr2.h (memchr2): Likewise.
1243         * lib/memcmp2.h (memcmp2): Likewise.
1244         * lib/parse-datetime.y (lookup_zone): Likewise.
1245         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1246         [!WINDOWS_SOCKETS]: Likewise.
1247         * lib/strnlen1.h (strnlen1): Likewise.
1248         * lib/uniwidth.in.h (uc_width): Likewise.
1249         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1250         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1251         (quoting_options_from_style): Add a comment.
1252         * lib/propername.h (proper_name): Add a comment.
1253
1254 2011-11-27  Bruno Haible  <bruno@clisp.org>
1255
1256         Remove unused macros from !_LIBC code in glibc-borrowed files.
1257         * lib/fnmatch.c (STRCOLL): Remove macro.
1258         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1259         * lib/glob.c (__stat, __readdir64): Remove macros.
1260         * lib/tempname.c (__open64, __xstat64): Remove macros.
1261         Suggested by Paul Eggert.
1262
1263 2011-11-27  Bruno Haible  <bruno@clisp.org>
1264
1265         getcwd: Fix link error on MSVC 9.
1266         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1267
1268 2011-11-27  Bruno Haible  <bruno@clisp.org>
1269
1270         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1271         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1272         HAVE_OPENDIR is 0.
1273         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1274         HAVE_CLOSEDIR is 0.
1275         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1276         is 0.
1277         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1278
1279 2011-11-27  Bruno Haible  <bruno@clisp.org>
1280
1281         getcwd: Fix bug from 2011-08-17.
1282         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1283         platforms that need it.
1284         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1285         code of 4 to be a failure, not a success. This ensures that
1286         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1287
1288 2011-11-27  Bruno Haible  <bruno@clisp.org>
1289
1290         binary-io tests: Avoid test failure on mingw when libtool is used.
1291         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1292         Don't verify the size of t-bin-out1.tmp here.
1293         * tests/test-binary-io.sh: Verify it here.
1294         Reported by Simon Josefsson.
1295
1296 2011-11-26  Bruno Haible  <bruno@clisp.org>
1297
1298         Fix conflict between two instantiations of module 'unistd'.
1299         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1300         ${include_guard_prefix} also in the autoconf snippet.
1301         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1303         GNULIB_UNISTD_H_GETOPT.
1304         * modules/getopt-posix (configure.ac): Set the
1305         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1306         * modules/getopt-gnu (configure.ac): Likewise.
1307         * modules/unistd (Makefile.am): Change the substitution value of
1308         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1309         Reported by Simon Josefsson.
1310
1311 2011-11-25  Bruno Haible  <bruno@clisp.org>
1312
1313         pagealign_alloc: Doc and comments.
1314         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1315         module.
1316         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1317
1318 2011-11-25  Jim Meyering  <meyering@redhat.com>
1319
1320         test-update-copyright.sh: avoid false-positive failure
1321         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1322         around false positive failure on Cygwin/Windows.  The latter was
1323         matching erroneously-created files with names like
1324         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1325
1326 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1327
1328         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1329         * m4/valgrind-tests.m4: Check that the parameters that will be
1330         used works, not just a subset of them.  Reported by Bruno Haible
1331         <bruno@clisp.org>.
1332
1333 2011-11-24  Jim Meyering  <meyering@redhat.com>
1334
1335         test-stdalign.c: comment out long double tests
1336         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1337         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1338         error: '_Alignas' specifiers cannot reduce alignment of \
1339         'static_longdouble_alignas'.
1340
1341 2011-11-22  Jim Meyering  <meyering@redhat.com>
1342
1343         init.sh: make "compare /dev/null FILE" output more readable
1344         * tests/init.sh (compare_): Document the preferred order of arguments.
1345         (emit_diff_u_header_): New function.
1346         (compare_dev_null_): Emit a simulated diff, rather than just the
1347         contents of the unexpected file.  Suggestion from Bruno Haible.
1348
1349 2011-11-21  Jim Meyering  <meyering@redhat.com>
1350             Eric Blake  <eblake@redhat.com>
1351
1352         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1353         * tests/init.sh: Make our compare function slightly more portable.
1354         Reported by Bruno Haible in
1355         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1356
1357 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1358
1359         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1360         before using it, in code that ends up in config.h.
1361
1362 2011-11-20  Bruno Haible  <bruno@clisp.org>
1363
1364         getcwd: Work around getcwd bug on AIX 5..7.
1365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1366         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1367         Use a different value for gl_cv_func_getcwd_path_max. Move the
1368         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1369         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1370         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1371         Define HAVE_MINIMALLY_WORKING_GETCWD.
1372         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1373         where it is not even minimally working, that is, on AIX.
1374         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1375         m4/getcwd-path-max.m4.
1376         (main): Update exit code computation.
1377         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1378         getcwd does not handle long file names.
1379
1380 2011-11-20  Bruno Haible  <bruno@clisp.org>
1381
1382         getcwd: Fix bug from 2009-09-10.
1383         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1384         like "no".
1385
1386 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1387
1388         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1389
1390 2011-11-20  Bruno Haible  <bruno@clisp.org>
1391
1392         fma tests: Avoid shadowing local variables.
1393         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1394         expected.
1395
1396 2011-11-20  Bruno Haible  <bruno@clisp.org>
1397
1398         copysignf tests: Fix.
1399         * tests/test-copysignf.c: Fix signature check.
1400
1401 2011-11-20  Bruno Haible  <bruno@clisp.org>
1402
1403         fma: Remove unused code.
1404         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1405         unused macros.
1406
1407 2011-11-20  Bruno Haible  <bruno@clisp.org>
1408
1409         sethostname: Fix doc about AIX.
1410         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1411         sethostname; it has it.
1412
1413         sethostname: Mention more portability problems.
1414         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1415         problem.
1416         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1417
1418 2011-11-19  Bruno Haible  <bruno@clisp.org>
1419
1420         Depend on module fcntl-h when AT_FDCWD is used.
1421         * modules/utimens (Depends-on): Add fcntl-h.
1422         * modules/areadlinkat (Depends-on): Likewise.
1423         * modules/areadlinkat-with-size (Depends-on): Likewise.
1424         * modules/faccessat (Depends-on): Likewise.
1425         * modules/fchmodat (Depends-on): Likewise.
1426         * modules/fchownat (Depends-on): Likewise.
1427         * modules/getcwd (Depends-on): Likewise.
1428         * modules/mkdirat (Depends-on): Likewise.
1429         * modules/mkfifoat (Depends-on): Likewise.
1430         * modules/readlinkat (Depends-on): Likewise.
1431         * modules/symlinkat (Depends-on): Likewise.
1432         * modules/dup2-tests (Depends-on): Likewise.
1433         * modules/fdutimensat-tests (Depends-on): Likewise.
1434         * modules/futimens-tests (Depends-on): Likewise.
1435
1436 2011-11-19  Bruno Haible  <bruno@clisp.org>
1437
1438         euidaccess: Update a comment.
1439         * lib/euidaccess.c: Update comment about platforms with faccessat.
1440
1441 2011-11-19  Bruno Haible  <bruno@clisp.org>
1442
1443         openat: Fix file list.
1444         * modules/openat (Files): Remove lib/at-func.c.
1445
1446 2011-11-19  Bruno Haible  <bruno@clisp.org>
1447
1448         fstatat: Simplify.
1449         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1450         gnulib should define rpl_fstatat, there is a
1451         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1452
1453 2011-11-19  Bruno Haible  <bruno@clisp.org>
1454
1455         Ensure 'inline' can be used in tests/test-utimens-common.h.
1456         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1457         * modules/futimens-tests (configure.ac): Likewise.
1458         * modules/utimens-tests (configure.ac): Likewise.
1459         * modules/utimensat-tests (configure.ac): Likewise.
1460
1461 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1462
1463         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1464         not hash_insert0.
1465         (hash_insert_if_absent): Doc fix.
1466
1467 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1468
1469         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1470
1471 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1472
1473         test-getcwd: disambiguate exit status
1474         * tests/test-getcwd.c (test_long_name): Return 0..7.
1475         (main): Exit with an unambiguous exit status.  The old
1476         code yielded a mysterious mixture of two failure codes.
1477
1478         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1479         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1480         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1481         rpl_fstatat or fstatat.  This should fix the other problem
1482         reported by Kai Habel in
1483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1484         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1486         and I reproduced it on a Solaris 8 host we still have in production.
1487
1488 2011-11-18  Jim Meyering  <meyering@redhat.com>
1489
1490         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1491         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1492         Add a sentence to the comment.
1493         (hash_insert0): New function that simply calls hash_insert_if_absent.
1494         * lib/hash.h (hash_insert_if_absent): Declare it.
1495         (hash_insert0): Add deprecation attribute.
1496         (_GL_ATTRIBUTE_DEPRECATED): Define.
1497         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1498         not hash_insert0.
1499         * NEWS: Mention it, even though it's not really an incompatible change.
1500
1501 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1502
1503         openat: avoid compilation failure due to lack of <errno.h> inclusion
1504         * lib/openat.c: Include <errno.h>.
1505
1506 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1507
1508         * modules/getcwd (Depends-on): Add fdopendir.
1509         This fixes one of the two problems reported by Kai Habel in
1510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1511
1512         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1513         stdalign problem reported by Ian Beckwith in
1514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1515         * modules/crypto/gc-arcfour (Depends-on):
1516         Depend conditionally on crypto/arcfour.
1517         * modules/crypto/gc-arctwo (Depends-on):
1518         Depend conditionally on crypto/arctwo.
1519         * modules/crypto/gc-des (Depends-on):
1520         Depend conditionally on crypto/des.
1521         * modules/crypto/gc-hmac-md5 (Depends-on):
1522         Depend conditionally on crypto/hmac-md5.
1523         * modules/crypto/gc-hmac-sha1 (Depends-on):
1524         Depend conditionally on crypto/hmac-sha1.
1525         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1526         * modules/crypto/gc-md4 (Depends-on):
1527         Depend conditionally on crypto/md4.
1528         * modules/crypto/gc-md5 (Depends-on):
1529         Depend conditionally on crypto/md5.
1530         * modules/crypto/gc-rijndael (Depends-on):
1531         Depend conditionally on crypto/rijndael.
1532         * modules/crypto/gc-sha1 (Depends-on):
1533         Depend conditionally on crypto/sha1.
1534         * modules/crypto/gc-arcfour:
1535         * modules/crypto/gc-arctwo:
1536         * modules/crypto/gc-des:
1537         * modules/crypto/gc-hmac-md5:
1538         * modules/crypto/gc-hmac-sha1:
1539         * modules/crypto/gc-md2:
1540         * modules/crypto/gc-md4:
1541         * modules/crypto/gc-md5:
1542         * modules/crypto/gc-rijndael:
1543         * modules/crypto/gc-sha1:
1544         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1545         now that the conditional dependencies do the work for us.
1546
1547 2011-11-17  Jim Meyering  <meyering@redhat.com>
1548
1549         tests: factor st_ctime-comparison out of two headers
1550         * tests/test-utimens-common.h (ctime_compare): Define.
1551         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1552         * tests/test-lutimens.h (test_lutimens): Likewise.
1553         * tests/test-utimens.h (test_utimens): Likewise.
1554
1555         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1556         Invoke the test program via an init.sh-using wrapper.
1557         * tests/test-getcwd.sh: New file.
1558         * modules/getcwd-tests (Files): Add it.
1559         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1560
1561 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1562
1563         gitlog-to-changelog: support multi-author commits.
1564         The FSF cares about keeping track of all authors of patches to its
1565         projects, but Git doesn't provide obvious support for multi-author
1566         changesets. Consensus seems to be forming around the use of extra
1567         Signed-off-by inspired lines in the log message formatted as
1568         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1569         multi-author commits between version control systems.
1570         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1571         log message and output in standard ChangeLog multi-author format.
1572         Reported by Peter Rosin <peda@lysator.liu.se>
1573
1574 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1575             Bruno Haible  <bruno@clisp.org>
1576
1577         Fix some modules' file list.
1578         * modules/fstatat (Files): Add m4/lstat.m4.
1579         * modules/openat (Files): Likewise.
1580         * modules/unlinkat (Files): Likewise.
1581
1582 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1583
1584         maint.mk: fix tight-scope.mk generation in VPATH builds.
1585         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1586         reference with $(srcdir) so that the file is found correctly even
1587         when running `make syntax-check' in a VPATH build.
1588
1589 2011-11-13  Bruno Haible  <bruno@clisp.org>
1590             Jim Meyering  <meyering@redhat.com>
1591
1592         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1593         * tests/init.sh (compare): Remove "No differences encountered" or
1594         synonymous output from the 'diff' program.
1595
1596 2011-11-13  Bruno Haible  <bruno@clisp.org>
1597
1598         Makefile: Tweak indentation.
1599         * Makefile: Use tab as first character in every line that contains rule
1600         commands.
1601
1602 2011-11-13  Bruno Haible  <bruno@clisp.org>
1603
1604         Syntax check for copyright statements.
1605         * check-copyright: New file.
1606         * Makefile (sc_check_copyright): New rule.
1607
1608 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1609
1610         * build-aux/git-version-gen: Add --prefix to configure the tag
1611         match string.
1612
1613 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1614
1615         * build-aux/git-version-gen: Add --help and --version.
1616
1617 2011-11-12  Jim Meyering  <meyering@redhat.com>
1618
1619         revamp the other test-exclude?.sh scripts to use init.sh, too
1620         * tests/test-exclude1.sh: Use init.sh.
1621         * tests/test-exclude2.sh: Likewise.
1622         * tests/test-exclude3.sh: Likewise.
1623         * tests/test-exclude4.sh: Likewise.
1624         * tests/test-exclude5.sh: Likewise.
1625         * tests/test-exclude6.sh: Likewise.
1626         * tests/test-exclude7.sh: Likewise.
1627         * tests/test-exclude8.sh: Likewise.
1628         * modules/exclude-tests (Files): List init.sh.
1629
1630         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1631         These shell scripts ignored failure of the binary test-exclude,
1632         so making the latter return 77 didn't cause them to be skipped.
1633         * tests/test-exclude5.sh: Exit with test-exclude's error status
1634         when that program fails.  Revamp to use init.sh.
1635         * tests/test-exclude2.sh: Likewise.
1636
1637         test-exclude: fix a typo
1638         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1639
1640 2011-11-11  Bruno Haible  <bruno@clisp.org>
1641
1642         obstack: Fix compilation error on MSVC 9.
1643         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1644
1645 2011-11-11  Jim Meyering  <meyering@redhat.com>
1646
1647         test-exclude: skip tests rather than failing on deficient systems
1648         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1649         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1650         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1651         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1652
1653 2011-11-10  Bruno Haible  <bruno@clisp.org>
1654
1655         ptsname_r test: Avoid gcc warning on glibc systems.
1656         * tests/test-ptsname_r.c (null_ptr): New function.
1657         (test_errors): Use it.
1658
1659 2011-11-10  Bruno Haible  <bruno@clisp.org>
1660
1661         ptsname_r: Avoid compilation error on OSF/1 5.1.
1662         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1664         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1665         function is not declared or incompatibly declared.
1666         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1667         * modules/ptsname_r (Depends-on, configure.ac): Update.
1668         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1669
1670 2011-11-10  Bruno Haible  <bruno@clisp.org>
1671
1672         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1673         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1674         When cross-compiling, guess yes on all platforms except AIX.
1675         Reported by Ludovic Courtès <ludo@gnu.org>.
1676
1677 2011-11-09  Bruno Haible  <bruno@clisp.org>
1678
1679         ptsname_r tests: Fix bugs.
1680         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1681         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1682
1683 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1684
1685         fstatat: work with cross-compilation
1686         Problem reported by Ludovic Courtès in
1687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1688         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1689         "cross-compiling" and assume the bug is present.  Replace
1690         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1691         an inverted sense, to be more conservative about our assumptions.
1692         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1693
1694 2011-11-09  Bruno Haible  <bruno@clisp.org>
1695
1696         Improve MODULES.html output.
1697         * modules/mkfifoat (Description): Use the word "function".
1698         * modules/readlinkat (Description): Likewise.
1699         * modules/symlinkat (Description): Likewise.
1700
1701 2011-11-09  Eric Blake  <eblake@redhat.com>
1702
1703         ptsname_r-tests: new test module
1704         * modules/ptsname_r-tests: New module.
1705         * tests/test-ptsname_r.c: New file.
1706
1707         ptsname_r: new module
1708         * modules/ptsname_r: New module.
1709         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1710         * lib/ptsname.c (__ptsname_r): Split...
1711         * lib/ptsname_r.c: ...into new file.
1712         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1713         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1714         * modules/stdlib (Makefile.am): Substitute witnesses.
1715         * lib/stdlib.in.h (ptsname_r): Declare it.
1716         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1717         * MODULES.html.sh (Misc): Likewise.
1718         * modules/ptsname (Depends-on): Alter dependency.
1719         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1720
1721 2011-11-09  Jim Meyering  <meyering@redhat.com>
1722
1723         announce-gen: be more concise when there's only one URL+tarball
1724         * build-aux/announce-gen (get_tool_versions): When you distribute
1725         only one type of tarball, combine the first two "Here are..."
1726         sections and make the key-checking grammar independent of
1727         how many tarballs there are.
1728
1729 2011-11-09  Eric Blake  <eblake@redhat.com>
1730
1731         openpty: provide a stub on mingw
1732         * lib/pty.in.h (includes): Provide forward declarations.
1733         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1734
1735         raise: fix mingw handling of SIGPIPE
1736         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1737
1738 2011-11-08  Bruno Haible  <bruno@clisp.org>
1739
1740         More conditional dependencies.
1741         * modules/faccessat (Depends-on): Add conditions.
1742         * modules/fchmodat (Depends-on): Likewise.
1743         * modules/fchownat (Depends-on): Likewise.
1744         * modules/fstatat (Depends-on): Likewise.
1745         * modules/mkfifoat (Depends-on): Likewise.
1746         * modules/readlinkat (Depends-on): Likewise.
1747         * modules/symlinkat (Depends-on): Likewise.
1748         * modules/unlinkat (Depends-on): Likewise.
1749         * modules/utimensat (Depends-on): Likewise.
1750         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1751         * modules/linkat (Depends-on): Refine the conditions.
1752         * modules/renameat (Depends-on): Likewise.
1753
1754 2011-11-08  Bruno Haible  <bruno@clisp.org>
1755
1756         faccessat: Move AC_LIBOBJ invocation to module description.
1757         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1758         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1759         invocation from here...
1760         * modules/faccessat (configure.ac): ... to here. Invoke
1761         gl_PREREQ_FACCESSAT.
1762
1763 2011-11-08  Bruno Haible  <bruno@clisp.org>
1764
1765         faccessat: Simplify autoconf macro.
1766         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1767         gl_FUNC_EUIDACCESS.
1768
1769 2011-11-08  Bruno Haible  <bruno@clisp.org>
1770
1771         renameat: Fix dependencies.
1772         * modules/renameat (Depends-on): Add stdbool.
1773
1774 2011-11-08  Bruno Haible  <bruno@clisp.org>
1775
1776         mkfifoat: Fix module description.
1777         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1778         not gl_UNISTD_MODULE_INDICATOR.
1779
1780 2011-11-08  Bruno Haible  <bruno@clisp.org>
1781
1782         fstatat: Remove unused dependency.
1783         * modules/fstatat (Depends-on): Remove fstat.
1784
1785 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1786
1787         GNUmakefile: behave when Makefile is missing.
1788         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1789
1790 2011-11-08  Bruno Haible  <bruno@clisp.org>
1791
1792         openat: Conditionalize dependencies.
1793         * lib/openat.c: Reduce the scope of some #includes.
1794         * modules/openat (Depends-on): Add conditions.
1795
1796 2011-11-07  Jim Meyering  <meyering@redhat.com>
1797
1798         maint.mk: extract GPG key ID without using a temporary file
1799         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1800         without using a temporary file.  Based on a suggestion from Werner Koch
1801         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1802
1803 2011-11-07  Eric Blake  <eblake@redhat.com>
1804
1805         grantpt: fix typo
1806         * lib/stdlib.in.h (grantpt): Check correct function.
1807
1808         maint.mk: silence new syntax check
1809         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1810
1811 2011-11-06  Bruno Haible  <bruno@clisp.org>
1812
1813         Doc about floating-point and math API.
1814         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1815         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1816
1817 2011-11-06  Bruno Haible  <bruno@clisp.org>
1818
1819         stdalign tests: Skip the test when compiled by Sun C.
1820         * tests/test-stdalign.c (main): Skip the test on Sun C.
1821
1822 2011-11-06  Bruno Haible  <bruno@clisp.org>
1823
1824         ansi-c++-opt: Complete the 2011-06-05 change.
1825         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1826         does not support namespaces, set the variable to "no", not to ":".
1827
1828 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1829
1830         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1831
1832 2011-11-06  Bruno Haible  <bruno@clisp.org>
1833
1834         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1835         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1836         (minus_zerol) [HP-UX]: New macro.
1837         (unary_minus) [HP-UX]: New function.
1838         (copysignl) [HP-UX]: Use unary_minus function.
1839
1840 2011-11-06  Bruno Haible  <bruno@clisp.org>
1841
1842         ldexp, ldexpf, ldexpl: Enhance tests.
1843         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1844         and tests/test-ldexpl.c.
1845         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1846         LDEXP, MIN_EXP, MAX_EXP): New macros.
1847         Include test-ldexp.h.
1848         (main): Just call test_function.
1849         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1850         infinity.h, nan.h.
1851         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1852         MAX_EXP): New macros.
1853         Include test-ldexp.h.
1854         (x, y): Remove variables.
1855         (main): Just call test_function.
1856         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1857         infinity.h, nan.h.
1858         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1859         MAX_EXP): New macros.
1860         Include test-ldexp.h.
1861         (x, y): Remove variables.
1862         (main): Just call test_function.
1863         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1864         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1865         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1866         (Depends-on): Add isnand-nolibm, signbit, float.
1867         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1868         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1869         (Depends-on): Add isnanf-nolibm, signbit, float.
1870
1871 2011-11-06  Bruno Haible  <bruno@clisp.org>
1872
1873         math tests: Cosmetics.
1874         * tests/test-math-c++.cc: Reorder declarations.
1875
1876 2011-11-05  Bruno Haible  <bruno@clisp.org>
1877
1878         fma*: Simplify test.
1879         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1880         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1881
1882         Tests for module 'fmal'.
1883         * modules/fmal-tests: New file.
1884         * tests/test-fmal1.c: New file.
1885         * tests/test-fmal2.c: New file.
1886
1887         New module 'fmal'.
1888         * lib/math.in.h (fmal): New declaration.
1889         * lib/fmal.c: New file.
1890         * m4/fmal.m4: New file.
1891         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1893         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1894         REPLACE_FMAL.
1895         * modules/fmal: New file.
1896         * doc/posix-functions/fmal.texi: Mention the new module and the various
1897         bugs.
1898
1899         Tests for module 'fmaf'.
1900         * modules/fmaf-tests: New file.
1901         * tests/test-fmaf1.c: New file.
1902         * tests/test-fmaf2.c: New file.
1903
1904         New module 'fmaf'.
1905         * lib/math.in.h (fmaf): New declaration.
1906         * lib/fmaf.c: New file.
1907         * m4/fmaf.m4: New file.
1908         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1910         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1911         REPLACE_FMAF.
1912         * modules/fmaf: New file.
1913         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1914         bugs.
1915
1916         Tests for module 'fma'.
1917         * modules/fma-tests: New file.
1918         * tests/test-fma1.c: New file.
1919         * tests/test-fma1.h: New file.
1920         * tests/test-fma2.c: New file.
1921         * tests/test-fma2.h: New file.
1922
1923         New module 'fma'.
1924         * lib/math.in.h (fma): New declaration.
1925         * lib/fma.c: New file.
1926         * m4/fma.m4: New file.
1927         * m4/fegetround.m4: New file.
1928         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1930         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1931         REPLACE_FMA.
1932         * modules/fma: New file.
1933         * doc/posix-functions/fma.texi: Mention the new module and the various
1934         bugs.
1935
1936         Extend gl_MATHFUNC.
1937         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1938         Support 'void' as argument type.
1939         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1940
1941 2011-11-05  Jim Meyering  <meyering@redhat.com>
1942
1943         maint.mk: also prohibit inclusion of dirent.h without use
1944         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1945
1946 2011-11-05  Bruno Haible  <bruno@clisp.org>
1947
1948         ldexpl tests: Avoid test failure on MSVC 9.
1949         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1950         value. Needed in order to enforce the conversion from a value greater
1951         than LDBL_MAX to Infinity.
1952
1953 2011-11-05  Bruno Haible  <bruno@clisp.org>
1954
1955         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1956         * modules/at-internal: New file, extracted from modules/openat.
1957         * modules/openat-h: New file.
1958         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1959         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1960         * modules/openat (Description): Add reference to POSIX function.
1961         (Files): Remove lib/openat.h, lib/openat-proc.c.
1962         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1963         intprops, unistd.
1964         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1965         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1966         gl_FCNTL_MODULE_INDICATOR.
1967         (Include): Remove unistd.h, openat.h.
1968         * modules/areadlinkat (Files): Add lib/at-func.c.
1969         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1970         openat-die, openat-h, save-cwd.
1971         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1972         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1973         openat-die, openat-h, save-cwd, unistd.
1974         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1975         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1976         openat-h, save-cwd. Remove fcntl-h, openat.
1977         * modules/fchmodat (Files): Remove lib/openat.h.
1978         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1979         openat, stdbool, unistd.
1980         * modules/fchownat (Files): Remove lib/openat.h.
1981         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1982         openat, stdbool, sys_stat.
1983         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1984         lib/openat-proc.c.
1985         (Depends-on): Add at-internal.
1986         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1987         * modules/fstatat (Files): Remove lib/openat.h.
1988         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1989         stdbool, unistd.
1990         * modules/fts (Depends-on): Add openat-h.
1991         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1992         openat.
1993         * modules/mkdirat (Files): Remove lib/openat.h.
1994         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1995         openat, stdbool, sys_stat.
1996         * modules/mkfifoat (Files): Add lib/at-func.c.
1997         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1998         openat-h, save-cwd. Remove fcntl-h, openat.
1999         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2000         * modules/readlinkat (Files): Add lib/at-func.c.
2001         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2002         openat-h, save-cwd. Remove fcntl-h, openat.
2003         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2004         openat.
2005         * modules/selinux-at (Files): Add lib/at-func.c.
2006         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2007         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2008         * modules/symlinkat (Files): Add lib/at-func.c.
2009         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2010         openat-h, save-cwd. Remove fcntl-h, openat.
2011         * modules/unlinkat (Files): Remove lib/openat.h.
2012         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2013         stdbool.
2014         * modules/utimensat (Files): Add lib/at-func.c.
2015         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2016         openat-die, openat-h, save-cwd.
2017         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2018         * modules/fdutimensat-tests (Depends-on): Add openat.
2019         * modules/fstatat-tests (Depends-on): Add openat-h.
2020         * modules/readlinkat-tests (Depends-on): Add openat.
2021         * modules/symlinkat-tests (Depends-on): Add openat.
2022
2023 2011-11-05  Bruno Haible  <bruno@clisp.org>
2024
2025         openat: Include <stdbool.h>.
2026         * lib/openat.c: Include <stdbool.h>.
2027
2028 2011-11-04  Bruno Haible  <bruno@clisp.org>
2029
2030         fchownat, renameat, unlinkat: Fix dependencies.
2031         * modules/fchownat (Depends-on): Add fstatat.
2032         * modules/renameat (Depends-on): Likewise.
2033         * modules/unlinkat (Depends-on): Likewise.
2034
2035 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2036
2037         openat: remove direct dependency on dirent
2038         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2039         and hasn't been needed ever since fdopendir was split into its own
2040         module on 2009-08-31.
2041         * modules/openat (Depends-on): Remove dirent.
2042
2043 2011-11-04  Bruno Haible  <bruno@clisp.org>
2044
2045         renameat: Optimize code size.
2046         * modules/renameat (configure.ac): Don't compile at-func2.c if
2047         REPLACE_RENAMEAT is 1.
2048
2049 2011-11-04  Bruno Haible  <bruno@clisp.org>
2050
2051         openat tests: Fix file list.
2052         * modules/openat-tests (Files): Add tests/test-open.h.
2053
2054 2011-11-04  Bruno Haible  <bruno@clisp.org>
2055
2056         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2057         * modules/fchmodat (Depends-on): Add openat-die.
2058         * modules/fchownat (Depends-on): Likewise.
2059         * modules/linkat (Depends-on): Likewise.
2060         * modules/renameat (Depends-on): Likewise.
2061         * modules/openat (Depends-on): Add dirent.
2062
2063 2011-11-04  Jim Meyering  <meyering@redhat.com>
2064
2065         at-func*.c: fix comments
2066         * lib/at-func2.c: Correct/improve first-line comment.
2067         * lib/at-func.c: Correct grammar in first-line comment.
2068
2069 2011-11-04  Bruno Haible  <bruno@clisp.org>
2070
2071         New module 'mkdirat', split off from module 'openat'.
2072         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2073         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2074         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2075         * modules/mkdirat: New file, extracted from modules/openat.
2076         * modules/openat (Files): Remove lib/mkdirat.c.
2077         (Depends-on): Remove mkdir.
2078         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2079         (Include): Remove <sys/stat.h>.
2080         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2081         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2082         tests/test-mkdir.h.
2083         (Depends-on): Remove ignore-value.
2084         (Makefile.am): Remove rules for test-mkdirat.
2085         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2086         of module 'openat'.
2087         * NEWS: Mention the change.
2088
2089 2011-11-04  Bruno Haible  <bruno@clisp.org>
2090
2091         closedir: Avoid warning on mingw.
2092         * lib/closedir.c: Include <unistd.h>.
2093
2094 2011-11-04  Bruno Haible  <bruno@clisp.org>
2095
2096         New module 'fstatat', split off from module 'openat'.
2097         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2098         defined.
2099         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2100         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2101         gl_FUNC_FSTATAT.
2102         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2103         * modules/fstatat: New file, extracted from modules/openat.
2104         * modules/openat (Files): Remove lib/fstatat.c.
2105         (Depends-on): Remove lstat.
2106         (configure.ac): Remove AC_LIBOBJ of fstatat.
2107         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2108         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2109         tests/test-lstat.h, tests/test-stat.h.
2110         (Depends-on): Remove getcwd-lgpl.
2111         (Makefile.am): Remove rules for test-fstatat.
2112         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2113         of module 'openat'.
2114         * NEWS: Mention the change.
2115         * modules/getcwd (Depends-on): Add fstatat.
2116         * modules/linkat (Depends-on): Likewise.
2117         * modules/mkfifoat-tests (Depends-on): Likewise.
2118         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2119
2120 2011-11-03  Bruno Haible  <bruno@clisp.org>
2121
2122         New module 'unlinkat', split off from module 'openat'.
2123         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2124         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2125         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2126         * modules/unlinkat: New file, extracted from modules/openat. Correct
2127         the dependency conditions.
2128         * modules/openat (Files): Remove lib/unlinkat.c.
2129         (Depends-on): Remove rmdir, unlink.
2130         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2131         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2132         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2133         tests/test-rmdir.h, tests/test-unlink.h.
2134         (Depends-on): Remove unlinkdir.
2135         (Makefile.am): Remove rules for test-unlinkat.
2136         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2137         of module 'openat'.
2138         * NEWS: Mention the change.
2139         * modules/linkat-tests (Depends-on): Add unlinkat.
2140         * modules/mkfifoat-tests (Depends-on): Likewise.
2141         * modules/readlinkat-tests (Depends-on): Likewise.
2142
2143 2011-11-02  Bruno Haible  <bruno@clisp.org>
2144
2145         New module 'fchmodat', split off from module 'openat'.
2146         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2147         defined.
2148         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2150         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2151         * modules/fchmodat: New file, extracted from modules/openat.
2152         * modules/openat (Files): Remove lib/fchmodat.c.
2153         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2154         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2155         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2156         (Makefile.am): Remove rules for test-fchmodat.
2157         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2158         of module 'openat'.
2159         * NEWS: Mention the change.
2160
2161 2011-11-02  Jim Meyering  <meyering@redhat.com>
2162
2163         putenv: indent #definition of "environ" to placate cppi
2164         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2165
2166         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2167         Git logs are often treated as immutable, because editing them
2168         changes the SHA1 checksums of all descendants.  Thus, errors in
2169         git logs tend to stay there forever.  However, when we generate
2170         a ChangeLog file -- typically for distribution -- from that git log,
2171         we can actually make corrections in the generated file.  The key
2172         lies in recording in machine-readable/applicable form the desired
2173         corrections.  See --help for description and an example.
2174         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2175         (usage): Describe it; alphabetize option descriptions.
2176         (main): Honor the new option, carefully.
2177
2178 2011-11-01  Jim Meyering  <meyering@redhat.com>
2179
2180         gitlog-to-changelog: avoid an infloop
2181         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2182         that ends up being empty.
2183
2184 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2185
2186         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2187         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2188         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2189         contains (possibly-quoted) backslashes.  This should avoid
2190         all-too-common shell bugs if COMPLICATED contains backslashes in
2191         the "wrong" places.  Reported by David Evans in
2192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2193         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2194         because we want ASCII ranges.  Is there some reason we don't use
2195         the C locale everywhere in this script?
2196         (func_module, top level): Avoid unwanted pathname expansion when
2197         $repo_url_prefix or $repo_url_suffix_repl contain shell
2198         metacharacters like '?' and '*'.
2199
2200 2011-11-01  Bruno Haible  <bruno@clisp.org>
2201
2202         fchownat: Improve description.
2203         * modules/fchownat (Description): Add link to function.
2204
2205 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2206
2207         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2208         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2210         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2211
2212 2011-11-01  Bruno Haible  <bruno@clisp.org>
2213
2214         alignof: Avoid collision with stdalign module.
2215         * lib/alignof.h (alignof): Remove macro.
2216         * NEWS: Mention the change.
2217         Reported by Paul Eggert.
2218
2219 2011-11-01  Bruno Haible  <bruno@clisp.org>
2220
2221         New module 'fchownat', split off from module 'openat'.
2222         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2223         defined.
2224         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2225         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2226         invoke gl_FUNC_FCHOWNAT.
2227         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2228         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2229         * modules/fchownat: New file, extracted from modules/openat.
2230         * modules/openat (Files): Remove lib/fchownat.c.
2231         (Depends-on): Remove lchown.
2232         (configure.ac): Remove AC_LIBOBJ of fchownat.
2233         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2234         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2235         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2236         (Depends-on): Remove mgetgroups, usleep, stat-time.
2237         (configure.ac): Remove test for getegid.
2238         (Makefile.am): Remove rules for test-fchownat.
2239         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2240         of module 'openat'.
2241         * NEWS: Mention the change.
2242
2243 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2244
2245         stdalign: port better to MSVC and to Sun C 5.11
2246         This fixes some of the problems reported by Bruno Haible in
2247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2248         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2249         shortcomings of MSVC and of Sun C 5.11.
2250         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2251         around __declspec arg.
2252         * modules/stdalign-tests (Files): Add tests/macros.h.
2253         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2254         Include macros.h, for ASSERT.
2255         (DECLARE_ALIGNED): Remove.
2256         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2257         to catch bug), and to 1 if not (simplifies the rest of the code).
2258         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2259         (CHECK_AUTO): Remove.
2260         (CHECK_ALIGNED): Check only the alignment of the static vars,
2261         since auto var alignment isn't supported by Sun C 5.11.
2262         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2263         ASSERT failures are easier to diagnose.
2264
2265 2011-10-31  Bruno Haible  <bruno@clisp.org>
2266
2267         doc about some IRIX 5.3 problems.
2268         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2269         on IRIX 5.3.
2270         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2271         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2272         5.3.
2273         * doc/posix-functions/grantpt.texi: Likewise.
2274         * doc/posix-functions/unlockpt.texi: Likewise.
2275         * doc/posix-functions/lgamma.texi: Likewise.
2276         * doc/posix-functions/nextafter.texi: Likewise.
2277         * doc/posix-functions/remainder.texi: Likewise.
2278         * doc/posix-functions/select.texi: Mention misplaced declaration on
2279         IRIX 5.3.
2280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2281
2282 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2283
2284         gitlog-to-changelog: fix git-log invocation.
2285         git-log mishandles date strings before 1970-01-01 UTC, and there is
2286         no use to specify --since=1970-01-01 by default anyway.
2287         * build-aux/gitlog-to-changelog: By default, when no --since option
2288         was given, do not specify explicit --since option to git-log.
2289
2290 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2291
2292         gitlog-to-changelog: new option --append-dot.
2293         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2294         first non-blank line of each commit message terminated with a dot.
2295
2296 2011-10-30  Bruno Haible  <bruno@clisp.org>
2297
2298         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2299         * lib/ffsl.h: Include <config.h>.
2300         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2301
2302 2011-10-30  Jim Meyering  <meyering@redhat.com>
2303
2304         GNUmakefile: reenable "make syntax-check" for most projects
2305         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2306         build-aux variable", "syntax-check" would do nothing but succeed with
2307         the "No version control files detected..." diagnostic (unless you
2308         happened to override _build-aux via cfg.mk).
2309         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2310         to precede inclusion of maint.mk.  Otherwise, these variables would
2311         be used undefined in any project that does not override the default.
2312
2313 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2314
2315         gitlog-to-changelog: treat a message with only blank lines as empty.
2316         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2317         trailing blank lines before the code that issues a warning about an
2318         empty commit message.
2319
2320 2011-10-30  Jim Meyering  <meyering@redhat.com>
2321
2322         test-parse-datetime.c: avoid new DST-related false positive test failure
2323         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2324         based on the time/date we'll convert, not the current time.
2325         Otherwise, the moment we cross a DST boundary like today's in
2326         Europe, (CEST to CET), that offset ends up being one hour off.
2327
2328 2011-10-27  Bruno Haible  <bruno@clisp.org>
2329
2330         fstat: Tweak documentation.
2331         * modules/fstat (Description): More precise description.
2332
2333 2011-10-27  Bruno Haible  <bruno@clisp.org>
2334
2335         Update documentation regarding 'largefile' module.
2336         * doc/posix-functions/fstat.texi: Tweak wording.
2337         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2338         problems with huge directories and/or small ino_t types.
2339         * doc/posix-functions/readdir.texi: Likewise.
2340         * doc/posix-functions/rewinddir.texi: Likewise.
2341
2342 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2343
2344         maint.mk: don't maintain a second build-aux variable.
2345         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2346         depends on GNUmakefile, which already maintains a cfg.mk
2347         overridable $(_build-aux) for projects with a non-standard
2348         build-aux directory location, although without the $(srcdir)
2349         prefix.  Use that variable consistently instead of introducing a
2350         second one.  Adjust all call sites.
2351
2352 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         Add stdalign module and use it in other modules.
2355         This is based on a previous proposal by Bruno Haible
2356         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2357
2358         stdalign: new module
2359         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2360         * modules/stdalign: New files.
2361         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2362         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2363
2364         stdalign-tests: new module
2365         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2366
2367         argp: use stdalign
2368         * lib/argp-parse.c: Include <stdalign.h>.
2369         (alignof): Remove.
2370         * modules/argp (Depends-on): Add stdalign.
2371
2372         crypto libraries: use stdalign
2373         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2374         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2375         Do not include <stdlib.h> twice, in md4.c.
2376         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2377         because we are accessing a pointer's bit-pattern, not a size.
2378         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2379         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2380         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2381         * modules/crypto/sha512: Likewise.
2382
2383         sys_socket: use stdalign, not alignof
2384         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2385         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2386
2387 2011-10-27  Bruno Haible  <bruno@clisp.org>
2388
2389         raise test: Avoid a test failure on Linux/MIPS.
2390         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2391         because 99 is a valid signal on Linux/MIPS.
2392
2393 2011-10-27  Bruno Haible  <bruno@clisp.org>
2394
2395         nonblocking tests: Fix test failure on Linux/MIPS.
2396         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2397         Set to 270000.
2398
2399 2011-10-27  Bruno Haible  <bruno@clisp.org>
2400
2401         utimensat: Work around problem on Linux/hppa.
2402         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2403         values.
2404         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2405
2406 2011-10-25  Jim Meyering  <meyering@redhat.com>
2407
2408         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2409         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2410         after symbols like NULL, size_t, etc.
2411         Reported by Alfred M. Szmidt.
2412
2413         maint.mk: exempt ENODATA from a syntax-check rule
2414         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2415         from the sc_prohibit_always-defined_macros syntax-check rule.
2416         Add a comment.  See this for more details:
2417         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2418
2419 2011-10-23  Jim Meyering  <meyering@redhat.com>
2420
2421         fts: close parent dir FD before returning from post-traversal fts_read
2422         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2423         unlink A, even though an FD open on A remained.  This is suboptimal
2424         (holding a file descriptor open longer than needed), but otherwise not
2425         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2426         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2427         that represents a real problem: it causes the removal of A to fail
2428         with e.g., "rm: cannot remove `A': Device or resource busy"
2429
2430         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2431         directory file descriptors.  After completing the final, FTS_DP,
2432         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2433         cache, but then proceeded to add a new FD to it via the subsequent
2434         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2435         final file descriptor would be closed only via fts_close's call to
2436         fd_ring_clear.  Now, it is usually closed earlier, via the final
2437         FTS_DP-returning fts_read call.
2438         * lib/fts.c (restore_initial_cwd): New function, converted from
2439         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2440         Update callers.
2441         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2442         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2443
2444 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2445             Bruno Haible  <bruno@clisp.org>
2446             Jim Meyering  <jim@meyering.net>
2447
2448         readme-release: improve safety of release prep instructions.
2449         * README-release: Don't git pull all branches when only master
2450         is needed for the release process.
2451         Run make maintainer-clean before changing trees and merging.
2452         Don't try to run ./configure right after git pull in case files
2453         that influence the bootstrap process have changed, move the
2454         ./configure step to after running ./bootstrap.
2455         Don't bootstrap "one last time"... it's the first time!
2456
2457 2011-10-22  Bruno Haible  <bruno@clisp.org>
2458
2459         errno, strerror-override: Support for MSVC 10.
2460         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2461         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2462         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2463         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2464         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2465         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2466         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2467         Assign values compatible with MSVC 10.
2468         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2469         New macros.
2470         (GNULIB_defined_EWINSOCK): New macro.
2471         * lib/strerror-override.c (strerror_override): Update accordingly.
2472         * lib/strerror-override.h: Likewise.
2473         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2474         longer equal to the corresponding errno value.
2475         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2476
2477 2011-10-22  Bruno Haible  <bruno@clisp.org>
2478
2479         perror: Recognize when test program crashes.
2480         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2481         strerror, set gl_cv_func_perror_works to no.
2482         Reported by Daniel Richard G. <skunk@iskunk.org>.
2483
2484         perror: Fix indentation.
2485         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2486
2487 2011-10-22  Bruno Haible  <bruno@clisp.org>
2488
2489         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2490         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2491         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2492         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2493         functions, not as a macro.
2494         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2495         macros.
2496         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2497         absence of macro.
2498         Suggested by Eric Blake.
2499         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2500
2501 2011-10-21  Bruno Haible  <bruno@clisp.org>
2502
2503         relocatable-prog-wrapper: Don't leave object files behind.
2504         * build-aux/install-reloc: Re-synchronize list of .o files to be
2505         removed with list of compilation units.
2506
2507 2011-10-20  Bruno Haible  <bruno@clisp.org>
2508
2509         openpty, posix_openpt: Remove code duplication.
2510         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2511         * lib/openpty.c: Include <stdlib.h>.
2512         (openpty): Use posix_openpt on all platforms except IRIX.
2513         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2514
2515 2011-10-20  Bruno Haible  <bruno@clisp.org>
2516
2517         unlockpt: Detect invalid argument.
2518         * lib/unlockpt.c: Include <fcntl.h>.
2519         (unlockpt): Check whether fd is valid, using fcntl().
2520         * modules/unlockpt (Depends-on): Add fcntl-h.
2521
2522 2011-10-20  Bruno Haible  <bruno@clisp.org>
2523
2524         openpty: Avoid compilation error on AIX 6.1.
2525         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2526
2527 2011-10-20  Bruno Haible  <bruno@clisp.org>
2528
2529         posix_openpt: Support for OpenBSD.
2530         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2531         (posix_openpt) [OpenBSD]: New code.
2532         * lib/grantpt.c: Include <fcntl.h>.
2533         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2534         * modules/grantpt (Depends-on): Add fcntl-h.
2535
2536 2011-10-20  Bruno Haible  <bruno@clisp.org>
2537
2538         posix_openpt test: Coding style.
2539         * tests/test-posix_openpt.c: Use GNU coding style.
2540
2541 2011-10-20  Bruno Haible  <bruno@clisp.org>
2542
2543         grantpt: Support --avoid=pt_chown.
2544         * modules/grantpt (Files): Add lib/pty-private.h.
2545
2546 2011-10-20  Bruno Haible  <bruno@clisp.org>
2547
2548         posix_openpt: Fix autoconf macro.
2549         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2550         unneeded check for _getpty.
2551
2552 2011-10-20  Bruno Haible  <bruno@clisp.org>
2553
2554         openpty: Update comments.
2555         * lib/openpty.c: Add comments about Minix.
2556
2557 2011-10-19  Eric Blake  <eblake@redhat.com>
2558
2559         openpty: relax license
2560         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2561
2562         pt_chown: use configmake to simplify build
2563         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2564
2565         ptsname and others: relax license
2566         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2567         * modules/unlockpt (License): Likewise.
2568         * modules/pt_chown (License): Likewise.
2569         * modules/ptsname (License): Likewise.
2570         * modules/ttyname_r (License): Likewise.
2571
2572 2011-10-19  Jim Meyering  <meyering@redhat.com>
2573
2574         posix_openpt: remove spurious #endif
2575         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2576
2577 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2578
2579         maint.mk: Respect $(build_aux) in web-manual rule.
2580         * top/maint.mk (web-manual): Find gen-announce script in user's
2581         $(build_aux) directory instead of hard-coding 'build-aux'.
2582
2583 2011-10-19  Bruno Haible  <bruno@clisp.org>
2584
2585         posix_openpt: Fix compilation error.
2586         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2587         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2588         Mention the openpty module as an alternative.
2589
2590 2011-10-19  Bruno Haible  <bruno@clisp.org>
2591
2592         Support for old NeXTstep 3.3 frexp().
2593         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2594         execution time of the test to 5 seconds.
2595         Reported by Daniel Richard G. <skunk@iskunk.org>.
2596
2597 2011-10-19  Bruno Haible  <bruno@clisp.org>
2598
2599         Support for old NeXTstep 3.3 sed.
2600         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2601         part, use /.../, not \|...|. Escape periods in the header file name.
2602         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2603         Reported by Daniel Richard G. <skunk@iskunk.org>.
2604
2605 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2606
2607         Support for old NeXTstep 3.3 gcc.
2608         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2609         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2610         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2611         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2612         * lib/regex.h (_Restrict_arr_): Likewise.
2613         * lib/regex_internal.h (re_token_t): Likewise.
2614         * lib/regexec.c (check_node_accept_bytes): Likewise.
2615         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2616
2617 2011-10-18  Eric Blake  <eblake@redhat.com>
2618
2619         posix_openpt: new module
2620         * modules/posix_openpt: New module.
2621         * m4/posix_openpt.m4: New file.
2622         * lib/posix_openpt.c: Likewise.
2623         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2624         (gl_STDLIB_H_DEFAULTS): Set defaults.
2625         * modules/stdlib (Makefile.am): Substitute macros.
2626         * lib/stdlib.in.h (posix_openpt): Declare.
2627         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2628         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2629         * modules/posix_openpt-tests: New test module.
2630         * tests/test-posix_openpt.c: New test.
2631
2632 2011-10-15  Bruno Haible  <bruno@clisp.org>
2633
2634         xstrtoll: Fix compilation failure.
2635         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2636         from lib/strtol.c.
2637         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2638         some platforms.
2639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2640
2641 2011-10-15  Bruno Haible  <bruno@clisp.org>
2642
2643         vasnprintf: Optimize bit search operation.
2644         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2646         gl_DOUBLE_EXPONENT_LOCATION.
2647         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2648         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2649         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2650         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2651         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2652         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2653         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2654         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2655         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2656
2657 2011-10-15  Bruno Haible  <bruno@clisp.org>
2658
2659         vasnprintf: Fix comments.
2660         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2661
2662 2011-10-14  Bruno Haible  <bruno@clisp.org>
2663
2664         Tests for module 'integer_length_ll'.
2665         * modules/integer_length_ll-tests: New file.
2666         * tests/test-integer_length_ll.c: New file.
2667
2668         New module 'integer_length_ll'.
2669         * lib/integer_length_ll.c: New file.
2670         * modules/integer_length_ll: New file.
2671
2672 2011-10-14  Bruno Haible  <bruno@clisp.org>
2673
2674         Tests for module 'integer_length_l'.
2675         * modules/integer_length_l-tests: New file.
2676         * tests/test-integer_length_l.c: New file.
2677
2678         New module 'integer_length_l'.
2679         * lib/integer_length_l.c: New file.
2680         * modules/integer_length_l: New file.
2681
2682 2011-10-14  Bruno Haible  <bruno@clisp.org>
2683
2684         Tests for module 'integer_length'.
2685         * modules/integer_length-tests: New file.
2686         * tests/test-integer_length.c: New file.
2687
2688         New module 'integer_length'.
2689         * lib/integer_length.h: New file.
2690         * lib/integer_length.c: New file.
2691         * modules/integer_length: New file.
2692
2693 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2694
2695         popen: Fix dependency conditions.
2696         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2697
2698 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2699
2700         perror: Fix autoconf test.
2701         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2702         <stdlib.h> and <string.h>.
2703
2704 2011-10-14  Bruno Haible  <bruno@clisp.org>
2705
2706         ffsl: Optimize on 64-bit platforms.
2707         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2708         unrolling.
2709
2710 2011-10-13  Bruno Haible  <bruno@clisp.org>
2711
2712         ffsl: Optimize on 32-bit platforms.
2713         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2714         use ffs() without a loop.
2715
2716         ffsl, ffsll: Optimize for GCC.
2717         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2718         * lib/ffsl.c (GCC_BUILTIN): New macro.
2719         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2720
2721 2011-10-13  Bruno Haible  <bruno@clisp.org>
2722
2723         ffs, bcopy, memset: Support symbol renaming via config.h.
2724         * lib/ffs.c: Include <config.h>.
2725         * lib/bcopy.c: Likewise.
2726         * lib/memset.c: Likewise.
2727
2728 2011-10-10  Bruno Haible  <bruno@clisp.org>
2729
2730         atanl: Simplify for platforms where 'long double' == 'double'.
2731         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2732         alternative implementation.
2733         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2734         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2735         * modules/atanl (Depends-on): Add atan. Update conditions.
2736
2737 2011-10-10  Bruno Haible  <bruno@clisp.org>
2738
2739         acosl: Simplify for platforms where 'long double' == 'double'.
2740         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2741         alternative implementation.
2742         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2743         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2744         * modules/acosl (Depends-on): Add acos. Update conditions.
2745
2746 2011-10-10  Bruno Haible  <bruno@clisp.org>
2747
2748         asinl: Simplify for platforms where 'long double' == 'double'.
2749         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2750         alternative implementation.
2751         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2752         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2753         * modules/asinl (Depends-on): Add asin. Update conditions.
2754
2755 2011-10-10  Bruno Haible  <bruno@clisp.org>
2756
2757         tanl: Simplify for platforms where 'long double' == 'double'.
2758         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2759         implementation.
2760         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2761         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2762         * modules/tanl (Depends-on): Add tan. Update conditions.
2763         (configure.ac): Don't compile trigl.c if
2764         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2765
2766 2011-10-10  Bruno Haible  <bruno@clisp.org>
2767
2768         cosl: Simplify for platforms where 'long double' == 'double'.
2769         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2770         implementation.
2771         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2772         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2773         * modules/cosl (Depends-on): Add cos. Update conditions.
2774         (configure.ac): Don't compile sincosl.c and trigl.c if
2775         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2776
2777 2011-10-10  Bruno Haible  <bruno@clisp.org>
2778
2779         sinl: Simplify for platforms where 'long double' == 'double'.
2780         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2781         implementation.
2782         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2783         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2784         * modules/sinl (Depends-on): Add sin. Update conditions.
2785         (configure.ac): Don't compile sincosl.c and trigl.c if
2786         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2787
2788 2011-10-10  Bruno Haible  <bruno@clisp.org>
2789
2790         logl: Simplify for platforms where 'long double' == 'double'.
2791         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2792         implementation.
2793         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2794         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2795         * modules/logl (Depends-on): Add log. Update conditions.
2796
2797 2011-10-10  Bruno Haible  <bruno@clisp.org>
2798
2799         expl: Simplify for platforms where 'long double' == 'double'.
2800         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2801         implementation.
2802         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2803         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2804         * modules/expl (Depends-on): Add exp. Update conditions.
2805
2806 2011-10-10  Bruno Haible  <bruno@clisp.org>
2807
2808         sqrtl: Simplify for platforms where 'long double' == 'double'.
2809         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2810         alternative implementation.
2811         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2812         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2813         * modules/sqrtl (Depends-on): Update conditions.
2814
2815 2011-10-10  Bruno Haible  <bruno@clisp.org>
2816
2817         ldexpl: Simplify for platforms where 'long double' == 'double'.
2818         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2819         alternative implementation.
2820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2821         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2822         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2823
2824 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2825
2826         ffsll: set correct witness
2827         * modules/ffsll (configure.ac): Fix typo.
2828
2829 2011-10-10  Bruno Haible  <bruno@clisp.org>
2830
2831         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2832         * lib/printf-frexpl.c: Include <config.h>.
2833         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2834         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2835         second time.
2836         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2837         gl_LONG_DOUBLE_VS_DOUBLE.
2838         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2839         conditions.
2840
2841 2011-10-10  Bruno Haible  <bruno@clisp.org>
2842
2843         frexpl: Simplify for platforms where 'long double' == 'double'.
2844         * lib/frexpl.c: Include <config.h>.
2845         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2846         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2847         time.
2848         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2849         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2850         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2851         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2852         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2853         conditions.
2854
2855 2011-10-10  Jim Meyering  <meyering@redhat.com>
2856
2857         test-renameat: don't leave behind a temporary file
2858         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2859           ERROR: files left in build directory after distclean:
2860           ./gltests/test-renameat.too
2861           make[1]: *** [distcleancheck] Error 1
2862         Reported by Tom G. Christensen.
2863
2864 2011-10-09  Bruno Haible  <bruno@clisp.org>
2865
2866         rint: Determine RINT_LIBM correctly on AIX 7.
2867         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2868         directly, not only through a function pointer. Also accept an optional
2869         4th argument with extra code.
2870         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2871         rintf() call by gcc when optimizing.
2872
2873         mathfunc.m4: Refactor.
2874         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2875         m4 variable.
2876
2877 2011-10-09  Bruno Haible  <bruno@clisp.org>
2878
2879         rintl: Simplify for platforms where 'long double' == 'double'.
2880         * lib/rintl.c: Include <config.h>.
2881         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2882         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2883         time.
2884         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2885         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2886         * modules/rintl (Depends-on): Add rint. Update conditions.
2887
2888 2011-10-09  Bruno Haible  <bruno@clisp.org>
2889
2890         roundl: Simplify for platforms where 'long double' == 'double'.
2891         * lib/roundl.c: Include <config.h>.
2892         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2893         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2894         time.
2895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2896         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2897         * modules/roundl (Depends-on): Add round. Update conditions.
2898
2899 2011-10-09  Bruno Haible  <bruno@clisp.org>
2900
2901         truncl: Simplify for platforms where 'long double' == 'double'.
2902         * lib/truncl.c: Include <config.h>.
2903         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2904         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2905         time.
2906         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2907         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2908         * modules/truncl (Depends-on): Add trunc. Update conditions.
2909
2910 2011-10-09  Bruno Haible  <bruno@clisp.org>
2911
2912         ceill: Simplify for platforms where 'long double' == 'double'.
2913         * lib/ceill.c: Include <config.h>.
2914         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2915         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2916         time.
2917         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2918         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2919         * modules/ceill (Depends-on): Add ceil. Update conditions.
2920
2921 2011-10-09  Bruno Haible  <bruno@clisp.org>
2922
2923         floorl: Simplify for platforms where 'long double' == 'double'.
2924         * lib/floorl.c: Include <config.h>.
2925         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2926         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2927         time.
2928         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2929         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2930         * modules/floorl (Depends-on): Add floor. Update conditions.
2931
2932 2011-10-09  Bruno Haible  <bruno@clisp.org>
2933
2934         rint: Fix ordering constraints.
2935         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2936         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2937         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2938
2939 2011-10-09  Bruno Haible  <bruno@clisp.org>
2940
2941         copysignl: Simplify for platforms where 'long double' == 'double'.
2942         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2943         alternative.
2944         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2945         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2946         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2947
2948 2011-10-09  Bruno Haible  <bruno@clisp.org>
2949
2950         Tests for module 'rintl'.
2951         * modules/rintl-tests: New file.
2952         * tests/test-rintl.c: New file.
2953
2954         New module 'rintl'.
2955         * lib/math.in.h (rintl): New declaration.
2956         * lib/rintl.c: New file.
2957         * m4/rintl.m4: New file.
2958         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2960         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2961         * modules/rintl: New file.
2962         * tests/test-math-c++.cc: Check the declaration of rintl.
2963         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2964         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2965         * doc/posix-functions/rintl.texi: Mention the new module.
2966
2967 2011-10-09  Bruno Haible  <bruno@clisp.org>
2968
2969         Tests for module 'rintf'.
2970         * modules/rintf-tests: New file.
2971         * tests/test-rintf.c: New file.
2972
2973         New module 'rintf'.
2974         * lib/math.in.h (rintf): New declaration.
2975         * lib/rintf.c: New file.
2976         * m4/rintf.m4: New file.
2977         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2979         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2980         * modules/rintf: New file.
2981         * tests/test-math-c++.cc: Check the declaration of rintf.
2982         * doc/posix-functions/rintf.texi: Mention the new module.
2983
2984 2011-10-09  Bruno Haible  <bruno@clisp.org>
2985
2986         rint: Support for MSVC.
2987         * lib/math.in.h (rint): New declaration.
2988         * lib/rint.c: New file.
2989         * m4/rint.m4: New file.
2990         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2992         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2993         * modules/rint (Description): Fix.
2994         (Files): Add lib/rint.c, m4/rint.m4.
2995         (Depends-on): Add math.
2996         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2997         gl_MATH_MODULE_INDICATOR.
2998         * tests/test-math-c++.cc: Check the declaration of rint.
2999         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3000         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3001         * doc/posix-functions/rint.texi: Mention the replacement provided by
3002         the module.
3003
3004         rint tests: More tests.
3005         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3006         minus-zero.h, infinity.h, nan.h.
3007         (main): Skip the test if the current rounding mode is not standard. Add
3008         tests for negative numbers, minus zero, infinity, NaN.
3009         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3010         tests/nan.h.
3011         (Depends-on): Add isnand-nolibm.
3012
3013 2011-10-09  Bruno Haible  <bruno@clisp.org>
3014
3015         Tests for module 'copysignl'.
3016         * modules/copysignl-tests: New file.
3017         * tests/test-copysignl.c: New file.
3018
3019         New module 'copysignl'.
3020         * lib/math.in.h (copysignl): New declaration.
3021         * lib/copysignl.c: New file.
3022         * m4/copysignl.m4: New file.
3023         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3025         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3026         HAVE_COPYSIGNL.
3027         * modules/copysignl: New file.
3028         * tests/test-math-c++.cc: Check the declaration of copysignl.
3029         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3030         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3031         * doc/posix-functions/copysignl.texi: Mention the new module.
3032
3033 2011-10-09  Bruno Haible  <bruno@clisp.org>
3034
3035         Tests for module 'copysignf'.
3036         * modules/copysignf-tests: New file.
3037         * tests/test-copysignf.c: New file.
3038
3039         New module 'copysignf'.
3040         * lib/math.in.h (copysignf): New declaration.
3041         * lib/copysignf.c: New file.
3042         * m4/copysignf.m4: New file.
3043         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3045         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3046         HAVE_COPYSIGNF.
3047         * modules/copysignf: New file.
3048         * tests/test-math-c++.cc: Check the declaration of copysignf.
3049         * doc/posix-functions/copysignf.texi: Mention the new module.
3050
3051 2011-10-09  Bruno Haible  <bruno@clisp.org>
3052
3053         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3054         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3055         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3056         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3057         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3058         gl_SIGNAL_H_DEFAULTS.
3059
3060 2011-10-09  Bruno Haible  <bruno@clisp.org>
3061
3062         poll: Make macro safer.
3063         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3064         ac_cv_header_poll_h is not set.
3065
3066 2011-10-09  Bruno Haible  <bruno@clisp.org>
3067
3068         copysign: Provide replacement.
3069         * lib/math.in.h (copysign): New declaration.
3070         * lib/copysign.c: New file.
3071         * m4/copysign.m4: New file.
3072         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3074         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3075         HAVE_COPYSIGN.
3076         * modules/copysign (Description): Clarify.
3077         (Files): Add lib/copysign.c, m4/copysign.m4.
3078         (Depends-on): Add math, signbit.
3079         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3080         gl_MATH_MODULE_INDICATOR.
3081         * tests/test-math-c++.cc: Check the declaration of copysign.
3082         * doc/posix-functions/copysign.texi: Mention the effects of the module
3083         on Minix and MSVC.
3084
3085 2011-10-09  Bruno Haible  <bruno@clisp.org>
3086
3087         isinf: Ensure macro on AIX 5.1.
3088         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3089         macro.
3090         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3091
3092 2011-10-09  Bruno Haible  <bruno@clisp.org>
3093
3094         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3095         * modules/snprintf-posix-tests (configure.ac): Require
3096         gl_LONG_DOUBLE_VS_DOUBLE.
3097         * modules/sprintf-posix-tests (configure.ac): Likewise.
3098         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3099         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3100         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3101         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3102         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3103         tests on platforms where 'long double' is the same as 'double'.
3104         * tests/test-sprintf-posix.h (test_function): Likewise.
3105         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3106         * tests/test-vasprintf-posix.c (test_function): Likewise.
3107
3108         *printf: Fix for platforms where 'long double' == 'double'.
3109         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3110         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3111         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3112         * modules/fprintf-posix (Files): Likewise.
3113         * modules/obstack-printf-posix (Files): Likewise.
3114         * modules/snprintf-posix (Files): Likewise.
3115         * modules/sprintf-posix (Files): Likewise.
3116         * modules/vasnprintf (Files): Likewise.
3117         * modules/vasnprintf-posix (Files): Likewise.
3118         * modules/vasprintf-posix (Files): Likewise.
3119         * modules/vdprintf-posix (Files): Likewise.
3120         * modules/vfprintf-posix (Files): Likewise.
3121         * modules/vsnprintf-posix (Files): Likewise.
3122         * modules/vsprintf-posix (Files): Likewise.
3123         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3124         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3125         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3126         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3127         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3128         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3129         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3130
3131         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3132         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3133         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3134         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3135         'long double'.
3136         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3137
3138         isinf: Fix for platforms where 'long double' == 'double'.
3139         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3140         Don't blindly assume 80-bit 'long double'.
3141
3142         isfinite: Fix for platforms where 'long double' == 'double'.
3143         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3144         Don't blindly assume 80-bit 'long double'.
3145
3146         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3147         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3148         * modules/isfinite-tests (configure.ac): Require
3149         gl_LONG_DOUBLE_VS_DOUBLE.
3150         * modules/isinf-tests (configure.ac): Likewise.
3151         * modules/isnan-tests (configure.ac): Likewise.
3152         * modules/isnanl-tests (configure.ac): Likewise.
3153         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3154         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3155         tests on platforms where 'long double' is the same as 'double'.
3156         * tests/test-isinf.c (test_isinfl): Likewise.
3157         * tests/test-isnan.c (test_long_double): Likewise.
3158         * tests/test-isnanl.h (main): Likewise.
3159
3160 2011-10-08  Bruno Haible  <bruno@clisp.org>
3161
3162         Tests for module 'tanhf'.
3163         * modules/tanhf-tests: New file.
3164         * tests/test-tanhf.c: New file.
3165
3166         New module 'tanhf'.
3167         * lib/math.in.h (tanhf): New declaration.
3168         * lib/tanhf.c: New file.
3169         * m4/tanhf.m4: New file.
3170         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3172         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3173         * modules/tanhf: New file.
3174         * tests/test-math-c++.cc: Check the declaration of tanhf.
3175         * doc/posix-functions/tanhf.texi: Mention the new module.
3176
3177         tanh: Use a .m4 file.
3178         * m4/tanh.m4: New file.
3179         * modules/tanh (Files): Add it.
3180         (configure.ac): Just invoke gl_FUNC_TANH.
3181
3182 2011-10-08  Bruno Haible  <bruno@clisp.org>
3183
3184         Tests for module 'coshf'.
3185         * modules/coshf-tests: New file.
3186         * tests/test-coshf.c: New file.
3187
3188         New module 'coshf'.
3189         * lib/math.in.h (coshf): New declaration.
3190         * lib/coshf.c: New file.
3191         * m4/coshf.m4: New file.
3192         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3194         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3195         * modules/coshf: New file.
3196         * tests/test-math-c++.cc: Check the declaration of coshf.
3197         * doc/posix-functions/coshf.texi: Mention the new module.
3198
3199         cosh: Use a .m4 file.
3200         * m4/cosh.m4: New file.
3201         * modules/cosh (Files): Add it.
3202         (configure.ac): Just invoke gl_FUNC_COSH.
3203
3204 2011-10-08  Bruno Haible  <bruno@clisp.org>
3205
3206         Tests for module 'sinhf'.
3207         * modules/sinhf-tests: New file.
3208         * tests/test-sinhf.c: New file.
3209
3210         New module 'sinhf'.
3211         * lib/math.in.h (sinhf): New declaration.
3212         * lib/sinhf.c: New file.
3213         * m4/sinhf.m4: New file.
3214         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3216         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3217         * modules/sinhf: New file.
3218         * tests/test-math-c++.cc: Check the declaration of sinhf.
3219         * doc/posix-functions/sinhf.texi: Mention the new module.
3220
3221         sinh: Use a .m4 file.
3222         * m4/sinh.m4: New file.
3223         * modules/sinh (Files): Add it.
3224         (configure.ac): Just invoke gl_FUNC_SINH.
3225
3226 2011-10-08  Bruno Haible  <bruno@clisp.org>
3227
3228         Tests for module 'atan2f'.
3229         * modules/atan2f-tests: New file.
3230         * tests/test-atan2f.c: New file.
3231
3232         New module 'atan2f'.
3233         * lib/math.in.h (atan2f): New declaration.
3234         * lib/atan2f.c: New file.
3235         * m4/atan2f.m4: New file.
3236         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3238         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3239         * modules/atan2f: New file.
3240         * tests/test-math-c++.cc: Check the declaration of atan2f.
3241         * doc/posix-functions/atan2f.texi: Mention the new module.
3242
3243         atan2: Use a .m4 file.
3244         * m4/atan2.m4: New file.
3245         * modules/atan2 (Files): Add it.
3246         (configure.ac): Just invoke gl_FUNC_ATAN2.
3247
3248 2011-10-08  Bruno Haible  <bruno@clisp.org>
3249
3250         Tests for module 'atanf'.
3251         * modules/atanf-tests: New file.
3252         * tests/test-atanf.c: New file.
3253
3254         New module 'atanf'.
3255         * lib/math.in.h (atanf): New declaration.
3256         * lib/atanf.c: New file.
3257         * m4/atanf.m4: New file.
3258         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3260         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3261         * modules/atanf: New file.
3262         * tests/test-math-c++.cc: Check the declaration of atanf.
3263         * doc/posix-functions/atanf.texi: Mention the new module.
3264
3265         atan: Use a .m4 file.
3266         * m4/atan.m4: New file.
3267         * modules/atan (Files): Add it.
3268         (configure.ac): Just invoke gl_FUNC_ATAN.
3269
3270 2011-10-08  Bruno Haible  <bruno@clisp.org>
3271
3272         Tests for module 'acosf'.
3273         * modules/acosf-tests: New file.
3274         * tests/test-acosf.c: New file.
3275
3276         New module 'acosf'.
3277         * lib/math.in.h (acosf): New declaration.
3278         * lib/acosf.c: New file.
3279         * m4/acosf.m4: New file.
3280         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3282         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3283         * modules/acosf: New file.
3284         * tests/test-math-c++.cc: Check the declaration of acosf.
3285         * doc/posix-functions/acosf.texi: Mention the new module.
3286
3287         acos: Use a .m4 file.
3288         * m4/acos.m4: New file.
3289         * modules/acos (Files): Add it.
3290         (configure.ac): Just invoke gl_FUNC_ACOS.
3291
3292 2011-10-08  Bruno Haible  <bruno@clisp.org>
3293
3294         Tests for module 'asinf'.
3295         * modules/asinf-tests: New file.
3296         * tests/test-asinf.c: New file.
3297
3298         New module 'asinf'.
3299         * lib/math.in.h (asinf): New declaration.
3300         * lib/asinf.c: New file.
3301         * m4/asinf.m4: New file.
3302         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3304         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3305         * modules/asinf: New file.
3306         * tests/test-math-c++.cc: Check the declaration of asinf.
3307         * doc/posix-functions/asinf.texi: Mention the new module.
3308
3309         asin: Use a .m4 file.
3310         * m4/asin.m4: New file.
3311         * modules/asin (Files): Add it.
3312         (configure.ac): Just invoke gl_FUNC_ASIN.
3313
3314 2011-10-08  Bruno Haible  <bruno@clisp.org>
3315
3316         Tests for module 'tanf'.
3317         * modules/tanf-tests: New file.
3318         * tests/test-tanf.c: New file.
3319
3320         New module 'tanf'.
3321         * lib/math.in.h (tanf): New declaration.
3322         * lib/tanf.c: New file.
3323         * m4/tanf.m4: New file.
3324         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3326         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3327         * modules/tanf: New file.
3328         * tests/test-math-c++.cc: Check the declaration of tanf.
3329         * doc/posix-functions/tanf.texi: Mention the new module.
3330
3331         tan: Use a .m4 file.
3332         * m4/tan.m4: New file.
3333         * modules/tan (Files): Add it.
3334         (configure.ac): Just invoke gl_FUNC_TAN.
3335
3336 2011-10-08  Bruno Haible  <bruno@clisp.org>
3337
3338         Tests for module 'cosf'.
3339         * modules/cosf-tests: New file.
3340         * tests/test-cosf.c: New file.
3341
3342         New module 'cosf'.
3343         * lib/math.in.h (cosf): New declaration.
3344         * lib/cosf.c: New file.
3345         * m4/cosf.m4: New file.
3346         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3348         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3349         * modules/cosf: New file.
3350         * tests/test-math-c++.cc: Check the declaration of cosf.
3351         * doc/posix-functions/cosf.texi: Mention the new module.
3352
3353         cos: Use a .m4 file.
3354         * m4/cos.m4: New file.
3355         * modules/cos (Files): Add it.
3356         (configure.ac): Just invoke gl_FUNC_COS.
3357
3358 2011-10-08  Bruno Haible  <bruno@clisp.org>
3359
3360         Tests for module 'sinf'.
3361         * modules/sinf-tests: New file.
3362         * tests/test-sinf.c: New file.
3363
3364         New module 'sinf'.
3365         * lib/math.in.h (sinf): New declaration.
3366         * lib/sinf.c: New file.
3367         * m4/sinf.m4: New file.
3368         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3370         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3371         * modules/sinf: New file.
3372         * tests/test-math-c++.cc: Check the declaration of sinf.
3373         * doc/posix-functions/sinf.texi: Mention the new module.
3374
3375         sin: Use a .m4 file.
3376         * m4/sin.m4: New file.
3377         * modules/sin (Files): Add it.
3378         (configure.ac): Just invoke gl_FUNC_SIN.
3379
3380 2011-10-08  Bruno Haible  <bruno@clisp.org>
3381
3382         Tests for module 'powf'.
3383         * modules/powf-tests: New file.
3384         * tests/test-powf.c: New file.
3385
3386         New module 'powf'.
3387         * lib/math.in.h (powf): New declaration.
3388         * lib/powf.c: New file.
3389         * m4/powf.m4: New file.
3390         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3392         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3393         * modules/powf: New file.
3394         * tests/test-math-c++.cc: Check the declaration of powf.
3395         * doc/posix-functions/powf.texi: Mention the new module.
3396
3397         pow: Use a .m4 file.
3398         * m4/pow.m4: New file.
3399         * modules/pow (Files): Add it.
3400         (configure.ac): Just invoke gl_FUNC_POW.
3401
3402 2011-10-08  Bruno Haible  <bruno@clisp.org>
3403
3404         Tests for module 'log10f'.
3405         * modules/log10f-tests: New file.
3406         * tests/test-log10f.c: New file.
3407
3408         New module 'log10f'.
3409         * lib/math.in.h (log10f): New declaration.
3410         * lib/log10f.c: New file.
3411         * m4/log10f.m4: New file.
3412         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3413         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3414         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3415         * modules/log10f: New file.
3416         * tests/test-math-c++.cc: Check the declaration of log10f.
3417         * doc/posix-functions/log10f.texi: Mention the new module.
3418
3419         log10: Use a .m4 file.
3420         * m4/log10.m4: New file.
3421         * modules/log10 (Files): Add it.
3422         (configure.ac): Just invoke gl_FUNC_LOG10.
3423
3424 2011-10-08  Bruno Haible  <bruno@clisp.org>
3425
3426         Tests for module 'logf'.
3427         * modules/logf-tests: New file.
3428         * tests/test-logf.c: New file.
3429
3430         New module 'logf'.
3431         * lib/math.in.h (logf): New declaration.
3432         * lib/logf.c: New file.
3433         * m4/logf.m4: New file.
3434         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3435         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3436         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3437         * modules/logf: New file.
3438         * tests/test-math-c++.cc: Check the declaration of logf.
3439         * doc/posix-functions/logf.texi: Mention the new module.
3440
3441         log: Use a .m4 file.
3442         * m4/log.m4: New file.
3443         * modules/log (Files): Add it.
3444         (configure.ac): Just invoke gl_FUNC_LOG.
3445
3446 2011-10-08  Bruno Haible  <bruno@clisp.org>
3447
3448         Tests for module 'expf'.
3449         * modules/expf-tests: New file.
3450         * tests/test-expf.c: New file.
3451
3452         New module 'expf'.
3453         * lib/math.in.h (expf): New declaration.
3454         * lib/expf.c: New file.
3455         * m4/expf.m4: New file.
3456         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3458         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3459         * modules/expf: New file.
3460         * tests/test-math-c++.cc: Check the declaration of expf.
3461         * doc/posix-functions/expf.texi: Mention the new module.
3462
3463         exp: Use a .m4 file.
3464         * m4/exp.m4: New file.
3465         * modules/exp (Files): Add it.
3466         (configure.ac): Just invoke gl_FUNC_EXP.
3467
3468 2011-10-08  Bruno Haible  <bruno@clisp.org>
3469
3470         Tests for module 'sqrtf'.
3471         * modules/sqrtf-tests: New file.
3472         * tests/test-sqrtf.c: New file.
3473
3474         New module 'sqrtf'.
3475         * lib/math.in.h (sqrtf): New declaration.
3476         * lib/sqrtf.c: New file.
3477         * m4/sqrtf.m4: New file.
3478         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3480         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3481         * modules/sqrtf: New file.
3482         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3483         * doc/posix-functions/sqrtf.texi: Mention the new module.
3484
3485 2011-10-08  Bruno Haible  <bruno@clisp.org>
3486
3487         Tests: Avoid link failures w.r.t. libintl.
3488         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3489         $(LIBINTL).
3490         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3491         $(LIBINTL).
3492         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3493         against $(LIBINTL).
3494         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3495         $(LIBINTL).
3496         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3497         $(LIBINTL).
3498         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3499
3500 2011-10-08  Bruno Haible  <bruno@clisp.org>
3501
3502         pow tests: Defeat compiler optimizations.
3503         * tests/test-pow.c (main): Assign arguments to x and y before use.
3504
3505 2011-10-08  Bruno Haible  <bruno@clisp.org>
3506
3507         gnulib-tool: Improve last commit.
3508         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3509         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3510         ignore dependencies that are not among the modules list.
3511
3512 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3513
3514         gnulib-tool: don't follow dependencies to avoided modules
3515         This fixes a bug that is related to the previous one.
3516         * gnulib-tool (func_modules_transitive_closure)
3517         (func_emit_autoconf_snippets):
3518         Check whether a dependency is acceptable before using it.
3519         (--extract-dependencies): Report an error if --avoid is also used,
3520         since this combination of options is not yet supported.
3521
3522         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3523         Problem reported by Peter Dyballa in
3524         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3525         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3526         when echoing "$condition".
3527
3528 2011-10-07  Bruno Haible  <bruno@clisp.org>
3529
3530         Fix documentation about math functions on MacOS X.
3531         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3532         MacOS X 10.5.
3533         * doc/posix-functions/fdim.texi: Likewise.
3534         * doc/posix-functions/feclearexcept.texi: Likewise.
3535         * doc/posix-functions/fegetenv.texi: Likewise.
3536         * doc/posix-functions/fegetround.texi: Likewise.
3537         * doc/posix-functions/feholdexcept.texi: Likewise.
3538         * doc/posix-functions/feraiseexcept.texi: Likewise.
3539         * doc/posix-functions/fesetenv.texi: Likewise.
3540         * doc/posix-functions/fesetround.texi: Likewise.
3541         * doc/posix-functions/fetestexcept.texi: Likewise.
3542         * doc/posix-functions/feupdateenv.texi: Likewise.
3543         * doc/posix-functions/fmax.texi: Likewise.
3544         * doc/posix-functions/fmin.texi: Likewise.
3545         * doc/posix-functions/log2.texi: Likewise.
3546         * doc/posix-functions/modff.texi: Likewise.
3547         * doc/posix-functions/nan.texi: Likewise.
3548         * doc/posix-functions/nanf.texi: Likewise.
3549         * doc/posix-functions/nextafterf.texi: Likewise.
3550         * doc/posix-functions/remquo.texi: Likewise.
3551
3552 2011-10-07  Bruno Haible  <bruno@clisp.org>
3553
3554         modff: Drop assumption about library that defines modff.
3555         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3556         AC_CHECK_FUNCS.
3557         * modules/modff (Files): Add m4/mathfunc.m4.
3558
3559 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3560
3561         raise tests: Avoid a GCC warning.
3562         * tests/test-raise.c (handler): Use _Noreturn.
3563
3564 2011-10-07  Bruno Haible  <bruno@clisp.org>
3565
3566         Tests for module 'ldexpf'.
3567         * modules/ldexpf-tests: New file.
3568         * tests/test-ldexpf.c: New file.
3569
3570         New module 'ldexpf'.
3571         * lib/math.in.h (ldexpf): New declaration.
3572         * lib/ldexpf.c: New file.
3573         * m4/ldexpf.m4: New file.
3574         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3576         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3577         * modules/ldexpf: New file.
3578         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3579         * doc/posix-functions/ldexpf.texi: Mention the new module.
3580
3581 2011-10-06  Bruno Haible  <bruno@clisp.org>
3582
3583         frexpf: Work around problems on IRIX and mingw.
3584         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3586         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3587         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3588         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3589         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3590         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3591
3592 2011-10-06  Bruno Haible  <bruno@clisp.org>
3593
3594         fabsf: Drop assumption about library that defines fabsf.
3595         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3596         AC_CHECK_FUNCS.
3597         * modules/fabsf (Files): Add m4/mathfunc.m4.
3598
3599 2011-10-06  Bruno Haible  <bruno@clisp.org>
3600
3601         frexpf: Drop assumption about library that defines frexpf.
3602         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3603         'int *', 'float *', 'long double *', 'float', 'long double'.
3604         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3605         AC_CHECK_FUNCS.
3606         * modules/frexpf (Files): Add m4/mathfunc.m4.
3607
3608         Tests for module 'frexpf'.
3609         * modules/frexpf-tests: New file.
3610         * tests/test-frexpf.c: New file.
3611
3612         New module 'frexpf'.
3613         * lib/math.in.h (frexpf): New declaration.
3614         * lib/frexpf.c: New file.
3615         * m4/frexpf.m4: New file.
3616         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3618         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3619         * modules/frexpf: New file.
3620         * tests/test-math-c++.cc: Check the declaration of frexpf.
3621         * doc/posix-functions/frexpf.texi: Mention the new module.
3622
3623 2011-10-06  Bruno Haible  <bruno@clisp.org>
3624
3625         math: Sort function declarations of math.in.h.
3626         * lib/math.in.h (frexp, logb): Move declarations.
3627
3628 2011-10-05  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'modff'.
3631         * modules/modff-tests: New file.
3632         * tests/test-modff.c: New file.
3633
3634         New module 'modff'.
3635         * lib/math.in.h (modff): New declaration.
3636         * lib/modff.c: New file.
3637         * m4/modff.m4: New file.
3638         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3640         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3641         * modules/modff: New file.
3642         * tests/test-math-c++.cc: Check the declaration of modff.
3643         * doc/posix-functions/modff.texi: Mention the new module.
3644
3645         modf tests: Make test sharper.
3646         * tests/test-modf.c (main): Strengthen upper bound.
3647
3648         modf: Use a .m4 file.
3649         * m4/modf.m4: New file.
3650         * modules/modf (Files): Add it.
3651         (configure.ac): Just invoke gl_FUNC_MODF.
3652
3653 2011-10-05  Bruno Haible  <bruno@clisp.org>
3654
3655         Tests for module 'fmodf'.
3656         * modules/fmodf-tests: New file.
3657         * tests/test-fmodf.c: New file.
3658
3659         New module 'fmodf'.
3660         * lib/math.in.h (fmodf): New declaration.
3661         * lib/fmodf.c: New file.
3662         * m4/fmodf.m4: New file.
3663         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3665         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3666         * modules/fmodf: New file.
3667         * tests/test-math-c++.cc: Check the declaration of fmodf.
3668         * doc/posix-functions/fmodf.texi: Mention the new module.
3669
3670         fmod: Use a .m4 file.
3671         * m4/fmod.m4: New file.
3672         * modules/fmod (Files): Add it.
3673         (configure.ac): Just invoke gl_FUNC_FMOD.
3674
3675 2011-10-05  Bruno Haible  <bruno@clisp.org>
3676
3677         Tests for module 'fabsf'.
3678         * modules/fabsf-tests: New file.
3679         * tests/test-fabsf.c: New file.
3680
3681         New module 'fabsf'.
3682         * lib/math.in.h (fabsf): New declaration.
3683         * lib/fabsf.c: New file.
3684         * m4/fabsf.m4: New file.
3685         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3687         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3688         * modules/fabsf: New file.
3689         * tests/test-math-c++.cc: Check the declaration of fabsf.
3690         * doc/posix-functions/fabsf.texi: Mention the new module.
3691
3692         fabs: Use a .m4 file.
3693         * m4/fabs.m4: New file.
3694         * modules/fabs (Files): Add it.
3695         (configure.ac): Just invoke gl_FUNC_FABS.
3696
3697 2011-10-05  Jim Meyering  <meyering@redhat.com>
3698
3699         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3700         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3701         ls -lL regression introduced in coreutils-8.12, it does so at the
3702         cost of an additional stat call in the common case.  Besides, now
3703         that the kernel change that prompted commit 95f7c57f has been reverted
3704         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3705         we have no use for commit 95f7c57f, "file-has-acl: use
3706         acl_extended_file_nofollow if available".
3707
3708 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3709
3710         file-has-acl: revert unintended change in behavior of ls -L
3711         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3712         derived from...
3713         (file_has_acl): ...code here.  Call it.
3714         This problem was introduced with 2011-07-22 commit 95f7c57f,
3715         "file-has-acl: use acl_extended_file_nofollow if available".
3716         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3717
3718 2011-10-03  Bruno Haible  <bruno@clisp.org>
3719
3720         poll: Avoid link errors on MSVC.
3721         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3722         * modules/poll (Depends-on): Add sockets.
3723         (Link): New section.
3724         * NEWS: Mention the change.
3725         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3726         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3727         $(LIB_POLL) instead of $(LIBSOCKET).
3728
3729 2011-10-03  Bruno Haible  <bruno@clisp.org>
3730
3731         sys_select tests: Fix link error on MSVC 9.
3732         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3733         with $(LIB_SELECT) instead of $(LIBSOCKET).
3734
3735 2011-10-03  Bruno Haible  <bruno@clisp.org>
3736
3737         sys_select: Fix compilation error on mingw.
3738         * lib/sys_select.in.h: On native Windows, include <io.h>.
3739
3740 2011-10-03  Bruno Haible  <bruno@clisp.org>
3741
3742         wmemset: Support for MSVC.
3743         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3744         whether wmemset() exists.
3745
3746 2011-10-03  Bruno Haible  <bruno@clisp.org>
3747
3748         wmemmove: Support for MSVC.
3749         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3750         whether wmemmove() exists.
3751
3752 2011-10-03  Bruno Haible  <bruno@clisp.org>
3753
3754         wmemcpy: Support for MSVC.
3755         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3756         whether wmemcpy() exists.
3757
3758 2011-10-03  Bruno Haible  <bruno@clisp.org>
3759
3760         wmemcmp: Support for MSVC.
3761         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3762         whether wmemcmp() exists.
3763
3764 2011-10-03  Bruno Haible  <bruno@clisp.org>
3765
3766         wmemchr: Support for MSVC.
3767         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3768         whether wmemchr() exists.
3769
3770 2011-10-03  Bruno Haible  <bruno@clisp.org>
3771
3772         glthread/*, strsignal: Support for MSVC.
3773         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3774         including <winsock.h> on MSVC 9.
3775         * lib/glthread/lock.h: Likewise.
3776         * lib/glthread/thread.h: Likewise.
3777         * lib/glthread/tls.h: Likewise.
3778         * lib/glthread/yield.h: Likewise.
3779         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3780         if HAVE_UNISTD_H is false.
3781         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3782
3783 2011-10-03  Bruno Haible  <bruno@clisp.org>
3784
3785         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3786         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3787         Set to 100000.
3788
3789 2011-10-03  Bruno Haible  <bruno@clisp.org>
3790
3791         acl: Fix specification.
3792         * lib/file-has-acl.c (file_has_acl): Fix specification.
3793
3794 2011-10-03  Bruno Haible  <bruno@clisp.org>
3795
3796         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3797         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3798         (compute_curr_prefix, shared_library_fullname,
3799         find_shared_library_fullname, get_shared_library_fullname, relocate):
3800         Use it together with PIC && INSTALLDIR.
3801         Reported by <jojelino@gmail.com>
3802         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3803
3804 2011-10-01  Jim Meyering  <meyering@redhat.com>
3805
3806         maint.mk: adjust a release-related rule not to require use of gzip
3807         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3808         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3809         projects that build only .tar.xz files.  Also fix an erroneous test.
3810
3811         test-linkat: don't leave behind a temporary file
3812         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3813         Otherwise, coreutils' "make distcheck" would fail with this:
3814           Only in /c/cu/tests/torture/coreutils/test/\
3815             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3816           make[2]: *** [my-distcheck] Error 1
3817
3818         float, math: add omitted file
3819         * lib/itold.c: Add file, required for yesterday's float change.
3820
3821 2011-10-01  Bruno Haible  <bruno@clisp.org>
3822
3823         isinf: Fix for OpenBSD/x86.
3824         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3825         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3826         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3827
3828 2011-10-01  Bruno Haible  <bruno@clisp.org>
3829
3830         isfinite: Fix syntax error in configure test.
3831         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3832
3833         isfinite: Fix typo.
3834         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3835         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3836
3837 2011-10-01  Bruno Haible  <bruno@clisp.org>
3838
3839         nonblocking tests: Fix test failure on Linux/IA-64.
3840         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3841         Set to 270000.
3842
3843 2011-10-01  Bruno Haible  <bruno@clisp.org>
3844
3845         mkfifoat tests: Fix a test failure on mingw.
3846         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3847         with error ENOSYS.
3848
3849 2011-09-30  Bruno Haible  <bruno@clisp.org>
3850
3851         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3852         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3853         'long double'. Set REPLACE_ITOLD.
3854         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3855         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3856         * lib/itold.c: New file.
3857         * modules/float (Files): Add lib/itold.c.
3858         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3859         (Makefile.am): Substitute REPLACE_ITOLD.
3860         * modules/math (Depends-on): Add float.
3861         (Makefile.am): Substitute REPLACE_ITOLD.
3862         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3863         * doc/posix-headers/math.texi: Likewise.
3864         * doc/posix-functions/logl.texi: Likewise.
3865
3866 2011-09-30  Bruno Haible  <bruno@clisp.org>
3867
3868         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3869         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3870         Set to 140000.
3871
3872 2011-09-30  Bruno Haible  <bruno@clisp.org>
3873
3874         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3875         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3876         invocation, say "right after AC_PROG_CC_STDC", not "right after
3877         AC_PROG_CC".
3878         Reported by Gary V. Vaughan <gary@gnu.org>.
3879
3880 2011-09-30  Bruno Haible  <bruno@clisp.org>
3881
3882         Centralize C99 requirement.
3883         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3884         * modules/stdarg (configure.ac-early): Invoke it instead of
3885         AC_PROG_CC_STDC.
3886         Reported by Gary V. Vaughan and Paul Eggert.
3887
3888 2011-09-29  Bruno Haible  <bruno@clisp.org>
3889
3890         float: Fix LDBL_MAX value on Linux/PowerPC.
3891         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3892         on Linux/PowerPC.
3893         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3894         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3895         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3896         platform.
3897         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3898
3899 2011-09-29  Bruno Haible  <bruno@clisp.org>
3900
3901         doc: Improve doc about gl_EARLY.
3902         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3903         AC_PROG_CC_STDC invocation.
3904         Reported by Gary V. Vaughan <gary@gnu.org>.
3905
3906 2011-09-28  Bruno Haible  <bruno@clisp.org>
3907
3908         fgetc, fputc, fread, fwrite tests: Fix link error.
3909         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3910         on non-MSVC platforms.
3911         * tests/test-fputc.c (main): Likewise.
3912         * tests/test-fread.c (main): Likewise.
3913         * tests/test-fwrite.c (main): Likewise.
3914         Reported by Jim Meyering.
3915
3916 2011-09-27  Bruno Haible  <bruno@clisp.org>
3917
3918         fputc, fwrite tests: Avoid test failure on MSVC.
3919         * tests/test-fgetc.c: Include msvc-inval.h.
3920         (main): Invoke gl_msvc_inval_ensure_handler.
3921         * tests/test-fputc.c: Include msvc-inval.h.
3922         (main): Invoke gl_msvc_inval_ensure_handler.
3923         * tests/test-fread.c: Include msvc-inval.h.
3924         (main): Invoke gl_msvc_inval_ensure_handler.
3925         * tests/test-fwrite.c: Include msvc-inval.h.
3926         (main): Invoke gl_msvc_inval_ensure_handler.
3927         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3928         * modules/fputc-tests (Depends-on): Likewise.
3929         * modules/fread-tests (Depends-on): Likewise.
3930         * modules/fwrite-tests (Depends-on): Likewise.
3931
3932 2011-09-27  Bruno Haible  <bruno@clisp.org>
3933
3934         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3935         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3936         (raise): Remove older, duplicated declaration.
3937         (_gl_raise_SIGPIPE): New declaration.
3938         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3939         (rpl_raise): Remove function.
3940         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3941         a gnulib-defined SIGPIPE here.
3942         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3943         'sigprocmask' has detected missing signal-blocking and the module
3944         'sigpipe' is enabled.
3945         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3946
3947 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3948
3949         base64-tests: avoid memory leak
3950         * tests/test-base64.c (main): Plug memory leak.
3951
3952         base32: new module
3953         * modules/base32: New module.
3954         * lib/base32.c: New file.
3955         * lib/base32.h: Likewise.
3956         * m4/base32.m4: Likewise.
3957         * modules/base32-tests: New test.
3958         * tests/test-base32.c: Likewise.
3959         * MODULES.html.sh (Misc): Mention it.
3960
3961 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3962
3963         gnulib: use more-standard license notice wording
3964         * gnulib-tool (func_emit_copyright_notice): When emitting a
3965         license notice into a file, use the standard wording as suggested
3966         by the current information for GNU maintainers, except say "file"
3967         rather than "program".  The new wording gives a license version
3968         number, which addresses an issue raised by Glenn Morris in
3969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3970         * m4/onceonly.m4: Use that same wording here, too.
3971
3972         dup2: minor simplification
3973         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3974         as lib/dup2.c no longer uses 'inline'.
3975
3976 2011-09-25  Bruno Haible  <bruno@clisp.org>
3977
3978         strings: Fix compilation error on MSVC.
3979         * lib/strings.in.h: Include <stddef.h> for size_t.
3980
3981 2011-09-25  Bruno Haible  <bruno@clisp.org>
3982
3983         fflush et al.: Document limitation on MSVC.
3984         * doc/posix-functions/fflush.texi: Document possible crash in handling
3985         mode other than DEFAULT_HANDLING.
3986         * doc/posix-functions/fgetc.texi: Likewise.
3987         * doc/posix-functions/fputc.texi: Likewise.
3988         * doc/posix-functions/fread.texi: Likewise.
3989         * doc/posix-functions/fwrite.texi: Likewise.
3990
3991 2011-09-25  Bruno Haible  <bruno@clisp.org>
3992
3993         msvc-inval: Allow three invalid parameter handling modes.
3994         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3995         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3996         macros.
3997         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3998         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3999         SANE_LIBRARY_HANDLING as a no-op.
4000         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4001         <stdlib.h>.
4002         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4003
4004 2011-09-25  Bruno Haible  <bruno@clisp.org>
4005
4006         msvc-inval: Make handler multithread-safe.
4007         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4008         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4009         declarations.
4010         (gl_msvc_inval_current): New declaration.
4011         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4012         Operate on the structure returned by gl_msvc_inval_current().
4013         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4014         Remove varaiables.
4015         (tls_index, tls_initialized): New variables.
4016         (not_per_thread): New variable.
4017         (gl_msvc_inval_current): New function.
4018         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4019         returned by gl_msvc_inval_current().
4020
4021 2011-09-25  Bruno Haible  <bruno@clisp.org>
4022
4023         msvc-inval: Install handler globally.
4024         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4025         !_MSC_VER.
4026         (gl_msvc_invalid_parameter_handler): Remove declaration.
4027         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4028         declarations.
4029         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4030         Install the handler globally, don't uninstall it.
4031         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4032         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4033         currently valid, call RaiseException instead.
4034         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4035         for !_MSC_VER.
4036
4037 2011-09-25  Bruno Haible  <bruno@clisp.org>
4038
4039         strerror_r-posix: Fix for MSVC 9.
4040         * lib/strerror_r.c (local_snprintf): New function.
4041         (snprintf): Define to local_snprintf, not to _snprintf.
4042
4043 2011-09-25  Bruno Haible  <bruno@clisp.org>
4044
4045         ftruncate: Support for MSVC 9.
4046         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4047         (chsize_nothrow): New function.
4048         (chsize): Redefine as a macro.
4049         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4050         * modules/ftruncate (Depends-on): Add msvc-inval.
4051
4052 2011-09-25  Bruno Haible  <bruno@clisp.org>
4053
4054         New module 'fstat'.
4055         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4056         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4057         * lib/fchdir.c (rpl_fstat): Remove function.
4058         * m4/fstat.m4: New file.
4059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4060         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4061         declared.
4062         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4063         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4064         * modules/fstat: New file.
4065         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4066         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4067         is set.
4068         * doc/posix-functions/fstat.texi: Mention the new module and the
4069         problem on MSVC.
4070         * NEWS: Mention the change.
4071         * modules/acl (Depends-on): Add fstat.
4072         * modules/chdir-safer (Depends-on): Likewise.
4073         * modules/chown (Depends-on): Likewise.
4074         * modules/copy-file (Depends-on): Likewise.
4075         * modules/fchdir (Depends-on): Likewise.
4076         * modules/fdopendir (Depends-on): Likewise.
4077         * modules/fopen (Depends-on): Likewise.
4078         * modules/fts (Depends-on): Likewise.
4079         * modules/getcwd (Depends-on): Likewise.
4080         * modules/isapipe (Depends-on): Likewise.
4081         * modules/linkat (Depends-on): Likewise.
4082         * modules/lseek (Depends-on): Likewise.
4083         * modules/mkdir-p (Depends-on): Likewise.
4084         * modules/open (Depends-on): Likewise.
4085         * modules/openat (Depends-on): Likewise.
4086         * modules/read-file (Depends-on): Likewise.
4087         * modules/renameat (Depends-on): Likewise.
4088         * modules/utimens (Depends-on): Likewise.
4089
4090 2011-09-25  Bruno Haible  <bruno@clisp.org>
4091
4092         linkat: Fix compilation on MSVC 9.
4093         * lib/linkat.c: Don't include <stdint.h>.
4094
4095 2011-09-25  Bruno Haible  <bruno@clisp.org>
4096
4097         fclose: Support for MSVC 9.
4098         * lib/fclose.c: Include msvc-inval.h.
4099         (fclose_nothrow): New function.
4100         (rpl_fclose): Use it.
4101         * modules/fclose (Depends-on): Add msvc-inval.
4102         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4103
4104 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4105
4106         dup2: minor simplifications
4107         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4108         that it's a performance win.
4109         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4110         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4111
4112 2011-09-24  Jim Meyering  <meyering@redhat.com>
4113
4114         test-futimens: avoid a warning from gcc -Wshadow
4115         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4116         to avoid a shadowing warning.
4117
4118 2011-09-24  Bruno Haible  <bruno@clisp.org>
4119
4120         fdopen: Support for MSVC 9.
4121         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4122         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4123         * lib/fdopen.c: Include msvc-inval.h.
4124         (fdopen_nothrow): New function.
4125         (rpl_fdopen): Use it.
4126         * modules/fdopen (Depends-on): Add msvc-inval.
4127         * modules/fclose-tests (Depends-on): Add fdopen.
4128         * modules/fflush-tests (Depends-on): Likewise.
4129         * modules/fgetc-tests (Depends-on): Likewise.
4130         * modules/fputc-tests (Depends-on): Likewise.
4131         * modules/fread-tests (Depends-on): Likewise.
4132         * modules/freopen-tests (Depends-on): Likewise.
4133         * modules/fseeko-tests (Depends-on): Likewise.
4134         * modules/ftello-tests (Depends-on): Likewise.
4135         * modules/fwrite-tests  (Depends-on): Likewise.
4136         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4137
4138 2011-09-24  Bruno Haible  <bruno@clisp.org>
4139
4140         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4141         * modules/fgetc-tests (Depends-on): Add unistd.
4142         * modules/fputc-tests (Depends-on): Likewise.
4143         * modules/fread-tests (Depends-on): Likewise.
4144         * modules/fwrite-tests (Depends-on): Likewise.
4145
4146 2011-09-24  Bruno Haible  <bruno@clisp.org>
4147
4148         dup: Simplify autoconf test.
4149         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4150         on gl_MSVC_INVAL's result.
4151
4152 2011-09-24  Bruno Haible  <bruno@clisp.org>
4153
4154         Tests for function fwrite().
4155         * modules/fwrite-tests: New file.
4156         * tests/test-fwrite.c: New file.
4157         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4158
4159         Tests for function fread().
4160         * modules/fread-tests: New file.
4161         * tests/test-fread.c: New file.
4162         * modules/stdio-tests (Depends-on): Add fread-tests.
4163
4164         Activate fputc tests.
4165         * modules/stdio-tests (Depends-on): Add fputc-tests.
4166
4167         Enhance fgetc, fputc tests.
4168         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4169         * tests/test-fputc.c (main): Likewise.
4170
4171 2011-09-24  Bruno Haible  <bruno@clisp.org>
4172
4173         write: Support for MSVC 9.
4174         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4175         is not 1.
4176         * lib/write.c (write_nothrow): New function.
4177         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4178         not 1. Use write_nothrow.
4179         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4180         invalid parameter handler.
4181         (gl_PREREQ_WRITE): New macro.
4182         * modules/write (Depends-on): Add msvc-inval.
4183         (configure.ac): Invoke gl_PREREQ_WRITE.
4184         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4185
4186 2011-09-24  Bruno Haible  <bruno@clisp.org>
4187
4188         read: Fix last commit.
4189         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4190
4191 2011-09-24  Bruno Haible  <bruno@clisp.org>
4192
4193         dup2: Fix last commit.
4194         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4195         (rpl_dup2): Disable fcntl workaround on native Windows.
4196
4197         sigprocmask: Make code safer.
4198         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4199         section that changes macro definitions for this compilation unit.
4200
4201 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4202
4203         dup2: clarify by coalescing Windows-specific material
4204         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4205         "msvc-nothrow.h"' to the Windows-specific section, so that the
4206         Emacs source need not contain these include files.
4207         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4208         Windows-specific fixes into this function rather than just the
4209         nothrow fix, as this shortens and clarifies the code.  Always
4210         define as a function, as that's a bit cleaner than having it be
4211         sometimes a function and sometimes a macro.
4212         (rpl_dup2): Move the Windows-specific stuff out of here and into
4213         ms_windows_dup2.  Don't protect the Haiku-related fix with
4214         "#if !defined __linux__", as the same code also works around
4215         a Linux kernel bug, and it doesn't add any system calls on any
4216         platform.  Add comment about FreeBSD 6.1.
4217
4218         sigprocmask: move #include directive
4219         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4220         Windows-specific section, so that the Emacs source need not
4221         contain msvc-inval.h.
4222
4223 2011-09-23  Bruno Haible  <bruno@clisp.org>
4224
4225         read: Support for MSVC 9.
4226         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4227         is not 1.
4228         * lib/read.c (read_nothrow): New function.
4229         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4230         read_nothrow.
4231         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4232         invalid parameter handler.
4233         (gl_PREREQ_READ): New macro.
4234         * modules/read (Depends-on): Add msvc-inval.
4235         (configure.ac): Invoke gl_PREREQ_READ.
4236         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4237
4238 2011-09-23  Bruno Haible  <bruno@clisp.org>
4239
4240         close: Support for MSVC 9.
4241         * lib/close.c: Include <errno.h>, msvc-inval.h.
4242         (close_nothrow): New function.
4243         (rpl_close): Use it.
4244         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4245         invalid parameter handler.
4246         * modules/close (Depends-on): Add msvc-inval.
4247         * modules/dup2-tests (Depends-on): Add close.
4248         * modules/dup3-tests (Depends-on): Likewise.
4249         * modules/fcntl-tests (Depends-on): Likewise.
4250         * modules/spawn-pipe-tests (Depends-on): Likewise.
4251         * modules/unistd-safer-tests (Depends-on): Likewise.
4252         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4253
4254 2011-09-23  Bruno Haible  <bruno@clisp.org>
4255
4256         New module 'dup'.
4257         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4258         Allow replacement.
4259         * lib/dup.c: New file.
4260         * lib/fchdir.c (rpl_dup): Remove function.
4261         * m4/dup.m4: New file.
4262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4263         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4264         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4265         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4266         * modules/dup: New file.
4267         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4268         'dup' module is in use.
4269         * modules/fdopendir (Depends-on): Add dup.
4270         * modules/fdutimensat-tests (Depends-on): Likewise.
4271         * modules/fts (Depends-on): Likewise.
4272         * modules/futimens-tests (Depends-on): Likewise.
4273         * modules/posix_spawnp-tests (Depends-on): Likewise.
4274         * modules/unistd-safer-tests (Depends-on): Likewise.
4275         * modules/utimens-tests (Depends-on): Likewise.
4276         * doc/posix-functions/dup.texi: Mention the new module and the problem
4277         on MSVC.
4278
4279 2011-09-23  Bruno Haible  <bruno@clisp.org>
4280
4281         getdtablesize: Support for MSVC 9.
4282         * lib/getdtablesize.c: Include msvc-inval.h.
4283         (_setmaxstdio_nothrow): New function.
4284         (_setmaxstdio): Redefine it.
4285         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4286         * modules/getdtablesize (Depends-on): Add msvc-inval.
4287         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4288
4289 2011-09-23  Bruno Haible  <bruno@clisp.org>
4290
4291         signal-h: Rename from signal.
4292         * modules/signal-h: Renamed from modules/signal.
4293         * modules/pthread_sigmask (Depends-on): Update.
4294         * modules/raise (Depends-on): Likewise.
4295         * modules/sigaction (Depends-on): Likewise.
4296         * modules/sigpipe (Depends-on): Likewise.
4297         * modules/sigprocmask (Depends-on): Likewise.
4298         * modules/sys_select (Depends-on): Likewise.
4299         * modules/signal-h-tests: Renamed from modules/signal-tests.
4300         (Files, Depends-on, Makefile.am): Update.
4301         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4302         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4303         (Files, Makefile.am): Update.
4304         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4305         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4306         * modules/signal: New placeholder file.
4307         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4308         * doc/posix-headers/signal.texi: Update.
4309         * NEWS: Mention the change.
4310
4311 2011-09-23  Bruno Haible  <bruno@clisp.org>
4312
4313         sigprocmask: Avoid crashes through signal() on MSVC 9.
4314         * lib/sigprocmask.c: Include msvc-inval.h.
4315         (signal_nothrow): New function.
4316         (signal): Redefine it.
4317         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4318         * modules/sigprocmask (Depends-on): Add msvc-inval.
4319         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4320
4321 2011-09-23  Bruno Haible  <bruno@clisp.org>
4322
4323         Tests for module 'raise'.
4324         * modules/raise-tests: New file.
4325         * tests/test-raise.c: New file.
4326
4327         raise: Support for MSVC.
4328         * lib/signal.in.h (raise): New declaration.
4329         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4330         for native Windows platforms.
4331         * m4/raise.m4: New file.
4332         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4333         HAVE_RAISE, REPLACE_RAISE.
4334         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4335         REPLACE_RAISE.
4336         * modules/raise (Status, Notice): Remove fields.
4337         (Files): Add m4/raise.m4.
4338         (Depends-on): Add signal, msvc-inval.
4339         (configure.ac): Use the common idioms.
4340         (Maintainer): Add me.
4341         * tests/test-signal-c++.cc: Check the signature of raise.
4342         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4343
4344 2011-09-23  Bruno Haible  <bruno@clisp.org>
4345
4346         pipe2: Fix compilation on pre-C99 compilers.
4347         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4348
4349 2011-09-23  Bruno Haible  <bruno@clisp.org>
4350
4351         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4352         * lib/msvc-nothrow.h: New file.
4353         * lib/msvc-nothrow.c: New file.
4354         * m4/msvc-nothrow.m4: New file.
4355         * modules/msvc-nothrow: New file.
4356         * lib/dup2.c: Include msvc-nothrow.h.
4357         (rpl_dup2): No need to protect _get_osfhandle call here.
4358         * lib/accept4.c: Include msvc-nothrow.h.
4359         * lib/error.c: Likewise.
4360         * lib/fcntl.c: Likewise.
4361         * lib/lseek.c: Likewise.
4362         * lib/nonblocking.c: Likewise.
4363         * lib/poll.c: Likewise.
4364         * lib/read.c: Likewise.
4365         * lib/select.c: Likewise.
4366         * lib/sockets.h: Likewise.
4367         * lib/sockets.c: Likewise.
4368         * lib/stdio-read.c: Likewise.
4369         * lib/stdio-write.c: Likewise.
4370         * lib/write.c: Likewise.
4371         * lib/w32sock.h: Likewise.
4372         * lib/w32spawn.h: Likewise.
4373         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4374         * lib/fsync.c: Likewise.
4375         * lib/isapipe.c: Likewise.
4376         * modules/dup2 (Depends-on): Add msvc-nothrow.
4377         * modules/accept4 (Depends-on): Likewise.
4378         * modules/error (Depends-on): Likewise.
4379         * modules/fcntl (Depends-on): Likewise.
4380         * modules/lseek (Depends-on): Likewise.
4381         * modules/nonblocking (Depends-on): Likewise.
4382         * modules/poll (Depends-on): Likewise.
4383         * modules/read (Depends-on): Likewise.
4384         * modules/select (Depends-on): Likewise.
4385         * modules/sockets (Depends-on): Likewise.
4386         * modules/sigpipe (Depends-on): Likewise.
4387         * modules/write (Depends-on): Likewise.
4388         * modules/accept (Depends-on): Likewise.
4389         * modules/bind (Depends-on): Likewise.
4390         * modules/connect (Depends-on): Likewise.
4391         * modules/gethostname (Depends-on): Likewise.
4392         * modules/getpeername (Depends-on): Likewise.
4393         * modules/getsockname (Depends-on): Likewise.
4394         * modules/getsockopt (Depends-on): Likewise.
4395         * modules/ioctl (Depends-on): Likewise.
4396         * modules/listen (Depends-on): Likewise.
4397         * modules/recv (Depends-on): Likewise.
4398         * modules/recvfrom (Depends-on): Likewise.
4399         * modules/send (Depends-on): Likewise.
4400         * modules/sendto (Depends-on): Likewise.
4401         * modules/setsockopt (Depends-on): Likewise.
4402         * modules/shutdown (Depends-on): Likewise.
4403         * modules/socket (Depends-on): Likewise.
4404         * modules/execute (Depends-on): Likewise.
4405         * modules/spawn-pipe (Depends-on): Likewise.
4406         * modules/flock (Depends-on): Likewise.
4407         * modules/fsync (Depends-on): Likewise.
4408         * modules/isapipe (Depends-on): Likewise.
4409         * tests/test-cloexec.c: Include msvc-nothrow.h.
4410         * tests/test-dup-safer.c: Likewise.
4411         * tests/test-dup2.c: Likewise.
4412         * tests/test-dup3.c: Likewise.
4413         * tests/test-fcntl.c: Likewise.
4414         * tests/test-pipe.c: Likewise.
4415         * tests/test-pipe2.c: Likewise.
4416         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4417         * modules/unistd-safer-tests (Depends-on): Likewise.
4418         * modules/dup2-tests (Depends-on): Likewise.
4419         * modules/dup3-tests (Depends-on): Likewise.
4420         * modules/fcntl-tests (Depends-on): Likewise.
4421         * modules/pipe-posix-tests (Depends-on): Likewise.
4422         * modules/pipe2-tests (Depends-on): Likewise.
4423
4424 2011-09-23  Bruno Haible  <bruno@clisp.org>
4425
4426         dup2: Make code more maintainable.
4427         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4428         (rpl_dup2): Use it.
4429         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4430         * modules/dup2 (configure.ac): Invoke it.
4431         Reported by Paul Eggert.
4432
4433 2011-09-23  Bruno Haible  <bruno@clisp.org>
4434
4435         msvc-inval: Fix compilation error.
4436         * lib/msvc-inval.h: Include <excpt.h>.
4437
4438 2011-09-23  Bruno Haible  <bruno@clisp.org>
4439
4440         mkdir: Tweak for MSVC 9.
4441         * lib/sys_stat.in.h: Update comments.
4442         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4443
4444         Tests for module 'chdir'.
4445         * modules/chdir-tests: New file.
4446         * tests/test-chdir.c: New file.
4447
4448         New module 'chdir'.
4449         * modules/chdir: New file.
4450         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4451         (chdir): New declaration.
4452         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4453         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4454         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4455         * tests/test-unistd-c++.cc: Check signature of chdir.
4456         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4457         * modules/chdir-long (Depends-on): Add chdir.
4458         * modules/fchdir (Depends-on): Likewise.
4459         * modules/rename (Depends-on): Likewise.
4460         * modules/savewd (Depends-on): Likewise.
4461
4462         rmdir: Support for mingw, MSVC 9.
4463         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4464         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4465
4466         getcwd: Tweak for MSVC 9.
4467         * lib/unistd.in.h: Update comments.
4468         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4469
4470 2011-09-22  Bruno Haible  <bruno@clisp.org>
4471
4472         strerror_r-posix: Avoid a link error on MSVC.
4473         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4474         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4475
4476 2011-09-22  Bruno Haible  <bruno@clisp.org>
4477
4478         select: Avoid link errors on MSVC.
4479         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4480         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4481         * modules/pselect (Link): Likewise.
4482         * NEWS: Mention the change.
4483         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4484         test-select-stdin against $(LIB_SELECT).
4485         * modules/pselect-tests (Makefile.am): Link test-pselect against
4486         $(LIB_SELECT).
4487
4488 2011-09-22  Bruno Haible  <bruno@clisp.org>
4489
4490         select: Avoid compilation error on MSVC.
4491         * lib/select.c: Don't include <stdbool.h>.
4492
4493 2011-09-21  Bruno Haible  <bruno@clisp.org>
4494
4495         Consolidate all uses of PATH_MAX in *.m4 files.
4496         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4497         macros.
4498         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4499         and gl_PATHMAX_SNIPPET.
4500         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4502         * modules/chdir-long (Files): Add m4/pathmax.m4.
4503         * modules/getcwd (Files): Likewise.
4504
4505 2011-09-21  Bruno Haible  <bruno@clisp.org>
4506
4507         ftruncate: Un-deprecate, concentrate on Win32 support.
4508         * modules/ftruncate (Status, Notice): Remove sections.
4509         (Depends-on): Add largefile.
4510         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4511         non-mingw platforms.
4512         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4513         include <io.h>.
4514         * modules/perror-tests (Depends-on): Add ftruncate.
4515         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4516         'ftruncate' module.
4517
4518 2011-09-21  Bruno Haible  <bruno@clisp.org>
4519
4520         Add dependencies to new dirent related modules.
4521         * modules/opendir (Depends-on): Add closedir.
4522         * modules/getcwd (Depends-on): Add opendir, closedir.
4523         * modules/dirent-safer-tests (Depends-on): Likewise.
4524         * modules/fdopendir-tests (Depends-on): Likewise.
4525         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4526         * modules/renameat-tests (Depends-on): Likewise.
4527
4528 2011-09-21  Bruno Haible  <bruno@clisp.org>
4529
4530         opendir: Avoid compilation error on mingw.
4531         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4532         * modules/opendir (Depends-on): Add unistd.
4533
4534 2011-09-21  Bruno Haible  <bruno@clisp.org>
4535
4536         ftruncate tests: Avoid a test failure on mingw.
4537         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4538
4539 2011-09-21  Bruno Haible  <bruno@clisp.org>
4540
4541         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4542         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4543         native Windows.
4544
4545 2011-09-21  Bruno Haible  <bruno@clisp.org>
4546
4547         New module 'fdopen'.
4548         * lib/stdio.in.h (fdopen): New declaration.
4549         * lib/fdopen.c: New file.
4550         * m4/fdopen.m4: New file.
4551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4552         REPLACE_FDOPEN.
4553         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4554         REPLACE_FDOPEN.
4555         * modules/fdopen: New file.
4556         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4557         * tests/test-stdio-c++.cc: Check signature of fdopen.
4558         * doc/posix-functions/fdopen.texi: Mention the new module.
4559
4560 2011-09-21  Bruno Haible  <bruno@clisp.org>
4561
4562         unlockpt tests: Avoid test failure on NetBSD 5.1.
4563         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4564         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4565
4566 2011-09-21  Bruno Haible  <bruno@clisp.org>
4567
4568         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4569         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4570         * tests/test-getlogin_r.c (main): Likewise.
4571
4572 2011-09-20  Bruno Haible  <bruno@clisp.org>
4573
4574         time tests: Don't require pid_t.
4575         * doc/posix-headers/time.texi: Revert last change.
4576         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4577         * tests/test-time.c: Comment out the check for pid_t.
4578
4579 2011-09-20  Bruno Haible  <bruno@clisp.org>
4580
4581         fsync tests: Avoid a test failure on mingw.
4582         * tests/test-fsync.c (main): Allow a failure with EIO.
4583
4584 2011-09-20  Bruno Haible  <bruno@clisp.org>
4585
4586         euidaccess: Update comments.
4587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4588
4589 2011-09-20  Bruno Haible  <bruno@clisp.org>
4590
4591         Ensure EBADF returns for socket functions on mingw.
4592         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4593         descriptor is invalid.
4594         * lib/bind.c (rpl_bind): Likewise.
4595         * lib/connect.c (rpl_connect): Likewise.
4596         * lib/getpeername.c (rpl_getpeername): Likewise.
4597         * lib/getsockname.c (rpl_getsockname): Likewise.
4598         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4599         * lib/listen.c (rpl_listen): Likewise.
4600         * lib/recv.c (rpl_recv): Likewise.
4601         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4602         * lib/send.c (rpl_send): Likewise.
4603         * lib/sendto.c (rpl_sendto): Likewise.
4604         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4605         * lib/shutdown.c (rpl_shutdown): Likewise.
4606
4607 2011-09-20  Bruno Haible  <bruno@clisp.org>
4608
4609         select tests: EBADF tests.
4610         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4611         test_bad_fd): New functions.
4612         (test_function): Invoke also test_bad_fd.
4613
4614 2011-09-20  Bruno Haible  <bruno@clisp.org>
4615
4616         Tests for module 'posix_spawn_file_actions_addopen.
4617         * modules/posix_spawn_file_actions_addopen-tests: New file.
4618         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4619
4620         Tests for module 'posix_spawn_file_actions_adddup2'.
4621         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4622         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4623
4624         Tests for module 'posix_spawn_file_actions_addclose'.
4625         * modules/posix_spawn_file_actions_addclose-tests: New file.
4626         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4627
4628 2011-09-20  Bruno Haible  <bruno@clisp.org>
4629
4630         Tests for module 'unlockpt'.
4631         * modules/unlockpt-tests: New file.
4632         * tests/test-unlockpt.c: New file.
4633         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4634
4635         Tests for module 'grantpt'.
4636         * modules/grantpt-tests: New file.
4637         * tests/test-grantpt.c: New file.
4638         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4639
4640 2011-09-20  Bruno Haible  <bruno@clisp.org>
4641
4642         freopen tests: EBADF tests.
4643         * tests/test-freopen.c: Include errno.h, unistd.h.
4644         (main): Add tests for EBADF, commented out for the moment.
4645
4646         fclose tests: EBADF tests.
4647         * tests/test-fclose.c (main): Add tests for EBADF.
4648
4649         fflush tests: EBADF tests.
4650         * tests/test-fflush.c: Include errno.h, macros.h.
4651         (main): Add tests for EBADF.
4652
4653         ftello tests: EBADF tests.
4654         * tests/test-ftello4.sh: New file.
4655         * tests/test-ftello4.c: New file.
4656         * modules/ftello-tests (Files): Add them.
4657         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4658
4659         fseeko tests: EBADF tests.
4660         * tests/test-fseeko4.sh: New file.
4661         * tests/test-fseeko4.c: New file.
4662         * modules/fseeko-tests (Files): Add them.
4663         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4664
4665         Tests for function fputc().
4666         * modules/fputc-tests: New file.
4667         * tests/test-fputc.c: New file.
4668         * modules/stdio-tests (Depends-on): Add fputc-tests.
4669
4670         Tests for function fgetc().
4671         * modules/fgetc-tests: New file.
4672         * tests/test-fgetc.c: New file.
4673         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4674
4675         Tests for function fdopen().
4676         * modules/fdopen-tests: New file.
4677         * tests/test-fdopen.c: New file.
4678         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4679
4680         Tests for module 'vdprintf'.
4681         * modules/vdprintf-tests: New file.
4682         * tests/test-vdprintf.c: New file.
4683
4684         Tests for module 'dprintf'.
4685         * modules/dprintf-tests: New file.
4686         * tests/test-dprintf.c: New file.
4687
4688 2011-09-20  Bruno Haible  <bruno@clisp.org>
4689
4690         Tests for module 'ioctl'.
4691         * modules/ioctl-tests: New file.
4692         * tests/test-ioctl.c: New file.
4693
4694 2011-09-20  Bruno Haible  <bruno@clisp.org>
4695
4696         fcntl tests: EBADF tests.
4697         * tests/test-fcntl.c (main): Add more tests for EBADF.
4698
4699 2011-09-20  Bruno Haible  <bruno@clisp.org>
4700
4701         utimensat tests: EBADF tests.
4702         * tests/test-utimensat.c (main): Add tests for EBADF.
4703
4704         renameat tests: EBADF tests.
4705         * tests/test-renameat.c (main): Add tests for EBADF.
4706
4707         mkfifoat tests: EBADF tests.
4708         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4709
4710         readlinkat tests: EBADF tests.
4711         * tests/test-readlinkat.c (main): Add tests for EBADF.
4712
4713         symlinkat tests: EBADF tests.
4714         * tests/test-symlinkat.c (main): Add tests for EBADF.
4715
4716         linkat tests: EBADF tests.
4717         * tests/test-linkat.c (main): Add tests for EBADF.
4718
4719         Tests for module 'faccessat'.
4720         * modules/faccessat-tests: New file.
4721         * tests/test-faccessat.c: New file.
4722
4723         fdopendir tests: EBADF tests.
4724         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4725
4726         openat tests: EBADF tests.
4727         * tests/test-fchownat.c (main): Add tests for EBADF.
4728         * tests/test-fstatat.c (main): Likewise.
4729         * tests/test-mkdirat.c (main): Likewise.
4730         * tests/test-openat.c (main): Likewise.
4731         * tests/test-unlinkat.c (main): Likewise.
4732         * tests/test-fchmodat.c: New file.
4733         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4734         (Makefile.am): Also run 'test-fchmodat'.
4735
4736 2011-09-20  Bruno Haible  <bruno@clisp.org>
4737
4738         utimens, futimens, fdutimensat tests: EBADF tests.
4739         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4740
4741         Tests for function fstat().
4742         * modules/fstat-tests: New file.
4743         * tests/test-fstat.c: New file.
4744         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4745
4746 2011-09-20  Bruno Haible  <bruno@clisp.org>
4747
4748         test-ttyname_r tests: EBADF tests.
4749         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4750
4751         Tests for module 'isatty'.
4752         * modules/isatty-tests: New file.
4753         * tests/test-isatty.c: New file.
4754
4755         Tests for module 'write'.
4756         * modules/write-tests: New file.
4757         * tests/test-write.c: New file.
4758
4759         Tests for module 'read'.
4760         * modules/read-tests: New file.
4761         * tests/test-read.c: New file.
4762
4763         pwrite tests: EBADF tests.
4764         * tests/test-pwrite.c (main): Add tests for EBADF.
4765
4766         pread tests: EBADF tests.
4767         * tests/test-pread.c (main): Add tests for EBADF.
4768
4769         lseek tests: EBADF tests.
4770         * tests/test-lseek.c (main): Add more tests for EBADF.
4771
4772         Tests for module 'ftruncate'.
4773         * modules/ftruncate-tests: New file.
4774         * tests/test-ftruncate.sh: New file.
4775         * tests/test-ftruncate.c: New file.
4776
4777         fsync tests: EBADF tests.
4778         * tests/test-fsync.c (main): Add more tests for EBADF.
4779
4780         fdatasync tests: EBADF tests.
4781         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4782
4783         Tests for module 'fchown'.
4784         * modules/fchown-tests: New file.
4785         * tests/test-fchown.c: New file.
4786
4787         Tests for module 'fchmod'.
4788         * modules/fchmod-tests: New file.
4789         * tests/test-fchmod.c: New file.
4790
4791         fchdir tests: EBADF tests.
4792         * tests/test-fchdir.c (main): Add more tests for EBADF.
4793
4794         dup2 tests: EBADF tests.
4795         * tests/test-dup2.c (main): Add more tests for EBADF.
4796
4797         Tests for module 'dup'.
4798         * modules/dup-tests: New file.
4799         * tests/test-dup.c: New file.
4800
4801         Tests for module 'close'.
4802         * modules/close-tests: New file.
4803         * tests/test-close.c: New file.
4804
4805 2011-09-20  Bruno Haible  <bruno@clisp.org>
4806
4807         Tests for module 'shutdown'.
4808         * modules/shutdown-tests: New file.
4809         * tests/test-shutdown.c: New file.
4810
4811         Tests for module 'setsockopt'.
4812         * modules/setsockopt-tests: New file.
4813         * tests/test-setsockopt.c: New file.
4814
4815         Tests for module 'sendto'.
4816         * modules/sendto-tests: New file.
4817         * tests/test-sendto.c: New file.
4818
4819         Tests for module 'send'.
4820         * modules/send-tests: New file.
4821         * tests/test-send.c: New file.
4822
4823         Tests for module 'recvfrom'.
4824         * modules/recvfrom-tests: New file.
4825         * tests/test-recvfrom.c: New file.
4826
4827         Tests for module 'recv'.
4828         * modules/recv-tests: New file.
4829         * tests/test-recv.c: New file.
4830
4831         Tests for module 'listen'.
4832         * modules/listen-tests: New file.
4833         * tests/test-listen.c: New file.
4834
4835         Tests for module 'getsockopt'.
4836         * modules/getsockopt-tests: New file.
4837         * tests/test-getsockopt.c: New file.
4838
4839         Tests for module 'getsockname'.
4840         * modules/getsockname-tests: New file.
4841         * tests/test-getsockname.c: New file.
4842
4843         Tests for module 'getpeername'.
4844         * modules/getpeername-tests: New file.
4845         * tests/test-getpeername.c: New file.
4846
4847         Tests for module 'connect'.
4848         * modules/connect-tests: New file.
4849         * tests/test-connect.c: New file.
4850
4851         Tests for module 'bind'.
4852         * modules/bind-tests: New file.
4853         * tests/test-bind.c: New file.
4854
4855         accept4 tests: Fix for native Windows.
4856         * tests/test-accept4.c: Include sockets.h.
4857         (main): Invoke gl_sockets_startup.
4858         * modules/accept4-tests (Depends-on): Add sockets.
4859
4860         accept tests: Fix for native Windows.
4861         * tests/test-accept.c: Include sockets.h.
4862         (main): Invoke gl_sockets_startup.
4863         * modules/accept-tests (Depends-on): Add sockets.
4864
4865 2011-09-19  Bruno Haible  <bruno@clisp.org>
4866
4867         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4868         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4869         do...while(0).
4870         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4871         Suggested by Paul Eggert.
4872
4873 2011-09-19  Bruno Haible  <bruno@clisp.org>
4874
4875         sched: Ensure pid_t is defined.
4876         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4877         not define pid_t.
4878         * lib/sched.in.h: Include <sys/types.h>.
4879         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4881
4882 2011-09-19  Bruno Haible  <bruno@clisp.org>
4883
4884         msvc-inval: Ensure the entire expansion is a single statement.
4885         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4886         of braces.
4887
4888 2011-09-19  Jim Meyering  <meyering@redhat.com>
4889
4890         tests: use printf, not echo in init.sh's warn_ function
4891         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4892         misbehave when given strings containing a backslash or starting
4893         with e.g., -n.  James Youngman suggested setting IFS.
4894
4895 2011-09-19  Eric Blake  <eblake@redhat.com>
4896
4897         futimens: enhance test
4898         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4899         closed non-negative fd.
4900
4901         date: accept 'hence' as opposite of 'ago'
4902         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4903         * tests/test-parse-datetime.c (main): Enhance test.
4904         Suggested by Jesse Wilson.
4905
4906 2011-09-19  Jim Meyering  <meyering@redhat.com>
4907
4908         getcwd: don't fail in a deep directory on a system without openat
4909         Before this change, getcwd would fail when called from a directory
4910         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4911         the non-openat implementation used "..", "../..", "../../..", etc.
4912         to access ancestor directories.  With too many, that string would
4913         be longer than PATH_MAX.
4914         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4915         using gnulib's openat replacement.
4916         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4917         we're using the replacement function.
4918
4919 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4920
4921         maint.mk: avoid warnings from perl about missing files
4922         * top/maint.mk (def_sym_regex): Ignore files listed in
4923         $(gl_other_headers_) that do not exist, say because a project
4924         does not use a corresponding module.
4925
4926 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4927
4928         stat: use pathmax.h only if needed
4929         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4930         This is better for Emacs, which does not have a mingw port and
4931         therefore can avoid the pathmax module.
4932
4933         utimens: remove dependency on dup2
4934         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4935         to work around the Linux kernel bug.
4936         * modules/utimens (Depends-on): Remove dup2.
4937
4938 2011-09-18  Bruno Haible  <bruno@clisp.org>
4939
4940         inet_ntop, inet_pton: Look for it also in libresolv.
4941         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4942         libnsl, search for it in libresolv.
4943         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4944         Needed on Solaris 7.
4945
4946 2011-09-18  Bruno Haible  <bruno@clisp.org>
4947
4948         accept, accept4 tests: Avoid link error on Solaris.
4949         * modules/accept-tests (Makefile.am): Link test-accept against
4950         $(LIBSOCKET).
4951         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4952         $(LIBSOCKET).
4953
4954         accept4: Avoid link error on Solaris.
4955         * modules/accept4 (Link): New section.
4956
4957         socket functions: Avoid link errors on Solaris.
4958         * modules/accept (Depends-on): Add socketlib.
4959         (Link): New section.
4960         * modules/bind (Depends-on): Add socketlib.
4961         (Link): New section.
4962         * modules/connect (Depends-on): Add socketlib.
4963         (Link): New section.
4964         * modules/getpeername (Depends-on): Add socketlib.
4965         (Link): New section.
4966         * modules/getsockname (Depends-on): Add socketlib.
4967         (Link): New section.
4968         * modules/getsockopt (Depends-on): Add socketlib.
4969         (Link): New section.
4970         * modules/listen (Depends-on): Add socketlib.
4971         (Link): New section.
4972         * modules/recv (Depends-on): Add socketlib.
4973         (Link): New section.
4974         * modules/recvfrom (Depends-on): Add socketlib.
4975         (Link): New section.
4976         * modules/send (Depends-on): Add socketlib.
4977         (Link): New section.
4978         * modules/sendto (Depends-on): Add socketlib.
4979         (Link): New section.
4980         * modules/setsockopt (Depends-on): Add socketlib.
4981         (Link): New section.
4982         * modules/shutdown (Depends-on): Add socketlib.
4983         (Link): New section.
4984         * modules/socket (Depends-on): Add socketlib.
4985         (Link): New section.
4986
4987 2011-09-18  Bruno Haible  <bruno@clisp.org>
4988
4989         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4990         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4991         than 5 seconds.
4992         * modules/ptsname-tests (configure.ac): Test for alarm.
4993
4994 2011-09-18  Bruno Haible  <bruno@clisp.org>
4995
4996         posix_spawn_file_actions_add*: Fix module dependencies.
4997         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4998         posix_spawn_file_actions_init.
4999         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5000         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5001
5002 2011-09-18  Bruno Haible  <bruno@clisp.org>
5003
5004         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5005         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5006         * tests/test-renameat.c (main): Likewise.
5007
5008 2011-09-18  Bruno Haible  <bruno@clisp.org>
5009
5010         Tests for module 'accept4'.
5011         * modules/accept4-tests: New file.
5012         * tests/test-accept4.c: New file.
5013
5014 2011-09-18  Bruno Haible  <bruno@clisp.org>
5015
5016         Tests for module 'accept'.
5017         * modules/accept-tests: New file.
5018         * tests/test-accept.c: New file.
5019
5020 2011-09-18  Bruno Haible  <bruno@clisp.org>
5021
5022         dup2: Support for MSVC.
5023         * lib/dup2.c: Include msvc-inval.h.
5024         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5025         _get_osfhandle calls.
5026         * modules/dup2 (Depends-on): Add msvc-inval.
5027         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5028
5029         New module 'msvc-inval'.
5030         * lib/msvc-inval.h: New file.
5031         * lib/msvc-inval.c: New file.
5032         * m4/msvc-inval.m4: New file.
5033         * modules/msvc-inval: New file.
5034
5035 2011-09-17  Bruno Haible  <bruno@clisp.org>
5036
5037         Tests for module 'pclose'.
5038         * modules/pclose-tests: New file.
5039
5040         New module 'pclose'.
5041         * lib/stdio.in.h (pclose): New declaration.
5042         * lib/pclose.c: New file.
5043         * m4/pclose.m4: New file.
5044         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5045         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5046         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5047         * modules/pclose: New file.
5048         * modules/popen-tests (Depends-on): Add pclose.
5049         * modules/popen-safer-tests (Depends-on): Likewise.
5050         * doc/posix-functions/pclose.texi: Mention the new module.
5051
5052 2011-09-17  Bruno Haible  <bruno@clisp.org>
5053
5054         popen: Support for MSVC.
5055         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5056         * lib/popen.c (popen): Provide alternate definition for native Windows.
5057         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5059         * modules/popen (Depends-on, configure.ac): Update condition.
5060         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5061         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5062         fixed.
5063
5064 2011-09-17  Bruno Haible  <bruno@clisp.org>
5065
5066         isnanl, isnand, isnanf: Work around MSVC bug.
5067         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5068
5069 2011-09-17  Bruno Haible  <bruno@clisp.org>
5070
5071         sys_socket tests: Fix recent mistake.
5072         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5073
5074 2011-09-17  Bruno Haible  <bruno@clisp.org>
5075
5076         putenv: Support for MSVC.
5077         * modules/putenv (Depends-on): Add environ.
5078         * lib/putenv.c (environ): Disable declaration.
5079         * lib/unistd.in.h: Update comment.
5080
5081 2011-09-17  Bruno Haible  <bruno@clisp.org>
5082
5083         math: Avoid macro redefinition warnings on MSVC.
5084         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5085         Undefine before redefining.
5086
5087 2011-09-17  Bruno Haible  <bruno@clisp.org>
5088
5089         doc: Mention functions which are declared as macros.
5090         * doc/posix-functions/*[fl].texi: Mention that some functions are
5091         defined as macros with arguments only.
5092
5093 2011-09-17  Bruno Haible  <bruno@clisp.org>
5094
5095         Add dependencies to new dirent related modules.
5096         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5097         * modules/fts (Depends-on): Likewise.
5098         * modules/glob (Depends-on): Likewise.
5099         * modules/savedir (Depends-on): Likewise.
5100         * modules/scandir (Depends-on): Likewise.
5101         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5102         * modules/fdopendir (Depends-on): Add opendir.
5103
5104 2011-09-17  Bruno Haible  <bruno@clisp.org>
5105
5106         inet_pton: Support for MSVC on Windows Vista or newer.
5107         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5108         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5109         HAVE_DECL_INET_PTON is defined.
5110         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5111         On platforms with <winsock2.h>, test whether inet_pton is declared in
5112         <ws2tcpip.h>. If so, arrange to replace it.
5113         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5114         REPLACE_INET_PTON.
5115         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5116         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5117         (Depends-on, configure.ac): Update condition.
5118         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5119
5120 2011-09-17  Bruno Haible  <bruno@clisp.org>
5121
5122         inet_ntop: Support for MSVC on Windows Vista or newer.
5123         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5124         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5125         HAVE_DECL_INET_NTOP is defined.
5126         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5127         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5128         <ws2tcpip.h>. If so, arrange to replace it.
5129         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5130         REPLACE_INET_NTOP.
5131         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5132         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5133         (Depends-on, configure.ac): Update condition.
5134         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5135
5136 2011-09-16  Eric Blake  <eblake@redhat.com>
5137
5138         test-fsync: yet another enhancement
5139         * tests/test-fsync.c (main): Also test behavior on read-only text
5140         file.
5141
5142 2011-09-16  Bruno Haible  <bruno@clisp.org>
5143
5144         Enhance fsync, fdatasync tests.
5145         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5146         * tests/test-fdatasync.c (main): Likewise.
5147
5148 2011-09-16  Bruno Haible  <bruno@clisp.org>
5149
5150         Support for MSVC compiler: Ensure mode_t gets defined.
5151         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5152         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5154         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5155         * tests/test-fcntl-h.c: Check that mode_t is defined.
5156         * tests/test-sys_stat.c: Likewise.
5157         * tests/test-sys_types.c: Likewise.
5158         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5159         * doc/posix-headers/sys_stat.texi: Likewise.
5160         * doc/posix-headers/sys_types.texi: Likewise.
5161
5162 2011-09-16  Bruno Haible  <bruno@clisp.org>
5163
5164         sys_stat: Support for MSVC.
5165         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5166         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5167         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5168         MSVC.
5169
5170 2011-09-16  Bruno Haible  <bruno@clisp.org>
5171
5172         Support for MSVC compiler: Ensure off_t gets defined.
5173         * lib/unistd.in.h: Include <sys/types.h>.
5174         * tests/test-fcntl-h.c: Check that off_t is defined.
5175         * tests/test-sys_stat.c: Likewise.
5176         * tests/test-sys_types.c: Likewise.
5177
5178 2011-09-16  Eric Blake  <eblake@redhat.com>
5179
5180         fdatasync: port to Solaris
5181         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5182         * modules/fdatasync (Link): Document it.
5183         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5184
5185         fdatasync: port to MacOS X 10.7
5186         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5187         declared.
5188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5189         * modules/unistd (Makefile.am): Substitute it.
5190         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5191         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5192
5193         fdatasync: minor improvements
5194         * modules/fdatasync (Depends-on): Add condition for fsync.
5195         * lib/fdatasync.c (fdatasync): Add comment.
5196         * tests/test-unistd-c++.cc: Test fdatasync.
5197
5198         unistd: update refs to newer POSIX
5199         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5200         Suggested by Bruno Haible.
5201
5202         fdatasync: new module
5203         * modules/fsync (Description): Document difference to fdatasync.
5204         * modules/fdatasync: New module.
5205         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5206         * lib/fdatasync.c (fdatasync): Likewise.
5207         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5208         defaults.
5209         * modules/unistd (Makefile.am): Set witnesses.
5210         * lib/unistd.in.h (fdatasync): Declare.
5211         * MODULES.html.sh: Document it.
5212         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5213         * modules/fdatasync-tests: New test.
5214         * tests/test-fdatasync.c: Likewise.
5215
5216 2011-09-16  Eric Blake  <eblake@redhat.com>
5217
5218         test-fsync: enhance tests
5219         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5220         * tests/test-fsync.c (main): Enhance test.
5221
5222 2011-09-15  Bruno Haible  <bruno@clisp.org>
5223
5224         Support for MSVC compiler: Ensure ssize_t gets defined.
5225         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5226         * doc/posix-headers/stdio.texi: Likewise.
5227         * modules/stdio (Depends-on): Add ssize_t.
5228         * modules/sys_socket (Depends-on): Likewise.
5229         * modules/sys_types (Depends-on): Likewise.
5230         * modules/sys_uio (Depends-on): Likewise.
5231         * modules/unistd (Depends-on): Likewise.
5232         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5233         * tests/test-sys_types.c: Check that ssize_t is defined.
5234
5235 2011-09-14  Bruno Haible  <bruno@clisp.org>
5236
5237         Avoid using #, the m4 comment starter character, near brackets.
5238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5239         delimiter character in sed expressions.
5240         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5241         Suggested by Eric Blake.
5242
5243         Properly quote AC_CHECK_DECLS' 4th argument.
5244         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5245         argument.
5246         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5247         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5248         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5249         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5250         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5251         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5253         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5254         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5255         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5256         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5257         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5258         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5259         * m4/isinf.m4 (gl_ISINF): Likewise.
5260         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5261         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5262         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5263         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5265         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5266         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5267         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5268         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5269         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5270         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5271         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5273         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5275         Reported by Eric Blake.
5276
5277         Properly quote AC_CHECK_DECL's 4th argument.
5278         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5279         argument.
5280         * m4/argp.m4 (gl_ARGP): Likewise.
5281         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5282         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5283         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5284         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5285         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5286         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5287         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5288         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5289         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5290         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5291         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5292         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5293         Reported by Eric Blake.
5294
5295 2011-09-14  Eric Blake  <eblake@redhat.com>
5296
5297         opendir: avoid compile warning
5298         * lib/opendir.c (includes): Always include errno.h.
5299         Reported by Tatsuro MATSUOKA.
5300
5301 2011-09-14  Jim Meyering  <meyering@redhat.com>
5302
5303         maint.mk: sc_tight_scope: propagate failure from sub-make
5304         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5305         Reported by Martin von Gagern.
5306
5307 2011-09-13  Bruno Haible  <bruno@clisp.org>
5308
5309         tempname: Support for MSVC.
5310         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5311         MSVC.
5312         * modules/tempname (Depends-on): Add fcntl-h.
5313
5314 2011-09-13  Bruno Haible  <bruno@clisp.org>
5315
5316         sys_time: Support for MSVC.
5317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5318         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5319         include <winsock2.h>.
5320         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5321         function declarations that collide with POSIX.
5322         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5323         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5324
5325 2011-09-13  Bruno Haible  <bruno@clisp.org>
5326
5327         stat: Support for MSVC.
5328         * lib/stat.c: Include pathmax.h.
5329         * modules/stat (Depends-on): Add pathmax.
5330
5331         pathmax: Support for native Windows.
5332         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5333
5334 2011-09-12  Bruno Haible  <bruno@clisp.org>
5335
5336         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5337         * lib/dirent.in.h (struct dirent): New type.
5338         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5339         DT_WHT): New macros.
5340         (DIR): New type.
5341         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5342         (readdir, rewinddir): New declarations.
5343         * lib/dirent-private.h: New file.
5344         * lib/opendir.c: New file.
5345         * lib/readdir.c: New file.
5346         * lib/rewinddir.c: New file.
5347         * lib/closedir.c: New file.
5348         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5349         * m4/opendir.m4: New file.
5350         * m4/readdir.m4: New file.
5351         * m4/rewinddir.m4: New file.
5352         * m4/closedir.m4: New file.
5353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5354         REPLACE_CLOSEDIR here.
5355         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5356         readdir, rewinddir are declared.
5357         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5358         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5359         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5360         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5361         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5362         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5363         * modules/opendir: New file.
5364         * modules/readdir: New file.
5365         * modules/rewinddir: New file.
5366         * modules/closedir: New file.
5367         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5368         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5369         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5370         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5371         * NEWS: Mention the 'fchdir' change.
5372
5373 2011-09-11  Bruno Haible  <bruno@clisp.org>
5374
5375         asm-underscore.m4: Support for MSVC.
5376         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5377         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5378
5379 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5380
5381         Doc about crypt functions.
5382         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5383         needing for _GNU_SOURCE to get crypt.
5384         * doc/posix-functions/encrypt.texi: Likewise.
5385         * doc/posix-functions/setkey.texi: Likewise.
5386
5387 2011-09-11  Bruno Haible  <bruno@clisp.org>
5388
5389         doc: Update regarding MSVC 9.
5390         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5391         tested".
5392         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5393         * doc/posix-headers/*.texi: Likewise.
5394         * doc/pastposix-functions/*.texi: Likewise.
5395         * doc/glibc-functions/*.texi: Likewise.
5396         * doc/glibc-headers/*.texi: Likewise.
5397
5398 2011-09-11  Bruno Haible  <bruno@clisp.org>
5399
5400         unistd et al.: Don't assume <unistd.h> exists.
5401         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5402         does not exist.
5403         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5404         exist. But include <stdlib.h>.
5405         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5406         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5407         symlink() does not exist.
5408         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5409         include <io.h> instead.
5410         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5411         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5412         include <direct.h> instead.
5413         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5415         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5416         <io.h> instead.
5417         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5418         correctly if the system does not have hard links.
5419         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5420         <direct.h> instead.
5421         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5422         it when looking for function declarations.
5423         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5424         <direct.h> and <io.h> instead.
5425         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5426
5427 2011-09-11  Bruno Haible  <bruno@clisp.org>
5428
5429         strcase: Support for MSVC.
5430         * modules/strcase (Status, Notice): Remove obsoletion mark.
5431         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5432         * doc/posix-functions/strncasecmp.texi: Likewise.
5433
5434         strings: Don't assume <strings.h> exists.
5435         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5436         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5437         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5438         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5439
5440 2011-09-11  Bruno Haible  <bruno@clisp.org>
5441
5442         dirent: Don't assume <dirent.h> exists.
5443         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5444         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5445         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5446         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5447
5448 2011-09-11  Bruno Haible  <bruno@clisp.org>
5449
5450         Fix wint_t on MSVC.
5451         * lib/wchar.in.h (wint_t): On MSVC, override it.
5452         * lib/wctype.in.h (wint_t): Likewise.
5453         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5454         MSVC.
5455         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5456         * doc/posix-headers/wctype.texi: Likewise.
5457
5458 2011-09-11  Bruno Haible  <bruno@clisp.org>
5459
5460         sys_types: Fix typo.
5461         * lib/sys_types.in.h: Fix typo in comment.
5462         Reported by Paul Eggert.
5463
5464         Support for MSVC compiler: Ensure size_t gets defined.
5465         * modules/strings (Depends-on): Add 'sys_types'.
5466         * modules/sys_uio (Depends-on): Likewise.
5467         * lib/sys_uio.in.h: Update comment.
5468
5469         C++ tests for module 'sys_types'.
5470         * modules/sys_types-c++-tests: New file.
5471         * tests/test-sys_types-c++.cc: New file.
5472
5473         Tests for module 'sys_types'.
5474         * modules/sys_types-tests: New file.
5475         * tests/test-sys_types.c: New file.
5476
5477         New module 'sys_types'.
5478         * lib/sys_types.in.h: New file.
5479         * m4/sys_types_h.m4: New file.
5480         * modules/sys_types: New file.
5481         * doc/posix-headers/sys_types.texi: Mention the new module and the
5482         size_t problem on MSVC 9.
5483
5484 2011-09-11  Bruno Haible  <bruno@clisp.org>
5485
5486         Support for MSVC compiler: Avoid division by a literal 0.
5487         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5489         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5490         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5491         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5492         * tests/infinity.h: New file.
5493         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5494         on MSVC.
5495         * tests/test-ceilf1.c: Include infinity.h.
5496         (main): Use Infinityf.
5497         * tests/test-ceil1.c: Include infinity.h.
5498         (main): Use Infinityd.
5499         * tests/test-ceill.c: Include infinity.h.
5500         (main): Use Infinityl.
5501         * tests/test-dprintf-posix.c: Include infinity.h.
5502         (test_function): Use Infinityd.
5503         * tests/test-floorf1.c: Include infinity.h.
5504         (main): Use Infinityf.
5505         * tests/test-floor1.c: Include infinity.h.
5506         (main): Use Infinityd.
5507         * tests/test-floorl.c: Include infinity.h.
5508         (main): Use Infinityl.
5509         * tests/test-fprintf-posix.c: Include infinity.h.
5510         (test_function): Use Infinityd.
5511         * tests/test-frexp.c: Include infinity.h.
5512         (main): Use Infinityd.
5513         * tests/test-frexpl.c: Include infinity.h.
5514         (main): Use Infinityl.
5515         * tests/test-isfinite.c: Include infinity.h.
5516         (test_isfinitef): Use Infinityf.
5517         (test_isfinited): Use Infinityd.
5518         (test_isfinitel): Use Infinityl.
5519         * tests/test-isinf.c: Include infinity.h.
5520         (test_isinff): Use Infinityf.
5521         (test_isinfd): Use Infinityd.
5522         (test_isinfl): Use Infinityl.
5523         * tests/test-isnan.c: Include infinity.h.
5524         (test_float): Use Infinityf.
5525         (test_double): Use Infinityd.
5526         (test_long_double): Use Infinityl.
5527         * tests/test-isnanf.h: Include infinity.h.
5528         (main): Use Infinityf.
5529         * tests/test-isnand.h: Include infinity.h.
5530         (main): Use Infinityd.
5531         * tests/test-isnanl.h: Include infinity.h.
5532         (main): Use Infinityl.
5533         * tests/test-ldexpl.c: Include infinity.h.
5534         (main): Use Infinityl.
5535         * tests/test-printf-posix.h: Include infinity.h.
5536         (test_function): Use Infinityd.
5537         * tests/test-roundf1.c: Include infinity.h.
5538         (main): Use Infinityf.
5539         * tests/test-round1.c: Include infinity.h.
5540         (main): Use Infinityd.
5541         * tests/test-roundl.c: Include infinity.h.
5542         (main): Use Infinityl.
5543         * tests/test-signbit.c: Include infinity.h.
5544         (test_signbitf): Use Infinityf.
5545         (test_signbitd): Use Infinityd.
5546         (test_signbitl): Use Infinityl.
5547         * tests/test-snprintf-posix.h: Include infinity.h.
5548         (test_function): Use Infinityd, Infinityl.
5549         * tests/test-sprintf-posix.h: Include infinity.h.
5550         (test_function): Use Infinityd, Infinityl.
5551         * tests/test-truncf1.c: Include infinity.h.
5552         (main): Use Infinityf.
5553         * tests/test-trunc1.c: Include infinity.h.
5554         (main): Use Infinityd.
5555         * tests/test-truncl.c: Include infinity.h.
5556         (main): Use Infinityl.
5557         * tests/test-vasnprintf-posix.c: Include infinity.h.
5558         (test_function): Use Infinityd, Infinityl.
5559         * tests/test-vasprintf-posix.c: Include infinity.h.
5560         (test_function): Use Infinityd, Infinityl.
5561         * modules/ceilf-tests (Files): Add tests/infinity.h.
5562         * modules/ceil-tests (Files): Likewise.
5563         * modules/ceill-tests (Files): Likewise.
5564         * modules/dprintf-posix-tests (Files): Likewise.
5565         * modules/floorf-tests (Files): Likewise.
5566         * modules/floor-tests (Files): Likewise.
5567         * modules/floorl-tests (Files): Likewise.
5568         * modules/fprintf-posix-tests (Files): Likewise.
5569         * modules/frexp-tests (Files): Likewise.
5570         * modules/frexp-nolibm-tests (Files): Likewise.
5571         * modules/frexpl-tests (Files): Likewise.
5572         * modules/frexpl-nolibm-tests (Files): Likewise.
5573         * modules/isfinite-tests (Files): Likewise.
5574         * modules/isinf-tests (Files): Likewise.
5575         * modules/isnan-tests (Files): Likewise.
5576         * modules/isnanf-tests (Files): Likewise.
5577         * modules/isnanf-nolibm-tests (Files): Likewise.
5578         * modules/isnand-tests (Files): Likewise.
5579         * modules/isnand-nolibm-tests (Files): Likewise.
5580         * modules/isnanl-tests (Files): Likewise.
5581         * modules/isnanl-nolibm-tests (Files): Likewise.
5582         * modules/ldexpl-tests (Files): Likewise.
5583         * modules/printf-posix-tests (Files): Likewise.
5584         * modules/roundf-tests (Files): Likewise.
5585         * modules/round-tests (Files): Likewise.
5586         * modules/roundl-tests (Files): Likewise.
5587         * modules/signbit-tests (Files): Likewise.
5588         * modules/snprintf-posix-tests (Files): Likewise.
5589         * modules/sprintf-posix-tests (Files): Likewise.
5590         * modules/truncf-tests (Files): Likewise.
5591         * modules/trunc-tests (Files): Likewise.
5592         * modules/truncl-tests (Files): Likewise.
5593         * modules/vasnprintf-posix-tests (Files): Likewise.
5594         * modules/vasprintf-posix-tests (Files): Likewise.
5595         * modules/vdprintf-posix-tests (Files): Likewise.
5596         * modules/vfprintf-posix-tests (Files): Likewise.
5597         * modules/vprintf-posix-tests (Files): Likewise.
5598         * modules/vsnprintf-posix-tests (Files): Likewise.
5599         * modules/vsprintf-posix-tests (Files): Likewise.
5600         * modules/xprintf-posix-tests (Files): Likewise.
5601
5602 2011-09-11  Bruno Haible  <bruno@clisp.org>
5603
5604         Ensure pid_t gets defined.
5605         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5606         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5607         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5608         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5609         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5610         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5611         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5612         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5613         * tests/test-fcntl-h.c: Check that pid_t is defined.
5614         * tests/test-sched.c: Likewise.
5615         * tests/test-termios.c: Likewise.
5616         * tests/test-time.c: Likewise.
5617         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5618         * doc/posix-headers/signal.texi: Likewise.
5619         * doc/posix-headers/sys_types.texi: Likewise.
5620         * doc/posix-headers/time.texi: Likewise.
5621
5622 2011-09-11  Bruno Haible  <bruno@clisp.org>
5623
5624         acl: Fix compilation on Solaris 10 (older version).
5625         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5626         of ACE_EVERYONE.
5627         * lib/set-mode-acl.c (qset_acl): Likewise.
5628         Reported by Christian Jullien <eligis@orange.fr>.
5629
5630 2011-09-10  Bruno Haible  <bruno@clisp.org>
5631
5632         iconv, unsetenv: Add support for MSVC compiler.
5633         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5634         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5635
5636 2011-09-10  Bruno Haible  <bruno@clisp.org>
5637
5638         *printf: Add support for MSVC compiler.
5639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5640         handles the exception caused by the %n directive. When cross-compiling,
5641         guess no on native Windows.
5642         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5643         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5644         emulate it through vsnprintf.
5645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5646         * doc/posix-functions/dprintf.texi: Update documentation regarding
5647         MSVC 9.
5648         * doc/posix-functions/fprintf.texi: Likewise.
5649         * doc/posix-functions/printf.texi: Likewise.
5650         * doc/posix-functions/snprintf.texi: Likewise.
5651         * doc/posix-functions/sprintf.texi: Likewise.
5652         * doc/posix-functions/swprintf.texi: Likewise.
5653         * doc/posix-functions/vdprintf.texi: Likewise.
5654         * doc/posix-functions/vfprintf.texi: Likewise.
5655         * doc/posix-functions/vprintf.texi: Likewise.
5656         * doc/posix-functions/vsnprintf.texi: Likewise.
5657         * doc/posix-functions/vsprintf.texi: Likewise.
5658         * doc/glibc-functions/asprintf.texi: Likewise.
5659         * doc/glibc-functions/obstack_printf.texi: Likewise.
5660         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5661         * doc/glibc-functions/vasprintf.texi: Likewise.
5662
5663 2011-09-10  Bruno Haible  <bruno@clisp.org>
5664
5665         nocrash: Add support for native Windows.
5666         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5667
5668 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5669             Bruno Haible  <bruno@clisp.org>
5670
5671         absolute-header, include-next: Add support for MSVC compiler.
5672         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5673         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5674         directory separator in #line directives.
5675         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5676         recognize also backslash as directory separator in #line directives.
5677
5678 2011-09-08  Jim Meyering  <meyering@redhat.com>
5679
5680         maint.mk: mark the post-release commit log with "maint: " prefix
5681         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5682         one-line commit-log summary.
5683
5684 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5685             Bruno Haible  <bruno@clisp.org>
5686
5687         Doc about crypt functions.
5688         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5689         systems.
5690         * doc/posix-functions/encrypt.texi: Likewise.
5691         * doc/posix-functions/setkey.texi: Likewise.
5692
5693 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5694
5695         * lib/gc.h: Fix copyright header.
5696
5697 2011-09-07  Bruno Haible  <bruno@clisp.org>
5698
5699         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5700         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5701         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5702
5703 2011-09-07  Bruno Haible  <bruno@clisp.org>
5704
5705         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5706         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5707         * lib/freopen.c: Likewise.
5708         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5709         * lib/lstat.c: Likewise.
5710         * lib/stat.c: Likewise.
5711         * lib/open.c: Use different syntax for include of <fcntl.h>.
5712         * lib/openat.c: Include fcntl.h again, explicitly.
5713
5714 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5715
5716         parse-datetime: document the newly accepted format
5717         * doc/parse-datetime.texi (Combined date and time of day items):
5718         New section.
5719
5720 2011-09-06  Bruno Haible  <bruno@clisp.org>
5721
5722         acl: Fix a test failure on newer Solaris 10 with ZFS.
5723         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5724         ENOSYS as no ACL.
5725         Reported by Jim Meyering.
5726
5727 2011-09-06  Bruno Haible  <bruno@clisp.org>
5728
5729         acl: Update for AIX >= 5.3 with NFS.
5730         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5731         ENOSYS as no ACL.
5732
5733         acl: Fix a test failure on AIX >= 5.3 with NFS.
5734         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5735         as no ACL.
5736
5737 2011-09-06  Bruno Haible  <bruno@clisp.org>
5738
5739         acl: Fix a test failure on IRIX 6.5 with NFS.
5740         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5741         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5742         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5743         * lib/copy-acl.c (qcopy_acl): Likewise.
5744
5745 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5746
5747         openat: port to AIX 7.1 with large files
5748         AIX 7.1 does a "#define openat open64at" if large files are in use,
5749         so we can't simply #undef openat.  Use the orig_openat trick (similar
5750         to orig_open in lib/open.c) to work around the problem.  Problem
5751         reported by Kevin Brott for GNU tar, in the thread containing
5752         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5753         * lib/openat.c (__need_system_fcntl_h): Define first.
5754         Include <fcntl.h> and <sys/types.h> before undefining.
5755         (orig_openat) [HAVE_OPENAT]: New inline function.
5756         (openat) [HAVE_OPENAT]: Do not undef.
5757         (rpl_openat): Use orig_openat, not openat.
5758
5759 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5760             Bruno Haible  <bruno@clisp.org>
5761
5762         acl: Avoid errors on NonStop Kernel.
5763         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5764         ENOTSUP errors.
5765
5766 2011-09-05  Bruno Haible  <bruno@clisp.org>
5767
5768         acl: Clean up Solaris code.
5769         * lib/acl-internal.h: Remove no-op #if.
5770         * lib/file-has-acl.c: Likewise.
5771         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5772         * lib/copy-acl.c (qcopy_acl): Likewise.
5773
5774 2011-09-05  Bruno Haible  <bruno@clisp.org>
5775
5776         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5777         binaries built on the original Solaris 10.
5778         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5779         trivial.
5780
5781 2011-09-05  Bruno Haible  <bruno@clisp.org>
5782
5783         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5784         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5785         10.
5786         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5787         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5788         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5789         instead of acl_get, facl_get, acl_set, facl_set.
5790
5791 2011-09-05  Bruno Haible  <bruno@clisp.org>
5792
5793         copy-file: Try unit tests on more file systems.
5794         * tests/test-copy-file-1.sh: New file.
5795         * tests/test-copy-file-2.sh: New file.
5796         * modules/copy-file-tests (Files): Add them.
5797         (Makefile.am): Add them to TESTS.
5798
5799         acl: Try unit tests on more file systems.
5800         * tests/test-file-has-acl-1.sh: New file.
5801         * tests/test-file-has-acl-2.sh: New file.
5802         * tests/test-set-mode-acl-1.sh: New file.
5803         * tests/test-set-mode-acl-2.sh: New file.
5804         * tests/test-copy-acl-1.sh: New file.
5805         * tests/test-copy-acl-2.sh: New file.
5806         * modules/acl-tests (Files): Add them.
5807         (Makefile.am): Add them to TESTS.
5808
5809 2011-09-04  Bruno Haible  <bruno@clisp.org>
5810
5811         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5812         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5813         10.
5814         (OLD_ALLOW, OLD_DENY): New macros.
5815         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5816         ACE_ACCESS_ALLOWED_ACE_TYPE.
5817         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5818         ACE_ACCESS_DENIED_ACE_TYPE.
5819         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5820         (NEW_ACE_EXECUTE): Fix value.
5821         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5822         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5823         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5824         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5825         NEW_ACE_SYNCHRONIZE): New macros.
5826         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5827         instead of acl_fromtext, acl_set, facl_set.
5828         Fixes a coreutils/tests/cp/perm failure.
5829
5830 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         openat: test for fstatat (..., 0) bug
5833         Further testing with tar suggests that fstatat (..., 0)
5834         does not work in general, on AIX 7.1; see
5835         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5836         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5837         replacement fstatat (which is what older AIX releases were using
5838         anyway).
5839         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5840         use is now changed to orig_fstatat.  This was probably the right
5841         thing to do anyway.
5842         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5843         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5844         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5845         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5846         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5847         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5848         if the bug is found.
5849
5850         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5851         This tests for another fstatat bug on AIX 7.1:
5852         fstatat (AT_FDCWD, ..., 0) does not work.  See
5853         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5854         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5855         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5856         (rpl_fstatat): Adjust so that it works around either (or both)
5857         bugs if present.
5858         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5859
5860 2011-09-03  Karl Berry  <karl@gnu.org>
5861
5862         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5863         in index entries.
5864
5865 2011-09-02  Bruno Haible  <bruno@clisp.org>
5866
5867         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5868         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5869         values of AR, ARFLAGS, RANLIB.
5870         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5871
5872 2011-09-02  Bruno Haible  <bruno@clisp.org>
5873
5874         Find 'ar' program that fits with --host argument.
5875         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5876
5877 2011-09-02  Bruno Haible  <bruno@clisp.org>
5878
5879         tests: init.sh: Support any non-GNU diff.
5880         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5881         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5882         Solaris 8.
5883
5884 2011-09-02  Bruno Haible  <bruno@clisp.org>
5885
5886         tests: init.sh: work also with any non-GNU diff that supports -u
5887         * tests/init.sh: Relax check for diff -u support.
5888         Rather than checking for GNU diff via --version, simply check
5889         for support for -u itself.  Useful at least on OpenBSD 4.9,
5890         AIX 7.1, IRIX 6.5, and Solaris 10.
5891
5892 2011-09-01  Bruno Haible  <bruno@clisp.org>
5893
5894         strtoimax, strtoumax: Document problem on HP-UX 11.
5895         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5896         * doc/posix-functions/strtoumax.texi: Likewise.
5897
5898 2011-09-01  Bruno Haible  <bruno@clisp.org>
5899
5900         strtoumax: Avoid link error on OSF/1 with DTK cc.
5901         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5902         defined as a function.
5903         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5904         strtoumax is defined, not whether it is declared.
5905
5906 2011-09-01  Bruno Haible  <bruno@clisp.org>
5907
5908         strtoimax: Avoid link error on OSF/1 with DTK cc.
5909         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5910         defined as a function.
5911         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5912         strtoimax is defined, not whether it is declared.
5913
5914 2011-09-01  Bruno Haible  <bruno@clisp.org>
5915
5916         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5917         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5918         as a function.
5919         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5920         whether it is declared.
5921
5922 2011-09-01  Bruno Haible  <bruno@clisp.org>
5923
5924         imaxabs: Avoid link error on OSF/1 with DTK cc.
5925         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5926         as a function.
5927         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5928         whether it is declared.
5929
5930 2011-09-01  Bruno Haible  <bruno@clisp.org>
5931
5932         Tests for module 'strtoumax'.
5933         * modules/strtoumax-tests: New file.
5934         * tests/test-strtoumax.c: New file.
5935
5936         Tests for module 'strtoimax'.
5937         * modules/strtoimax-tests: New file.
5938         * tests/test-strtoimax.c: New file.
5939
5940         Tests for module 'imaxdiv'.
5941         * modules/imaxdiv-tests: New file.
5942         * tests/test-imaxdiv.c: New file.
5943
5944         Tests for module 'imaxabs'.
5945         * modules/imaxabs-tests: New file.
5946         * tests/test-imaxabs.c: New file.
5947
5948 2011-09-01  Bruno Haible  <bruno@clisp.org>
5949
5950         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5951         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5952         pthread_create.
5953
5954 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         openat: work around AIX 7.1 fstatat issue
5957         This should fix the problem that was not properly fixed
5958         in the previous change, dated 2011-08-30.
5959         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5960         __need_system_stat_h defined.
5961         (orig_fstatat) [HAVE_FSTATAT]: New function.
5962         (rpl_fstatat): Go back to the old way of doing things,
5963         except call orig_fstatat instead of fstatat.
5964         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5965         Remove unnecessary check whether fstatat fills in st_size etc.
5966
5967 2011-09-01  Bruno Haible  <bruno@clisp.org>
5968
5969         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5970         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5971         just include the system's header.
5972
5973 2011-08-31  Jim Meyering  <meyering@redhat.com>
5974
5975         tests: avoid spurious assertion failure in test-float.c on ppc64
5976         * tests/test-float.c (test_long_double): Comment out an assertion,
5977         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5978         with gcc-4.4.4.
5979
5980         maint: indent with spaces, not TABs
5981         I need to get in the habit of running gnulib's "make check".
5982         Both of these would have been caught.
5983         * m4/largefile.m4: Indent with spaces, not TABs.
5984         * lib/parse-datetime.y (iso_8601_time): Likewise.
5985         Spotted by Pádraig Brady.
5986
5987         test-parse-datetime.c: accommodate a relatively strict gcc warning
5988         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5989         to avoid a warning from gcc's -Werror=missing-declarations.
5990         Insert a few spaces-before-funcall-parenthesis.
5991
5992 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5993
5994         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5995         The parser now accepts ISO 8601 date-time strings with "T" as the
5996         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5997         with a space between the date and time strings.  Now it also parses
5998         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5999         variants like "2004-02-29T16:21:42.333-07:00"
6000         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6001         of day representation using the 'T' separator character.
6002         * doc/parse-datetime.texi (General date syntax): replace use of
6003         deprecated --iso-8601 option with --rfc-3339 in example of date
6004         command output formats that can be parsed.
6005         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6006         lib/parse-datetime.y.
6007         (gmt_offset): New function.
6008         (main): Add additional test cases to validate ISO8601 extended
6009         date and time of day parsing.
6010
6011 2011-08-31  Bruno Haible  <bruno@clisp.org>
6012
6013         freopen: Documentation.
6014         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6015         name.
6016         Reported by Claudio Bley <claudio.bley@gmail.com>.
6017
6018 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6019
6020         freopen: Don't crash if the filename argument is NULL.
6021         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6022         NULL.
6023
6024 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6025
6026         openat: work around AIX 7.1 fstatat bug
6027         Problem reported by Kevin Brott for GNU tar, in the thread containing
6028         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6029         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6030         FSTATAT_ST_SIZE_ETC_BROKEN.
6031         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6032         rpl_fstatat.
6033         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6034         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6035         AC_CHECK_FUNCS_ONCE for fstatat.
6036         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6037         fchmodat, mkdirat, openat and unlinkat.
6038
6039 2011-08-30  Bruno Haible  <bruno@clisp.org>
6040
6041         Avoid endless recursions if config.h includes some header files.
6042         * lib/fopen.c (__need_FILE): Define already before including config.h.
6043         * lib/freopen.c (__need_FILE): Likewise.
6044         * lib/open.c (__need_system_fcntl_h): Likewise.
6045         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6046         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6047         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6048
6049 2011-08-25  Karl Berry  <karl@gnu.org>
6050
6051         * config/srclist.txt (ylwrap): new try.
6052         * build-aux/ylwrap: new file.
6053
6054 2011-08-23  Bruno Haible  <bruno@clisp.org>
6055
6056         tmpdir: Use a good default directory on native Windows.
6057         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6058         (P_tmpdir): Default to _P_tmpdir on native Windows.
6059         (path_search): On native Windows, try the value returned by GetTempPath
6060         before trying P_tmpdir.
6061         * modules/tmpdir (Depends-on): Add pathmax.
6062         Suggested by John Darrington <john@darrington.wattle.id.au>.
6063
6064 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6065
6066         doc: fix typo in README-release
6067         * top/README-release: Capitalize first word of a sentence.
6068
6069 2011-08-19  Jim Meyering  <meyering@redhat.com>
6070
6071         fts: do not exhaust memory when processing million-entry directories
6072         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6073         directory would require about 256*N bytes of memory.  Thus, it was
6074         easy to construct a directory too large to be processed by any of
6075         those tools.  With this change, fts' maximum memory utilization is
6076         now limited to around 30MB.
6077         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6078         (fts_read): When we've processed the final entry (i.e., when
6079         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6080         using the parent entry to read any remaining entries.  Dispatch
6081         depending on what fts_build returns:
6082         - NULL+stop, aka failure: stop
6083         - NULL otherwise: move up in the dir hierarchy
6084         - non-NULL: handle this new entry
6085         (fts_build): Declare and use new local, continue_readdir.
6086         Prepare to be called from fts_read, when the entries
6087         from a partially-read directory have just been exhausted.
6088         In that case, we'll skip the opendir and instead use the parent's
6089         fts_dirp and derive dir_fd from that.
6090         Finally, in the readdir loop, if we read max_entries entries,
6091         exit the loop ensuring *not* to call closedir.  This is required
6092         so that fts_dirp can be reused on a subsequent call.
6093         Prompted by Ben England's report of memory exhaustion in find
6094         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6095
6096         maint: fts: move decl of `dp' down into while loop; split a long line
6097         * lib/fts.c (fts_build): No semantic change.
6098
6099         fts: add/use new struct member, fts_dirp
6100         We are about to use this to manage any directory with
6101         too many entries to read all of them into memory at once.
6102         To do that, we'll need to save the DIR* pointer in each
6103         affected FTSENT struct.
6104         * lib/fts_.h: Include <dirent.h>.
6105         (struct FTSENT) [fts_dirp]: New member.
6106         * lib/fts.c (closedir_and_clear): Define.
6107         Use it in place of closedir so that we are sure to
6108         clear the new fts_dirp member when done with it.
6109         (fts_alloc): Initialize the new member.
6110         (fts_lfree): Free, if needed.
6111
6112         maint: fts: give __opendir2 a new parameter and rename
6113         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6114         than surreptitiously using sole caller's "dir_fd".
6115         (fts_opendir): Rename from __opendir2.
6116
6117         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6118         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6119
6120         maint: fts.c: correct off-by-one indentation
6121         * lib/fts.c (fts_build): Correct indentation, change style
6122         of a couple of block comments, and bracing style.
6123
6124         maint: fts.c: move __opendir2 #define "up" out of function body
6125         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6126
6127         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6128         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6129         out for a long time and besides was useful only on BSD systems.
6130
6131 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6132
6133         regex: port to Stratus OpenVOS
6134         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6135         define to empty, rather than attempting nonportable optimizations.
6136         Problem reported by Paul Green in:
6137         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6138         and fix suggested by Eric Blake in:
6139         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6140
6141 2011-08-17  Eric Blake  <eblake@redhat.com>
6142
6143         getcwd: fix test failures on mingw
6144         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6145         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6146         test if long directory cannot be created, and allow mingw errno.
6147
6148         getcwd-lgpl: fix m4 to match relaxed test for BSD
6149         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6150         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6151         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6152         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6153         signature problem.
6154
6155         getcwd: fix compilation on mingw64
6156         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6157         getcwd.
6158         Reported by Marc-André Lureau.
6159
6160         pipe2: silence compiler warning
6161         * lib/pipe2.c (pipe2): Hide label if it is not used.
6162
6163 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6164
6165         relocatable-prog: fix link error
6166         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6167         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6168         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6169         into modules/relocatable-lib without noticing that
6170         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6171         also needs to build relocatable.c.
6172
6173 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6177         shell code: it contained a 'break' that was not in a loop.
6178         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6179         via a shell-language loop; this may have been true in old Autoconf
6180         versions, but it's not true in Autoconf 2.68.  I found this bug
6181         when testing coreutils git on Solaris 8, whose shell complains
6182         about the syntax error.
6183
6184 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6185
6186         * lib/base64.c: Fix comment to reference RFC 4648.
6187         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6188         <gvtulder@gmail.com>.
6189
6190 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6191
6192         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6193
6194         po/Makefile.in.in: fix make -q problem
6195         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6196         rule, since there's no file named 'check-macro-version' and its
6197         use as a file breaks make -q.
6198         (all): Don't depend on check-macro-version.
6199         (CHECK_MACRO_VERSION): New macro.
6200         (stamp-po): Use it.
6201
6202         configmake: fix make -q problem
6203         * modules/configmake (configmake.h): Update configmake.h's time stamp
6204         even if the file does not change.  Otherwise, 'make -q' fails.
6205         Problem reported by Simon Josefsson in
6206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6207
6208 2011-08-11  Jim Meyering  <meyering@redhat.com>
6209
6210         git-version-gen: correct the advice in a comment
6211         * build-aux/git-version-gen: Correct comment.
6212         Don't recommend to list .tarball-version in .gitignore.
6213
6214 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6215
6216         base64: fix off-by-one buffer size bug
6217         Problem and (trivial) fix reported by Gijs van Tulder in
6218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6219         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6220         * tests/test-base64.c (main): Catch the bug.
6221
6222 2011-08-10  Eric Blake  <eblake@redhat.com>
6223
6224         closein: correct comments
6225         * lib/closein.c (close_stdin): Improve comments.
6226
6227 2011-08-09  Bruno Haible  <bruno@clisp.org>
6228
6229         More tests for 'fseeko'.
6230         * tests/test-fseeko3.c: New file, from Eric Blake.
6231         * tests/test-fseeko3.sh: New file.
6232         * modules/fseeko-tests (Files): Add them.
6233         (TESTS): Add test-fseeko3.sh.
6234         (check_PROGRAMS): Add test-fseeko3.
6235
6236 2011-08-09  Eric Blake  <eblake@redhat.com>
6237
6238         fseeko: remove unneeded hack
6239         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6240
6241         fseeko: fix bug on glibc
6242         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6243         Reported by John W. Eaton.
6244
6245 2011-08-08  Bruno Haible  <bruno@clisp.org>
6246
6247         unictype/base: Fix interoperability with preinstalled libunistring.
6248         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6249         Reported by Simon Josefsson.
6250
6251 2011-08-08  Bruno Haible  <bruno@clisp.org>
6252
6253         iswblank: Detect declaration correctly.
6254         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6255         AC_CHECK_DECLS invocation.
6256
6257 2011-08-08  Bruno Haible  <bruno@clisp.org>
6258
6259         tcgetsid: Detect declaration correctly.
6260         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6261         AC_CHECK_DECLS invocation.
6262         Reported by Simon Josefsson.
6263
6264 2011-08-08  Eric Blake  <eblake@redhat.com>
6265
6266         largefile: fix typo that regressed large file support
6267         * modules/largefile (configure.ac-early): Fix section name.
6268
6269 2011-08-06  Karl Berry  <karl@gnu.org>
6270
6271         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6272         a separate module.
6273
6274 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6275
6276         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6277         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6278         get prototype for free.
6279
6280 2011-08-04  Bruno Haible  <bruno@clisp.org>
6281
6282         Tests for module 'pathmax'.
6283         * modules/pathmax-tests: New file.
6284         * tests/test-pathmax.c: New file.
6285
6286         canonicalize-lgpl: Support larger filenames on the Hurd.
6287         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6288         Reported by Paul Eggert.
6289
6290         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6291         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6292         * lib/chdir-long.h: Include pathmax.h.
6293         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6294         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6295         (PATH_MAX): Remove code that is done by pathmax.h.
6296         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6297         * lib/tmpfile.c: Add a comment.
6298         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6299         * modules/chdir-long (Depends-on): Add pathmax.
6300         * modules/getcwd (Depends-on): Add pathmax.
6301         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6302         is not defined.
6303         * doc/posix-headers/limits.texi: Mention the pathmax module.
6304         * NEWS: Mention the change.
6305
6306 2011-08-02  Bruno Haible  <bruno@clisp.org>
6307
6308         pthread_sigmask: Actually use results of gl_THREADLIB.
6309         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6310         gl_THREADLIB, not gl_[]THREADLIB.
6311         Reported by Eric Blake.
6312
6313 2011-08-02  Jim Meyering  <meyering@redhat.com>
6314
6315         maint.mk: relax the default _gl_TS_function_match regexp
6316         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6317         space between function name and "(" in an "extern" declaration.
6318         That would fail to match a decl with no space there: extern void foo();
6319
6320 2011-07-31  Iain Nicol  <iain@thenicols.net>
6321
6322         git-version-gen: document that EXTRA_DIST must include .version
6323         * build-aux/git-version-gen: In the how-to-use comment, document
6324         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6325         will fail when run from an unpacked distribution tarball.
6326
6327 2011-08-01  Bruno Haible  <bruno@clisp.org>
6328
6329         wctype-h: Fix last change.
6330         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6331         REPLACE_TOWLOWER to 0.
6332         Reported by Sam Steingold <sds@gnu.org>.
6333
6334 2011-07-31  Bruno Haible  <bruno@clisp.org>
6335
6336         frexpl: Update autoconf test.
6337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6338         according to changes of 2011-06-20.
6339
6340 2011-07-31  Bruno Haible  <bruno@clisp.org>
6341
6342         sys_utsname: Add support for Minix.
6343         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6344         <sys/utsname.h>.
6345         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6346         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6347
6348 2011-07-31  Bruno Haible  <bruno@clisp.org>
6349
6350         strings: Add support for Minix.
6351         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6352         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6353         * doc/posix-headers/strings.texi: Document the Minix problem.
6354
6355 2011-07-31  Bruno Haible  <bruno@clisp.org>
6356
6357         wctype-h: Add support for Minix.
6358         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6359         REPLACE_TOWLOWER.
6360         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6361         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6362         REPLACE_ISWCNTRL.
6363
6364 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6365
6366         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6367         This is a performance improvement for 64-bit hosts: it causes the
6368         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6369
6370 2011-07-31  Bruno Haible  <bruno@clisp.org>
6371
6372         stdioext: Add support for Minix.
6373         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6374         * lib/fpurge.c (fpurge): Likewise.
6375         * lib/freadahead.c (freadahead): Likewise.
6376         * lib/freadable.c (freadable): Likewise.
6377         * lib/freading.c (freading): Likewise.
6378         * lib/freadptr.c (freadptr): Likewise.
6379         * lib/freadseek.c (freadptrinc): Likewise.
6380         * lib/fseeko.c (rpl_fseeko): Likewise.
6381         * lib/fseterr.c (fseterr): Likewise.
6382         * lib/fwritable.c (fwritable): Likewise.
6383         * lib/fwriting.c (fwriting): Likewise.
6384         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6385         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6386
6387 2011-07-31  Bruno Haible  <bruno@clisp.org>
6388
6389         errno: Port to Minix.
6390         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6391         ECONNABORTED are defined.
6392         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6393         GNULIB_defined_ECONNABORTED): New macros.
6394         * lib/strerror-override.h (strerror_override): Test also
6395         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6396         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6397         ECONNABORTED.
6398         * doc/posix-headers/errno.texi: Mention the Minix problem.
6399
6400 2011-07-31  Bruno Haible  <bruno@clisp.org>
6401
6402         Work around declaration collisions on Minix.
6403         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6404         defined, set REPLACE_MBSINIT.
6405         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6406         defined, set REPLACE_MBRTOWC.
6407         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6408         set REPLACE_MBRLEN.
6409         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6410         defined, set REPLACE_MBSRTOWCS.
6411         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6412         defined, set REPLACE_WCRTOMB.
6413         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6414         defined, set REPLACE_WCSRTOMBS.
6415
6416 2011-07-31  Bruno Haible  <bruno@clisp.org>
6417
6418         Add support for Minix with ACK compiler.
6419         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6420         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6421         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6422
6423 2011-07-31  Bruno Haible  <bruno@clisp.org>
6424
6425         Documentation about Minix.
6426         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6427         * doc/glibc-headers/*.texi: Likewise.
6428         * doc/posix-functions/*.texi: Likewise.
6429         * doc/glibc-functions/*.texi: Likewise.
6430
6431 2011-07-31  Bruno Haible  <bruno@clisp.org>
6432
6433         snippet/warn-on-use: Fix indentation.
6434         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6435
6436 2011-07-25  Jim Meyering  <meyering@redhat.com>
6437
6438         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6439         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6440         commands.
6441
6442 2011-07-27  Jim Meyering  <meyering@redhat.com>
6443
6444         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6445         * top/maint.mk (gl_extract_significant_defines_): Now that
6446         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6447         gnulib/lib/signal.in.h, and now that we recommend to
6448         define-if-undefined those two symbols in application code,
6449         we must filter them out of the "significant" list.
6450         This avoids a "make syntax-check" failure in coreutils.
6451
6452 2011-07-26  Eric Blake  <eblake@redhat.com>
6453
6454         warnings: add comments about previous patch
6455         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6456         * m4/include_next.m4: Likewise.
6457         * m4/warn-on-use.m4: Likewise.
6458         * m4/warnings.m4: Likewise, and simplify use.
6459         Suggested by Stefano Lattarini.
6460
6461         include-next, warnings: support older autoconf
6462         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6463         AS_VAR_PUSHDEF in a way that works with older autoconf.
6464         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6465         Reported by Daniel P. Berrange.
6466
6467 2011-07-25  Bruno Haible  <bruno@clisp.org>
6468
6469         fseek, ftell: Fix doc.
6470         * doc/posix-functions/fseek.texi: Reword statement about
6471         AC_SYS_LARGEFILE.
6472         * doc/posix-functions/ftell.texi: Likewise.
6473
6474 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6475             Bruno Haible  <bruno@clisp.org>
6476
6477         Add dependencies to the 'largefile' module.
6478         * modules/fopen (Depends-on): Add 'largefile'.
6479         * modules/freopen (Depends-on): Likewise.
6480         * modules/fseeko (Depends-on): Likewise.
6481         * modules/ftello (Depends-on): Likewise.
6482         * modules/glob (Depends-on): Likewise.
6483         * modules/lseek (Depends-on): Likewise.
6484         * modules/lstat (Depends-on): Likewise.
6485         * modules/mkostemp (Depends-on): Likewise.
6486         * modules/mkostemps (Depends-on): Likewise.
6487         * modules/mkstemp (Depends-on): Likewise.
6488         * modules/mkstemps (Depends-on): Likewise.
6489         * modules/open (Depends-on): Likewise.
6490         * modules/openat (Depends-on): Likewise.
6491         * modules/pread (Depends-on): Likewise.
6492         * modules/pwrite (Depends-on): Likewise.
6493         * modules/scandir (Depends-on): Likewise.
6494         * modules/stat (Depends-on): Likewise.
6495         * modules/tmpfile (Depends-on): Likewise.
6496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6497         since the containing module now depends on the largefile module.
6498         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6499         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6500         off_t is fixed by gnulib.
6501         * doc/posix-functions/freopen.texi: Likewise.
6502         * doc/posix-functions/fseeko.texi: Likewise.
6503         * doc/posix-functions/fstatat.texi: Likewise.
6504         * doc/posix-functions/ftello.texi: Likewise.
6505         * doc/posix-functions/glob.texi: Likewise.
6506         * doc/posix-functions/lseek.texi: Likewise.
6507         * doc/posix-functions/lstat.texi: Likewise.
6508         * doc/posix-functions/mkstemp.texi: Likewise.
6509         * doc/posix-functions/open.texi: Likewise.
6510         * doc/posix-functions/openat.texi: Likewise.
6511         * doc/posix-functions/pread.texi: Likewise.
6512         * doc/posix-functions/pwrite.texi: Likewise.
6513         * doc/posix-functions/scandir.texi: Likewise.
6514         * doc/posix-functions/stat.texi: Likewise.
6515         * doc/posix-functions/tmpfile.texi: Likewise.
6516         * doc/glibc-functions/mkostemp.texi: Likewise.
6517         * doc/glibc-functions/mkostemps.texi: Likewise.
6518         * doc/glibc-functions/mkstemps.texi: Likewise.
6519
6520 2011-07-25  Bruno Haible  <bruno@clisp.org>
6521
6522         fcntl: Move AC_LIBOBJ invocation to module description.
6523         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6524         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6525
6526         fcntl: Remove call-in from fchdir.m4.
6527         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6529
6530         dup3: Remove potential call-in from fchdir.m4.
6531         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6533
6534         dup2: Move AC_LIBOBJ invocation to module description.
6535         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6536         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6537         Don't invoke AC_LIBOBJ.
6538         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6539
6540         dup2: Remove call-in from fchdir.m4.
6541         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6543
6544         fclose: Move AC_LIBOBJ invocation to module description.
6545         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6546         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6547         to 1.
6548         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6549
6550         fclose: Remove call-in from close.m4.
6551         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6552         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6553
6554         close: Move AC_LIBOBJ invocation to module description.
6555         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6556         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6557         1.
6558         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6559
6560         close: Remove call-in from fchdir.m4.
6561         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6563
6564         open: Move AC_LIBOBJ invocation to module description.
6565         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6566         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6567         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6568
6569         open: Remove call-in from fchdir.m4.
6570         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6572
6573         fchdir: Start to remove gl_REPLACE_* idiom.
6574         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6575         (gl_FUNC_FCHDIR): Invoke it.
6576
6577 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6578
6579         * lib/ftell.c (ftell): Comment out cast.
6580
6581         close: use gl_REPLACE_FCLOSE only if defined
6582         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6583         is defined.  The close module doesn't depend on the fclose module
6584         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6586         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6587
6588 2011-07-24  Jim Meyering  <meyering@redhat.com>
6589
6590         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6591         * tests/test-select.h (test_function): Declare as "static".
6592
6593 2011-07-24  Bruno Haible  <bruno@clisp.org>
6594
6595         doc: Mention the effects of AC_SYS_LARGEFILE.
6596         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6597         on this function.
6598         * doc/posix-functions/aio_error.texi: Likewise.
6599         * doc/posix-functions/aio_fsync.texi: Likewise.
6600         * doc/posix-functions/aio_read.texi: Likewise.
6601         * doc/posix-functions/aio_return.texi: Likewise.
6602         * doc/posix-functions/aio_suspend.texi: Likewise.
6603         * doc/posix-functions/aio_write.texi: Likewise.
6604         * doc/posix-functions/fgetpos.texi: Likewise.
6605         * doc/posix-functions/fopen.texi: Likewise.
6606         * doc/posix-functions/freopen.texi: Likewise.
6607         * doc/posix-functions/fsetpos.texi: Likewise.
6608         * doc/posix-functions/fstatvfs.texi: Likewise.
6609         * doc/posix-functions/ftruncate.texi: Likewise.
6610         * doc/posix-functions/ftw.texi: Likewise.
6611         * doc/posix-functions/getrlimit.texi: Likewise.
6612         * doc/posix-functions/glob.texi: Likewise.
6613         * doc/posix-functions/lio_listio.texi: Likewise.
6614         * doc/posix-functions/lockf.texi: Likewise.
6615         * doc/posix-functions/mkstemp.texi: Likewise.
6616         * doc/posix-functions/mmap.texi: Likewise.
6617         * doc/posix-functions/nftw.texi: Likewise.
6618         * doc/posix-functions/openat.texi: Likewise.
6619         * doc/posix-functions/opendir.texi: Likewise.
6620         * doc/posix-functions/posix_fadvise.texi: Likewise.
6621         * doc/posix-functions/posix_fallocate.texi: Likewise.
6622         * doc/posix-functions/pread.texi: Likewise.
6623         * doc/posix-functions/pwrite.texi: Likewise.
6624         * doc/posix-functions/readdir.texi: Likewise.
6625         * doc/posix-functions/readdir_r.texi: Likewise.
6626         * doc/posix-functions/rewinddir.texi: Likewise.
6627         * doc/posix-functions/scandir.texi: Likewise.
6628         * doc/posix-functions/seekdir.texi: Likewise.
6629         * doc/posix-functions/setrlimit.texi: Likewise.
6630         * doc/posix-functions/statvfs.texi: Likewise.
6631         * doc/posix-functions/telldir.texi: Likewise.
6632         * doc/posix-functions/tmpfile.texi: Likewise.
6633         * doc/posix-functions/truncate.texi: Likewise.
6634         * doc/glibc-functions/fallocate.texi: Likewise.
6635         * doc/glibc-functions/fstatfs.texi: Likewise.
6636         * doc/glibc-functions/fts_children.texi: Likewise.
6637         * doc/glibc-functions/fts_read.texi: Likewise.
6638         * doc/glibc-functions/getdirentries.texi: Likewise.
6639         * doc/glibc-functions/mkostemp.texi: Likewise.
6640         * doc/glibc-functions/mkostemps.texi: Likewise.
6641         * doc/glibc-functions/mkstemps.texi: Likewise.
6642         * doc/glibc-functions/preadv.texi: Likewise.
6643         * doc/glibc-functions/pwritev.texi: Likewise.
6644         * doc/glibc-functions/sendfile.texi: Likewise.
6645         * doc/glibc-functions/statfs.texi: Likewise.
6646
6647 2011-07-24  Bruno Haible  <bruno@clisp.org>
6648
6649         doc: Fix typo.
6650         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6651
6652 2011-07-24  Bruno Haible  <bruno@clisp.org>
6653
6654         doc: Mention fsusage.
6655         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6656
6657 2011-07-24  Bruno Haible  <bruno@clisp.org>
6658
6659         doc: Mention new glibc headers and functions.
6660         * doc/glibc-headers/gshadow.texi: New file.
6661         * doc/glibc-functions/endsgent.texi: New file.
6662         * doc/glibc-functions/fgetsgent.texi: New file.
6663         * doc/glibc-functions/fgetsgent_r.texi: New file.
6664         * doc/glibc-functions/getsgent.texi: New file.
6665         * doc/glibc-functions/getsgent_r.texi: New file.
6666         * doc/glibc-functions/getsgnam.texi: New file.
6667         * doc/glibc-functions/getsgnam_r.texi: New file.
6668         * doc/glibc-functions/putsgent.texi: New file.
6669         * doc/glibc-functions/setsgent.texi: New file.
6670         * doc/glibc-functions/sgetsgent.texi: New file.
6671         * doc/glibc-functions/sgetsgent_r.texi: New file.
6672         * doc/glibc-functions/malloc_info.texi: New file.
6673         * doc/glibc-functions/preadv.texi: New file.
6674         * doc/glibc-functions/pwritev.texi: New file.
6675         * doc/glibc-functions/register_printf_modifier.texi: New file.
6676         * doc/glibc-functions/register_printf_specifier.texi: New file.
6677         * doc/glibc-functions/register_printf_type.texi: New file.
6678         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6679         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6680         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6681         * doc/glibc-functions/pthread_getname_np.texi: New file.
6682         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6683         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6684         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6685         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6686         * doc/glibc-functions/pthread_setname_np.texi: New file.
6687         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6688         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6689         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6690         * doc/glibc-functions/qsort_r.texi: New file.
6691         * doc/glibc-functions/quick_exit.texi: New file.
6692         * doc/glibc-functions/syncfs.texi: New file.
6693         * doc/gnulib.texi: Include them.
6694         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6695         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6696         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6697         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6698         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6699         * doc/glibc-functions/execvpe.texi: Likewise.
6700
6701 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6702
6703         ftell: don't include <unistd.h>
6704         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6705         guaranteed to define off_t, and the ftell module depends on the
6706         stdio module.
6707
6708         ftell: do not assume wraparound signed arithmetic
6709         * lib/ftell.c: Include <limits.h>.
6710         (ftell): Don't assume wraparound signed arithmetic.
6711
6712 2011-07-24  Bruno Haible  <bruno@clisp.org>
6713
6714         close: No longer depend on module 'fclose'.
6715         * modules/close (Depends-on): Remove fclose.
6716         * NEWS: Mention the change.
6717         Suggested by Sam Steingold <sds@gnu.org>.
6718
6719 2011-07-24  Bruno Haible  <bruno@clisp.org>
6720
6721         fsusage: Enable large volume support on AIX >= 5.2.
6722         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6723         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6724         instead of STAT_STATVFS.
6725         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6726
6727         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6728         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6729         f_blocks field only on MacOS X.
6730
6731         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6732         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6733         * modules/fsusage (Depends-on): Add largefile.
6734
6735 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6736
6737         * README: Modernize discussion of signed integers.
6738         Assuming overflow wraparound is no longer safe.
6739         Mention ones' complement and signed magnitude.
6740
6741 2011-07-22  Bruno Haible  <bruno@clisp.org>
6742
6743         select tests, pselect tests: Refactor.
6744         * tests/test-select.h: New file, extracted from tests/test-select.c.
6745         (select_fn): New type.
6746         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6747         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6748         test_pipe): Add my_select argument.
6749         (test_function): Renamed from main. Add my_select argument.
6750         * tests/test-select.c: Move most code to tests/test-select.h. Include
6751         test-select.h.
6752         * modules/select-tests (Files): Add tests/test-select.h.
6753         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6754         (my_select, main): New functions.
6755         * modules/pselect-tests (Files): Add tests/test-select.h,
6756         tests/macros.h, tests/signature.h.
6757         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6758         (configure.ac): Check for <sys/wait.h>.
6759
6760 2011-07-22  Bruno Haible  <bruno@clisp.org>
6761
6762         sys_select tests: Check the signature of FD_*.
6763         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6764         signature tests from here...
6765         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6766         here.
6767         * modules/sys_select-tests (Files): Add tests/signature.h.
6768
6769 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6770
6771         largefile: new module, replacing large-inode
6772         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6773         * MODULES.html.sh: Add largefile, remove large-inode.
6774         * modules/largefile, m4/largefile.m4: New files.
6775         * modules/large-inode, m4/large-inode.m4: Remove.
6776
6777         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6779         implementations that use only 32 bits to count blocks.
6780         On typical hosts with 1024-byte blocks, this fails with file
6781         systems as small as 4 TiB.  Problem reported by Herb Wartens
6782         <http://debbugs.gnu.org/9140> and this should also fix a similar
6783         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6784
6785         large-inode: New module
6786         * MODULES.html.sh: Add it.
6787         * modules/large-inode, m4/large-inode.m4: New files.
6788
6789         extensions: Enable extensions on MacOS X 10.5 and later.
6790         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6791
6792 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6793
6794         file-has-acl: use acl_extended_file_nofollow if available
6795         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6796         (acl_extended_file): New macro.
6797         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6798         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6799
6800 2011-07-21  Bruno Haible  <bruno@clisp.org>
6801
6802         Declare system functions in a way that works with C++.
6803         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6804         declare fdopendir as extern "C".
6805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6806         declare frexpl as extern "C".
6807         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6808         declare gai_strerror as extern "C".
6809         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6810         programs, declare gai_strerror as extern "C".
6811         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6812         declare getlogin_r as extern "C".
6813         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6814         as extern "C".
6815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6816         declare ldexpl as extern "C".
6817         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6818         as extern "C".
6819         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6820         program, declare getmntinfo as extern "C".
6821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6822         stpncpy as extern "C".
6823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6824         program, declare __xpg_strerror_r as extern "C".
6825         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6826         strndup as extern "C".
6827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6828         declare memset and bzero as extern "C".
6829         Reported by Sam Steingold <sds@gnu.org>.
6830
6831 2011-07-12  Jim Meyering  <meyering@redhat.com>
6832
6833         maint.mk: prohibit inclusion of "verify.h" without use
6834         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6835
6836 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6837
6838         timer-time: A new module to check for timer_settime()
6839         * m4/timer_time.m4: Check for the posix function.
6840         * modules/timer-time: Add the new module.
6841         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6842         Mention it.
6843
6844 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6845             Bruno Haible  <bruno@clisp.org>
6846
6847         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6849         not defined, assume POSIX threads and look for pthread_sigmask in
6850         $LIBS, without changing $CPPFLAGS.
6851
6852 2011-07-19  Bruno Haible  <bruno@clisp.org>
6853
6854         strstr: Update cross-compilation guess.
6855         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6856         CPUs, guess no, in view of glibc
6857         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6858         Suggested by Eric Blake. Reported by Reuben Thomas.
6859
6860 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6861
6862         getopt-gnu: suppress core dumps from detection code
6863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6864         to suppress core dumps that may well occur on glibc systems.
6865         * modules/getopt-gnu: Depend on nocrash.
6866
6867 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6868
6869         pthread_sigmask: ensure usleep is declared
6870         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6871         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6872
6873 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6874
6875         doc: Document NonStop portability issues.
6876         * doc/posix-functions/sigaction.texi (sigaction):
6877         * doc/posix-headers/signal.texi (signal.h):
6878         Document NonStop.  See Joachim Schmitz in
6879         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6880
6881 2011-07-15  Bruno Haible  <bruno@clisp.org>
6882
6883         ffsl, ffsll: Avoid unportable behaviour.
6884         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6885
6886 2011-07-15  Bruno Haible  <bruno@clisp.org>
6887
6888         ffs: More tests.
6889         * tests/test-ffs.c (NBITS): New macro.
6890         (main): Add more tests.
6891         * tests/test-ffsl.c (NBITS): New macro.
6892         (main): Add more tests.
6893         * tests/test-ffsll.c (NBITS): New macro.
6894         (main): Add more tests.
6895
6896 2011-07-15  Eric Blake  <eblake@redhat.com>
6897
6898         ffsl, ffsll: new modules
6899         * modules/ffsl: New file.
6900         * modules/ffsll: Likewise.
6901         * m4/ffsl.m4: Likewise.
6902         * m4/ffsll.m4: Likewise.
6903         * lib/ffsl.c: Likewise.
6904         * lib/ffsl.h: Likewise.
6905         * lib/ffsll.c: Likewise.
6906         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6907         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6908         * modules/string (Makefile.am): Substitute witnesses.
6909         * lib/strings.in.h (ffsl, ffsll): Declare.
6910         * modules/ffsl-tests: New test file.
6911         * modules/ffsll-tests: Likewise.
6912         * tests/test-ffsl.c: Likewise.
6913         * tests/test-ffsll.c: Likewise.
6914         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6915         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6916         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6917
6918         ffs: fix m4 prerequisite
6919         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6920
6921         ffs: avoid undefined behavior
6922         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6923         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6924         Reported by Bruno Haible.
6925
6926 2011-07-12  Bruno Haible  <bruno@clisp.org>
6927
6928         pthread_sigmask: Rely on module 'threadlib'.
6929         * modules/pthread_sigmask (Depends-on): Add threadlib.
6930         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6931         is defined.
6932
6933 2011-07-12  Bruno Haible  <bruno@clisp.org>
6934
6935         regex: Depend on module 'strcase'.
6936         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6937
6938 2011-07-12  Jim Meyering  <meyering@redhat.com>
6939
6940         warn-on-use: fix typo in file name
6941         * modules/snippet/warn-on-use (Files): Correct file name:
6942         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6943
6944 2011-07-12  Bruno Haible  <bruno@clisp.org>
6945
6946         strings: Document module.
6947         * doc/posix-headers/strings.texi: Mention module 'strings'.
6948
6949 2011-07-12  Bruno Haible  <bruno@clisp.org>
6950
6951         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6952         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6953         (Files, Makefile.am): Update.
6954         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6955         * modules/stdlib (Depends-on): Update.
6956
6957 2011-07-12  Bruno Haible  <bruno@clisp.org>
6958
6959         * NEWS: Mention the changes.
6960
6961         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6962         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6963         (Files, Makefile.am): Update.
6964         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6965         * modules/arpa_inet (Depends-on): Update.
6966         * modules/ctype (Depends-on): Update.
6967         * modules/dirent (Depends-on): Update.
6968         * modules/fcntl-h (Depends-on): Update.
6969         * modules/glob (Depends-on): Update.
6970         * modules/iconv-h (Depends-on): Update.
6971         * modules/inttypes-incomplete (Depends-on): Update.
6972         * modules/langinfo (Depends-on): Update.
6973         * modules/locale (Depends-on): Update.
6974         * modules/math (Depends-on): Update.
6975         * modules/netdb (Depends-on): Update.
6976         * modules/poll-h (Depends-on): Update.
6977         * modules/pty (Depends-on): Update.
6978         * modules/search (Depends-on): Update.
6979         * modules/signal (Depends-on): Update.
6980         * modules/spawn (Depends-on): Update.
6981         * modules/stdio (Depends-on): Update.
6982         * modules/stdlib (Depends-on): Update.
6983         * modules/string (Depends-on): Update.
6984         * modules/strings (Depends-on): Update.
6985         * modules/sys_file (Depends-on): Update.
6986         * modules/sys_ioctl (Depends-on): Update.
6987         * modules/sys_select (Depends-on): Update.
6988         * modules/sys_socket (Depends-on): Update.
6989         * modules/sys_stat (Depends-on): Update.
6990         * modules/sys_time (Depends-on): Update.
6991         * modules/sys_times (Depends-on): Update.
6992         * modules/sys_utsname (Depends-on): Update.
6993         * modules/sys_wait (Depends-on): Update.
6994         * modules/termios (Depends-on): Update.
6995         * modules/time (Depends-on): Update.
6996         * modules/unistd (Depends-on): Update.
6997         * modules/wchar (Depends-on): Update.
6998         * modules/wctype-h (Depends-on): Update.
6999         * MODULES.html.sh (Support for building libraries and executables):
7000         Update.
7001
7002         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7003         * modules/snippet/unused-parameter: Renamed from
7004         modules/unused-parameter.
7005         (Files, Makefile.am): Update.
7006         * build-aux/snippet/unused-parameter.h: Renamed from
7007         build-aux/unused-parameter.h.
7008         * modules/selinux-h (Depends-on): Update.
7009         * modules/unistr/base (Depends-on): Update.
7010         * MODULES.html.sh (Core language properties): Update.
7011
7012         Rename module 'link-warning' to 'snippet/link-warning'.
7013         * modules/snippet/link-warning: Renamed from modules/link-warning.
7014         (Files, Makefile.am): Update.
7015         * build-aux/snippet/link-warning.h: Renamed from
7016         build-aux/link-warning.h.
7017         * MODULES.html.sh (Support for building libraries and executables):
7018         Update.
7019
7020         Rename module 'c++defs' to 'snippet/c++defs'.
7021         * modules/snippet/c++defs: Renamed from modules/c++defs.
7022         (Files, Makefile.am): Update.
7023         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7024         * modules/arpa_inet (Depends-on): Update.
7025         * modules/ctype (Depends-on): Update.
7026         * modules/dirent (Depends-on): Update.
7027         * modules/fcntl-h (Depends-on): Update.
7028         * modules/glob (Depends-on): Update.
7029         * modules/iconv-h (Depends-on): Update.
7030         * modules/langinfo (Depends-on): Update.
7031         * modules/locale (Depends-on): Update.
7032         * modules/math (Depends-on): Update.
7033         * modules/netdb (Depends-on): Update.
7034         * modules/poll-h (Depends-on): Update.
7035         * modules/pty (Depends-on): Update.
7036         * modules/search (Depends-on): Update.
7037         * modules/signal (Depends-on): Update.
7038         * modules/spawn (Depends-on): Update.
7039         * modules/stdio (Depends-on): Update.
7040         * modules/stdlib (Depends-on): Update.
7041         * modules/string (Depends-on): Update.
7042         * modules/strings (Depends-on): Update.
7043         * modules/sys_ioctl (Depends-on): Update.
7044         * modules/sys_select (Depends-on): Update.
7045         * modules/sys_socket (Depends-on): Update.
7046         * modules/sys_stat (Depends-on): Update.
7047         * modules/sys_time (Depends-on): Update.
7048         * modules/sys_wait (Depends-on): Update.
7049         * modules/termios (Depends-on): Update.
7050         * modules/time (Depends-on): Update.
7051         * modules/unistd (Depends-on): Update.
7052         * modules/wchar (Depends-on): Update.
7053         * modules/wctype-h (Depends-on): Update.
7054
7055         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7056         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7057         (Files, Makefile.am): Update.
7058         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7059         * modules/argv-iter (Depends-on): Update.
7060         * modules/arpa_inet (Depends-on): Update.
7061         * modules/dirent (Depends-on): Update.
7062         * modules/fcntl-h (Depends-on): Update.
7063         * modules/fnmatch (Depends-on): Update.
7064         * modules/getopt-posix (Depends-on): Update.
7065         * modules/glob (Depends-on): Update.
7066         * modules/iconv-h (Depends-on): Update.
7067         * modules/inttypes-incomplete (Depends-on): Update.
7068         * modules/locale (Depends-on): Update.
7069         * modules/math (Depends-on): Update.
7070         * modules/netdb (Depends-on): Update.
7071         * modules/search (Depends-on): Update.
7072         * modules/signal (Depends-on): Update.
7073         * modules/spawn (Depends-on): Update.
7074         * modules/stdio (Depends-on): Update.
7075         * modules/stdlib (Depends-on): Update.
7076         * modules/string (Depends-on): Update.
7077         * modules/strings (Depends-on): Update.
7078         * modules/sys_socket (Depends-on): Update.
7079         * modules/sys_stat (Depends-on): Update.
7080         * modules/sys_time (Depends-on): Update.
7081         * modules/sys_times (Depends-on): Update.
7082         * modules/sys_utsname (Depends-on): Update.
7083         * modules/time (Depends-on): Update.
7084         * modules/unistd (Depends-on): Update.
7085         * modules/wchar (Depends-on): Update.
7086         * MODULES.html.sh (Support for building libraries and executables):
7087         Update.
7088
7089 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7090
7091         Improvements on _Noreturn and related modules.
7092
7093         modules/_Exit-tests: test _Noreturn too
7094         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7095         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7096         (main): Use them.
7097
7098         stdnoreturn, stdnoreturn-tests: remove modules
7099         They're not needed here and a bit premature for use elsewhere.  See
7100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7101         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7102         * tests/test-stdnoreturn.c: Remove files.
7103         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7104         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7105         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7106         and using noreturn.
7107         * modules/openat, modules/sigpipe-die, modules/xalloc:
7108         * modules/xmemdup0, modules/xstrtol:
7109         Remove dependency on stdnoreturn.
7110
7111         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7112         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7113         Reparenthesize to avoid GCC warning.
7114         Support Microsoft's syntax.
7115         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7116
7117         _Noreturn-tests: remove module
7118         * modules/_Noreturn-tests: Remove.
7119         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7120         * tests/test-_Noreturn.c: Remove.
7121         * tests/test-stdnoreturn.c: Merge from the old
7122         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7123
7124 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7125
7126         _Noreturn, stdnoreturn, and related modules.
7127
7128         * top/maint.mk: Adjust to new noreturn support.
7129         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7130         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7131
7132         xalloc: use stdnoreturn.h
7133         * lib/xalloc.h: Include <stdnoreturn.h>.
7134         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7135         * modules/xalloc (Depends-on): Add stdnoreturn.
7136
7137         xstrtol: use stdnoreturn.h
7138         * lib/xstrtol.h: Include <stdnoreturn.h>.
7139         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7140         * modules/xstrtol (Depends-on): Add stdnoreturn.
7141
7142         xmemdup0: use stdnoreturn.h
7143         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7144         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7145         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7146
7147         sigpipe-die: use stdnoreturn.h
7148         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7149         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7150         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7151
7152         openat: use stdnoreturn.h
7153         * lib/openat.h: Include <stdnoreturn.h>.
7154         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7155         * modules/openat (Depends-on): Add stdnoreturn.
7156
7157         * lib/openat-die.c (openat_save_fail): Modernize comment.
7158
7159         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7160
7161         * lib/glthread/thread.h: Modernize comment.
7162
7163         obstack: use _Noreturn
7164         * lib/obstack.c (__attribute__): Remove macro.
7165         (print_and_abort): Use _Noreturn.
7166
7167         c-stack: use _Noreturn
7168         * lib/c-stack.c (die, overflow_handler, segv_handler):
7169         Use _Noreturn rather than __attribute__((noreturn)).
7170
7171         argmatch-tests, exclude_tests: use _Noreturn
7172         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7173         Remove.
7174         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7175
7176         stdlib: use _Noreturn
7177         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7178         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7179         * modules/stdlib (Depends-on): Add _Noreturn.
7180         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7181
7182         stdnoreturn-tests: new module
7183         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7184
7185         stdnoreturn: new module
7186         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7187         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7188
7189         _Noreturn-tests: new module
7190         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7191
7192         _Noreturn: new module
7193         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7194         New section, mentioning it.
7195         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7196
7197         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7198
7199 2011-07-11  Eric Blake  <eblake@redhat.com>
7200
7201         ffs: new module
7202         * modules/ffs: New file.
7203         * m4/ffs.m4: Likewise.
7204         * lib/ffs.c: Likewise.
7205         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7206         * modules/strings (Makefile.am): Substitute witness.
7207         (Depends-on): Add c++defs.
7208         * lib/strings.in.h (ffs): Declare.
7209         * modules/ffs-tests: New test file.
7210         * tests/test-ffs.c: Test new module.
7211         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7212         * doc/posix-functions/ffs.texi (ffs): Likewise.
7213
7214         regex: avoid compiler warning
7215         * lib/regex.c (includes): Include <strings.h>, for use of
7216         strcasecmp in regcomp.c.
7217         Reported by Joachim Schmitz.
7218
7219 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7220
7221         stdint: respect system's intmax_t if INTMAX_MAX
7222         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7223         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7224         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7225         long but int64_t is long long, and where we will clash with the
7226         system intmax_t if we override it.  See
7227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7228         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7229         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7230         similarly for UINTMAX_C.
7231
7232 2011-07-08  Bruno Haible  <bruno@clisp.org>
7233
7234         pthread_sigmask tests: Avoid a compiler warning.
7235         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7236         non-zero.
7237
7238         sigprocmask tests: A better way to avoid a compiler warning.
7239         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7240         (main): Complain if system() returns non-zero.
7241         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7242
7243 2011-07-08  Bruno Haible  <bruno@clisp.org>
7244
7245         pthread_sigmask: Work around IRIX bug.
7246         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7247         bug.
7248         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7249         there may be unblocked pending signals.
7250         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7251
7252 2011-07-08  Bruno Haible  <bruno@clisp.org>
7253
7254         pthread_sigmask: Work around Cygwin bug.
7255         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7256         bug.
7257         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7258         the system's pthread_sigmask function.
7259         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7260
7261 2011-07-08  Bruno Haible  <bruno@clisp.org>
7262
7263         pthread_sigmask: Work around bug in single-threaded implementation.
7264         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7265         FreeBSD, HP-UX, Solaris bug.
7266         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7267         * lib/pthread_sigmask.c: Include <stddef.h>.
7268         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7269         the system's pthread_sigmask function.
7270         * modules/pthread_sigmask (configure.ac): Invoke
7271         gl_PREREQ_PTHREAD_SIGMASK.
7272         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7273         HP-UX, Solaris.
7274
7275 2011-07-08  Eric Blake  <eblake@redhat.com>
7276
7277         test-sigprocmask: avoid compiler warning
7278         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7279         * tests/test-sigprocmask.c (main): Use it to silence warning.
7280         Reported by Jim Meyering.
7281
7282         test-snprintf: avoid compiler warning
7283         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7284         * tests/test-vsnprintf.c (main): Likewise.
7285         Reported by Jim Meyering.
7286
7287 2011-07-08  Bruno Haible  <bruno@clisp.org>
7288
7289         Tests for module 'pthread_sigmask'.
7290         * modules/pthread_sigmask-tests: New file.
7291         * tests/test-pthread_sigmask1.c: New file, based on
7292         tests/test-sigprocmask.c.
7293         * tests/test-pthread_sigmask2.c: New file.
7294
7295 2011-07-08  Jim Meyering  <meyering@redhat.com>
7296
7297         test-getopt.h: avoid warning about an unused variable
7298         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7299
7300 2011-07-07  Jim Meyering  <meyering@redhat.com>
7301
7302         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7303         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7304         now that it no longer contains leading TABs.
7305         Remove unused "url=FIXME" statement.
7306
7307 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7308
7309         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7311         When gl_THREADLIB is not in use, assume that the POSIX sematics
7312         are desired.  This is better for Emacs, which uses POSIX semantics
7313         on GNUish and/or POSIXish platforms, and does not use threads at
7314         all otherwise.
7315
7316         pthread_sigmask: fix typo when testing for libraries
7317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7318         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7319
7320 2011-07-08  Eric Blake  <eblake@redhat.com>
7321
7322         fts: introduce FTS_NOATIME
7323         * lib/fts_.h (FTS_NOATIME): New bit flag.
7324         (FTS_OPTIONMASK): Adjust.
7325         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7326         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7327
7328 2011-07-08  Bruno Haible  <bruno@clisp.org>
7329
7330         Tests for module 'thread'.
7331         * modules/thread-tests: New file.
7332         * tests/test-thread_self.c: New file.
7333         * tests/test-thread_create.cc: New file.
7334
7335 2011-07-08  Bruno Haible  <bruno@clisp.org>
7336
7337         thread: Avoid gcc warnings when using gl_thread_self().
7338         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7339         'void *'.
7340         (gl_thread_self_pointer): Update.
7341
7342 2011-07-07  Bruno Haible  <bruno@clisp.org>
7343
7344         signal-c++-tests: Check declaration of pthread_sigmask.
7345         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7346         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7347         $(LIB_PTHREAD_SIGMASK).
7348
7349 2011-07-07  Bruno Haible  <bruno@clisp.org>
7350
7351         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7352         * lib/signal.in.h (pthread_sigmask): Override if
7353         REPLACE_PTHREAD_SIGMASK is 1.
7354         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7355         REPLACE_PTHREAD_SIGMASK.
7356         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7357         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7358         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7359         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7360         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7361
7362 2011-07-07  Bruno Haible  <bruno@clisp.org>
7363
7364         pthread_sigmask: Ensure declaration in <signal.h>.
7365         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7366         include <pthread.h>.
7367         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7368         problem.
7369
7370 2011-07-07  Bruno Haible  <bruno@clisp.org>
7371
7372         pthread_sigmask: Document the module.
7373         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7374
7375 2011-07-07  Bruno Haible  <bruno@clisp.org>
7376
7377         pthread_sigmask: Follow gnulib conventions.
7378         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7379         gl_PTHREAD_SIGMASK.
7380         * modules/pthread_sigmask (configure.ac): Update.
7381
7382 2011-07-07  Bruno Haible  <bruno@clisp.org>
7383
7384         pthread_sigmask: Make declaration C++ safe.
7385         * lib/signal.in.h: In two special conditions, just do an #include_next.
7386         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7387         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7388         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7389         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7390         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7391         not REPLACE_PTHREAD_MASK.
7392         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7393         not REPLACE_PTHREAD_MASK.
7394         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7395
7396 2011-07-07  Bruno Haible  <bruno@clisp.org>
7397
7398         pthread_sigmask: Fix return value.
7399         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7400         * lib/pthread_sigmask.c: New file.
7401         * modules/pthread_sigmask (Files): Add it.
7402         (configure.ac): Invoke AC_LIBOBJ.
7403
7404 2011-07-07  Eric Blake  <eblake@redhat.com>
7405
7406         getopt: more portable argv creation
7407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7408         const, use char arrays rather than strings.
7409         Suggested by Paul Eggert.
7410
7411 2011-07-07  Bruno Haible  <bruno@clisp.org>
7412
7413         Tests for module 'sigprocmask'.
7414         * modules/sigprocmask-tests: New file.
7415         * tests/test-sigprocmask.c: New file.
7416
7417 2011-07-07  Bruno Haible  <bruno@clisp.org>
7418
7419         float tests: Tweak.
7420         * tests/test-float.c (main): Tweak skip message.
7421
7422 2011-07-07  Eric Blake  <eblake@redhat.com>
7423
7424         getopt: avoid compiler warning during configure
7425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7426         assigning string literals to non-const pointer.
7427
7428         getopt-gnu: avoid crash in glibc getopt
7429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7430         * tests/test-getopt.h (test_getopt): Enhance test.
7431         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7432         * doc/posix-functions/getopt.texi (getopt): Document it.
7433         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7434         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7435         Likewise.
7436
7437 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7438
7439         getopt: handle W; without long options in getopt [BZ #12922]
7440         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7441         but no long options are defined, just return 'W'.
7442
7443 2011-07-07  Bruno Haible  <bruno@clisp.org>
7444
7445         Avoid literal tabs.
7446         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7447         variable containing a tab instead of a literal tab.
7448         Reported by Jim Meyering.
7449
7450 2011-07-07  Bruno Haible  <bruno@clisp.org>
7451
7452         Comments.
7453         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7454
7455 2011-07-06  Bruno Haible  <bruno@clisp.org>
7456
7457         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7458         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7459         <winsock2.h>.
7460         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7461         lib/sys_socket.in.h.
7462         (close, gethostname): Hide declarations from <winsock2.h>.
7463         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7464         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7465         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7466         (select): Don't override if gnulib's <sys/select.h> was already
7467         included.
7468         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7469         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7470         setsockopt, shutdown, select): Tweak indentation.
7471
7472 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7473
7474         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7475         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7476         in an application that does not use the sys_select module.
7477
7478 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7479
7480         poll: do not return 0 on timeout=-1
7481         * lib/poll.c: Loop with yield if no events occured
7482
7483 2011-07-06  Eric Blake  <eblake@redhat.com>
7484
7485         pthread_sigmask: always replace when not using pthread
7486         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7487         replacement when using some threading other than pthread.  Fix
7488         logic bug.
7489
7490 2011-07-06  Bruno Haible  <bruno@clisp.org>
7491
7492         Comments.
7493         * m4/printf.m4: Update comments about mingw.
7494
7495 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7496
7497         sys_select: define sigset_t more portably
7498         * lib/sys_select.in.h: Always include <sys/types.h>, since
7499         we now need sigset_t and mingw defines it there.
7500         Include <signal.h> before split inclusion guard, to avoid
7501         mishaps on Solaris, whose <signal.h> eventually includes us.
7502         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7503         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7504         which come from ...
7505         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7506         gl_CHECK_TYPE_SIGSET_T.
7507         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7508         does the real work.
7509         * modules/sys_select (Depends-on): Add 'signal'.
7510
7511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7512         Suggested by Bruno Haible.
7513
7514         pselect: Use pthread_sigmask, not sigprocmask.
7515         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7516         multithreaded apps better than sigprocmask does.
7517         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7518         sigprocmask directly.
7519
7520 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7521
7522         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7523         Don't #undef,  since we don't need any underlying pselect.
7524         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7525         (Depends-on): Add select.
7526         (Link): Add $(LIBSOCKET).
7527         These changes suggested by Bruno Haible.
7528
7529         pselect: document better
7530         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7531         * doc/posix-functions/pselect.texi (pselect): Document new module.
7532
7533         pthread_sigmask: new module
7534         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7535         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7536         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7537         This is done only as a macro; I don't know how well that'll
7538         work for C++.  Move <sys/types.h> include before the include_next,
7539         to avoid mishap on Solaris.
7540         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7541         * modules/signal (Makefile.am): Substitute the check's results.
7542         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7543
7544         test-pselect: new module
7545         * modules/pselect-tests, tests/test-pselect.c: New files.
7546         * tests/test-select.c, tests/test-sys_select-c++.cc:
7547         If TEST_PSELECT is defined, test pselect instead of testing select.
7548
7549         * tests/test-sys_select.c (sigset_t): Test for it, too.
7550         Suggested by Bruno Haible.
7551
7552 2011-07-05  Eric Blake  <eblake@redhat.com>
7553
7554         snprintf: guarantee %1$d, for libintl
7555         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7556         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7557         * doc/posix-functions/snprintf.texi (snprintf): Update.
7558         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7559         * tests/test-snprintf.c (main): Enhance test.
7560         * tests/test-vsnprintf.c (main): Likewise.
7561
7562 2011-07-05  Jim Meyering  <meyering@redhat.com>
7563
7564         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7565         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7566         per Bruno's request, to accommodate this idiom (no space after "#")
7567         even when the function is inside an #if block:
7568         char *
7569         gets (char *s)
7570         #undef gets
7571         {
7572           ...
7573         }
7574
7575 2011-07-04  Jim Meyering  <meyering@redhat.com>
7576
7577         maint: indent with spaces, not TABs, and add a rule to check this
7578         * tests/test-userspec.c: Indent with spaces, not TABs.
7579         * tests/test-argp.c: Likewise.
7580         * tests/test-c-stack2.sh: Likewise.
7581         * tests/test-parse-duration.sh: Likewise
7582         * m4/strtod.m4: Likewise.
7583         * m4/alloca.m4: Likewise.
7584         * m4/pselect.m4: Likewise.
7585         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7586
7587 2011-07-03  Jim Meyering  <meyering@redhat.com>
7588
7589         maint.mk: correct omissions in prohibit_argmatch_without_use check
7590         This rule would mistakenly report that argmatch.h is included without
7591         use even when both the argmatch and invalid_arg macro were used.
7592         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7593         of argmatch and invalid_arg.
7594
7595 2011-07-03  Bruno Haible  <bruno@clisp.org>
7596
7597         Comments about EINTR.
7598         * lib/safe-read.h: Explain the purpose of this module.
7599         * lib/safe-write.h: Likewise.
7600         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7601         module.
7602         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7603         module.
7604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7605
7606 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7607
7608         xnanosleep: Rewrite to use new dtotimespec module.
7609         It has the conversion code that used to be in xnanosleep.
7610         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7611         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7612         (TIME_T_MAX): Remove.
7613         (xnanosleep): Rewrite in terms of dtotimespec.
7614         * modules/xnanosleep (Depends-on): Add dtotimespec.
7615         Remove intprops, stdbool.
7616
7617         timespec-add, timespec-sub: new modules
7618         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7619         * lib/timespec-add.c, lib/timespec-sub.c:
7620         * modules/timespec-add, modules/timespec-sub: New files.
7621
7622         dtotimespec: new module
7623         * lib/timespec.h (dtotimespec): New decl.
7624         * lib/dtotimespec.c, modules/dtotimespec: New files.
7625
7626         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7627
7628         pselect: new module
7629         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7630         (pselect): New decls.
7631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7632         since the standard pselect decl uses 'restrict'.
7633         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7634         HAVE_PSELECT, REPLACE_PSELECT.
7635         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7636         HAVE_PSELECT, REPLACE_PSELECT.
7637         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7638
7639         sys_select: don't depend on sys_socket
7640         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7642         This fix works on GNU and GNU-like platforms, but has not been tested
7643         on native Windows.
7644         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7645         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7646         gl_HEADER_SYS_SOCKET.
7647         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7648         gl_PREREQ_SYS_H_WINSOCK2.
7649
7650 2011-06-29  Eric Blake  <eblake@redhat.com>
7651
7652         pipe2: fix C89 compile problem
7653         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7654         Reported by Bruno Haible.
7655
7656         pipe, pipe2: don't corrupt fd on error
7657         * lib/pipe.c (pipe): Leave fd unchanged on error.
7658         * lib/pipe2.c (pipe2): Likewise.
7659         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7660         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7661
7662 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7663
7664         mmap-anon: do not use regular expressions inadvertently
7665         * m4/mmap-anon.m4: Remove trailing period from strings sought
7666         in the output.
7667
7668 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7669
7670         nanosleep: fix integer overflow problem
7671         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7672         arithmetic wraps around on overflow.
7673
7674         nanosleep: simplify carrying
7675         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7676         first call to the underyling nanosleep, not for the last one.
7677         This doesn't fix any bugs, but it simplifies the computation of
7678         the remaining delay.  Found while auditing integer overflow issues.
7679
7680         dup2: remove test for existence of fcntl
7681         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7682         "#if HAVE_FCNTL", in the configure-time test program.
7683         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7684         and therefore speeds up "configure" a bit.  Found while
7685         adding the dup2 module to Emacs.
7686
7687 2011-06-24  Eric Blake  <eblake@redhat.com>
7688
7689         maint.mk: enhance useless header checks
7690         * top/maint.mk (_sc_header_without_use): Check both include
7691         styles.
7692         (sc_prohibit_assert_without_use)
7693         (sc_prohibit_close_stream_without_use)
7694         (sc_prohibit_getopt_without_use)
7695         (sc_prohibit_quotearg_without_use)
7696         (sc_prohibit_quote_without_use)
7697         (sc_prohibit_long_options_without_use)
7698         (sc_prohibit_inttostr_without_use)
7699         (sc_prohibit_ignore_value_without_use)
7700         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7701         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7702         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7703         (sc_prohibit_hash_pjw_without_use)
7704         (sc_prohibit_safe_read_without_use)
7705         (sc_prohibit_argmatch_without_use)
7706         (sc_prohibit_canonicalize_without_use)
7707         (sc_prohibit_root_dev_ino_without_use)
7708         (sc_prohibit_openat_without_use)
7709         (sc_prohibit_c_ctype_without_use)
7710         (sc_prohibit_signal_without_use)
7711         (sc_prohibit_stdio--_without_use)
7712         (sc_prohibit_stdio-safer_without_use)
7713         (sc_prohibit_strings_without_use)
7714         (sc_prohibit_intprops_without_use)
7715         (sc_prohibit_stddef_without_use)
7716         (sc_prohibit_xfreopen_without_use): Update clients.
7717
7718 2011-06-24  Jim Meyering  <meyering@redhat.com>
7719
7720         syntax-check: keep one maint.mk rule in sync with its header
7721         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7722         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7723         I prefer to avoid temporary files here, so use <(...), but that
7724         is not supported by /bin/sh, so...
7725         (SHELL): Define to /bin/bash.
7726
7727 2011-06-24  Eric Blake  <eblake@redhat.com>
7728
7729         maint.mk: update sc_prohibit_intprops_without_use
7730         * top/maint.mk (_intprops_names): Match recent changes.
7731
7732 2011-06-24  Bruno Haible  <bruno@clisp.org>
7733
7734         strerror-override: No-op tweak.
7735         * lib/strerror-override.h (strerror_override): Reorder conditions,
7736         for consistency with lib/strerror-override.c.
7737
7738 2011-06-23  Eric Blake  <eblake@redhat.com>
7739
7740         maint.mk: test further PATH_MAX issues
7741         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7742         (sc_prohibit_path_max_allocation): ...and also test alloca.
7743         Suggested by Jim Meyering.
7744
7745 2011-06-22  Eric Blake  <eblake@redhat.com>
7746
7747         maint.mk: add syntax-check to avoid char[PATH_MAX]
7748         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7749
7750         stat: be robust to PATH_MAX definition
7751         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7752         * modules/stat (Depends-on): Add verify.
7753
7754         link: work around IRIX bug
7755         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7756         * lib/link.c (rpl_link): Work around it.
7757         * tests/test-link.h (test_link): Enhance test.
7758         * doc/posix-functions/link.texi (link): Document the bug.
7759
7760         getopt: silence clang warning
7761         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7762         dereference.
7763         Reported by Gustavo Martin Domato.
7764
7765 2011-06-22  Jim Meyering  <meyering@redhat.com>
7766
7767         bootstrap: do not insert a blank line into each .gitignore file
7768         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7769
7770 2011-06-21  Eric Blake  <eblake@redhat.com>
7771
7772         perror: test for output mismatch
7773         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7774         perror on IRIX.
7775
7776         strerror_r: fix OpenBSD behavior on out-of-range
7777         * lib/strerror_r.c (strerror_r): Always use maximal string.
7778         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7779
7780         strerror_r: fix OpenBSD behavior on 0
7781         * lib/strerror-override.c (strerror_override): Also override 0
7782         when needed.
7783         * lib/strerror-override.h (strerror_override): Likewise.
7784         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7785         earlier.
7786         * lib/strerror_r.c (strerror_r): Likewise.
7787         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7788         behavior...
7789         (gl_FUNC_STRERROR_0): ...into new macro.
7790         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7791         is overridden.
7792         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7793         * modules/strerror-override (Files): Add strerror.m4.
7794         (configure.ac): Also provide override for 0 when needed.
7795         * doc/posix-functions/strerror.texi (strerror): Document this.
7796         * doc/posix-functions/perror.texi (perror): Likewise.
7797
7798         perror: adjust array size
7799         * modules/perror (Depends-on): Add strerror-override.
7800         * lib/perror.c (perror): Use it to avoid magic number.
7801
7802         strerror-override: reduce size
7803         * lib/strerror-override.c (strerror_override): Use fewer lines.
7804
7805 2011-06-20  Bruno Haible  <bruno@clisp.org>
7806
7807         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7808         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7809
7810 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7811
7812         alloca: port to compilers that can optimize like GCC 4.6.0
7813         * lib/alloca.c (find_stack_direction): New signature, taken from
7814         Autoconf git.  This works with GCC 4.6.0.  This code should never
7815         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7816         be used with other compilers that optimize as well as GCC 4.6.0 does.
7817         (alloca): Adjust to new signature.
7818         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7819         New macro, which patches Autoconf in a similar way.
7820
7821         c-stack: stop worrying about stack direction
7822         * lib/c-stack.c (find_stack_direction): Remove.
7823         (segv_handler): Don't worry about stack direction growth, as it's
7824         too much of a pain to configure this correctly, given how compilers
7825         are optimizing-away our stack-growth detection code.  Instead, assume
7826         that any access to just before or just after the stack is OK.
7827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7828         Don't require AC_FUNC_ALLOCA; no longer needed.
7829
7830 2011-06-20  Eric Blake  <eblake@redhat.com>
7831
7832         test-stat: don't allocate PATH_MAX bytes
7833         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7834         PATH_MAX-sized buffer.
7835         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7836         * modules/stat-tests (Depends-on): Likewise.
7837         * tests/test-fstatat.c (includes): Drop pathmax.h.
7838         * tests/test-stat.c (includes): Likewise.
7839         Reported by Bruno Haible.
7840
7841 2011-06-20  Bruno Haible  <bruno@clisp.org>
7842
7843         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7844         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7845         * lib/float.c: New file.
7846         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7847         REPLACE_FLOAT_LDBL.
7848         * modules/float (Files): Add lib/float.c.
7849         (configure.ac): Invoke AC_LIBOBJ.
7850         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7851
7852 2011-06-20  Bruno Haible  <bruno@clisp.org>
7853
7854         Tests for module 'float'.
7855         * modules/float-tests: New file.
7856         * tests/test-float.c: New file.
7857
7858 2011-06-19  Bruno Haible  <bruno@clisp.org>
7859
7860         isinf: Coding style.
7861         * lib/isinf.c: Use GNU coding style.
7862
7863 2011-06-19  Bruno Haible  <bruno@clisp.org>
7864
7865         linkat test: Avoid test failure on AIX 7.1.
7866         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7867         * tests/test-link.h (test_link): Likewise.
7868
7869 2011-06-19  Bruno Haible  <bruno@clisp.org>
7870
7871         pread test: Avoid test failure on OpenBSD 4.9.
7872         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7873
7874 2011-06-19  Bruno Haible  <bruno@clisp.org>
7875
7876         sprintf-posix: Fix test failure on AIX 7.1.
7877         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7878         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7879         on AIX.
7880         * doc/posix-functions/fprintf.texi: Likewise.
7881         * doc/posix-functions/printf.texi: Likewise.
7882         * doc/posix-functions/snprintf.texi: Likewise.
7883         * doc/posix-functions/sprintf.texi: Likewise.
7884         * doc/posix-functions/vdprintf.texi: Likewise.
7885         * doc/posix-functions/vfprintf.texi: Likewise.
7886         * doc/posix-functions/vprintf.texi: Likewise.
7887         * doc/posix-functions/vsnprintf.texi: Likewise.
7888         * doc/posix-functions/vsprintf.texi: Likewise.
7889
7890 2011-06-19  Bruno Haible  <bruno@clisp.org>
7891
7892         roundl-ieee: Fix test failure on AIX 7.1.
7893         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7894         * doc/posix-functions/roundl.texi: Mention problem with negative
7895         arguments.
7896
7897 2011-06-19  Bruno Haible  <bruno@clisp.org>
7898
7899         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7900         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7901         * doc/posix-functions/round.texi: Mention problem with negative
7902         arguments.
7903         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7904
7905 2011-06-19  Bruno Haible  <bruno@clisp.org>
7906
7907         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7908         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7909         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7910         * doc/posix-functions/roundf.texi: Mention problem with negative
7911         arguments.
7912         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7913
7914 2011-06-19  Bruno Haible  <bruno@clisp.org>
7915
7916         ceilf-ieee: Work around bug on MacOS X 10.5.
7917         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7918
7919         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7920         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7921         IEEE compliant, avoid compiler optimizations.
7922         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7923         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7924         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7925         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7926         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7927         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7928         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7929         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7930         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7931         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7932
7933 2011-06-19  Bruno Haible  <bruno@clisp.org>
7934
7935         ceilf-ieee: Work around bug on AIX 7.1.
7936         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7937         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7938
7939 2011-06-19  Bruno Haible  <bruno@clisp.org>
7940
7941         ceil-ieee: Work around bug on AIX 7.1.
7942         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7943         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7944
7945 2011-06-18  Bruno Haible  <bruno@clisp.org>
7946
7947         fsync test: Avoid test failure on MacOS X and AIX.
7948         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7949         EINVAL.
7950
7951 2011-06-18  Bruno Haible  <bruno@clisp.org>
7952
7953         openat, fdopendir tests: Fix link errors.
7954         * modules/openat-tests (Depends-on): Add progname.
7955         * modules/fdopendir-tests (Depends-on): Likewise.
7956         * tests/test-fchownat.c: Include progname.h.
7957         (main): Call set_program_name.
7958         * tests/test-fstatat.c: Include progname.h.
7959         (main): Call set_program_name.
7960         * tests/test-mkdirat.c: Include progname.h.
7961         (main): Call set_program_name.
7962         * tests/test-openat.c: Include progname.h.
7963         (main): Call set_program_name.
7964         * tests/test-unlinkat.c: Include progname.h.
7965         (main): Call set_program_name.
7966         * tests/test-fdopendir.c: Include progname.h.
7967         (main): Call set_program_name.
7968
7969 2011-06-18  Bruno Haible  <bruno@clisp.org>
7970
7971         Doc update.
7972         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7973         HP-UX.
7974         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7975
7976 2011-06-18  Bruno Haible  <bruno@clisp.org>
7977
7978         getcwd tests: Avoid compilation error on HP-UX 11.31.
7979         * modules/getcwd-tests (Depends-on): Add pathmax.
7980         * tests/test-getcwd.c: Include pathmax.h.
7981
7982 2011-06-18  Bruno Haible  <bruno@clisp.org>
7983
7984         isfinite, isinf: Fix link error on AIX 6 and 7.
7985         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7986         needed, also test the macro with a 'float' argument.
7987         * m4/isinf.m4 (gl_ISINF): Likewise.
7988
7989 2011-06-18  Bruno Haible  <bruno@clisp.org>
7990
7991         getloadavg: Don't clobber LIBS. Regression from previous commit.
7992         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7993         AC_CHECK_LIB from here...
7994         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7995         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7996         gl_func_getloadavg_done.
7997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7998
7999 2011-06-18  Bruno Haible  <bruno@clisp.org>
8000
8001         clean-temp: Improve documentation.
8002         * lib/clean-temp.h: Explain better how to use this module.
8003         Reported by John Darrington <john@darrington.wattle.id.au>.
8004
8005 2011-06-17  Bruno Haible  <bruno@clisp.org>
8006
8007         pread, pwrite: Avoid cc warning on AIX.
8008         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8009         (pwrite): Likewise.
8010
8011 2011-06-17  Bruno Haible  <bruno@clisp.org>
8012
8013         spawn-pipe tests: Fix link error.
8014         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8015         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8016
8017 2011-06-17  Bruno Haible  <bruno@clisp.org>
8018
8019         Tests: Remove unnecessary dependency.
8020         * modules/canonicalize-tests (Depends-on): Remove progname.
8021         * modules/chown-tests (Depends-on): Likewise.
8022         * modules/dirname-tests (Depends-on): Likewise.
8023         * modules/fdopendir-tests (Depends-on): Likewise.
8024         * modules/fdutimensat-tests (Depends-on): Likewise.
8025         * modules/hash-tests (Depends-on): Likewise.
8026         * modules/lchown-tests (Depends-on): Likewise.
8027         * modules/linkat-tests (Depends-on): Likewise.
8028         * modules/renameat-tests (Depends-on): Likewise.
8029         * modules/spawn-pipe-tests (Depends-on): Likewise.
8030         * modules/utimensat-tests (Depends-on): Likewise.
8031
8032 2011-06-17  Bruno Haible  <bruno@clisp.org>
8033
8034         spawn-pipe tests: Fix link error.
8035         * tests/test-spawn-pipe-child.c: Undefine fflush.
8036
8037 2011-06-17  Bruno Haible  <bruno@clisp.org>
8038
8039         Fix tests link errors.
8040         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8041         * modules/chown-tests (Makefile.am): Don't link test-chown with
8042         LIBINTL.
8043         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8044         LIBINTL.
8045         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8046         LIBINTL.
8047         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8048         LIBINTL.
8049
8050 2011-06-16  Bruno Haible  <bruno@clisp.org>
8051
8052         crypto/gc-sha1: Fix recent regression.
8053         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8054         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8055
8056         crypto/gc-md5: Fix recent regression.
8057         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8058
8059         crypto/gc-md4: Fix recent regression.
8060         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8061         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8062
8063         crypto/gc-arctwo: Fix recent regression.
8064         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8065         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8066
8067         crypto/gc-rijndael: Fix recent regression.
8068         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8069         (configure.ac): Invoke AC_LIBOBJ here.
8070         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8072
8073         crypto/gc-hmac-sha1: Fix recent regression.
8074         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8075         (configure.ac): Invoke AC_LIBOBJ here.
8076         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8078
8079         crypto/gc-hmac-md5: Fix recent regression.
8080         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8081         (configure.ac): Invoke AC_LIBOBJ here.
8082         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8084
8085         crypto/gc-des: Fix recent regression.
8086         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8087         (configure.ac): Invoke AC_LIBOBJ here.
8088         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8090
8091         crypto/gc-arcfour: Fix recent regression.
8092         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8093         (configure.ac): Invoke AC_LIBOBJ here.
8094         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8096
8097 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8098
8099         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8100         After the 2011-05-21 change, this macro requires
8101         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8102         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8103
8104 2011-06-16  Bruno Haible  <bruno@clisp.org>
8105
8106         fprintftime: Move AC_LIBOBJ invocations to module description.
8107         * m4/fprintftime.m4: Remove file.
8108         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8109         (configure.ac): Remove gl_FPRINTFTIME call.
8110         (Makefile.am): Augment lib_SOURCES.
8111         Reported by Jim Meyering.
8112
8113 2011-06-16  Bruno Haible  <bruno@clisp.org>
8114
8115         tmpfile-safer: Finish 2011-05-23 commit.
8116         * m4/stdio-safer.m4: Really remove file.
8117         Reported by Jim Meyering.
8118
8119 2011-06-16  Bruno Haible  <bruno@clisp.org>
8120
8121         syntax-check: Fix typo.
8122         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8123         printf-posix.m4.
8124         Reported by Jim Meyering.
8125
8126 2011-06-13  Jim Meyering  <meyering@redhat.com>
8127
8128         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8129         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8130
8131 2011-05-23  Bruno Haible  <bruno@clisp.org>
8132
8133         yesno: Move AC_LIBOBJ invocations to module description.
8134         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8135         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8136
8137 2011-05-23  Bruno Haible  <bruno@clisp.org>
8138
8139         xstrtol: Move AC_LIBOBJ invocations to module description.
8140         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8141         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8142
8143 2011-05-23  Bruno Haible  <bruno@clisp.org>
8144
8145         xstrtold: Move AC_LIBOBJ invocations to module description.
8146         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8147         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8148
8149 2011-05-23  Bruno Haible  <bruno@clisp.org>
8150
8151         xstrtod: Move AC_LIBOBJ invocations to module description.
8152         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8153         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8154
8155 2011-05-23  Bruno Haible  <bruno@clisp.org>
8156
8157         xnanosleep: Move AC_LIBOBJ invocations to module description.
8158         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8159         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8160
8161 2011-05-23  Bruno Haible  <bruno@clisp.org>
8162
8163         xgetcwd: Move AC_LIBOBJ invocations to module description.
8164         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8165         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8166
8167 2011-05-23  Bruno Haible  <bruno@clisp.org>
8168
8169         xalloc: Move AC_LIBOBJ invocations to module description.
8170         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8171         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8172
8173 2011-05-23  Bruno Haible  <bruno@clisp.org>
8174
8175         write-any-file: Move AC_LIBOBJ invocations to module description.
8176         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8177         invocation.
8178         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8179
8180 2011-05-23  Bruno Haible  <bruno@clisp.org>
8181
8182         utimens: Move AC_LIBOBJ invocations to module description.
8183         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8184         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8185
8186 2011-05-23  Bruno Haible  <bruno@clisp.org>
8187
8188         utimecmp: Move AC_LIBOBJ invocations to module description.
8189         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8190         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8191
8192 2011-05-23  Bruno Haible  <bruno@clisp.org>
8193
8194         userspec: Move AC_LIBOBJ invocations to module description.
8195         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8196         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8197
8198 2011-05-23  Bruno Haible  <bruno@clisp.org>
8199
8200         unlinkdir: Move AC_LIBOBJ invocations to module description.
8201         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8202         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8203
8204 2011-05-23  Bruno Haible  <bruno@clisp.org>
8205
8206         unistd-safer: Move AC_LIBOBJ invocations to module description.
8207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8208         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8209
8210 2011-05-23  Bruno Haible  <bruno@clisp.org>
8211
8212         tempname: Move AC_LIBOBJ invocations to module description.
8213         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8214         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8215
8216 2011-05-23  Bruno Haible  <bruno@clisp.org>
8217
8218         strftime: Move AC_LIBOBJ invocations to module description.
8219         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8220         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8221
8222 2011-05-23  Bruno Haible  <bruno@clisp.org>
8223
8224         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8225         * m4/stdlib-safer.m4: Remove file.
8226         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8227         (configure.ac): Remove gl_STDLIB_SAFER call.
8228         (Makefile.am): Augment lib_SOURCES.
8229
8230 2011-05-23  Bruno Haible  <bruno@clisp.org>
8231
8232         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8233         * m4/stdio-safer.m4: Remove file.
8234         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8235         (configure.ac): Remove gl_TMPFILE_SAFER call.
8236         (Makefile.am): Augment lib_SOURCES.
8237
8238 2011-05-23  Bruno Haible  <bruno@clisp.org>
8239
8240         popen-safer: Move AC_LIBOBJ invocations to module description.
8241         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8242         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8243         (configure.ac): Remove gl_POPEN_SAFER call.
8244         (Makefile.am): Augment lib_SOURCES.
8245
8246 2011-05-23  Bruno Haible  <bruno@clisp.org>
8247
8248         freopen-safer: Move AC_LIBOBJ invocations to module description.
8249         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8250         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8251         (configure.ac): Remove gl_FREOPEN_SAFER call.
8252         (Makefile.am): Augment lib_SOURCES.
8253
8254 2011-05-23  Bruno Haible  <bruno@clisp.org>
8255
8256         fopen-safer: Move AC_LIBOBJ invocations to module description.
8257         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8258         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8259         (configure.ac): Remove gl_FOPEN_SAFER call.
8260         (Makefile.am): Augment lib_SOURCES.
8261
8262 2011-05-23  Bruno Haible  <bruno@clisp.org>
8263
8264         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8265         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8266         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8267
8268 2011-05-23  Bruno Haible  <bruno@clisp.org>
8269
8270         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8271         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8272         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8273
8274 2011-05-23  Bruno Haible  <bruno@clisp.org>
8275
8276         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8277         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8278         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8279
8280 2011-05-23  Bruno Haible  <bruno@clisp.org>
8281
8282         settime: Move AC_LIBOBJ invocations to module description.
8283         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8284         * modules/settime (Makefile.am): Augment lib_SOURCES.
8285
8286 2011-05-23  Bruno Haible  <bruno@clisp.org>
8287
8288         savedir: Move AC_LIBOBJ invocations to module description.
8289         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8290         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8291
8292 2011-05-23  Bruno Haible  <bruno@clisp.org>
8293
8294         save-cwd: Move AC_LIBOBJ invocations to module description.
8295         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8296         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8297
8298 2011-05-23  Bruno Haible  <bruno@clisp.org>
8299
8300         same: Move AC_LIBOBJ invocations to module description.
8301         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8302         * modules/same (Makefile.am): Augment lib_SOURCES.
8303
8304 2011-05-23  Bruno Haible  <bruno@clisp.org>
8305
8306         safe-write: Move AC_LIBOBJ invocations to module description.
8307         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8308         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8309         instead of gl_SAFE_WRITE.
8310         (Makefile.am): Augment lib_SOURCES.
8311
8312 2011-05-23  Bruno Haible  <bruno@clisp.org>
8313
8314         safe-read: Move AC_LIBOBJ invocations to module description.
8315         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8316         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8317         of gl_SAFE_READ.
8318         (Makefile.am): Augment lib_SOURCES.
8319
8320 2011-05-23  Bruno Haible  <bruno@clisp.org>
8321
8322         safe-alloc: Move AC_LIBOBJ invocations to module description.
8323         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8324         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8325
8326 2011-05-23  Bruno Haible  <bruno@clisp.org>
8327
8328         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8329         * m4/rijndael.m4: Remove file.
8330         * modules/crypto/rijndael (Files): Remove it.
8331         (configure.ac): Remove gl_RIJNDAEL call.
8332         (Makefile.am): Augment lib_SOURCES.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         readtokens: Move AC_LIBOBJ invocations to module description.
8337         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8338         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8339
8340 2011-05-23  Bruno Haible  <bruno@clisp.org>
8341
8342         read-file: Move AC_LIBOBJ invocations to module description.
8343         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8344         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8345         of gl_FUNC_READ_FILE.
8346         (Makefile.am): Augment lib_SOURCES.
8347
8348 2011-05-23  Bruno Haible  <bruno@clisp.org>
8349
8350         quotearg: Move AC_LIBOBJ invocations to module description.
8351         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8352         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8353
8354 2011-05-23  Bruno Haible  <bruno@clisp.org>
8355
8356         quote: Move AC_LIBOBJ invocations to module description.
8357         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8358         * modules/quote (Makefile.am): Augment lib_SOURCES.
8359
8360 2011-05-23  Bruno Haible  <bruno@clisp.org>
8361
8362         posixver: Move AC_LIBOBJ invocations to module description.
8363         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8364         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8365
8366 2011-05-23  Bruno Haible  <bruno@clisp.org>
8367
8368         posixtm: Move AC_LIBOBJ invocations to module description.
8369         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8370         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8371
8372 2011-05-23  Bruno Haible  <bruno@clisp.org>
8373
8374         physmem: Move AC_LIBOBJ invocations to module description.
8375         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8376         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8377
8378 2011-05-23  Bruno Haible  <bruno@clisp.org>
8379
8380         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8381         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8382         invocation.
8383         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8384
8385 2011-05-23  Bruno Haible  <bruno@clisp.org>
8386
8387         mpsort: Move AC_LIBOBJ invocations to module description.
8388         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8389         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8390
8391 2011-05-23  Bruno Haible  <bruno@clisp.org>
8392
8393         modechange: Move AC_LIBOBJ invocations to module description.
8394         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8395         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8396
8397 2011-05-23  Bruno Haible  <bruno@clisp.org>
8398
8399         mkdir-p: Move AC_LIBOBJ invocations to module description.
8400         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8401         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8402
8403 2011-05-23  Bruno Haible  <bruno@clisp.org>
8404
8405         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8406         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8407         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8408
8409 2011-05-23  Bruno Haible  <bruno@clisp.org>
8410
8411         mgetgroups: Move AC_LIBOBJ invocations to module description.
8412         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8413         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8414
8415 2011-05-23  Bruno Haible  <bruno@clisp.org>
8416
8417         memxor: Move AC_LIBOBJ invocations to module description.
8418         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8419         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8420
8421 2011-05-23  Bruno Haible  <bruno@clisp.org>
8422
8423         memcoll: Move AC_LIBOBJ invocations to module description.
8424         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8425         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8426
8427 2011-05-23  Bruno Haible  <bruno@clisp.org>
8428
8429         memcasecmp: Move AC_LIBOBJ invocations to module description.
8430         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8431         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8432
8433 2011-05-23  Bruno Haible  <bruno@clisp.org>
8434
8435         crypto/md5: Move AC_LIBOBJ invocations to module description.
8436         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8437         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8438
8439 2011-05-23  Bruno Haible  <bruno@clisp.org>
8440
8441         crypto/md4: Move AC_LIBOBJ invocations to module description.
8442         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8443         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8444
8445 2011-05-23  Bruno Haible  <bruno@clisp.org>
8446
8447         crypto/md2: Move AC_LIBOBJ invocations to module description.
8448         * m4/md2.m4: Remove file.
8449         * modules/crypto/md2 (Files): Remove it.
8450         (configure.ac): Remove gl_MD2 call.
8451         (Makefile.am): Augment lib_SOURCES.
8452
8453 2011-05-23  Bruno Haible  <bruno@clisp.org>
8454
8455         long-options: Move AC_LIBOBJ invocations to module description.
8456         * m4/long-options.m4: Remove file.
8457         * modules/long-options (Files): Remove it.
8458         (configure.ac): Remove gl_LONG_OPTIONS call.
8459         (Makefile.am): Augment lib_SOURCES.
8460
8461 2011-05-23  Bruno Haible  <bruno@clisp.org>
8462
8463         i-ring: Move AC_LIBOBJ invocations to module description.
8464         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8465         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8466
8467 2011-05-23  Bruno Haible  <bruno@clisp.org>
8468
8469         idcache: Move AC_LIBOBJ invocations to module description.
8470         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8471         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8472
8473 2011-05-23  Bruno Haible  <bruno@clisp.org>
8474
8475         human: Move AC_LIBOBJ invocations to module description.
8476         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8477         * modules/human (Makefile.am): Augment lib_SOURCES.
8478
8479 2011-05-23  Bruno Haible  <bruno@clisp.org>
8480
8481         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8482         * m4/hmac-sha1.m4: Remove file.
8483         * modules/crypto/hmac-sha1 (Files): Remove it.
8484         (configure.ac): Remove gl_HMAC_SHA1 call.
8485         (Makefile.am): Augment lib_SOURCES.
8486
8487 2011-05-23  Bruno Haible  <bruno@clisp.org>
8488
8489         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8490         * m4/hmac-md5.m4: Remove file.
8491         * modules/crypto/hmac-md5 (Files): Remove it.
8492         (configure.ac): Remove gl_HMAC_MD5 call.
8493         (Makefile.am): Augment lib_SOURCES.
8494
8495 2011-05-23  Bruno Haible  <bruno@clisp.org>
8496
8497         hash: Move AC_LIBOBJ invocations to module description.
8498         * m4/hash.m4: Remove file.
8499         * modules/hash (Files): Remove it.
8500         (configure.ac): Remove gl_HASH call.
8501         (Makefile.am): Augment lib_SOURCES.
8502
8503 2011-05-23  Bruno Haible  <bruno@clisp.org>
8504
8505         hard-locale: Move AC_LIBOBJ invocations to module description.
8506         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8507         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8508
8509 2011-05-23  Bruno Haible  <bruno@clisp.org>
8510
8511         getugroups: Move AC_LIBOBJ invocations to module description.
8512         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8513         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8514
8515 2011-05-23  Bruno Haible  <bruno@clisp.org>
8516
8517         gettime: Move AC_LIBOBJ invocations to module description.
8518         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8519         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8520
8521 2011-05-23  Bruno Haible  <bruno@clisp.org>
8522
8523         getndelim2: Move AC_LIBOBJ invocations to module description.
8524         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8525         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8526
8527 2011-05-23  Bruno Haible  <bruno@clisp.org>
8528
8529         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8530         * m4/gc-pbkdf2-sha1.m4: Remove file.
8531         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8532         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8533         (Makefile.am): Augment lib_SOURCES.
8534
8535 2011-05-23  Bruno Haible  <bruno@clisp.org>
8536
8537         fts: Move AC_LIBOBJ invocations to module description.
8538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8539         * modules/fts (configure.ac): ... to here.
8540
8541 2011-05-23  Bruno Haible  <bruno@clisp.org>
8542
8543         file-type: Move AC_LIBOBJ invocations to module description.
8544         * m4/file-type.m4: Remove file.
8545         * modules/file-type (Files): Remove it.
8546         (configure.ac): Remove gl_FILE_TYPE call.
8547         (Makefile.am): Augment lib_SOURCES.
8548
8549 2011-05-23  Bruno Haible  <bruno@clisp.org>
8550
8551         filenamecat*: Respect rules for use of AC_LIBOBJ.
8552         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8553         Remove AC_LIBOBJ invocation.
8554         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8555         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8556
8557 2011-05-23  Bruno Haible  <bruno@clisp.org>
8558
8559         filemode: Move AC_LIBOBJ invocations to module description.
8560         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8561         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8562
8563 2011-05-23  Bruno Haible  <bruno@clisp.org>
8564
8565         openat-safer: Move AC_LIBOBJ invocations to module description.
8566         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8567         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8568
8569 2011-05-23  Bruno Haible  <bruno@clisp.org>
8570
8571         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8572         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8573         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8574
8575 2011-05-23  Bruno Haible  <bruno@clisp.org>
8576
8577         exclude: Move AC_LIBOBJ invocations to module description.
8578         * m4/exclude.m4: Remove file.
8579         * modules/exclude (Files): Remove it.
8580         (configure.ac): Remove gl_EXCLUDE call.
8581         (Makefile.am): Augment lib_SOURCES.
8582
8583 2011-05-23  Bruno Haible  <bruno@clisp.org>
8584
8585         dirname*: Respect rules for use of AC_LIBOBJ.
8586         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8587         invocations.
8588         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8589         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8590
8591 2011-05-23  Bruno Haible  <bruno@clisp.org>
8592
8593         dirent-safer: Move AC_LIBOBJ invocations to module description.
8594         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8595         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8596
8597 2011-05-23  Bruno Haible  <bruno@clisp.org>
8598
8599         crypto/des: Move AC_LIBOBJ invocations to module description.
8600         * m4/des.m4: Remove file.
8601         * modules/crypto/des (Files): Remove it.
8602         (configure.ac): Remove gl_DES call.
8603         (Makefile.am): Augment lib_SOURCES.
8604
8605 2011-05-23  Bruno Haible  <bruno@clisp.org>
8606
8607         cycle-check: Move AC_LIBOBJ invocations to module description.
8608         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8609         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8610
8611 2011-05-23  Bruno Haible  <bruno@clisp.org>
8612
8613         c-strtold: Move AC_LIBOBJ invocations to module description.
8614         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8615         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8616
8617 2011-05-23  Bruno Haible  <bruno@clisp.org>
8618
8619         c-strtod: Move AC_LIBOBJ invocations to module description.
8620         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8621         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8622
8623 2011-05-23  Bruno Haible  <bruno@clisp.org>
8624
8625         crc: Move AC_LIBOBJ invocations to module description.
8626         * m4/crc.m4: Remove file.
8627         * modules/crc (Files): Remove it.
8628         (configure.ac): Remove gl_CRC call.
8629         (Makefile.am): Augment lib_SOURCES.
8630
8631 2011-05-23  Bruno Haible  <bruno@clisp.org>
8632
8633         close-stream: Move AC_LIBOBJ invocations to module description.
8634         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8635         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8636
8637 2011-05-23  Bruno Haible  <bruno@clisp.org>
8638
8639         closeout: Move AC_LIBOBJ invocations to module description.
8640         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8641         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8642
8643 2011-05-23  Bruno Haible  <bruno@clisp.org>
8644
8645         closein: Move AC_LIBOBJ invocations to module description.
8646         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8647         * modules/closein (Makefile.am): Augment lib_SOURCES.
8648
8649 2011-05-23  Bruno Haible  <bruno@clisp.org>
8650
8651         cloexec: Move AC_LIBOBJ invocations to module description.
8652         * m4/cloexec.m4: Remove file.
8653         * modules/cloexec (Files): Remove it.
8654         (configure.ac): Remove gl_CLOEXEC call.
8655         (Makefile.am): Augment lib_SOURCES.
8656
8657 2011-05-23  Bruno Haible  <bruno@clisp.org>
8658
8659         check-version: Move AC_LIBOBJ invocations to module description.
8660         * m4/check-version.m4: Remove file.
8661         * modules/check-version (Files): Remove it.
8662         (configure.ac): Remove gl_CHECK_VERSION call.
8663         (Makefile.am): Augment lib_SOURCES.
8664
8665 2011-05-23  Bruno Haible  <bruno@clisp.org>
8666
8667         chdir-safer: Move AC_LIBOBJ invocations to module description.
8668         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8669         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         canonicalize: Move AC_LIBOBJ invocations to module description.
8674         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8675         AC_LIBOBJ invocation.
8676         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8677
8678 2011-05-23  Bruno Haible  <bruno@clisp.org>
8679
8680         canon-host: Move AC_LIBOBJ invocations to module description.
8681         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8682         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8683         instead of gl_CANON_HOST.
8684         (Makefile.am): Augment lib_SOURCES.
8685
8686 2011-05-23  Bruno Haible  <bruno@clisp.org>
8687
8688         backupfile: Move AC_LIBOBJ invocations to module description.
8689         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8690         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8691
8692 2011-05-23  Bruno Haible  <bruno@clisp.org>
8693
8694         argmatch: Move AC_LIBOBJ invocations to module description.
8695         * m4/argmatch.m4: Remove file.
8696         * modules/argmatch (Files): Remove it.
8697         (configure.ac): Remove gl_ARGMATCH call.
8698         (Makefile.am): Augment lib_SOURCES.
8699
8700 2011-05-23  Bruno Haible  <bruno@clisp.org>
8701
8702         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8703         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8704         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8705
8706 2011-05-23  Bruno Haible  <bruno@clisp.org>
8707
8708         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8709         * m4/arcfour.m4: Remove file.
8710         * modules/crypto/arcfour (Files): Remove it.
8711         (configure.ac): Remove gl_ARCFOUR call.
8712         (Makefile.am): Augment lib_SOURCES.
8713
8714 2011-05-22  Bruno Haible  <bruno@clisp.org>
8715
8716         write: Move AC_LIBOBJ invocations to module description.
8717         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8718         * modules/write (configure.ac): ... to here.
8719
8720 2011-05-22  Bruno Haible  <bruno@clisp.org>
8721
8722         wmemset: Move AC_LIBOBJ invocations to module description.
8723         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8724         here...
8725         * modules/wmemset (configure.ac): ... to here.
8726
8727 2011-05-22  Bruno Haible  <bruno@clisp.org>
8728
8729         wmemmove: Move AC_LIBOBJ invocations to module description.
8730         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8731         here...
8732         * modules/wmemmove (configure.ac): ... to here.
8733
8734 2011-05-22  Bruno Haible  <bruno@clisp.org>
8735
8736         wmemcpy: Move AC_LIBOBJ invocations to module description.
8737         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8738         here...
8739         * modules/wmemcpy (configure.ac): ... to here.
8740
8741 2011-05-22  Bruno Haible  <bruno@clisp.org>
8742
8743         wmemcmp: Move AC_LIBOBJ invocations to module description.
8744         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8745         here...
8746         * modules/wmemcmp (configure.ac): ... to here.
8747
8748 2011-05-22  Bruno Haible  <bruno@clisp.org>
8749
8750         wmemchr: Move AC_LIBOBJ invocations to module description.
8751         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8752         here...
8753         * modules/wmemchr (configure.ac): ... to here.
8754
8755 2011-05-22  Bruno Haible  <bruno@clisp.org>
8756
8757         wcswidth: Move AC_LIBOBJ invocations to module description.
8758         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8759         here...
8760         * modules/wcswidth (configure.ac): ... to here.
8761
8762 2011-05-22  Bruno Haible  <bruno@clisp.org>
8763
8764         wcwidth: Respect rules for use of AC_LIBOBJ.
8765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8766         invocation from here...
8767         * modules/wcwidth (configure.ac): ... to here.
8768         (Depends-on): Update conditions.
8769
8770 2011-05-22  Bruno Haible  <bruno@clisp.org>
8771
8772         wctype: Move AC_LIBOBJ invocations to module description.
8773         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8774         invocation from here...
8775         * modules/wctype (configure.ac): ... to here.
8776         (Depends-on): Update conditions.
8777
8778 2011-05-22  Bruno Haible  <bruno@clisp.org>
8779
8780         wctrans: Move AC_LIBOBJ invocations to module description.
8781         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8782         invocation from here...
8783         * modules/wctrans (configure.ac): ... to here.
8784
8785 2011-05-22  Bruno Haible  <bruno@clisp.org>
8786
8787         wctomb: Move AC_LIBOBJ invocations to module description.
8788         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8789         invocations from here...
8790         * modules/wctomb (configure.ac): ... to here.
8791
8792 2011-05-22  Bruno Haible  <bruno@clisp.org>
8793
8794         wctob: Move AC_LIBOBJ invocations to module description.
8795         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8796         gl_PREREQ_WCTOB invocations from here...
8797         * modules/wctob (configure.ac): ... to here.
8798         (Depends-on): Update conditions.
8799
8800 2011-05-22  Bruno Haible  <bruno@clisp.org>
8801
8802         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8803         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8804         here...
8805         * modules/wcsxfrm (configure.ac): ... to here.
8806
8807 2011-05-22  Bruno Haible  <bruno@clisp.org>
8808
8809         wcstok: Move AC_LIBOBJ invocations to module description.
8810         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8811         * modules/wcstok (configure.ac): ... to here.
8812
8813 2011-05-22  Bruno Haible  <bruno@clisp.org>
8814
8815         wcsstr: Move AC_LIBOBJ invocations to module description.
8816         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8817         * modules/wcsstr (configure.ac): ... to here.
8818
8819 2011-05-22  Bruno Haible  <bruno@clisp.org>
8820
8821         wcsspn: Move AC_LIBOBJ invocations to module description.
8822         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8823         * modules/wcsspn (configure.ac): ... to here.
8824
8825 2011-05-22  Bruno Haible  <bruno@clisp.org>
8826
8827         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8828         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8829         gl_PREREQ_WCSRTOMBS invocations from here...
8830         * modules/wcsrtombs (configure.ac): ... to here.
8831
8832 2011-05-22  Bruno Haible  <bruno@clisp.org>
8833
8834         wcsrchr: Move AC_LIBOBJ invocations to module description.
8835         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8836         here...
8837         * modules/wcsrchr (configure.ac): ... to here.
8838
8839 2011-05-22  Bruno Haible  <bruno@clisp.org>
8840
8841         wcspbrk: Move AC_LIBOBJ invocations to module description.
8842         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8843         here...
8844         * modules/wcspbrk (configure.ac): ... to here.
8845
8846 2011-05-22  Bruno Haible  <bruno@clisp.org>
8847
8848         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8849         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8850         gl_PREREQ_WCSNRTOMBS invocations from here...
8851         * modules/wcsnrtombs (configure.ac): ... to here.
8852
8853 2011-05-22  Bruno Haible  <bruno@clisp.org>
8854
8855         wcsnlen: Move AC_LIBOBJ invocations to module description.
8856         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8857         here...
8858         * modules/wcsnlen (configure.ac): ... to here.
8859
8860 2011-05-22  Bruno Haible  <bruno@clisp.org>
8861
8862         wcsncpy: Move AC_LIBOBJ invocations to module description.
8863         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8864         here...
8865         * modules/wcsncpy (configure.ac): ... to here.
8866
8867 2011-05-22  Bruno Haible  <bruno@clisp.org>
8868
8869         wcsncmp: Move AC_LIBOBJ invocations to module description.
8870         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8871         here...
8872         * modules/wcsncmp (configure.ac): ... to here.
8873
8874 2011-05-22  Bruno Haible  <bruno@clisp.org>
8875
8876         wcsncat: Move AC_LIBOBJ invocations to module description.
8877         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8878         here...
8879         * modules/wcsncat (configure.ac): ... to here.
8880
8881 2011-05-22  Bruno Haible  <bruno@clisp.org>
8882
8883         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8884         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8885         from here...
8886         * modules/wcsncasecmp (configure.ac): ... to here.
8887
8888 2011-05-22  Bruno Haible  <bruno@clisp.org>
8889
8890         wcslen: Move AC_LIBOBJ invocations to module description.
8891         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8892         * modules/wcslen (configure.ac): ... to here.
8893
8894 2011-05-22  Bruno Haible  <bruno@clisp.org>
8895
8896         wcsdup: Move AC_LIBOBJ invocations to module description.
8897         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8898         * modules/wcsdup (configure.ac): ... to here.
8899
8900 2011-05-22  Bruno Haible  <bruno@clisp.org>
8901
8902         wcscspn: Move AC_LIBOBJ invocations to module description.
8903         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8904         here...
8905         * modules/wcscspn (configure.ac): ... to here.
8906
8907 2011-05-22  Bruno Haible  <bruno@clisp.org>
8908
8909         wcscpy: Move AC_LIBOBJ invocations to module description.
8910         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8911         * modules/wcscpy (configure.ac): ... to here.
8912
8913 2011-05-22  Bruno Haible  <bruno@clisp.org>
8914
8915         wcscoll: Move AC_LIBOBJ invocations to module description.
8916         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8917         here...
8918         * modules/wcscoll (configure.ac): ... to here.
8919
8920 2011-05-22  Bruno Haible  <bruno@clisp.org>
8921
8922         wcscmp: Move AC_LIBOBJ invocations to module description.
8923         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8924         * modules/wcscmp (configure.ac): ... to here.
8925
8926 2011-05-22  Bruno Haible  <bruno@clisp.org>
8927
8928         wcschr: Move AC_LIBOBJ invocations to module description.
8929         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8930         * modules/wcschr (configure.ac): ... to here.
8931
8932 2011-05-22  Bruno Haible  <bruno@clisp.org>
8933
8934         wcscat: Move AC_LIBOBJ invocations to module description.
8935         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8936         * modules/wcscat (configure.ac): ... to here.
8937
8938 2011-05-22  Bruno Haible  <bruno@clisp.org>
8939
8940         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8941         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8942         here...
8943         * modules/wcscasecmp (configure.ac): ... to here.
8944
8945 2011-05-22  Bruno Haible  <bruno@clisp.org>
8946
8947         wcrtomb: Move AC_LIBOBJ invocations to module description.
8948         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8949         invocations from here...
8950         * modules/wcrtomb (configure.ac): ... to here.
8951
8952 2011-05-22  Bruno Haible  <bruno@clisp.org>
8953
8954         wcpncpy: Move AC_LIBOBJ invocations to module description.
8955         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8956         here...
8957         * modules/wcpncpy (configure.ac): ... to here.
8958
8959 2011-05-22  Bruno Haible  <bruno@clisp.org>
8960
8961         wcpcpy: Move AC_LIBOBJ invocations to module description.
8962         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8963         * modules/wcpcpy (configure.ac): ... to here.
8964
8965 2011-05-22  Bruno Haible  <bruno@clisp.org>
8966
8967         waitpid: Move AC_LIBOBJ invocations to module description.
8968         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8969         invocation from here...
8970         * modules/waitpid (configure.ac): ... to here.
8971
8972 2011-05-22  Bruno Haible  <bruno@clisp.org>
8973
8974         utimensat: Move AC_LIBOBJ invocations to module description.
8975         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8976         here...
8977         * modules/utimensat (configure.ac): ... to here.
8978
8979 2011-05-22  Bruno Haible  <bruno@clisp.org>
8980
8981         usleep: Move AC_LIBOBJ invocations to module description.
8982         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8983         here...
8984         * modules/usleep (configure.ac): ... to here.
8985
8986 2011-05-22  Bruno Haible  <bruno@clisp.org>
8987
8988         unlockpt: Move AC_LIBOBJ invocations to module description.
8989         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8990         gl_PREREQ_UNLOCKPT invocations from here...
8991         * modules/unlockpt (configure.ac): ... to here.
8992
8993 2011-05-22  Bruno Haible  <bruno@clisp.org>
8994
8995         unlink: Respect rules for use of AC_LIBOBJ.
8996         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8997         * modules/unlink (configure.ac): ... to here.
8998
8999 2011-05-22  Bruno Haible  <bruno@clisp.org>
9000
9001         uname: Move AC_LIBOBJ invocations to module description.
9002         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9004         here...
9005         * modules/uname (configure.ac): ... to here.
9006
9007 2011-05-22  Bruno Haible  <bruno@clisp.org>
9008
9009         ttyname_r: Move AC_LIBOBJ invocations to module description.
9010         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9011         gl_PREREQ_TTYNAME_R invocations from here...
9012         * modules/ttyname_r (configure.ac): ... to here.
9013
9014 2011-05-22  Bruno Haible  <bruno@clisp.org>
9015
9016         tsearch: Move AC_LIBOBJ invocations to module description.
9017         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9018         invocations from here...
9019         * modules/tsearch (configure.ac): ... to here.
9020
9021 2011-05-22  Bruno Haible  <bruno@clisp.org>
9022
9023         towctrans: Move AC_LIBOBJ invocations to module description.
9024         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9025         AC_LIBOBJ invocation from here...
9026         * modules/towctrans (configure.ac): ... to here.
9027
9028 2011-05-22  Bruno Haible  <bruno@clisp.org>
9029
9030         tmpfile: Move AC_LIBOBJ invocations to module description.
9031         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9032         invocations from here...
9033         * modules/tmpfile (configure.ac): ... to here.
9034
9035 2011-05-22  Bruno Haible  <bruno@clisp.org>
9036
9037         times: Move AC_LIBOBJ invocations to module description.
9038         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9039         * modules/times (configure.ac): ... to here.
9040
9041 2011-05-22  Bruno Haible  <bruno@clisp.org>
9042
9043         time_r: Move AC_LIBOBJ invocations to module description.
9044         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9045         invocations from here...
9046         * modules/time_r (configure.ac): ... to here.
9047
9048 2011-05-22  Bruno Haible  <bruno@clisp.org>
9049
9050         timegm: Move AC_LIBOBJ invocations to module description.
9051         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9052         invocations from here...
9053         * modules/timegm (configure.ac): ... to here.
9054
9055 2011-05-22  Bruno Haible  <bruno@clisp.org>
9056
9057         tcgetsid: Move AC_LIBOBJ invocations to module description.
9058         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9059         and gl_PREREQ_TCGETSID invocations from here...
9060         * modules/tcgetsid (configure.ac): ... to here.
9061         (Depends-on): Update conditions.
9062
9063 2011-05-22  Bruno Haible  <bruno@clisp.org>
9064
9065         symlinkat: Move AC_LIBOBJ invocations to module description.
9066         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9067         here...
9068         * modules/symlinkat (configure.ac): ... to here.
9069
9070 2011-05-22  Bruno Haible  <bruno@clisp.org>
9071
9072         symlink: Move AC_LIBOBJ invocations to module description.
9073         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9074         here...
9075         * modules/symlink (configure.ac): ... to here.
9076
9077 2011-05-22  Bruno Haible  <bruno@clisp.org>
9078
9079         strverscmp: Move AC_LIBOBJ invocations to module description.
9080         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9082         from here...
9083         * modules/strverscmp (configure.ac): ... to here.
9084
9085 2011-05-22  Bruno Haible  <bruno@clisp.org>
9086
9087         strtok_r: Move AC_LIBOBJ invocations to module description.
9088         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9089         and gl_PREREQ_STRTOK_R invocations from here...
9090         * modules/strtok_r (configure.ac): ... to here.
9091         (Depends-on): Update conditions.
9092
9093 2011-05-22  Bruno Haible  <bruno@clisp.org>
9094
9095         strtoumax: Move AC_LIBOBJ invocations to module description.
9096         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9098         from here...
9099         * modules/strtoumax (configure.ac): ... to here.
9100
9101 2011-05-22  Bruno Haible  <bruno@clisp.org>
9102
9103         strtoimax: Move AC_LIBOBJ invocations to module description.
9104         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9105         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9106         from here...
9107         * modules/strtoimax (configure.ac): ... to here.
9108
9109 2011-05-22  Bruno Haible  <bruno@clisp.org>
9110
9111         strtoull: Move AC_LIBOBJ invocations to module description.
9112         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9113         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9114         from here...
9115         * modules/strtoull (configure.ac): ... to here.
9116
9117 2011-05-22  Bruno Haible  <bruno@clisp.org>
9118
9119         strtoll: Move AC_LIBOBJ invocations to module description.
9120         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9122         here...
9123         * modules/strtoll (configure.ac): ... to here.
9124
9125 2011-05-22  Bruno Haible  <bruno@clisp.org>
9126
9127         strtoul: Move AC_LIBOBJ invocations to module description.
9128         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9129         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9130         * modules/strtoul (configure.ac): ... to here.
9131
9132 2011-05-22  Bruno Haible  <bruno@clisp.org>
9133
9134         strtol: Move AC_LIBOBJ invocations to module description.
9135         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9136         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9137         * modules/strtol (configure.ac): ... to here.
9138
9139 2011-05-22  Bruno Haible  <bruno@clisp.org>
9140
9141         strtod: Move AC_LIBOBJ invocations to module description.
9142         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9143         invocations from here...
9144         * modules/strtod (configure.ac): ... to here.
9145
9146 2011-05-22  Bruno Haible  <bruno@clisp.org>
9147
9148         strstr*: Move AC_LIBOBJ invocations to module description.
9149         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9150         invocations from here...
9151         * modules/strstr-simple (configure.ac): ... to here.
9152         * modules/strstr (configure.ac): ... and here.
9153
9154 2011-05-22  Bruno Haible  <bruno@clisp.org>
9155
9156         strsignal: Move AC_LIBOBJ invocations to module description.
9157         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9158         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9159         * modules/strsignal (configure.ac): ... to here.
9160         (Depends-on): Update conditions.
9161
9162 2011-05-22  Bruno Haible  <bruno@clisp.org>
9163
9164         strsep: Move AC_LIBOBJ invocations to module description.
9165         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9167         here...
9168         * modules/strsep (configure.ac): ... to here.
9169
9170 2011-05-22  Bruno Haible  <bruno@clisp.org>
9171
9172         strptime: Move AC_LIBOBJ invocations to module description.
9173         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9174         gl_PREREQ_STRPTIME invocations from here...
9175         * modules/strptime (configure.ac): ... to here.
9176
9177 2011-05-22  Bruno Haible  <bruno@clisp.org>
9178
9179         strpbrk: Move AC_LIBOBJ invocations to module description.
9180         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9182         here...
9183         * modules/strpbrk (configure.ac): ... to here.
9184
9185 2011-05-22  Bruno Haible  <bruno@clisp.org>
9186
9187         strnlen: Move AC_LIBOBJ invocations to module description.
9188         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9189         invocations from here...
9190         * modules/strnlen (configure.ac): ... to here.
9191
9192 2011-05-22  Bruno Haible  <bruno@clisp.org>
9193
9194         strndup: Move AC_LIBOBJ invocations to module description.
9195         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9196         invocations from here...
9197         * modules/strndup (configure.ac): ... to here.
9198         (Depends-on): Update conditions.
9199
9200 2011-05-22  Bruno Haible  <bruno@clisp.org>
9201
9202         strncat: Move AC_LIBOBJ invocations to module description.
9203         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9204         invocations from here...
9205         * modules/strncat (configure.ac): ... to here.
9206
9207 2011-05-22  Bruno Haible  <bruno@clisp.org>
9208
9209         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9210         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9211         invocations from here...
9212         * modules/strdup (configure.ac): ... to here.
9213         * modules/strdup-posix (configure.ac): ... and here.
9214
9215 2011-05-22  Bruno Haible  <bruno@clisp.org>
9216
9217         strcspn: Move AC_LIBOBJ invocations to module description.
9218         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9220         here...
9221         * modules/strcspn (configure.ac): ... to here.
9222
9223 2011-05-22  Bruno Haible  <bruno@clisp.org>
9224
9225         strchrnul: Move AC_LIBOBJ invocations to module description.
9226         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9227         gl_PREREQ_STRCHRNUL invocations from here...
9228         * modules/strchrnul (configure.ac): ... to here.
9229
9230 2011-05-22  Bruno Haible  <bruno@clisp.org>
9231
9232         strcasestr*: Move AC_LIBOBJ invocations to module description.
9233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9234         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9235         * modules/strcasestr-simple (configure.ac): ... to here.
9236         * modules/strcasestr (configure.ac): ... and here.
9237
9238 2011-05-22  Bruno Haible  <bruno@clisp.org>
9239
9240         strcase: Move AC_LIBOBJ invocations to module description.
9241         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9242         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9243         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9244         gl_PREREQ_STRNCASECMP invocations from here...
9245         * modules/strcase (configure.ac): ... to here.
9246
9247 2011-05-22  Bruno Haible  <bruno@clisp.org>
9248
9249         stpncpy: Move AC_LIBOBJ invocations to module description.
9250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9251         here...
9252         * modules/stpncpy (configure.ac): ... to here.
9253
9254 2011-05-22  Bruno Haible  <bruno@clisp.org>
9255
9256         stpcpy: Move AC_LIBOBJ invocations to module description.
9257         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9259         here...
9260         * modules/stpcpy (configure.ac): ... to here.
9261
9262 2011-05-21  Bruno Haible  <bruno@clisp.org>
9263
9264         stat: Move AC_LIBOBJ invocations to module description.
9265         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9266         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9267         here...
9268         * modules/stat (configure.ac): ... to here.
9269
9270 2011-05-21  Bruno Haible  <bruno@clisp.org>
9271
9272         sleep: Move AC_LIBOBJ invocations to module description.
9273         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9274         * modules/sleep (configure.ac): ... to here.
9275
9276 2011-05-21  Bruno Haible  <bruno@clisp.org>
9277
9278         signbit: Move AC_LIBOBJ invocations to module description.
9279         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9280         * modules/signbit (configure.ac): ... to here.
9281
9282 2011-05-21  Bruno Haible  <bruno@clisp.org>
9283
9284         sigprocmask: Move AC_LIBOBJ invocations to module description.
9285         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9286         gl_PREREQ_SIGPROMASK invocations from here...
9287         * modules/sigprocmask (configure.ac): ... to here.
9288
9289 2011-05-21  Bruno Haible  <bruno@clisp.org>
9290
9291         sigaction: Move AC_LIBOBJ invocations to module description.
9292         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9293         gl_PREREQ_SIGACTION invocations from here...
9294         * modules/sigaction (configure.ac): ... to here.
9295
9296 2011-05-21  Bruno Haible  <bruno@clisp.org>
9297
9298         sig2str: Move AC_LIBOBJ invocations to module description.
9299         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9301         here...
9302         * modules/sig2str (configure.ac): ... to here.
9303
9304 2011-05-21  Bruno Haible  <bruno@clisp.org>
9305
9306         setlocale: Move AC_LIBOBJ invocations to module description.
9307         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9308         gl_PREREQ_SETLOCALE invocations from here...
9309         * modules/setlocale (configure.ac): ... to here.
9310
9311 2011-05-21  Bruno Haible  <bruno@clisp.org>
9312
9313         unsetenv: Move AC_LIBOBJ invocations to module description.
9314         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9315         and gl_PREREQ_UNSETENV invocations from here...
9316         * modules/unsetenv (configure.ac): ... to here.
9317         (Depends-on): Update.
9318
9319 2011-05-21  Bruno Haible  <bruno@clisp.org>
9320
9321         setenv: Move AC_LIBOBJ invocations to module description.
9322         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9323         here...
9324         * modules/setenv (configure.ac): ... to here.
9325
9326 2011-05-21  Bruno Haible  <bruno@clisp.org>
9327
9328         selinux-h: Move AC_LIBOBJ invocations to module description.
9329         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9330         AC_LIBOBJ invocation from here...
9331         * modules/selinux-h (configure.ac): ... to here.
9332
9333 2011-05-21  Bruno Haible  <bruno@clisp.org>
9334
9335         select: Respect rules for use of AC_LIBOBJ.
9336         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9337         here...
9338         * modules/select (configure.ac): ... to here.
9339
9340 2011-05-21  Bruno Haible  <bruno@clisp.org>
9341
9342         scandir: Move AC_LIBOBJ invocations to module description.
9343         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9344         invocations from here...
9345         * modules/scandir (configure.ac): ... to here.
9346
9347 2011-05-21  Bruno Haible  <bruno@clisp.org>
9348
9349         rpmatch: Move AC_LIBOBJ invocations to module description.
9350         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9351         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9352         here...
9353         * modules/rpmatch (configure.ac): ... to here.
9354
9355 2011-05-21  Bruno Haible  <bruno@clisp.org>
9356
9357         rmdir: Respect rules for use of AC_LIBOBJ.
9358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9359         * modules/rmdir (configure.ac): ... to here.
9360
9361 2011-05-21  Bruno Haible  <bruno@clisp.org>
9362
9363         renameat: Move AC_LIBOBJ invocations to module description.
9364         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9365         here...
9366         * modules/renameat (configure.ac): ... to here.
9367
9368 2011-05-21  Bruno Haible  <bruno@clisp.org>
9369
9370         rename: Respect rules for use of AC_LIBOBJ.
9371         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9372         here...
9373         * modules/rename (configure.ac): ... to here.
9374
9375 2011-05-21  Bruno Haible  <bruno@clisp.org>
9376
9377         remove: Move AC_LIBOBJ invocations to module description.
9378         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9379         here...
9380         * modules/remove (configure.ac): ... to here.
9381
9382 2011-05-21  Bruno Haible  <bruno@clisp.org>
9383
9384         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9385         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9386         macro.
9387         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9388         * modules/relocatable-lib (configure.ac): ... to here.
9389         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9390         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9391
9392 2011-05-21  Bruno Haible  <bruno@clisp.org>
9393
9394         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9395         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9396         here...
9397         * modules/relocatable-prog (configure.ac): ... to here.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         regex: Move AC_LIBOBJ invocations to module description.
9402         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9403         invocations from here...
9404         * modules/regex (configure.ac): ... to here.
9405
9406 2011-05-21  Bruno Haible  <bruno@clisp.org>
9407
9408         realloc-*: Move AC_LIBOBJ invocations to module description.
9409         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9410         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9411         AC_LIBOBJ invocations from here...
9412         * modules/realloc-gnu (configure.ac): ... to here.
9413         * modules/realloc-posix (configure.ac): ... and here.
9414
9415 2011-05-21  Bruno Haible  <bruno@clisp.org>
9416
9417         readutmp: Move AC_LIBOBJ invocations to module description.
9418         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9419         * modules/readutmp (configure.ac): ... to here.
9420
9421 2011-05-21  Bruno Haible  <bruno@clisp.org>
9422
9423         readlinkat: Move AC_LIBOBJ invocations to module description.
9424         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9425         here...
9426         * modules/readlinkat (configure.ac): ... to here.
9427
9428 2011-05-21  Bruno Haible  <bruno@clisp.org>
9429
9430         readlink: Move AC_LIBOBJ invocations to module description.
9431         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9432         gl_PREREQ_READLINK invocations from here...
9433         * modules/readlink (configure.ac): ... to here.
9434
9435 2011-05-21  Bruno Haible  <bruno@clisp.org>
9436
9437         readline: Move AC_LIBOBJ invocations to module description.
9438         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9439         gl_PREREQ_READLINE invocations from here...
9440         * modules/readline (configure.ac): ... to here.
9441
9442 2011-05-21  Bruno Haible  <bruno@clisp.org>
9443
9444         read: Move AC_LIBOBJ invocations to module description.
9445         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9446         * modules/read (configure.ac): ... to here.
9447
9448 2011-05-21  Bruno Haible  <bruno@clisp.org>
9449
9450         rawmemchr: Move AC_LIBOBJ invocations to module description.
9451         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9453         from here...
9454         * modules/rawmemchr (configure.ac): ... to here.
9455
9456 2011-05-21  Bruno Haible  <bruno@clisp.org>
9457
9458         random_r: Move AC_LIBOBJ invocations to module description.
9459         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9460         gl_PREREQ_RANDOM_R invocations from here...
9461         * modules/random_r (configure.ac): ... to here.
9462
9463 2011-05-21  Bruno Haible  <bruno@clisp.org>
9464
9465         pwrite: Move AC_LIBOBJ invocations to module description.
9466         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9467         * modules/pwrite (configure.ac): ... to here.
9468
9469 2011-05-21  Bruno Haible  <bruno@clisp.org>
9470
9471         putenv: Move AC_LIBOBJ invocations to module description.
9472         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9473         * modules/putenv (configure.ac): ... to here.
9474
9475 2011-05-21  Bruno Haible  <bruno@clisp.org>
9476
9477         login_tty: Move AC_LIBOBJ invocations to module description.
9478         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9479         * modules/login_tty (configure.ac): ... to here.
9480
9481 2011-05-21  Bruno Haible  <bruno@clisp.org>
9482
9483         openpty: Move AC_LIBOBJ invocations to module description.
9484         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9485         * modules/openpty (configure.ac): ... to here.
9486
9487 2011-05-21  Bruno Haible  <bruno@clisp.org>
9488
9489         forkpty: Move AC_LIBOBJ invocations to module description.
9490         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9491         * modules/forkpty (configure.ac): ... to here.
9492
9493 2011-05-21  Bruno Haible  <bruno@clisp.org>
9494
9495         ptsname: Move AC_LIBOBJ invocations to module description.
9496         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9497         invocations from here...
9498         * modules/ptsname (configure.ac): ... to here.
9499
9500 2011-05-21  Bruno Haible  <bruno@clisp.org>
9501
9502         pread: Move AC_LIBOBJ invocations to module description.
9503         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9504         * modules/pread (configure.ac): ... to here.
9505
9506 2011-05-21  Bruno Haible  <bruno@clisp.org>
9507
9508         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9509         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9510         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9511         * modules/posix_spawn (configure.ac): ... to here.
9512         * modules/posix_spawnp (configure.ac): ... and here.
9513
9514 2011-05-21  Bruno Haible  <bruno@clisp.org>
9515
9516         popen: Move AC_LIBOBJ invocations to module description.
9517         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9518         invocations from here...
9519         * modules/popen (configure.ac): ... to here.
9520
9521 2011-05-21  Bruno Haible  <bruno@clisp.org>
9522
9523         poll: Move AC_LIBOBJ invocations to module description.
9524         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9525         invocations from here...
9526         * modules/poll (configure.ac): ... to here.
9527
9528 2011-05-21  Bruno Haible  <bruno@clisp.org>
9529
9530         pipe-posix: Move AC_LIBOBJ invocations to module description.
9531         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9532         * modules/pipe-posix (configure.ac): ... to here.
9533
9534 2011-05-21  Bruno Haible  <bruno@clisp.org>
9535
9536         openat: Respect rules for use of AC_LIBOBJ.
9537         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9538         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9539         * modules/openat (configure.ac): ... to here.
9540
9541 2011-05-21  Bruno Haible  <bruno@clisp.org>
9542
9543         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9544         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9545         invocation from here...
9546         * modules/obstack-printf (configure.ac): ... to here.
9547         * modules/obstack-printf-posix (configure.ac): ... and here.
9548
9549 2011-05-21  Bruno Haible  <bruno@clisp.org>
9550
9551         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9552         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9553         from here...
9554         * modules/nl_langinfo (configure.ac): ... to here.
9555
9556 2011-05-21  Bruno Haible  <bruno@clisp.org>
9557
9558         nanosleep: Move AC_LIBOBJ invocations to module description.
9559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9560         gl_PREREQ_NANOSLEEP invocations from here...
9561         * modules/nanosleep (configure.ac): ... to here.
9562
9563 2011-05-21  Bruno Haible  <bruno@clisp.org>
9564
9565         mountlist: Move AC_LIBOBJ invocations to module description.
9566         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9567         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9568         * modules/mountlist (configure.ac): ... to here.
9569
9570 2011-05-21  Bruno Haible  <bruno@clisp.org>
9571
9572         mktime: Respect rules for use of AC_LIBOBJ.
9573         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9574         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9575         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9576         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9577         * modules/mktime (configure.ac): ... to here.
9578         * modules/mktime-internal (configure.ac): ... and here.
9579         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9580
9581 2011-05-21  Bruno Haible  <bruno@clisp.org>
9582
9583         mkstemps: Move AC_LIBOBJ invocations to module description.
9584         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9585         here...
9586         * modules/mkstemps (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         mkstemp: Move AC_LIBOBJ invocations to module description.
9591         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9592         gl_PREREQ_MKSTEMP invocations from here...
9593         * modules/mkstemp (configure.ac): ... to here.
9594
9595 2011-05-21  Bruno Haible  <bruno@clisp.org>
9596
9597         mkostemps: Move AC_LIBOBJ invocations to module description.
9598         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9599         here...
9600         * modules/mkostemps (configure.ac): ... to here.
9601
9602 2011-05-21  Bruno Haible  <bruno@clisp.org>
9603
9604         mkostemp: Move AC_LIBOBJ invocations to module description.
9605         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9606         gl_PREREQ_MKOSTEMP invocations from here...
9607         * modules/mkostemp (configure.ac): ... to here.
9608
9609 2011-05-21  Bruno Haible  <bruno@clisp.org>
9610
9611         mknod: Move AC_LIBOBJ invocations to module description.
9612         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9613         * modules/mknod (configure.ac): ... to here.
9614
9615 2011-05-21  Bruno Haible  <bruno@clisp.org>
9616
9617         mkfifoat: Move AC_LIBOBJ invocations to module description.
9618         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9619         here...
9620         * modules/mkfifoat (configure.ac): ... to here.
9621
9622 2011-05-21  Bruno Haible  <bruno@clisp.org>
9623
9624         mkfifo: Respect rules for use of AC_LIBOBJ.
9625         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9626         here...
9627         * modules/mkfifo (configure.ac): ... to here.
9628
9629 2011-05-21  Bruno Haible  <bruno@clisp.org>
9630
9631         mkdtemp: Move AC_LIBOBJ invocations to module description.
9632         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9633         invocations from here...
9634         * modules/mkdtemp (configure.ac): ... to here.
9635
9636 2011-05-21  Bruno Haible  <bruno@clisp.org>
9637
9638         mkdir: Move AC_LIBOBJ invocations to module description.
9639         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9640         * modules/mkdir (configure.ac): ... to here.
9641
9642 2011-05-21  Bruno Haible  <bruno@clisp.org>
9643
9644         memset: Move AC_LIBOBJ invocations to module description.
9645         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9647         here...
9648         * modules/memset (configure.ac): ... to here.
9649
9650 2011-05-21  Bruno Haible  <bruno@clisp.org>
9651
9652         memrchr: Move AC_LIBOBJ invocations to module description.
9653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9654         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9655         here...
9656         * modules/memrchr (configure.ac): ... to here.
9657
9658 2011-05-21  Bruno Haible  <bruno@clisp.org>
9659
9660         mempcpy: Move AC_LIBOBJ invocations to module description.
9661         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9663         here...
9664         * modules/mempcpy (configure.ac): ... to here.
9665
9666 2011-05-21  Bruno Haible  <bruno@clisp.org>
9667
9668         memmove: Move AC_LIBOBJ invocations to module description.
9669         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9670         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9671         here...
9672         * modules/memmove (configure.ac): ... to here.
9673
9674 2011-05-21  Bruno Haible  <bruno@clisp.org>
9675
9676         memmem*: Move AC_LIBOBJ invocations to module description.
9677         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9678         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9679         here...
9680         (gl_FUNC_MEMMEM): ... and here...
9681         * modules/memmem-simple (configure.ac): ... to here.
9682         * modules/memmem (configure.ac): ... and here.
9683
9684 2011-05-21  Bruno Haible  <bruno@clisp.org>
9685
9686         memcpy: Move AC_LIBOBJ invocations to module description.
9687         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9689         here...
9690         * modules/memcpy (configure.ac): ... to here.
9691
9692 2011-05-21  Bruno Haible  <bruno@clisp.org>
9693
9694         memcmp: Simplify autoconf macro.
9695         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9696         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9697         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9698
9699 2011-05-21  Bruno Haible  <bruno@clisp.org>
9700
9701         memcmp: Move AC_LIBOBJ invocations to module description.
9702         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9703         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9704         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9705         * modules/memcmp (configure.ac): ... to here.
9706         (Depends-on): Update conditions.
9707
9708 2011-05-21  Bruno Haible  <bruno@clisp.org>
9709
9710         memchr: Respect rules for use of AC_LIBOBJ.
9711         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9712         invocations from here...
9713         * modules/memchr (configure.ac): ... to here.
9714
9715 2011-05-21  Bruno Haible  <bruno@clisp.org>
9716
9717         mbtowc: Move AC_LIBOBJ invocations to module description.
9718         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9719         invocations from here...
9720         * modules/mbtowc (configure.ac): ... to here.
9721
9722 2011-05-21  Bruno Haible  <bruno@clisp.org>
9723
9724         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9725         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9726         gl_PREREQ_MBSRTOWCS invocations from here...
9727         * modules/mbsrtowcs (configure.ac): ... to here.
9728
9729 2011-05-21  Bruno Haible  <bruno@clisp.org>
9730
9731         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9732         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9733         gl_PREREQ_MBSNRTOWCS invocations from here...
9734         * modules/mbsnrtowcs (configure.ac): ... to here.
9735
9736 2011-05-21  Bruno Haible  <bruno@clisp.org>
9737
9738         mbsinit: Move AC_LIBOBJ invocations to module description.
9739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9740         invocations from here...
9741         * modules/mbsinit (configure.ac): ... to here.
9742
9743 2011-05-21  Bruno Haible  <bruno@clisp.org>
9744
9745         mbrlen: Move AC_LIBOBJ invocations to module description.
9746         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9747         invocations from here...
9748         * modules/mbrlen (configure.ac): ... to here.
9749
9750 2011-05-21  Bruno Haible  <bruno@clisp.org>
9751
9752         mbrtowc: Respect rules for use of AC_LIBOBJ.
9753         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9754         invocations from here...
9755         * modules/mbrtowc (configure.ac): ... to here.
9756
9757 2011-05-21  Bruno Haible  <bruno@clisp.org>
9758
9759         malloc-*: Move AC_LIBOBJ invocations to module description.
9760         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9761         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9762         AC_LIBOBJ invocations from here...
9763         * modules/malloc-gnu (configure.ac): ... to here.
9764         * modules/malloc-posix (configure.ac): ... and here.
9765
9766 2011-05-21  Bruno Haible  <bruno@clisp.org>
9767
9768         lstat, openat: Respect rules for use of AC_LIBOBJ.
9769         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9770         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9771         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9772         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9773         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9774         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9775         here.
9776         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9777
9778 2011-05-21  Bruno Haible  <bruno@clisp.org>
9779
9780         lseek: Move AC_LIBOBJ invocations to module description.
9781         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9782         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9783         * modules/lseek (configure.ac): ... to here.
9784
9785 2011-05-21  Bruno Haible  <bruno@clisp.org>
9786
9787         linkat: Move AC_LIBOBJ invocations to module description.
9788         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9789         here...
9790         * modules/linkat (configure.ac): ... to here.
9791
9792 2011-05-21  Bruno Haible  <bruno@clisp.org>
9793
9794         link: Respect rules for use of AC_LIBOBJ.
9795         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9796         * modules/link (configure.ac): ... to here.
9797
9798 2011-05-21  Bruno Haible  <bruno@clisp.org>
9799
9800         lchown: Move AC_LIBOBJ invocations to module description.
9801         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9802         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9803         * modules/lchown (configure.ac): ... to here.
9804
9805 2011-05-21  Bruno Haible  <bruno@clisp.org>
9806
9807         iswctype: Move AC_LIBOBJ invocations to module description.
9808         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9809         here...
9810         * modules/iswctype (configure.ac): ... to here.
9811
9812 2011-05-21  Bruno Haible  <bruno@clisp.org>
9813
9814         iswblank: Move AC_LIBOBJ invocations to module description.
9815         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9816         here...
9817         * modules/iswblank (configure.ac): ... to here.
9818
9819 2011-05-21  Bruno Haible  <bruno@clisp.org>
9820
9821         atanl: Move AC_LIBOBJ invocations to module description.
9822         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9823         * modules/atanl (configure.ac): ... to here.
9824
9825 2011-05-21  Bruno Haible  <bruno@clisp.org>
9826
9827         acosl: Move AC_LIBOBJ invocations to module description.
9828         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9829         * modules/acosl (configure.ac): ... to here.
9830
9831 2011-05-21  Bruno Haible  <bruno@clisp.org>
9832
9833         asinl: Respect rules for use of AC_LIBOBJ.
9834         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9835         * modules/asinl (configure.ac): ... to here.
9836
9837 2011-05-21  Bruno Haible  <bruno@clisp.org>
9838
9839         tanl: Move AC_LIBOBJ invocations to module description.
9840         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9841         * modules/tanl (configure.ac): ... to here.
9842
9843 2011-05-21  Bruno Haible  <bruno@clisp.org>
9844
9845         cosl: Move AC_LIBOBJ invocations to module description.
9846         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9847         * modules/cosl (configure.ac): ... to here.
9848
9849 2011-05-21  Bruno Haible  <bruno@clisp.org>
9850
9851         sinl: Move AC_LIBOBJ invocations to module description.
9852         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9853         * modules/sinl (configure.ac): ... to here.
9854
9855 2011-05-21  Bruno Haible  <bruno@clisp.org>
9856
9857         logl: Move AC_LIBOBJ invocations to module description.
9858         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9859         * modules/logl (configure.ac): ... to here.
9860
9861 2011-05-21  Bruno Haible  <bruno@clisp.org>
9862
9863         expl: Move AC_LIBOBJ invocations to module description.
9864         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9865         * modules/expl (configure.ac): ... to here.
9866
9867 2011-05-21  Bruno Haible  <bruno@clisp.org>
9868
9869         roundl: Move AC_LIBOBJ invocations to module description.
9870         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9871         * modules/roundl (configure.ac): ... to here.
9872
9873 2011-05-21  Bruno Haible  <bruno@clisp.org>
9874
9875         round: Move AC_LIBOBJ invocations to module description.
9876         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9877         * modules/round (configure.ac): ... to here.
9878
9879 2011-05-21  Bruno Haible  <bruno@clisp.org>
9880
9881         roundf: Move AC_LIBOBJ invocations to module description.
9882         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9883         * modules/roundf (configure.ac): ... to here.
9884
9885 2011-05-21  Bruno Haible  <bruno@clisp.org>
9886
9887         truncl: Move AC_LIBOBJ invocations to module description.
9888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9889         * modules/truncl (configure.ac): ... to here.
9890
9891 2011-05-21  Bruno Haible  <bruno@clisp.org>
9892
9893         trunc: Move AC_LIBOBJ invocations to module description.
9894         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9895         * modules/trunc (configure.ac): ... to here.
9896
9897 2011-05-21  Bruno Haible  <bruno@clisp.org>
9898
9899         truncf: Move AC_LIBOBJ invocations to module description.
9900         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9901         * modules/truncf (configure.ac): ... to here.
9902
9903 2011-05-21  Bruno Haible  <bruno@clisp.org>
9904
9905         ceill: Move AC_LIBOBJ invocations to module description.
9906         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9907         * modules/ceill (configure.ac): ... to here.
9908
9909 2011-05-21  Bruno Haible  <bruno@clisp.org>
9910
9911         ceil: Move AC_LIBOBJ invocations to module description.
9912         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9913         * modules/ceil (configure.ac): ... to here.
9914
9915 2011-05-21  Bruno Haible  <bruno@clisp.org>
9916
9917         ceilf: Move AC_LIBOBJ invocations to module description.
9918         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9919         * modules/ceilf (configure.ac): ... to here.
9920
9921 2011-05-21  Bruno Haible  <bruno@clisp.org>
9922
9923         floorl: Respect rules for use of AC_LIBOBJ.
9924         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9925         * modules/floorl (configure.ac): ... to here.
9926
9927 2011-05-21  Bruno Haible  <bruno@clisp.org>
9928
9929         floor: Respect rules for use of AC_LIBOBJ.
9930         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9931         * modules/floor (configure.ac): ... to here.
9932
9933 2011-05-21  Bruno Haible  <bruno@clisp.org>
9934
9935         floorf: Move AC_LIBOBJ invocations to module description.
9936         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9937         * modules/floorf (configure.ac): ... to here.
9938
9939 2011-05-20  Bruno Haible  <bruno@clisp.org>
9940
9941         sqrtl: Respect rules for use of AC_LIBOBJ.
9942         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9943         * modules/sqrtl (configure.ac): ... to here.
9944
9945 2011-05-20  Bruno Haible  <bruno@clisp.org>
9946
9947         ldexpl: Respect rules for use of AC_LIBOBJ.
9948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9949         * modules/ldexpl (configure.ac): ... to here.
9950
9951 2011-05-20  Bruno Haible  <bruno@clisp.org>
9952
9953         frexpl*: Respect rules for use of AC_LIBOBJ.
9954         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9955         invocation from here...
9956         * modules/frexpl (configure.ac): ... to here.
9957         * modules/frexpl-nolibm (configure.ac): ... and here.
9958
9959 2011-05-20  Bruno Haible  <bruno@clisp.org>
9960
9961         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9962         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9963         invocation from here...
9964         * modules/frexp (configure.ac): ... to here.
9965         * modules/frexp-nolibm (configure.ac): ... and here.
9966
9967 2011-05-20  Bruno Haible  <bruno@clisp.org>
9968
9969         isnan: Respect rules for use of AC_LIBOBJ.
9970         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9971         invocations here.
9972         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9973         REPLACE_ISNAN.
9974         * modules/isnand (configure.ac): Likewise.
9975         * modules/isnanl (configure.ac): Likewise.
9976
9977 2011-05-20  Bruno Haible  <bruno@clisp.org>
9978
9979         isnanl*: Respect rules for use of AC_LIBOBJ.
9980         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9981         invocation from here...
9982         * modules/isnanl (configure.ac): ... to here.
9983         * modules/isnanl-nolibm (configure.ac): ... and here.
9984
9985 2011-05-20  Bruno Haible  <bruno@clisp.org>
9986
9987         isnand*: Move AC_LIBOBJ invocations to module description.
9988         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9989         invocation from here...
9990         * modules/isnand (configure.ac): ... to here.
9991         * modules/isnand-nolibm (configure.ac): ... and here.
9992
9993 2011-05-20  Bruno Haible  <bruno@clisp.org>
9994
9995         isnanf*: Move AC_LIBOBJ invocations to module description.
9996         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9997         invocation from here...
9998         * modules/isnanf (configure.ac): ... to here.
9999         * modules/isnanf-nolibm (configure.ac): ... and here.
10000
10001 2011-05-20  Bruno Haible  <bruno@clisp.org>
10002
10003         isnan*: Separate the AC_LIBOBJ invocations.
10004         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10005         AC_LIBOBJ invocation.
10006         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10007         here.
10008         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10009         AC_LIBOBJ invocation.
10010         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10011         here.
10012         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10013         AC_LIBOBJ invocation.
10014         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10015         here.
10016         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10017
10018 2011-05-08  Bruno Haible  <bruno@clisp.org>
10019
10020         isinf: Move AC_LIBOBJ invocations to module description.
10021         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10022         * modules/isinf (configure.ac): ... to here.
10023
10024 2011-05-08  Bruno Haible  <bruno@clisp.org>
10025
10026         isfinite: Move AC_LIBOBJ invocations to module description.
10027         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10028         * modules/isfinite (configure.ac): ... to here.
10029
10030 2011-05-08  Bruno Haible  <bruno@clisp.org>
10031
10032         isblank: Move AC_LIBOBJ invocations to module description.
10033         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10034         here...
10035         * modules/isblank (configure.ac): ... to here.
10036
10037 2011-05-08  Bruno Haible  <bruno@clisp.org>
10038
10039         isapipe: Move AC_LIBOBJ invocations to module description.
10040         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10041         gl_PREREQ_ISAPIPE invocations from here...
10042         * modules/isapipe (configure.ac): ... to here.
10043         (Depends-on): Update condition.
10044
10045 2011-05-08  Bruno Haible  <bruno@clisp.org>
10046
10047         ioctl: Move AC_LIBOBJ invocations to module description.
10048         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10049         invocations from here...
10050         * modules/ioctl (configure.ac): ... to here.
10051         (Depends-on): Update condition.
10052
10053 2011-05-08  Bruno Haible  <bruno@clisp.org>
10054
10055         imaxdiv: Move AC_LIBOBJ invocations to module description.
10056         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10057         invocations from here...
10058         * modules/imaxdiv (configure.ac): ... to here.
10059
10060 2011-05-08  Bruno Haible  <bruno@clisp.org>
10061
10062         imaxabs: Move AC_LIBOBJ invocations to module description.
10063         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10064         invocations from here...
10065         * modules/imaxabs (configure.ac): ... to here.
10066
10067 2011-05-08  Bruno Haible  <bruno@clisp.org>
10068
10069         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10070         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10071         AC_LIBOBJ invocations from here...
10072         * modules/getaddrinfo (configure.ac): ... to here.
10073         (Depends-on): Add conditions.
10074
10075 2011-05-08  Bruno Haible  <bruno@clisp.org>
10076
10077         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10078         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10079         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10080         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10081         (gl_PREREQ_INET_PTON): ... from here.
10082         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10083         gl_PREREQ_INET_PTON here.
10084         (Depends-on): Update condition.
10085
10086 2011-05-08  Bruno Haible  <bruno@clisp.org>
10087
10088         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10089         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10090         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10091         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10092         (gl_PREREQ_INET_NTOP): ... from here.
10093         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10094         gl_PREREQ_INET_NTOP here.
10095         (Depends-on): Update condition.
10096
10097 2011-05-08  Bruno Haible  <bruno@clisp.org>
10098
10099         iconv_open: Move AC_LIBOBJ invocations to module description.
10100         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10101         AC_LIBOBJ invocations from here...
10102         * modules/iconv_open (configure.ac): ... to here.
10103
10104 2011-05-08  Bruno Haible  <bruno@clisp.org>
10105
10106         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10107         If module 'iconv_open' is among the main modules and module
10108         'iconv_open-utf' is among the tests dependencies, then
10109         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10110         return the special iconv_t values. Therefore iconv() and iconv_close()
10111         must support these special iconv_t values, already in lib, not only in
10112         tests.
10113         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10114         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10115         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10116         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10117         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10118         (Depends-on): Add the dependencies of iconv_open-utf.
10119         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10120         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10121         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10122
10123 2011-05-08  Bruno Haible  <bruno@clisp.org>
10124
10125         group-member: Move AC_LIBOBJ invocations to module description.
10126         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10127         gl_PREREQ_GROUP_MEMBER invocations from here...
10128         * modules/group-member (configure.ac): ... to here.
10129
10130 2011-05-08  Bruno Haible  <bruno@clisp.org>
10131
10132         grantpt: Move AC_LIBOBJ invocations to module description.
10133         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10134         invocations from here...
10135         * modules/grantpt (configure.ac): ... to here.
10136
10137 2011-05-08  Bruno Haible  <bruno@clisp.org>
10138
10139         glob: Move AC_LIBOBJ invocations to module description.
10140         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10141         from here...
10142         * modules/glob (configure.ac): ... to here.
10143
10144 2011-05-08  Bruno Haible  <bruno@clisp.org>
10145
10146         getusershell: Move AC_LIBOBJ invocations to module description.
10147         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10148         Move AC_LIBOBJ invocation from here...
10149         * modules/getusershell (configure.ac): ... to here.
10150         (Depends-on): Update condition.
10151
10152 2011-05-08  Bruno Haible  <bruno@clisp.org>
10153
10154         gettimeofday: Move AC_LIBOBJ invocations to module description.
10155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10156         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10157         gl_PREREQ_GETTIMEOFDAY invocations from here...
10158         * modules/gettimeofday (configure.ac): ... to here.
10159
10160 2011-05-08  Bruno Haible  <bruno@clisp.org>
10161
10162         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10163         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10164         just gl_FUNC_TZSET.
10165         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10166         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10168         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10169
10170 2011-05-08  Bruno Haible  <bruno@clisp.org>
10171
10172         getsubopt: Move AC_LIBOBJ invocations to module description.
10173         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10174         gl_PREREQ_GETSUBOPT invocations from here...
10175         * modules/getsubopt (configure.ac): ... to here.
10176
10177 2011-05-08  Bruno Haible  <bruno@clisp.org>
10178
10179         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10180         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10181         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10182         * modules/getpass-gnu (configure.ac): ... to here.
10183
10184 2011-05-08  Bruno Haible  <bruno@clisp.org>
10185
10186         getpass: Move AC_LIBOBJ invocations to module description.
10187         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10188         gl_PREREQ_GETPASS invocations from here...
10189         * modules/getpass (configure.ac): ... to here.
10190
10191 2011-05-08  Bruno Haible  <bruno@clisp.org>
10192
10193         getpagesize: Move AC_LIBOBJ invocations to module description.
10194         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10195         from here...
10196         * modules/getpagesize (configure.ac): ... to here.
10197
10198 2011-05-08  Bruno Haible  <bruno@clisp.org>
10199
10200         getopt: Move AC_LIBOBJ invocations to module description.
10201         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10202         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10203         invocations from here...
10204         * modules/getopt-gnu (configure.ac): ... to here.
10205         * modules/getopt-posix (configure.ac): ... and here.
10206         (Depends-on): Update condition.
10207
10208 2011-05-08  Bruno Haible  <bruno@clisp.org>
10209
10210         getopt, argp: Respect rules for use of AC_LIBOBJ.
10211         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10212         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10213         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10214         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10215
10216 2011-05-08  Bruno Haible  <bruno@clisp.org>
10217
10218         getlogin_r: Move AC_LIBOBJ invocations to module description.
10219         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10220         gl_PREREQ_GETLOGIN_R invocations from here...
10221         * modules/getlogin_r (configure.ac): ... to here.
10222
10223 2011-05-08  Bruno Haible  <bruno@clisp.org>
10224
10225         getlogin: Move AC_LIBOBJ invocations to module description.
10226         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10227         here...
10228         * modules/getlogin (configure.ac): ... to here.
10229
10230 2011-05-08  Bruno Haible  <bruno@clisp.org>
10231
10232         getloadavg: Move AC_LIBOBJ invocations to module description.
10233         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10234         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10235         * modules/getloadavg (configure.ac): ... to here.
10236
10237 2011-05-08  Bruno Haible  <bruno@clisp.org>
10238
10239         gethrxtime: Move AC_LIBOBJ invocations to module description.
10240         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10241         LIB_GETHRXTIME from here...
10242         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10243         invocations from here...
10244         * modules/gethrxtime (configure.ac): ... to here.
10245
10246 2011-05-08  Bruno Haible  <bruno@clisp.org>
10247
10248         gethostname: Move AC_LIBOBJ invocations to module description.
10249         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10250         gl_PREREQ_GETHOSTNAME invocations from here...
10251         * modules/gethostname (configure.ac): ... to here.
10252
10253 2011-05-08  Bruno Haible  <bruno@clisp.org>
10254
10255         getgroups: Move AC_LIBOBJ invocations to module description.
10256         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10257         here...
10258         * modules/getgroups (configure.ac): ... to here.
10259
10260 2011-05-08  Bruno Haible  <bruno@clisp.org>
10261
10262         getdtablesize: Move AC_LIBOBJ invocations to module description.
10263         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10264         invocation from here...
10265         * modules/getdtablesize (configure.ac): ... to here.
10266
10267 2011-05-08  Bruno Haible  <bruno@clisp.org>
10268
10269         getdomainname: Move AC_LIBOBJ invocations to module description.
10270         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10271         gl_PREREQ_GETDOMAINNAME invocations from here...
10272         * modules/getdomainname (configure.ac): ... to here.
10273
10274 2011-05-08  Bruno Haible  <bruno@clisp.org>
10275
10276         getline: Move AC_LIBOBJ invocations to module description.
10277         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10278         invocations from here...
10279         * modules/getline (configure.ac): ... to here.
10280
10281 2011-05-08  Bruno Haible  <bruno@clisp.org>
10282
10283         getline: Simplify.
10284         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10285         It's already handled through the module dependency.
10286
10287 2011-05-08  Bruno Haible  <bruno@clisp.org>
10288
10289         getdelim: Move AC_LIBOBJ invocations to module description.
10290         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10291         and gl_PREREQ_GETDELIM invocations from here...
10292         * modules/getdelim (configure.ac): ... to here.
10293         (Depends-on): Fix condition.
10294
10295 2011-05-08  Bruno Haible  <bruno@clisp.org>
10296
10297         getcwd: Move AC_LIBOBJ invocations to module description.
10298         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10299         invocations from here...
10300         * modules/getcwd (configure.ac): ... to here.
10301
10302 2011-05-08  Bruno Haible  <bruno@clisp.org>
10303
10304         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10305         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10306         here...
10307         * modules/getcwd-lgpl (configure.ac): ... to here.
10308
10309 2011-05-07  Bruno Haible  <bruno@clisp.org>
10310
10311         crypto/gc: Move AC_LIBOBJ invocations to module description.
10312         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10313         * modules/crypto/gc (configure.ac): ... to here.
10314
10315 2011-05-07  Bruno Haible  <bruno@clisp.org>
10316
10317         fwriting: Move AC_LIBOBJ invocations to module description.
10318         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10319         here...
10320         * modules/fwriting (configure.ac): ... to here.
10321
10322 2011-05-07  Bruno Haible  <bruno@clisp.org>
10323
10324         fwritable: Move AC_LIBOBJ invocations to module description.
10325         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10326         here...
10327         * modules/fwritable (configure.ac): ... to here.
10328
10329 2011-05-07  Bruno Haible  <bruno@clisp.org>
10330
10331         futimens: Move AC_LIBOBJ invocations to module description.
10332         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10333         here...
10334         * modules/futimens (configure.ac): ... to here.
10335
10336 2011-05-07  Bruno Haible  <bruno@clisp.org>
10337
10338         ftruncate: Move AC_LIBOBJ invocations to module description.
10339         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10340         gl_PREREQ_FTRUNCATE invocations from here...
10341         * modules/ftruncate (configure.ac): ... to here.
10342
10343 2011-05-07  Bruno Haible  <bruno@clisp.org>
10344
10345         fsync: Move AC_LIBOBJ invocations to module description.
10346         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10347         invocations from here...
10348         * modules/fsync (configure.ac): ... to here.
10349
10350 2011-05-07  Bruno Haible  <bruno@clisp.org>
10351
10352         fsusage: Move AC_LIBOBJ invocations to module description.
10353         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10354         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10355         * modules/fsusage (configure.ac): ... to here.
10356
10357 2011-05-07  Bruno Haible  <bruno@clisp.org>
10358
10359         freopen: Move AC_LIBOBJ invocations to module description.
10360         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10361         invocations from here...
10362         * modules/freopen (configure.ac): ... to here.
10363
10364 2011-05-07  Bruno Haible  <bruno@clisp.org>
10365
10366         free: Move AC_LIBOBJ invocations to module description.
10367         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10368         invocations from here...
10369         * modules/free (configure.ac): ... to here.
10370
10371 2011-05-07  Bruno Haible  <bruno@clisp.org>
10372
10373         freadable: Move AC_LIBOBJ invocations to module description.
10374         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10375         here...
10376         * modules/freadable (configure.ac): ... to here.
10377
10378 2011-05-07  Bruno Haible  <bruno@clisp.org>
10379
10380         fpurge: Move AC_LIBOBJ invocations to module description.
10381         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10382         invocations from here...
10383         * modules/fpurge (configure.ac): ... to here.
10384
10385 2011-05-07  Bruno Haible  <bruno@clisp.org>
10386
10387         fpending: Move AC_LIBOBJ invocations to module description.
10388         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10389         gl_FUNC_FPENDING.
10390         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10391         invocations from here...
10392         * modules/fpending (configure.ac): ... to here.
10393
10394 2011-05-07  Bruno Haible  <bruno@clisp.org>
10395
10396         fopen: Move AC_LIBOBJ invocations to module description.
10397         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10398         invocations from here...
10399         * modules/fopen (configure.ac): ... to here.
10400
10401 2011-05-07  Bruno Haible  <bruno@clisp.org>
10402
10403         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10404         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10405         gl_FUNC_FNMATCH_POSIX.
10406         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10407         invocations from here...
10408         * modules/fnmatch (configure.ac): ... to here.
10409         * modules/fnmatch-gnu (configure.ac): ... and here.
10410
10411 2011-05-07  Bruno Haible  <bruno@clisp.org>
10412
10413         flock: Move AC_LIBOBJ invocations to module description.
10414         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10415         invocations from here...
10416         * modules/flock (configure.ac): ... to here.
10417
10418 2011-05-07  Bruno Haible  <bruno@clisp.org>
10419
10420         fileblocks: Move AC_LIBOBJ invocations to module description.
10421         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10422         gl_PREREQ_FILEBLOCKS invocations from here...
10423         * modules/fileblocks (configure.ac): ... to here.
10424
10425 2011-05-06  Bruno Haible  <bruno@clisp.org>
10426
10427         fflush: Move AC_LIBOBJ invocations to module description.
10428         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10429         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10430         invocations from here...
10431         * modules/fflush (configure.ac): ... to here.
10432
10433 2011-05-06  Bruno Haible  <bruno@clisp.org>
10434
10435         fdopendir: Move AC_LIBOBJ invocations to module description.
10436         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10437         here...
10438         * modules/fdopendir (configure.ac): ... to here.
10439         (Depends-on): Improve conditions.
10440
10441 2011-05-06  Bruno Haible  <bruno@clisp.org>
10442
10443         _Exit: Move AC_LIBOBJ invocations to module description.
10444         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10445         invocations from here...
10446         * modules/_Exit (configure.ac): ... to here.
10447
10448 2011-05-21  Bruno Haible  <bruno@clisp.org>
10449
10450         euidaccess: Respect rules for use of AC_LIBOBJ.
10451         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10453         from here...
10454         * modules/euidaccess (configure.ac): ... to here.
10455
10456 2011-05-06  Bruno Haible  <bruno@clisp.org>
10457
10458         error: Move AC_LIBOBJ invocations to module description.
10459         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10460         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10461         invocations from here...
10462         * modules/error (configure.ac): ... to here.
10463
10464 2011-05-06  Bruno Haible  <bruno@clisp.org>
10465
10466         duplocale: Move AC_LIBOBJ invocations to module description.
10467         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10468         gl_PREREQ_DUPLOCALE invocations from here...
10469         * modules/duplocale (configure.ac): ... to here.
10470
10471 2011-05-05  Bruno Haible  <bruno@clisp.org>
10472
10473         dirfd: Move AC_LIBOBJ invocations to module description.
10474         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10475         gl_FUNC_DIRFD.
10476         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10477         here...
10478         * modules/dirfd (configure.ac): ... to here.
10479         (Depends-on): Fix condition.
10480
10481 2011-05-05  Bruno Haible  <bruno@clisp.org>
10482
10483         chown: Respect rules for use of AC_LIBOBJ.
10484         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10485         * modules/chown (configure.ac): ... to here.
10486
10487 2011-05-05  Bruno Haible  <bruno@clisp.org>
10488
10489         chdir-long: Move AC_LIBOBJ invocations to module description.
10490         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10491         gl_PREREQ_CHDIR_LONG invocations from here...
10492         * modules/chdir-long (configure.ac): ... to here.
10493
10494 2011-05-05  Bruno Haible  <bruno@clisp.org>
10495
10496         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10497         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10498         from here...
10499         * modules/canonicalize-lgpl (configure.ac): ... to here.
10500
10501 2011-05-05  Bruno Haible  <bruno@clisp.org>
10502
10503         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10504         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10505         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10506         REPLACE_CALLOC.
10507         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10508         * modules/calloc-gnu (configure.ac): Likewise.
10509
10510 2011-05-05  Bruno Haible  <bruno@clisp.org>
10511
10512         btowc: Move AC_LIBOBJ invocations to module description.
10513         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10514         invocations from here...
10515         * modules/btowc (configure.ac): ... to here.
10516
10517 2011-05-21  Bruno Haible  <bruno@clisp.org>
10518
10519         atexit: Move AC_LIBOBJ invocations to module description.
10520         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10522         here...
10523         * modules/atexit (configure.ac): ... to here.
10524
10525 2011-05-05  Bruno Haible  <bruno@clisp.org>
10526
10527         atoll: Move AC_LIBOBJ invocations to module description.
10528         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10529         invocations from here...
10530         * modules/atoll (configure.ac): ... to here.
10531
10532 2011-05-05  Bruno Haible  <bruno@clisp.org>
10533
10534         argz: Move AC_LIBOBJ invocations to module description.
10535         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10536         * modules/argz (configure.ac): ... to here.
10537
10538 2011-05-05  Bruno Haible  <bruno@clisp.org>
10539
10540         alphasort: Move AC_LIBOBJ invocations to module description.
10541         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10542         gl_PREREQ_ALPHASORT invocations from here...
10543         * modules/alphasort (configure.ac): ... to here.
10544
10545 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10546
10547         verify: new macro verify_expr; verify_true deprecated
10548         * NEWS: Mention this.
10549         * doc/verify.texi (Compile-time Assertions): Document this.
10550         * lib/verify.h (verify_true): Deprecate.
10551         (verify_expr): New macro.
10552         * tests/test-verify.c (function): Test verify_expr.
10553
10554 2011-06-14  Jim Meyering  <meyering@redhat.com>
10555
10556         init.sh: give more portable redirection-related advice in a comment
10557         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10558         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10559         for lots of discussion.  Stefano Lattarini suggested the solution
10560         of putting "9>&2" after the command.  Reported by Bruno Haible.
10561
10562 2011-06-13  Bruno Haible  <bruno@clisp.org>
10563
10564         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10565         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10566         'none'.
10567
10568 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10569
10570         ftoastr: use strtof only if HAVE_STRTOF
10571         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10573         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10574         * modules/ftoastr (configure.ac): Check for strtof.
10575
10576 2011-06-13  Bruno Haible  <bruno@clisp.org>
10577
10578         gnulib-tool: Addendum to 2011-06-08 commit.
10579         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10580         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10581
10582 2011-06-13  Bruno Haible  <bruno@clisp.org>
10583
10584         fseeko: Provide a non-inline replacement of fseek().
10585         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10586         * modules/fseeko (Depends-on): Add fseek.
10587         * modules/fseek (License): Change to LGPLv2+.
10588
10589 2011-06-13  Bruno Haible  <bruno@clisp.org>
10590
10591         ftello: Provide a non-inline replacement of ftell().
10592         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10593         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10594         not have ftello() (such as on mingw).
10595         * modules/ftello (Depends-on): Add ftell.
10596         * modules/ftell (License): Change to LGPLv2+.
10597
10598 2011-05-07  Bruno Haible  <bruno@clisp.org>
10599
10600         ftell: Move AC_LIBOBJ invocations to module description.
10601         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10602         * modules/ftell (configure.ac): ... to here.
10603
10604 2011-05-07  Bruno Haible  <bruno@clisp.org>
10605
10606         ftello: Respect rules for use of AC_LIBOBJ.
10607         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10608         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10609         here...
10610         * modules/ftello (configure.ac): ... to here.
10611
10612 2011-05-07  Bruno Haible  <bruno@clisp.org>
10613
10614         fseeko: Simplify.
10615         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10616         (gl_FUNC_FSEEKO): Inline it here.
10617
10618 2011-05-07  Bruno Haible  <bruno@clisp.org>
10619
10620         fseek: Move AC_LIBOBJ invocations to module description.
10621         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10622         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10623         * modules/fseek (configure.ac): ... to here.
10624
10625 2011-05-07  Bruno Haible  <bruno@clisp.org>
10626
10627         fseek: Respect rules for use of AC_LIBOBJ.
10628         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10629         here...
10630         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10631
10632 2011-05-07  Bruno Haible  <bruno@clisp.org>
10633
10634         fseeko: Respect rules for use of AC_LIBOBJ.
10635         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10636         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10637         here...
10638         * modules/fseeko (configure.ac): ... to here.
10639
10640 2011-06-13  Bruno Haible  <bruno@clisp.org>
10641
10642         gnulib-tool: Allow comments in the 'Depends-on' section.
10643         * doc/gnulib.texi (Module description): Mention comment syntax in the
10644         Depends-on section.
10645         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10646
10647 2011-06-13  Bruno Haible  <bruno@clisp.org>
10648
10649         file-set.h: guard __attibute__ use, now that it's not always defined
10650         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10651         versions that support it.  This fixes a coreutils build failure with
10652         the vendor cc on HP-UX 11.31.
10653
10654 2011-06-12  Bruno Haible  <bruno@clisp.org>
10655
10656         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10657         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10658         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10659         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10660         (acl, aclsort): New declarations.
10661         (aclv_nontrivial): New declaration.
10662         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10663         (file_has_acl): Read also the second kind of HP-UX ACLs.
10664         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10665         kind of HP-UX ACLs if the first kind fails.
10666         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10667         second kind of HP-UX ACLs.
10668         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10669         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10670         agree.
10671         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10672         hpuxjfs.
10673         Handle hpuxjfs.
10674         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10675         hpuxjfs.
10676         Handle hpuxjfs.
10677         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10678         (func_test_same_acls): Use both lsacl and getacl.
10679         Handle hpuxjfs.
10680         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10681         (func_test_same_acls): Use both lsacl and getacl.
10682         Handle hpuxjfs.
10683
10684 2011-06-12  Bruno Haible  <bruno@clisp.org>
10685
10686         acl: Complete the 2010-08-10 fix.
10687         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10688         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10689         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10690         explicitly.
10691         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10692         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10693
10694 2011-06-12  Bruno Haible  <bruno@clisp.org>
10695
10696         spawn-pipe tests: Comments.
10697         * tests/test-spawn-pipe-child.c (main): Update comment.
10698         Reported by James Youngman <jay@gnu.org>.
10699
10700 2011-06-11  James Youngman  <jay@gnu.org>
10701
10702         New module 'stat-size'.
10703         * modules/stat-size: New module.  Provides macros for accessing
10704         file size information in instances of struct stat.  Depends on the
10705         fileblocks module because it calls st_blocks.
10706         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10707         * doc/gnulib.texi: Include stat-size.texi.
10708         * doc/stat-size.texi: Documentation for this module.
10709         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10710         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10711         AC_STRUCT_ST_BLOCKS.
10712
10713 2011-06-09  Bruno Haible  <bruno@clisp.org>
10714
10715         thread: Support pthreads-win32.
10716         * lib/glthread/thread.h (gl_thread_self): Define differently on
10717         pthreads-win32.
10718         (gl_null_thread): New declaration.
10719         (gl_thread_self_pointer): New macro.
10720         * lib/glthread/thread.c (gl_null_thread): New constant.
10721         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10722         gl_thread_self.
10723         * tests/test-tls.c: Likewise.
10724         Suggested by Paul Eggert. Reported by Eric Blake.
10725
10726 2011-06-09  Bruno Haible  <bruno@clisp.org>
10727
10728         thread: Fix confusion between NULL and 0.
10729         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10730         Reported by Paul Eggert.
10731
10732 2011-06-09  Bruno Haible  <bruno@clisp.org>
10733
10734         spawn-pipe tests: Avoid test failure on HP-UX 11.
10735         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10736         is closed.
10737
10738 2011-06-09  Bruno Haible  <bruno@clisp.org>
10739
10740         acl tests: Fix compilation error on HP-UX 11.
10741         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10742
10743 2011-06-09  Bruno Haible  <bruno@clisp.org>
10744
10745         rmdir: Avoid test failure on HP-UX 10.20.
10746         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10747         EEXIST.
10748
10749 2011-06-08  Eric Blake  <eblake@redhat.com>
10750
10751         perror: fix test on mingw
10752         * modules/perror-tests (Depends-on): Add dup2.
10753
10754         strerror_r-posix: fix on MacOS
10755         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10756         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10757         logic bug.
10758         * lib/strerror_r.c (strerror_r): Fix the bug.
10759         * lib/strerror.c (strerror): Likewise.
10760         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10761         problem.
10762         * doc/posix-functions/strerror.texi (strerror): Likewise.
10763         * doc/posix-functions/perror.texi (perror): Likewise.
10764         * tests/test-strerror.c (main): Enhance test.
10765         * tests/test-strerror_r.c (main): Likewise.
10766
10767 2011-06-08  Bruno Haible  <bruno@clisp.org>
10768
10769         gnulib-tool: Better isolation between different gnulib-tool invocations.
10770         * gnulib-tool: New option --witness-c-macro.
10771         (witness_c_macro): New variable.
10772         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10773         AM_CPPFLAGS define it as a C macro.
10774         (func_emit_tests_Makefile_am): Likewise.
10775         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10776         read it from there.
10777         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10778         m4_define, not AC_DEFUN.
10779         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10780         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10781         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10782         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10783         s|...|...|, to substitute the values of the GNULIB_* module indicator
10784         variables.
10785         * modules/dirent (Makefile.am): Likewise.
10786         * modules/fcntl-h (Makefile.am): Likewise.
10787         * modules/iconv-h (Makefile.am): Likewise.
10788         * modules/langinfo (Makefile.am): Likewise.
10789         * modules/locale (Makefile.am): Likewise.
10790         * modules/math (Makefile.am): Likewise.
10791         * modules/netdb (Makefile.am): Likewise.
10792         * modules/poll-h (Makefile.am): Likewise.
10793         * modules/pty (Makefile.am): Likewise.
10794         * modules/search (Makefile.am): Likewise.
10795         * modules/signal (Makefile.am): Likewise.
10796         * modules/spawn (Makefile.am): Likewise.
10797         * modules/stdio (Makefile.am): Likewise.
10798         * modules/stdlib (Makefile.am): Likewise.
10799         * modules/string (Makefile.am): Likewise.
10800         * modules/sys_ioctl (Makefile.am): Likewise.
10801         * modules/sys_select (Makefile.am): Likewise.
10802         * modules/sys_socket (Makefile.am): Likewise.
10803         * modules/sys_stat (Makefile.am): Likewise.
10804         * modules/sys_times (Makefile.am): Likewise.
10805         * modules/sys_utsname (Makefile.am): Likewise.
10806         * modules/sys_wait (Makefile.am): Likewise.
10807         * modules/termios (Makefile.am): Likewise.
10808         * modules/time (Makefile.am): Likewise.
10809         * modules/unistd (Makefile.am): Likewise.
10810         * modules/wchar (Makefile.am): Likewise.
10811
10812 2011-06-08  Eric Blake  <eblake@redhat.com>
10813
10814         strerror: simplify replacement
10815         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10816         * modules/strerror (configure.ac): No prereqs needed here...
10817         * modules/strerror-override (configure.ac): ...but this needs it.
10818         (Files): Add file for needed prereq macro.
10819
10820 2011-06-08  Bruno Haible  <bruno@clisp.org>
10821
10822         strerror_r-posix: Tweaks.
10823         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10824         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10825         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10826         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10827         (gl_FUNC_STRERROR_R): ... to here.
10828         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10829
10830 2011-06-07  Eric Blake  <eblake@redhat.com>
10831
10832         perror: document fixed bugs
10833         * doc/posix-functions/perror.texi (perror): Document recent
10834         patches.
10835
10836 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10837
10838         stat-time: get_stat_birthtime failure is better-defined
10839         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10840         return a timestamp whose tv_sec and tv_nsec values are both -1.
10841         Previously, the spec said only that the tv_nsec value was negative.
10842         This upward-compatible change simplifies GNU tar a bit.
10843
10844 2011-06-07  Eric Blake  <eblake@redhat.com>
10845
10846         strerror_r-posix: work around cygwin 1.7.9
10847         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10848         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10849         bug without replacing strerror_r.
10850         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10851         strerror_r is buggy, but without requiring strerror_r compilation.
10852         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10853
10854         test-perror: relax test to ignore cygwin bug
10855         * tests/test-perror2.c (main): Relax test on requiring detection
10856         of stream errors, and use unbuffered stream.
10857         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10858         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10859         * doc/posix-functions/fputc.texi (fputc): Likewise.
10860         * doc/posix-functions/fputs.texi (fputs): Likewise.
10861         * doc/posix-functions/fputws.texi (fputws): Likewise.
10862         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10863         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10864         * doc/posix-functions/getopt.texi (getopt): Likewise.
10865         * doc/posix-functions/perror.texi (perror): Likewise.
10866         * doc/posix-functions/printf.texi (printf): Likewise.
10867         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10868         * doc/posix-functions/psignal.texi (psignal): Likewise.
10869         * doc/posix-functions/putc.texi (putc): Likewise.
10870         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10871         Likewise.
10872         * doc/posix-functions/putchar.texi (putchar): Likewise.
10873         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10874         Likewise.
10875         * doc/posix-functions/puts.texi (puts): Likewise.
10876         * doc/posix-functions/putwc.texi (putwc): Likewise.
10877         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10878         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10879         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10880         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10881         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10882         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10883         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10884         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10885
10886 2011-05-22  Bruno Haible  <bruno@clisp.org>
10887
10888         strerror: Move AC_LIBOBJ invocations to module description.
10889         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10890         gl_PREREQ_STRERROR invocations from here...
10891         * modules/strerror (configure.ac): ... to here.
10892
10893 2011-05-21  Bruno Haible  <bruno@clisp.org>
10894
10895         perror: Use common idiom.
10896         * modules/perror (configure.ac): Reorder statements.
10897
10898 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10899
10900         tests: fix usage message in 'mktempd_'
10901         * tests/init.sh (mktempd_): In the usage message, use literal
10902         'mktempd_', not '$ME' (which is even undefined), as the name of
10903         the subroutine.
10904
10905 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10906
10907         tests init: new function 'fatal_', for hard errors
10908         Before this patch, the only way offered by tests/init.sh to
10909         properly signal a hard error was the `framework_failure_'
10910         function.  But the error message issued by that function,
10911         as its name would suggest, refers to a set-up failure in the
10912         testsuite, while hard errors can obviously also be due to
10913         other reasons.  The best way to fix this inconsistency is to
10914         introduce a new function with a more general error message.
10915         * tests/init.sh (fatal_): New function.
10916
10917 2011-06-06  Eric Blake  <eblake@redhat.com>
10918
10919         canonicalize-lgpl: use common idiom
10920         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10921         over newer POSIX -Rf.
10922         Reported by Bruno Haible.
10923
10924         canonicalize-lgpl: work around AIX realpath bug
10925         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10926         * doc/posix-functions/realpath.texi (realpath): Document it.
10927         Reported by Bruno Haible.
10928
10929         strerror: work around FreeBSD bug
10930         * lib/strerror.c (strerror): Special case 0.
10931         Reported by Bruno Haible.
10932
10933         strerror-override: avoid bloating errno module
10934         * modules/errno (Files, configure.ac): Move replacement strings...
10935         * modules/strerror-override: ...to new module.
10936         * modules/strerror (Depends-on): Add strerror-override.
10937         * modules/strerror_r-posix (Depends-on): Likewise.
10938         * MODULES.html.sh: Document new module.
10939         Reported by Bruno Haible.
10940
10941 2011-06-06  Bruno Haible  <bruno@clisp.org>
10942
10943         spawn-pipe tests: Rename program.
10944         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10945         * tests/test-spawn-pipe-child.c: Update comment.
10946         * tests/test-spawn-pipe.sh: Update.
10947         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10948
10949         spawn-pipe tests: Link the child program only against libc.
10950         * tests/test-spawn-pipe-child.c: New file, extracted from
10951         tests/test-spawn-pipe.c.
10952         (main): Expect only one argument.
10953         (is_open): New function, copied from tests/test-pipe.c.
10954         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10955         (child_main): Remove function.
10956         (test_pipe): Pass only one argument to the child program.
10957         (main): Remove child process code. Expect the child program's name as
10958         first argument.
10959         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10960         argument.
10961         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10962         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10963         test-spawn-pipe-child against no libraries.
10964
10965 2011-06-06  Bruno Haible  <bruno@clisp.org>
10966
10967         careadlinkat: Avoid mismatch between ssize_t and int.
10968         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10969         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10970
10971 2011-06-06  Jim Meyering  <meyering@redhat.com>
10972
10973         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10974         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10975         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10976
10977 2011-06-05  Bruno Haible  <bruno@clisp.org>
10978
10979         ansi-c++-opt: Interoperability with libtool.
10980         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10981         set the variable to "no", not to ":".
10982         * NEWS: Mention the change.
10983
10984 2011-06-05  Bruno Haible  <bruno@clisp.org>
10985
10986         acl: Fix test failure on AIX 7.
10987         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10988         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10989
10990 2011-06-05  Bruno Haible  <bruno@clisp.org>
10991
10992         pipe-filter-ii: Fix test failure on AIX and IRIX.
10993         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10994         with EAGAIN, retry with a smaller buffer size.
10995
10996 2011-06-05  Bruno Haible  <bruno@clisp.org>
10997
10998         localename: Fix link dependencies.
10999         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11000         * modules/localename-tests (Makefile.am): Link test-localename with
11001         $(LIBTHREAD).
11002
11003 2011-06-05  Bruno Haible  <bruno@clisp.org>
11004
11005         error: Avoid gcc warning.
11006         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11007
11008 2011-06-05  Bruno Haible  <bruno@clisp.org>
11009
11010         unsetenv: Avoid gcc warning.
11011         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11012
11013 2011-06-05  Bruno Haible  <bruno@clisp.org>
11014
11015         setenv: Avoid gcc warning.
11016         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11017
11018 2011-06-05  Bruno Haible  <bruno@clisp.org>
11019
11020         sys_select: Ensure memset is declared also on AIX 7.
11021         * lib/sys_select.in.h: Include <string.h> also on AIX.
11022         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11023         self-contained also on AIX 7.1.
11024
11025 2011-06-04  Jim Meyering  <meyering@redhat.com>
11026
11027         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11028         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11029         function name, "error".
11030         (_gl_translatable_diag_func_re): New configurable variable.
11031
11032 2011-06-04  Bruno Haible  <bruno@clisp.org>
11033
11034         getopt: Avoid gcc warning.
11035         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11036
11037 2011-06-04  Bruno Haible  <bruno@clisp.org>
11038
11039         strerror_r: Fix comments.
11040         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11041         commit.
11042
11043 2011-06-04  Bruno Haible  <bruno@clisp.org>
11044
11045         perror: Fix compilation error.
11046         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11047         Undefine fprintf, not sprintf.
11048         * modules/perror (Depends-on): Remove intprops, verify.
11049
11050 2011-06-04  Bruno Haible  <bruno@clisp.org>
11051
11052         setlocale: Enable replacement on Cygwin 1.5.
11053         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11054         Cygwin 1.5.x.
11055         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11056         LC_CTYPE category also exists on Cygwin 1.5.x.
11057
11058 2011-06-04  Bruno Haible  <bruno@clisp.org>
11059
11060         strerror-override: Don't disable symbol renamings.
11061         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11062         * lib/strerror-override.c: Include config.h.
11063         (strerror_override): Don't undefine.
11064
11065 2011-06-03  Bruno Haible  <bruno@clisp.org>
11066
11067         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11068         * lib/localename.h: Update copyright header.
11069         * lib/localename.c: Likewise.
11070         * lib/relocatable.h: Likewise.
11071         * lib/relocatable.c: Likewise.
11072
11073 2011-06-02  Bruno Haible  <bruno@clisp.org>
11074
11075         doc: Fix a module name.
11076         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11077
11078 2011-06-02  Bruno Haible  <bruno@clisp.org>
11079
11080         pipe2: Remove dependency on 'nonblocking' module.
11081         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11082         O_NONBLOCK is defined by gnulib.
11083         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11084         is zero.
11085         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11086         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11087         defined by gnulib.
11088         (get_nonblocking_flag): New function.
11089         (main): Test O_NONBLOCK flag only if it is nonzero.
11090         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11091
11092 2011-06-03  Jim Meyering  <meyering@redhat.com>
11093
11094         maint: three new prohibit-header-without-use rules
11095         Prohibit use of cloexec.h, posixver.h, same.h without use.
11096         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11097         (sc_prohibit_posixver_without_use): Likewise.
11098         (sc_prohibit_same_without_use): Likewise.
11099
11100 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11101
11102         allocator: 'die' routine is now given requested size
11103         * lib/allocator.h (struct allocator.die): New size arg.
11104         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11105         If the actual problem is an ssize_t limitation, not a size_t or
11106         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11107
11108 2011-06-01  Eric Blake  <eblake@redhat.com>
11109
11110         strerror: drop strerror_r dependency
11111         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11112         * lib/strerror-override.c (strerror_override): ...to new file.
11113         * lib/strerror-override.h: Add prototype.
11114         * lib/strerror-impl.h: Delete.
11115         * lib/strerror.c (strerror): New implementation.
11116         * modules/errno (Files): Add new files.
11117         (configure.ac): Compile new file as appropriate.
11118         * modules/strerror (Files): Drop unused file.
11119         (Depends-on): Drop strerror_r-posix.
11120         * MODULES.html.sh: Document strerror_r-posix.
11121         Requested by Sam Steingold.
11122
11123         perror: call strerror_r directly
11124         * modules/perror (Files): Drop strerror-impl.h.
11125         * lib/perror.c (perror): Use our own stack buffer, rather than
11126         calling a wrapper that uses static storage.
11127         * doc/posix-functions/perror.texi (perror): Document a limitation
11128         of our replacement.
11129
11130         strerror_r: fix includes for FreeBSD
11131         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11132         since we use abort on some platforms.
11133         Reported by Matthias Bolte.
11134
11135 2011-05-31  Bruno Haible  <bruno@clisp.org>
11136
11137         Fix link errors in tests: openat-die uses gettext-h.
11138         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11139         against $(LIBINTL).
11140         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11141         against $(LIBINTL).
11142         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11143         $(LIBINTL).
11144         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11145         against $(LIBINTL).
11146         * modules/linkat-tests (Makefile.am): Link test-linkat against
11147         $(LIBINTL).
11148         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11149         $(LIBINTL).
11150         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11151         against $(LIBINTL).
11152         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11153         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11154         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11155         $(LIBINTL).
11156         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11157         $(LIBINTL).
11158         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11159         $(LIBINTL).
11160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11161
11162 2011-05-31  Bruno Haible  <bruno@clisp.org>
11163
11164         Fix link errors in tests: wait-process uses gettext-h.
11165         * modules/nonblocking-pipe-tests (Makefile.am): Set
11166         test_nonblocking_pipe_main_LDADD.
11167         * modules/nonblocking-socket-tests (Makefile.am): Link
11168         test-nonblocking-socket-main against $(LIBINTL).
11169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11170
11171 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11172
11173         assert-h: work around 'verify' incompatibility
11174         * lib/verify.h: Use @...@ directives, not ifdef.
11175         * modules/assert-h (assert.h): Implement the directives.
11176         (assert.h): Substitute the symbol-prefix more consistently.
11177
11178 2011-05-29  Jim Meyering  <meyering@redhat.com>
11179
11180         trim: remove three superfluous assignments
11181         * lib/trim.c (trim2): Remove three superfluous assignments
11182         and correct brace positioning.
11183
11184 2011-05-29  Bruno Haible  <bruno@clisp.org>
11185
11186         wctype-h: Avoid namespace pollution on Solaris 2.6.
11187         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11188         identifiers.
11189         * doc/posix-headers/wctype.texi: Mention the problem.
11190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11191
11192 2011-05-28  Jim Meyering  <meyering@redhat.com>
11193
11194         parse-datetime.y: accommodate -Wstrict-overflow
11195         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11196         placate -Wstrict-overflow.
11197
11198         trim: avoid a warning from -O2 -Wstrict-overflow
11199         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11200
11201 2011-05-29  Bruno Haible  <bruno@clisp.org>
11202
11203         gnulib-tool: Fix bug in yesterday's commit.
11204         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11205         twice.
11206
11207 2011-05-29  Bruno Haible  <bruno@clisp.org>
11208
11209         Allow multiple gnulib generated include files to be combined.
11210         * gnulib-tool (func_compute_include_guard_prefix): New function.
11211         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11212         ${gl_include_guard_prefix} references.
11213         (func_import, func_create_testdir): Invoke
11214         func_compute_include_guard_prefix.
11215         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11216         * lib/ctype.in.h: Likewise.
11217         * lib/dirent.in.h: Likewise.
11218         * lib/errno.in.h: Likewise.
11219         * lib/fcntl.in.h: Likewise.
11220         * lib/float.in.h: Likewise.
11221         * lib/getopt.in.h: Likewise.
11222         * lib/iconv.in.h: Likewise.
11223         * lib/langinfo.in.h: Likewise.
11224         * lib/locale.in.h: Likewise.
11225         * lib/math.in.h: Likewise.
11226         * lib/netdb.in.h: Likewise.
11227         * lib/netinet_in.in.h: Likewise.
11228         * lib/poll.in.h: Likewise.
11229         * lib/pthread.in.h: Likewise.
11230         * lib/pty.in.h: Likewise.
11231         * lib/sched.in.h: Likewise.
11232         * lib/se-selinux.in.h: Likewise.
11233         * lib/search.in.h: Likewise.
11234         * lib/signal.in.h: Likewise.
11235         * lib/spawn.in.h: Likewise.
11236         * lib/stdarg.in.h: Likewise.
11237         * lib/stddef.in.h: Likewise.
11238         * lib/stdint.in.h: Likewise.
11239         * lib/stdio.in.h: Likewise.
11240         * lib/stdlib.in.h: Likewise.
11241         * lib/string.in.h: Likewise.
11242         * lib/strings.in.h: Likewise.
11243         * lib/sys_file.in.h: Likewise.
11244         * lib/sys_ioctl.in.h: Likewise.
11245         * lib/sys_select.in.h: Likewise.
11246         * lib/sys_socket.in.h: Likewise.
11247         * lib/sys_stat.in.h: Likewise.
11248         * lib/sys_time.in.h: Likewise.
11249         * lib/sys_times.in.h: Likewise.
11250         * lib/sys_uio.in.h: Likewise.
11251         * lib/sys_utsname.in.h: Likewise.
11252         * lib/sys_wait.in.h: Likewise.
11253         * lib/sysexits.in.h: Likewise.
11254         * lib/termios.in.h: Likewise.
11255         * lib/time.in.h: Likewise.
11256         * lib/unistd.in.h: Likewise.
11257         * lib/wchar.in.h: Likewise.
11258         * lib/wctype.in.h: Likewise.
11259         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11260         * modules/ctype (Makefile.am): Likewise.
11261         * modules/dirent (Makefile.am): Likewise.
11262         * modules/errno (Makefile.am): Likewise.
11263         * modules/fcntl-h (Makefile.am): Likewise.
11264         * modules/float (Makefile.am): Likewise.
11265         * modules/getopt-posix (Makefile.am): Likewise.
11266         * modules/iconv-h (Makefile.am): Likewise.
11267         * modules/langinfo (Makefile.am): Likewise.
11268         * modules/locale (Makefile.am): Likewise.
11269         * modules/math (Makefile.am): Likewise.
11270         * modules/netdb (Makefile.am): Likewise.
11271         * modules/netinet_in (Makefile.am): Likewise.
11272         * modules/poll-h (Makefile.am): Likewise.
11273         * modules/pthread (Makefile.am): Likewise.
11274         * modules/pty (Makefile.am): Likewise.
11275         * modules/sched (Makefile.am): Likewise.
11276         * modules/search (Makefile.am): Likewise.
11277         * modules/selinux-h (Makefile.am): Likewise.
11278         * modules/signal (Makefile.am): Likewise.
11279         * modules/spawn (Makefile.am): Likewise.
11280         * modules/stdarg (Makefile.am): Likewise.
11281         * modules/stddef (Makefile.am): Likewise.
11282         * modules/stdint (Makefile.am): Likewise.
11283         * modules/stdio (Makefile.am): Likewise.
11284         * modules/stdlib (Makefile.am): Likewise.
11285         * modules/string (Makefile.am): Likewise.
11286         * modules/strings (Makefile.am): Likewise.
11287         * modules/sys_file (Makefile.am): Likewise.
11288         * modules/sys_ioctl (Makefile.am): Likewise.
11289         * modules/sys_select (Makefile.am): Likewise.
11290         * modules/sys_socket (Makefile.am): Likewise.
11291         * modules/sys_stat (Makefile.am): Likewise.
11292         * modules/sys_time (Makefile.am): Likewise.
11293         * modules/sys_times (Makefile.am): Likewise.
11294         * modules/sys_uio (Makefile.am): Likewise.
11295         * modules/sys_utsname (Makefile.am): Likewise.
11296         * modules/sys_wait (Makefile.am): Likewise.
11297         * modules/sysexits (Makefile.am): Likewise.
11298         * modules/termios (Makefile.am): Likewise.
11299         * modules/time (Makefile.am): Likewise.
11300         * modules/unistd (Makefile.am): Likewise.
11301         * modules/wchar (Makefile.am): Likewise.
11302         * modules/wctype-h (Makefile.am): Likewise.
11303         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11304
11305 2011-05-29  Bruno Haible  <bruno@clisp.org>
11306
11307         assert-h: Allow multiple gnulib generated replacements to coexist.
11308         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11309
11310 2011-05-29  Bruno Haible  <bruno@clisp.org>
11311
11312         argp: Allow coexistence with strerror_r-posix module.
11313         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11314         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11315         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11316         not the glibc signature.
11317
11318 2011-05-28  Bruno Haible  <bruno@clisp.org>
11319
11320         gnulib-tool: Alternative structure of testdirs, similar to --import.
11321         * gnulib-tool: New option --single-configure.
11322         (func_usage): Document it.
11323         (single_configure): New variable.
11324         (func_modules_transitive_closure_separately,
11325         func_modules_transitive_closure_separately,
11326         func_determine_use_libtests, func_modules_add_dummy_separately,
11327         func_modules_to_filelist_separately): New functions, extracted from
11328         func_import.
11329         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11330         (func_import): Use the new functions.
11331         (func_create_testdir): Set final_modules. Handle $single_configure =
11332         true case.
11333
11334 2011-05-28  Bruno Haible  <bruno@clisp.org>
11335
11336         getloadavg: Remove an unreliable safety check.
11337         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11338         getloadavg.c is in place.
11339         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11340         Reported by Sam Steingold <sds@gnu.org>.
11341
11342 2011-05-28  Bruno Haible  <bruno@clisp.org>
11343
11344         doc: Cleanup yet another file produced by texinfo.tex.
11345         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11346
11347 2011-05-28  Bruno Haible  <bruno@clisp.org>
11348
11349         Finish the conditional dependencies mechanism.
11350         * gnulib-tool: New option --no-conditional-dependencies.
11351         (func_usage): Document it. Don't mark --conditional-dependencies as
11352         experimental.
11353         (cond_dependencies): The possible values can now be true, false, empty.
11354         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11355         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11356         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11357
11358 2011-05-28  Bruno Haible  <bruno@clisp.org>
11359
11360         doc: Use a recent texinfo.tex.
11361         * doc/Makefile (tex_opts): New variable.
11362         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11363
11364 2011-05-28  Jim Meyering  <meyering@redhat.com>
11365
11366         intprops.h: adjust comment to match code change
11367         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11368         only once, it *may* have side effects.  Also fix an unrelated typo.
11369         (_GL_INT_SIGNED): Likewise.
11370
11371 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11372
11373         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11374
11375 2011-05-26  Bruno Haible  <bruno@clisp.org>
11376
11377         mbsrchr: Avoid collision with system function on Interix.
11378         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11379         Reported by Markus Duft <mduft@gentoo.org>.
11380
11381 2011-05-15  James Youngman  <jay@gnu.org>
11382
11383         getopt: for ambiguous options, enumerate the possibilities.
11384         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11385         the ambiguous options when an ambiguous prefix is given. This was
11386         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11387         glibc change was
11388         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11389
11390 2011-05-25  Eric Blake  <eblake@redhat.com>
11391
11392         getcwd: work around mingw bug
11393         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11394         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11395         Reported by Matthias Bolte.
11396
11397 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11398
11399         test-intprops: disable -Wtype-limits diagnostics
11400         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11401         diagnostics.  Otherwise, the integer overflow macros generate many
11402         diagnostics.  Reported by Jim Meyering in
11403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11404
11405         intprops: shorten, to pacify gcc -Woverlength-strings
11406         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11407         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11408         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11409         likely to run afoul of C compiler limits for string constant lengths.
11410         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11411
11412 2011-05-24  Eric Blake  <eblake@redhat.com>
11413
11414         docs: document recently fixed glibc printf bug
11415         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11416         * doc/posix-functions/printf.texi (printf): Likewise.
11417         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11418         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11419
11420         closein-tests: convert to init.sh
11421         * modules/closein-tests (Files): Add init.sh
11422         * tests/test-closein.sh Use it.
11423
11424         yesno-tests: convert to init.sh
11425         * modules/yesno-tests (Files): Add init.sh.
11426         * tests/test-yesno.sh: Use it.
11427
11428         atexit-tests: ensure reliable exit status
11429         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11430         Reported by Bruno Haible.
11431
11432 2011-05-24  Bruno Haible  <bruno@clisp.org>
11433
11434         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11435         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11436         gl_PREREQ_STRERROR_R invocations from here...
11437         * modules/strerror_r-posix (configure.ac): ... to here.
11438
11439 2011-05-24  Eric Blake  <eblake@redhat.com>
11440
11441         strerror_r: fix missing header
11442         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11443
11444         strerror_r: fix AIX test failures
11445         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11446         ERANGE failure.
11447
11448         strerror_r: fix Solaris test failures
11449         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11450         failures.
11451         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11452
11453         strerror_r: enforce POSIX recommendations
11454         * lib/strerror_r.c (safe_copy): New helper method.
11455         (strerror_r): Guarantee a non-empty string.
11456         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11457         recent POSIX rulings and to match our strerror guarantees.
11458         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11459
11460 2011-05-24  Jim Meyering  <meyering@redhat.com>
11461
11462         test-perror2.c: avoid warning about unused variable
11463         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11464
11465 2011-05-24  Eric Blake  <eblake@redhat.com>
11466
11467         perror: avoid spurious test failure on HP-UX
11468         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11469
11470         tests: fix logic bug in init.sh
11471         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11472         shell.
11473
11474 2011-05-24  Jim Meyering  <meyering@redhat.com>
11475
11476         utimensat: do not reference an out-of-scope buffer
11477         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11478         declared in an inner scope, yet "times" would be dereferenced outside
11479         the scope in which "ts" was valid.
11480         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11481         of ts[2] "out/up", so that the use of aliased "times" (via
11482         "times = ts;") does not end up referencing an out-of-scope "ts"
11483
11484         opendir-safer.c: don't clobber errno; don't close negative FD
11485         * lib/opendir-safer.c (opendir_safer):
11486         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11487         file descriptor, and more importantly, don't clobber the
11488         offending errno value with EINVAL.  Before, upon failure
11489         of dup_safer, we would pass the negative file descriptor to
11490         fdopendir, which would clobber errno.
11491
11492 2011-05-23  Bruno Haible  <bruno@clisp.org>
11493
11494         idcache: Fix module description.
11495         * modules/idcache (Include): Set to "idcache.h".
11496
11497 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11498
11499         gnulib-tool: fix portability problem with MacOS sed
11500         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11501         before the "}".  Problem reported by Leo in
11502         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11503         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11504         sed_extract_condition1, sed_extract_condition2.
11505
11506 2011-05-23  Bruno Haible  <bruno@clisp.org>
11507
11508         hash: Simplify autoconf macro.
11509         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11510
11511 2011-05-23  Bruno Haible  <bruno@clisp.org>
11512
11513         getugroups: Fix module description.
11514         * modules/getugroups (Include): Set to "getugroups.h".
11515
11516 2011-05-23  Bruno Haible  <bruno@clisp.org>
11517
11518         linkat: Simplify autoconf macro.
11519         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11520
11521 2011-05-23  Bruno Haible  <bruno@clisp.org>
11522             Eric Blake  <eblake@redhat.com>
11523
11524         linkat, renameat: Update dependencies.
11525         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11526         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11527         symlinkat.
11528
11529 2011-05-23  Jim Meyering  <meyering@redhat.com>
11530
11531         maint.mk: more tight_scope improvements
11532         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11533         (_gl_TS_headers): Define only in if-0'd block.
11534         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11535         sometimes we must *not* use it.  Adjust uses accordingly.
11536         (sc_tight_scope): Use much simpler grep-based test to determine
11537         whether we skip this rule.
11538
11539         maint.mk: generalize/improve the tight-scope rule
11540         * top/maint.mk: Emit a warning when the test is skipped.
11541         (_gl_TS_dir): Add $(srcdir)/ prefix.
11542         (_gl_TS_function_match): Simplify, rather than trying
11543         to enumerate common types.  Otherwise, it would fail to match an
11544         "extern unsigned char const *" declaration in idutils.
11545         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11546         a way to support use of that type of macro.
11547         (_gl_TS_var_match): Simplify regexp.
11548         (_gl_TS_obj_files): New configurable variable.
11549         (_gl_TS_headers): Likewise.
11550
11551 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         verify: fix bug when gnulib <assert.h> is also included
11554         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11555         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11556         Perhaps there's a better way, but this fixes the immediate problem.
11557         Problem reported by Bruno Haible in
11558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11559
11560 2011-05-22  Bruno Haible  <bruno@clisp.org>
11561
11562         xgetcwd: Simplify autoconf macro.
11563         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11564
11565 2011-05-22  Bruno Haible  <bruno@clisp.org>
11566
11567         New module 'mktime-internal'.
11568         * modules/mktime-internal: New file.
11569         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11570         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11571         mktime_internal as a C macro if libc has __mktime_internal.
11572         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11573         conditions.
11574         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11575
11576 2011-05-22  Bruno Haible  <bruno@clisp.org>
11577
11578         timegm: Correct mktime replacement statements.
11579         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11580         defining mktime as a C macro. This completes a 2009-07-28 commit.
11581
11582 2011-05-22  Bruno Haible  <bruno@clisp.org>
11583
11584         timegm: Simplify autoconf macro.
11585         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11586
11587 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11588
11589         clock-time: change to LGPLv2+.
11590         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11591         BSD-like but we have no mark for that; this is good enough for now.
11592
11593 2011-05-21  Bruno Haible  <bruno@clisp.org>
11594
11595         strerror_r: Fix comments.
11596         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11597
11598 2011-05-21  Bruno Haible  <bruno@clisp.org>
11599
11600         relocatable-prog-wrapper: Fix possible link error.
11601         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11602         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11603         (gl_FUNC_SETENV): ... to here.
11604         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11605         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11606
11607 2011-05-21  Bruno Haible  <bruno@clisp.org>
11608
11609         relocatable-prog-wrapper: Assume strerror() exists.
11610         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11611         m4/strerror.m4.
11612         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11613         * lib/relocwrapper.c: Remove mention of strerror module.
11614         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11615         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11616         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11617         C macro.
11618
11619 2011-05-21  Bruno Haible  <bruno@clisp.org>
11620
11621         select: Simplify replacement idiom.
11622         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11623         Win32 platforms.
11624         * lib/sys_select.in.h (select): Simplify accordingly.
11625         * modules/select (Depends-on): Likewise.
11626
11627 2011-05-21  Bruno Haible  <bruno@clisp.org>
11628
11629         mkdir-p: Simplify autoconf macro.
11630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11631         gl_FUNC_LCHOWN.
11632
11633 2011-05-21  Eric Blake  <eblake@redhat.com>
11634
11635         strerror_r: avoid clobbering strerror on cygwin
11636         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11637         fall back instead to sys_errlist.
11638         * modules/strerror (configure.ac): Add witness.
11639         * tests/test-strerror_r.c (main): Enhance test.
11640         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11641         * tests/test-perror2.c (main): Free memory before exit.
11642
11643 2011-05-21  Bruno Haible  <bruno@clisp.org>
11644
11645         mkdtemp: Use gnulib naming conventions.
11646         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11647         * modules/mkdtemp (configure.ac): Update.
11648
11649 2011-05-20  Eric Blake  <eblake@redhat.com>
11650
11651         strerror_r: avoid corrupting errno on Solaris
11652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11653         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11654
11655         strerror_r: avoid compiler warning
11656         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11657
11658         strerror_r: simplify AIX code
11659         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11660
11661         test-perror: avoid spurious failure on FreeBSD
11662         * modules/perror-tests (Depends-on): Add strerror, now that
11663         strerror_r no longer pulls it in.
11664
11665 2011-05-20  Bruno Haible  <bruno@clisp.org>
11666
11667         strerror_r-posix: Remove unused dependencies.
11668         * modules/strerror_r-posix (Depends-on): Remove strerror.
11669         Reported by Eric Blake.
11670
11671 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11672
11673         intprops: remove assumption about A|B representation
11674         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11675         is a valid integer if both A and B are.  Although this is true for
11676         all known practical hosts, the C standard doesn't guarantee it,
11677         and the code need not assume it.  Also, this change may work around
11678         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11680
11681 2011-05-20  Eric Blake  <eblake@redhat.com>
11682
11683         perror: work around FreeBSD bug
11684         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11685         is broken.  Move AC_LIBOBJ...
11686         * modules/perror (configure.ac): Here.
11687         * doc/posix-functions/perror.texi (perror): Document this.
11688         * tests/test-perror2.c (main): Enhance test.
11689
11690         test-perror: check for strerror interactions
11691         * tests/macros.h (STREQ): Add macro.
11692         * modules/perror-tests (Files): Add second test.
11693         * tests/test-perror2.c (main): New file.
11694         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11695
11696         test-perror: rewrite to use init script
11697         * modules/perror-tests (Files): Add init.sh.
11698         * tests/test-perror.sh: Use temporary directory.
11699
11700 2011-05-20  Jim Meyering  <meyering@redhat.com>
11701
11702         maint: replace misused "a" with "an"
11703         * doc/intprops.texi: "a integer"
11704         * doc/regex.texi: "a explanation"
11705         * lib/alignof.h: "a object"
11706         * lib/argmatch.h: "a explanation"
11707         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11708         * lib/stdint.in.h: "a integer"
11709         * lib/userspec.c: "a owner"
11710         * doc/gnulib.texi: Fix "a idea", and reword.
11711
11712 2011-05-19  Jim Meyering  <meyering@redhat.com>
11713
11714         maint: correct misuse of "a" and "an"
11715         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11716         * lib/argp-help.c: "an docum...": s/an/a/
11717         * lib/argp-parse.c: "An vector": s/An/A/
11718         * lib/execute.c: "an native": s/an/a/
11719         * lib/spawn-pipe.c: Likewise.
11720         * lib/gc.h: "an Gc_rc": s/an/a/
11721         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11722         * lib/fts.c: "an stat.st_dev": s/an/a/
11723
11724 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11725
11726         intprops-tests: work around HP-UX 11.23 cc bug with constants
11727         * tests/test-intprops.c (VERIFY): New macro.
11728         (main): Use it, instead of verify, to work around the compiler bug; see
11729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11730
11731         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11732         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11733         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11734         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11735         (_GL_REMAINDER_OVERFLOW): Use it.
11736
11737         intprops-tests: revert unsigned part of previous change
11738         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11739         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11740         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11742
11743 2011-05-19  Bruno Haible  <bruno@clisp.org>
11744
11745         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11746         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11747         strerror_r() returned without filling the buffer.
11748         Reported by Eric Blake.
11749
11750 2011-05-19  Eric Blake  <eblake@redhat.com>
11751
11752         strerror_r: guarantee unchanged errno
11753         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11754         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11755         failure.
11756         * tests/test-strerror_r.c (main): Enhance test.
11757
11758 2011-05-19  Bruno Haible  <bruno@clisp.org>
11759
11760         strerror_r: Reorder #if blocks.
11761         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11762         for consistency with the previous commit.
11763
11764 2011-05-19  Bruno Haible  <bruno@clisp.org>
11765
11766         perror: Avoid clobbering the strerror buffer when possible.
11767         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11768         * lib/strerror.c: Include it.
11769         * modules/strerror (Files): Add lib/strerror-impl.h.
11770         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11771         (my_strerror): New function, defined through lib/strerror-impl.h.
11772         (perror): Use it instead of strerror.
11773         * modules/perror (Files): Add lib/strerror-impl.h.
11774         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11775
11776 2011-05-19  Eric Blake  <eblake@redhat.com>
11777
11778         strerror_r: fix on newer cygwin
11779         * lib/strerror_r.c (strerror_r): Cygwin now has
11780         __xpg_strerror_r, use it.
11781
11782 2011-05-19  Bruno Haible  <bruno@clisp.org>
11783
11784         strerror_r: Avoid clobbering the strerror buffer when possible.
11785         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11786         (sys_nerr, sys_errlist): New declarations.
11787         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11788         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11789         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11790
11791 2011-05-19  Bruno Haible  <bruno@clisp.org>
11792
11793         strerror_r: Fix test failure on mingw.
11794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11795         EXTEND_STRERROR_R.
11796         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11797         macros from errno.in.h instead.
11798
11799 2011-05-19  Eric Blake  <eblake@redhat.com>
11800
11801         strerror: relax test for Solaris
11802         * tests/test-strerror.c (main): Permit Solaris behavior.
11803         * tests/test-strerror_r.c (main): Likewise.
11804
11805         strerror: enforce POSIX ruling on strerror(0)
11806         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11807         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11808         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11809         * doc/posix-functions/strerror.texi (strerror): Document it.
11810         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11811         * tests/test-strerror.c (main): Strengthen test.
11812         * tests/test-strerror_r.c (main): Likewise.
11813
11814 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11815
11816         intprop-tests: port to older and more-pedantic compilers
11817         * modules/intprops-tests (Files): Add tests/macros.h.
11818         * tests/test-intprops.c: Include macros.h.
11819         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11820         it's no longer documented to expand to an integer constant expression.
11821         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11822         argument is floating point, as it's no longer documented to expand
11823         to an integer constant expression in that case.
11824         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11825         compiler bugs reported by Bruno Haible.  See
11826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11827         (U0, U1): New constants, to work around the same bugs.  Also,
11828         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11829
11830         intprops: work around C compiler bugs
11831         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11832         bug in Sun C 5.11 2010/08/13 and other compilers; see
11833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11834
11835         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11836         * doc/intprops.texi (Integer Type Determination): Fix
11837         documentation for TYPE_IS_INTEGER: it returns an constant
11838         expression, not an integer constant expression.  Fix doc for
11839         TYPE_SIGNED: it returns an integer constant expression only if its
11840         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11841         hardly worth documented that way....)
11842
11843 2011-05-18  Bruno Haible  <bruno@clisp.org>
11844
11845         strerror_r: Avoid clobbering the strerror buffer when possible.
11846         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11847         Handle gnulib defined errno values here. When strerror() returns NULL
11848         or an empty string, return EINVAL.
11849         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11850         gnulib defined errno values here.
11851         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11852
11853 2011-05-18  Eric Blake  <eblake@redhat.com>
11854
11855         fnmatch: avoid compiler warning
11856         * lib/fnmatch_loop.c (FCT): Use correct type.
11857         Reported by Matthias Bolte.
11858
11859 2011-05-13  Jim Meyering  <meyering@redhat.com>
11860
11861         maint.mk: three new prohibit_<HDR>_without_use rules
11862         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11863         (sc_prohibit_stdio-safer_without_use): Likewise.
11864         (sc_prohibit_xfreopen_without_use): Likewise.
11865
11866 2011-05-17  Jim Meyering  <meyering@redhat.com>
11867
11868         announce-gen: fail if the NEWS delta is empty
11869         If there's nothing noteworthy in NEWS, then either you forgot
11870         or you shouldn't be releasing.
11871         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11872
11873 2011-05-17  Pádraig Brady <P@draigBrady.com>
11874
11875         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11876         reserved symbols starting with double underscore from the check.
11877
11878 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11879
11880         intprops: add doc
11881         * doc/intprops.texi: New file, documenting intprops.
11882         * doc/gnulib.texi (Particular Modules): Include it.
11883
11884         verify: add doc to gnulib manual and fix example
11885         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11886         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11887         (Compile-time Assertions): Fix example so it can't overflow.
11888
11889 2011-05-17  Jim Meyering  <meyering@redhat.com>
11890
11891         warnings.m4: don't usurp save_CPPFLAGS variable name
11892         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11893
11894         doc: fix typo
11895         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11896
11897 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11898             Bruno Haible  <bruno@clisp.org>
11899
11900         doc: Tweak recent change.
11901         * README (Portability guidelines): Tweak new text.
11902         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11903         Interix 6.1.
11904
11905 2011-05-16  Eric Blake  <eblake@redhat.com>
11906
11907         inttypes: avoid autoconf warning
11908         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11909         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11910
11911 2011-05-16  Sam Steingold <sds@gnu.org>
11912         and Eric Blake  <eblake@redhat.com>
11913
11914         vc-list-files: accept multiple directory operands
11915         * build-aux/vc-list-files: Iterate over all remaining operands.
11916
11917 2011-05-16  Bruno Haible  <bruno@clisp.org>
11918
11919         Fix confusion regarding deprecated modules.
11920         * modules/calloc (Status, Notice): Mark module as deprecated, not
11921         obsolete.
11922         * modules/fnmatch-posix (Status, Notice): Likewise.
11923         * modules/getdate (Status, Notice): Likewise.
11924         * modules/getopt (Status, Notice): Likewise.
11925         * modules/malloc (Status, Notice): Likewise.
11926         * modules/pipe (Status, Notice): Likewise.
11927         * modules/realloc (Status, Notice): Likewise.
11928         * modules/rename-dest-slash (Status, Notice): Likewise.
11929         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11930         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11931         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11932         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11933         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11934
11935 2011-05-16  Bruno Haible  <bruno@clisp.org>
11936
11937         doc: List the target platforms.
11938         * doc/gnulib-intro.texi (Target Platforms): New section.
11939         * doc/gnulib.texi (Introduction): Update menu.
11940         * README (Portability guidelines): Refer to the new section. Update
11941         statement about oldest supported environment. Remove rationale why
11942         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11943         unportable C89 function.
11944         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11945         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11946
11947 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11948
11949         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11950
11951 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11952
11953         intprops-tests: new module
11954         * modules/intprops-tests, tests/test-intprops.c: New files.
11955
11956         intprops: add safe, portable integer overflow checking
11957         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11958         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11959         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11960         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11961         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11962         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11963         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11964         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11965         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11966         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11967         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11968
11969 2011-05-12  James Youngman  <jay@gnu.org>
11970
11971         Add a test for glibc's Bugzilla bug #12378.
11972         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11973         doesn't allow the literal matching of a lone "[" (which is
11974         required by POSIX).
11975         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11976
11977 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11978
11979         Sync glibc change fixing Bugzilla bug #12378.
11980         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11981         beginning and fall back to matching as normal character if the
11982         string ends before the matching ']' is found.  This is what POSIX
11983         requires.
11984
11985 2011-05-13  Eric Blake  <eblake@redhat.com>
11986
11987         getcwd-lgpl: relax test for FreeBSD
11988         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11989         issue.
11990         * tests/test-getcwd-lgpl.c (main): Relax test.
11991         Reported by Matthias Bolte.
11992
11993 2011-05-11  Eric Blake  <eblake@redhat.com>
11994
11995         test-fflush: silence compiler warning
11996         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11997
11998 2011-05-11  Bruno Haible  <bruno@clisp.org>
11999
12000         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12001         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12002         * modules/canonicalize (Depends-on): Add 'nocrash'.
12003         * modules/canonicalize-lgpl (Depends-on): Likewise.
12004         * doc/posix-functions/realpath.texi: Update platforms list.
12005         Reported by Ryan Schmidt <ryandesign@macports.org>.
12006
12007 2011-05-11  Bruno Haible  <bruno@clisp.org>
12008
12009         group-member: Declare function in <unistd.h>.
12010         * lib/unistd.in.h (group_member): New declaration.
12011         * lib/group-member.h: Remove file.
12012         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12013         * tests/test-unistd-c++.cc: Check signature of group_member.
12014         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12015         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12016         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12017         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12018         HAVE_GROUP_MEMBER.
12019         * modules/group-member (Files): Remove lib/group-member.h.
12020         (Depends-on): Add unistd. Specify conditions.
12021         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12022         (Include): Change to <unistd.h>.
12023         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12024         HAVE_GROUP_MEMBER.
12025         * NEWS: Mention the change.
12026         * lib/euidaccess.c: Don't include group-member.h.
12027
12028 2011-05-11  Bruno Haible  <bruno@clisp.org>
12029
12030         group-member: Document module.
12031         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12032         module.
12033
12034 2011-05-11  Bruno Haible  <bruno@clisp.org>
12035
12036         fclose: Fix mistake earlier today.
12037         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12038
12039 2011-05-11  Eric Blake  <eblake@redhat.com>
12040
12041         fclose: preserve fflush errors
12042         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12043         Reported by Jim Meyering.
12044
12045         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12046         * build-aux/bootstrap (check_versions): When no specific version
12047         is required, merely check that the app produces an exit status
12048         that indicates its existence.
12049
12050         maint.mk: drop redundant check
12051         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12052         the same but better.
12053
12054 2011-05-11  Bruno Haible  <bruno@clisp.org>
12055
12056         fclose: Fix possible link error.
12057         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12058         unregister_shadow_fd. Improve comments.
12059         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12060         Eric Blake.
12061
12062 2011-05-11  Jim Meyering  <meyering@redhat.com>
12063
12064         maint.mk: improve "can not" detection and generalize rule name
12065         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12066         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12067         Use the same technique as in sc_prohibit_doubled_word, so that
12068         we recognize "can not" also when the words are separated by a newline.
12069         Suggested by Eric Blake.
12070         (perl_filename_lineno_text_): Define.  Factored out of...
12071         (prohibit_doubled_word_): ...here.  Use the new definition.
12072         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12073         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12074         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12075
12076 2011-05-10  Eric Blake  <eblake@redhat.com>
12077
12078         fclose: avoid double close race when possible
12079         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12080         all but WINDOWS_SOCKETS.
12081
12082 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12083
12084         openat: correct new comment
12085         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12086
12087 2011-05-10  Jim Meyering  <meyering@redhat.com>
12088
12089         openat: add comments
12090         * lib/openat-proc.c (openat_proc_name): Add comments,
12091         mostly from Eric Blake.
12092
12093 2011-05-09  Eric Blake  <eblake@redhat.com>
12094
12095         openat: reduce syscalls in first probe of /proc
12096         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12097         be a directory.  Simplify the probe for .. bugs.
12098         * modules/openat (Depends-on): Drop same-inode.
12099         Reported by Bastien ROUCARIES.
12100
12101 2011-05-09  Jim Meyering  <meyering@redhat.com>
12102
12103         maint.mk: change semantics/name of tight_scope variables
12104         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12105         Rename variables to align with semantics that make them more useful.
12106
12107         maint.mk: tweak new rule's name not to impinge
12108         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12109         (sc_tight_scope): Use new rule name rather than $@-0.
12110
12111         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12112         * top/maint.mk (sc_tight_scope): New rule.
12113         (sc_tight_scope-0): New rule, ifdef'd out.
12114         (_gl_TS_dir): Default.
12115         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12116         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12117
12118 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12119
12120         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12121         Haible <bruno@clisp.org>.
12122
12123 2011-05-08  Bruno Haible  <bruno@clisp.org>
12124
12125         Comments.
12126         * m4/isnanf.m4: Add comment.
12127         * m4/isnanl.m4: Likewise.
12128
12129 2011-05-08  Bruno Haible  <bruno@clisp.org>
12130
12131         glob: Remove obsolete macro.
12132         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12133
12134 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12135
12136         intprops: Sun C 5.11 supports __typeof__
12137         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12138         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12139         which is new.
12140         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12141
12142         intprops: switch to usual gnulib indenting and naming
12143         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12144         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12145
12146         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12147
12148 2011-05-08  Jim Meyering  <meyering@redhat.com>
12149
12150         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12151         * top/maint.mk (release-prep): Use make's --no-print-directory
12152         option when generating the announcement.  This eliminates the
12153         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12154         generated announcement template.
12155
12156 2011-05-08  Bruno Haible  <bruno@clisp.org>
12157
12158         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12159         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12160         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12161
12162 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12163
12164         ignore-value, verify: Omit include files from lib_SOURCES.
12165         * modules/ignore-value, modules/verify (Makefile.am):
12166         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12167         that leads Automake to duplicate use of am__objects_... variables
12168         in Makefile.in.  See
12169         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12170
12171 2011-05-07  Bruno Haible  <bruno@clisp.org>
12172
12173         fclose: Simplify autoconf macro.
12174         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12175         defined.
12176
12177 2011-05-07  Bruno Haible  <bruno@clisp.org>
12178
12179         canonicalize-lgpl: Fix autoconf macro ordering bug.
12180         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12181         gl_STDLIB_H_DEFAULTS.
12182
12183 2011-05-06  Eric Blake  <eblake@redhat.com>
12184
12185         maintainer-makefile: make sc_po_check easier to tune
12186         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12187         to probe for strings, such as an alternate location for gnulib.
12188
12189         fclose: guarantee behavior on seekable stdin
12190         * modules/fclose (Depends-on): Add fflush.
12191         * doc/posix-functions/fclose.texi (fclose): Document this.
12192         * tests/test-fclose.c (main): Make test for this unconditional.
12193
12194 2011-05-06  Bruno Haible  <bruno@clisp.org>
12195
12196         fflush, fpurge: Relicense under LGPLv2+.
12197         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12198         * modules/fpurge (License): Likewise.
12199         With permission from Eric Blake and Jim Meyering.
12200         Suggested by Eric Blake.
12201
12202 2011-05-06  Karl Berry  <karl@gnu.org>
12203
12204         * MODULES.html.sh (func_all_modules): remove exit.
12205
12206 2011-05-06  Jim Meyering  <meyering@redhat.com>
12207
12208         maint.mk: use info-gnu@ as the default only for a stable release
12209         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12210         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12211         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12213
12214 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12215
12216         assert-h: new module, which supports C1X-style static_assert
12217         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12218         * lib/verify.h: Revamp so that this can be copied into assert.h,
12219         while retaining the ability to use it standalone as before.
12220         Rename private identifiers so as not to encroach on the
12221         standard C namespace, since this is now used by assert.h.
12222         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12223         the old verify_true.
12224         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12225         the old verify_true.  Use _GL_VERIFY_TYPE.
12226         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12227         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12228         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12229         defined when this file is copied into the replacement assert.h.
12230         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12231         and _Static_assert is not built in.
12232         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12233         defined, and use the new macros mentioned above.
12234         * doc/posix-headers/assert.texi: Document this.
12235
12236 2011-05-05  Bruno Haible  <bruno@clisp.org>
12237
12238         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12239         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12240         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12241         gl_REPLACE_FCLOSE here.
12242         * modules/fflush (Depends-on): Remove fclose.
12243         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12244         combination with module 'fclose'.
12245
12246 2011-05-05  Bruno Haible  <bruno@clisp.org>
12247
12248         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12249         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12250         gl_FUNC_FFLUSH.
12251         (gl_FUNC_FFLUSH): Use it.
12252         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12254         gl_REPLACE_FSEEKO here.
12255
12256 2011-05-05  Bruno Haible  <bruno@clisp.org>
12257
12258         tzset: Relicense under LGPL.
12259         * modules/tzset (License): Change to LGPL.
12260         No agreement needed; it's a no-op.
12261
12262         strtoimax, strtoumax: Relicense under LGPL.
12263         * modules/strtoimax (License): Change to LGPL.
12264         * modules/strtoumax (License): Likewise.
12265         With permission from Jim Meyering, Paul Eggert:
12266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12268
12269         getgroups: Relicense under LGPL.
12270         * modules/getgroups (License): Change to LGPL.
12271         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12275
12276         nanosleep: Relicense under LGPL.
12277         * modules/nanosleep (License): Change to LGPL.
12278         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12279         Haible:
12280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12284
12285         futimens: Relicense under LGPL.
12286         * modules/futimens (License): Change to LGPL.
12287         With permission from Eric Blake:
12288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12289
12290         fflush: Relicense under LGPL.
12291         * modules/fflush (License): Change to LGPL.
12292         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12296
12297         tmpfile: Relicense under LGPL.
12298         * modules/tmpfile (License): Change to LGPL.
12299         With permission from Ben Pfaff:
12300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12301
12302         isfinite: Relicense under LGPL.
12303         * modules/isfinite (License): Change to LGPL.
12304         With permission from Ben Pfaff, Bruno Haible:
12305         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12307
12308         acosl..tanl: Relicense under LGPL.
12309         * modules/acosl (License): Change to LGPL.
12310         * modules/asinl (License): Likewise.
12311         * modules/atanl (License): Likewise.
12312         * modules/cosl (License): Likewise.
12313         * modules/expl (License): Likewise.
12314         * modules/logl (License): Likewise.
12315         * modules/sinl (License): Likewise.
12316         * modules/sqrtl (License): Likewise.
12317         * modules/tanl (License): Likewise.
12318         Source code originally from glibc and Paolo Bonzini. Agreements:
12319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12321
12322 2011-05-05  Bruno Haible  <bruno@clisp.org>
12323
12324         signal: Define sighandler_t.
12325         * lib/signal.in.h (sighandler_t): New type.
12326         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12327         whether sighandler_t is defined.
12328         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12329         * modules/signal (Depends-on): Add extensions.
12330         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12331         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12332         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12333
12334 2011-05-05  Eric Blake  <eblake@redhat.com>
12335
12336         maint: remove useless REPLACE_*_H macros
12337         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12338         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12339         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12340         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12342         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12343         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12344         * m4/btowc.m4: Update callers.
12345         * m4/dirfd.m4: Likewise.
12346         * m4/duplocale.m4: Likewise.
12347         * m4/fchdir.m4: Likewise.
12348         * m4/fdopendir.m4: Likewise.
12349         * m4/inet_ntop.m4: Likewise.
12350         * m4/inet_pton.m4: Likewise.
12351         * m4/ioctl.m4: Likewise.
12352         * m4/mbrlen.m4: Likewise.
12353         * m4/mbrtowc.m4: Likewise.
12354         * m4/mbsinit.m4: Likewise.
12355         * m4/mbsnrtowcs.m4: Likewise.
12356         * m4/mbsrtowcs.m4: Likewise.
12357         * m4/poll.m4: Likewise.
12358         * m4/setlocale.m4: Likewise.
12359         * m4/wcrtomb.m4: Likewise.
12360         * m4/wcsnrtombs.m4: Likewise.
12361         * m4/wcsrtombs.m4: Likewise.
12362         * m4/wctob.m4: Likewise.
12363         * m4/wcwidth.m4: Likewise.
12364         * modules/posix_spawn: Likewise.
12365         * modules/posix_spawn_file_actions_addclose: Likewise.
12366         * modules/posix_spawn_file_actions_adddup2: Likewise.
12367         * modules/posix_spawn_file_actions_addopen: Likewise.
12368         * modules/posix_spawn_file_actions_destroy: Likewise.
12369         * modules/posix_spawn_file_actions_init: Likewise.
12370         * modules/posix_spawnattr_destroy: Likewise.
12371         * modules/posix_spawnattr_getflags: Likewise.
12372         * modules/posix_spawnattr_getpgroup: Likewise.
12373         * modules/posix_spawnattr_getschedparam: Likewise.
12374         * modules/posix_spawnattr_getschedpolicy: Likewise.
12375         * modules/posix_spawnattr_getsigdefault: Likewise.
12376         * modules/posix_spawnattr_getsigmask: Likewise.
12377         * modules/posix_spawnattr_init: Likewise.
12378         * modules/posix_spawnattr_setflags: Likewise.
12379         * modules/posix_spawnattr_setpgroup: Likewise.
12380         * modules/posix_spawnattr_setschedparam: Likewise.
12381         * modules/posix_spawnattr_setschedpolicy: Likewise.
12382         * modules/posix_spawnattr_setsigdefault: Likewise.
12383         * modules/posix_spawnattr_setsigmask: Likewise.
12384         * modules/posix_spawnp: Likewise.
12385
12386 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12387
12388         Add option to do-release-commit-and-tag to specify branch.
12389         * build-aux/do-release-commit-and-tag: Add --branch.
12390
12391 2011-05-03  Bruno Haible  <bruno@clisp.org>
12392
12393         Avoid unnecessary compilation units, through conditional dependencies.
12394         * modules/accept (Depends-on): Add conditions to the dependencies.
12395         * modules/acosl (Depends-on): Likewise.
12396         * modules/argz (Depends-on): Likewise.
12397         * modules/asinl (Depends-on): Likewise.
12398         * modules/atanl (Depends-on): Likewise.
12399         * modules/atoll (Depends-on): Likewise.
12400         * modules/bind (Depends-on): Likewise.
12401         * modules/btowc (Depends-on): Likewise.
12402         * modules/canonicalize-lgpl (Depends-on): Likewise.
12403         * modules/ceil (Depends-on): Likewise.
12404         * modules/ceilf (Depends-on): Likewise.
12405         * modules/ceill (Depends-on): Likewise.
12406         * modules/chdir-long (Depends-on): Likewise.
12407         * modules/chown (Depends-on): Likewise.
12408         * modules/close (Depends-on): Likewise.
12409         * modules/connect (Depends-on): Likewise.
12410         * modules/cosl (Depends-on): Likewise.
12411         * modules/dirfd (Depends-on): Likewise.
12412         * modules/dprintf (Depends-on): Likewise.
12413         * modules/dprintf-posix (Depends-on): Likewise.
12414         * modules/error (Depends-on): Likewise.
12415         * modules/euidaccess (Depends-on): Likewise.
12416         * modules/expl (Depends-on): Likewise.
12417         * modules/faccessat (Depends-on): Likewise.
12418         * modules/fchdir (Depends-on): Likewise.
12419         * modules/fclose (Depends-on): Likewise.
12420         * modules/fcntl (Depends-on): Likewise.
12421         * modules/fdopendir (Depends-on): Likewise.
12422         * modules/fflush (Depends-on): Likewise.
12423         * modules/floor (Depends-on): Likewise.
12424         * modules/floorf (Depends-on): Likewise.
12425         * modules/floorl (Depends-on): Likewise.
12426         * modules/fnmatch (Depends-on): Likewise.
12427         * modules/fopen (Depends-on): Likewise.
12428         * modules/fprintf-posix (Depends-on): Likewise.
12429         * modules/frexp (Depends-on): Likewise.
12430         * modules/frexp-nolibm (Depends-on): Likewise.
12431         * modules/frexpl (Depends-on): Likewise.
12432         * modules/frexpl-nolibm (Depends-on): Likewise.
12433         * modules/fseek (Depends-on): Likewise.
12434         * modules/fsusage (Depends-on): Likewise.
12435         * modules/ftell (Depends-on): Likewise.
12436         * modules/ftello (Depends-on): Likewise.
12437         * modules/futimens (Depends-on): Likewise.
12438         * modules/getcwd (Depends-on): Likewise.
12439         * modules/getcwd-lgpl (Depends-on): Likewise.
12440         * modules/getdelim (Depends-on): Likewise.
12441         * modules/getdomainname (Depends-on): Likewise.
12442         * modules/getgroups (Depends-on): Likewise.
12443         * modules/gethostname (Depends-on): Likewise.
12444         * modules/getline (Depends-on): Likewise.
12445         * modules/getlogin_r (Depends-on): Likewise.
12446         * modules/getopt-posix (Depends-on): Likewise.
12447         * modules/getpeername (Depends-on): Likewise.
12448         * modules/getsockname (Depends-on): Likewise.
12449         * modules/getsockopt (Depends-on): Likewise.
12450         * modules/getsubopt (Depends-on): Likewise.
12451         * modules/getusershell (Depends-on): Likewise.
12452         * modules/glob (Depends-on): Likewise.
12453         * modules/grantpt (Depends-on): Likewise.
12454         * modules/iconv_open (Depends-on): Likewise.
12455         * modules/iconv_open-utf (Depends-on): Likewise.
12456         * modules/inet_ntop (Depends-on): Likewise.
12457         * modules/inet_pton (Depends-on): Likewise.
12458         * modules/ioctl (Depends-on): Likewise.
12459         * modules/isapipe (Depends-on): Likewise.
12460         * modules/isfinite (Depends-on): Likewise.
12461         * modules/isinf (Depends-on): Likewise.
12462         * modules/lchown (Depends-on): Likewise.
12463         * modules/ldexpl (Depends-on): Likewise.
12464         * modules/link (Depends-on): Likewise.
12465         * modules/linkat (Depends-on): Likewise.
12466         * modules/listen (Depends-on): Likewise.
12467         * modules/logl (Depends-on): Likewise.
12468         * modules/lstat (Depends-on): Likewise.
12469         * modules/mbrlen (Depends-on): Likewise.
12470         * modules/mbrtowc (Depends-on): Likewise.
12471         * modules/mbsinit (Depends-on): Likewise.
12472         * modules/mbsnrtowcs (Depends-on): Likewise.
12473         * modules/mbsrtowcs (Depends-on): Likewise.
12474         * modules/mbtowc (Depends-on): Likewise.
12475         * modules/memcmp (Depends-on): Likewise.
12476         * modules/mkdir (Depends-on): Likewise.
12477         * modules/mkdtemp (Depends-on): Likewise.
12478         * modules/mkfifo (Depends-on): Likewise.
12479         * modules/mkfifoat (Depends-on): Likewise.
12480         * modules/mknod (Depends-on): Likewise.
12481         * modules/mkostemp (Depends-on): Likewise.
12482         * modules/mkostemps (Depends-on): Likewise.
12483         * modules/mkstemp (Depends-on): Likewise.
12484         * modules/mkstemps (Depends-on): Likewise.
12485         * modules/mktime (Depends-on): Likewise.
12486         * modules/nanosleep (Depends-on): Likewise.
12487         * modules/open (Depends-on): Likewise.
12488         * modules/openat (Depends-on): Likewise.
12489         * modules/perror (Depends-on): Likewise.
12490         * modules/poll (Depends-on): Likewise.
12491         * modules/popen (Depends-on): Likewise.
12492         * modules/posix_spawn (Depends-on): Likewise.
12493         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12494         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12495         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12496         * modules/posix_spawnp (Depends-on): Likewise.
12497         * modules/pread (Depends-on): Likewise.
12498         * modules/printf-posix (Depends-on): Likewise.
12499         * modules/ptsname (Depends-on): Likewise.
12500         * modules/putenv (Depends-on): Likewise.
12501         * modules/pwrite (Depends-on): Likewise.
12502         * modules/readline (Depends-on): Likewise.
12503         * modules/readlink (Depends-on): Likewise.
12504         * modules/readlinkat (Depends-on): Likewise.
12505         * modules/recv (Depends-on): Likewise.
12506         * modules/recvfrom (Depends-on): Likewise.
12507         * modules/regex (Depends-on): Likewise.
12508         * modules/remove (Depends-on): Likewise.
12509         * modules/rename (Depends-on): Likewise.
12510         * modules/renameat (Depends-on): Likewise.
12511         * modules/rmdir (Depends-on): Likewise.
12512         * modules/round (Depends-on): Likewise.
12513         * modules/roundf (Depends-on): Likewise.
12514         * modules/roundl (Depends-on): Likewise.
12515         * modules/rpmatch (Depends-on): Likewise.
12516         * modules/select (Depends-on): Likewise.
12517         * modules/send (Depends-on): Likewise.
12518         * modules/sendto (Depends-on): Likewise.
12519         * modules/setenv (Depends-on): Likewise.
12520         * modules/setlocale (Depends-on): Likewise.
12521         * modules/setsockopt (Depends-on): Likewise.
12522         * modules/shutdown (Depends-on): Likewise.
12523         * modules/sigaction (Depends-on): Likewise.
12524         * modules/signbit (Depends-on): Likewise.
12525         * modules/sigprocmask (Depends-on): Likewise.
12526         * modules/sinl (Depends-on): Likewise.
12527         * modules/sleep (Depends-on): Likewise.
12528         * modules/snprintf (Depends-on): Likewise.
12529         * modules/snprintf-posix (Depends-on): Likewise.
12530         * modules/socket (Depends-on): Likewise.
12531         * modules/sprintf-posix (Depends-on): Likewise.
12532         * modules/sqrtl (Depends-on): Likewise.
12533         * modules/stat (Depends-on): Likewise.
12534         * modules/strchrnul (Depends-on): Likewise.
12535         * modules/strdup-posix (Depends-on): Likewise.
12536         * modules/strerror (Depends-on): Likewise.
12537         * modules/strerror_r-posix (Depends-on): Likewise.
12538         * modules/strndup (Depends-on): Likewise.
12539         * modules/strnlen (Depends-on): Likewise.
12540         * modules/strptime (Depends-on): Likewise.
12541         * modules/strsep (Depends-on): Likewise.
12542         * modules/strsignal (Depends-on): Likewise.
12543         * modules/strstr-simple (Depends-on): Likewise.
12544         * modules/strtod (Depends-on): Likewise.
12545         * modules/strtoimax (Depends-on): Likewise.
12546         * modules/strtok_r (Depends-on): Likewise.
12547         * modules/strtoumax (Depends-on): Likewise.
12548         * modules/symlink (Depends-on): Likewise.
12549         * modules/symlinkat (Depends-on): Likewise.
12550         * modules/tanl (Depends-on): Likewise.
12551         * modules/tcgetsid (Depends-on): Likewise.
12552         * modules/tmpfile (Depends-on): Likewise.
12553         * modules/trunc (Depends-on): Likewise.
12554         * modules/truncf (Depends-on): Likewise.
12555         * modules/truncl (Depends-on): Likewise.
12556         * modules/uname (Depends-on): Likewise.
12557         * modules/unlink (Depends-on): Likewise.
12558         * modules/unlockpt (Depends-on): Likewise.
12559         * modules/unsetenv (Depends-on): Likewise.
12560         * modules/usleep (Depends-on): Likewise.
12561         * modules/utimensat (Depends-on): Likewise.
12562         * modules/vasprintf (Depends-on): Likewise.
12563         * modules/vdprintf (Depends-on): Likewise.
12564         * modules/vdprintf-posix (Depends-on): Likewise.
12565         * modules/vfprintf-posix (Depends-on): Likewise.
12566         * modules/vprintf-posix (Depends-on): Likewise.
12567         * modules/vsnprintf (Depends-on): Likewise.
12568         * modules/vsnprintf-posix (Depends-on): Likewise.
12569         * modules/vsprintf-posix (Depends-on): Likewise.
12570         * modules/wcrtomb (Depends-on): Likewise.
12571         * modules/wcscasecmp (Depends-on): Likewise.
12572         * modules/wcscspn (Depends-on): Likewise.
12573         * modules/wcsdup (Depends-on): Likewise.
12574         * modules/wcsncasecmp (Depends-on): Likewise.
12575         * modules/wcsnrtombs (Depends-on): Likewise.
12576         * modules/wcspbrk (Depends-on): Likewise.
12577         * modules/wcsrtombs (Depends-on): Likewise.
12578         * modules/wcsspn (Depends-on): Likewise.
12579         * modules/wcsstr (Depends-on): Likewise.
12580         * modules/wcstok (Depends-on): Likewise.
12581         * modules/wcswidth (Depends-on): Likewise.
12582         * modules/wctob (Depends-on): Likewise.
12583         * modules/wctomb (Depends-on): Likewise.
12584         * modules/wctype (Depends-on): Likewise.
12585         * modules/wcwidth (Depends-on): Likewise.
12586         * modules/write (Depends-on): Likewise.
12587
12588 2011-05-03  Bruno Haible  <bruno@clisp.org>
12589
12590         Support for conditional dependencies.
12591         * doc/gnulib.texi (Module description): Document the syntax of
12592         conditional dependencies.
12593         * gnulib-tool: New option --conditional-dependencies.
12594         (func_usage): Document it.
12595         (cond_dependencies): New variable.
12596         (func_get_automake_snippet_conditional,
12597         func_get_automake_snippet_unconditional): New functions, extracted from
12598         func_get_automake_snippet.
12599         (func_get_automake_snippet): Use them.
12600         (sed_first_32_chars): New variable.
12601         (func_module_shellfunc_name): New function.
12602         (func_module_shellvar_name): New function.
12603         (func_module_conditional_name): New function.
12604         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12605         func_cond_module_condition): New functions.
12606         (func_modules_transitive_closure): Add support for conditional
12607         dependencies.
12608         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12609         conditional automake snippet in an automake conditional.
12610         (func_emit_autoconf_snippets): Emit shell functions that contain the
12611         code for conditional modules.
12612         (func_import, func_create_testdir): Update specification.
12613
12614 2011-05-03  Eric Blake  <eblake@redhat.com>
12615
12616         test-getaddrinfo: report error information
12617         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12618
12619 2011-05-03  Jim Meyering  <meyering@redhat.com>
12620
12621         bootstrap: avoid build failure when $GZIP is set
12622         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12623         program name.  If defined at all, it is supposed to list gzip options.
12624         Reported by Alan Curry in http://debbugs.gnu.org/8609
12625
12626 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12627
12628         readme-release: new module with release instructions
12629         * modules/readme-release: New module.
12630         * top/README-release: New file, from coreutils, grep, diffutils.
12631         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12632
12633 2011-05-02  Eric Blake  <eblake@redhat.com>
12634
12635         fflush: also replace fclose when fixing fflush
12636         * modules/fflush (Depends-on): Add fclose.
12637         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12638         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12639         memstreams with no backing fd.
12640         * doc/posix-functions/fclose.texi (fclose): Document the use of
12641         fflush module to fix the bug.
12642         * tests/test-fclose.c (main): Relax test when fclose is used in
12643         isolation.
12644
12645         fclose: add some tests
12646         * modules/fclose-tests: New test module.
12647         * tests/test-fclose.c: New file.
12648         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12649
12650         fclose: reduced dependencies
12651         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12652         simpler lseek.
12653         * lib/fclose.c (rpl_fclose): Likewise.
12654         Reported by Simon Josefsson.
12655
12656         exit: drop remaining clients
12657         * modules/argmatch (Depends-on): Replace exit with stdlib.
12658         * modules/copy-file (Depends-on): Likewise.
12659         * modules/execute (Depends-on): Likewise.
12660         * modules/exitfail (Depends-on): Likewise.
12661         * modules/obstack (Depends-on): Likewise.
12662         * modules/pagealign_alloc (Depends-on): Likewise.
12663         * modules/pipe-filter-gi (Depends-on): Likewise.
12664         * modules/pipe-filter-ii (Depends-on): Likewise.
12665         * modules/savewd (Depends-on): Likewise.
12666         * modules/spawn-pipe (Depends-on): Likewise.
12667         * modules/wait-process (Depends-on): Likewise.
12668         * modules/xsetenv (Depends-on): Likewise.
12669         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12670         * modules/git-merge-changelog (Depends-on): Likewise.
12671         * modules/long-options (Depends-on): Likewise.
12672         * modules/pt_chown (Depends-on): Likewise.
12673         * modules/sysexits (Depends-on): Likewise.
12674
12675         freading: relax license from LGPLv3+ to LGPLv2+
12676         * modules/freading (License): Relax LGPL version.
12677
12678 2011-05-02  Bruno Haible  <bruno@clisp.org>
12679
12680         fchdir: Remove unused dependencies.
12681         * modules/fchdir (Depends-on): Remove include_next.
12682
12683 2011-05-02  Bruno Haible  <bruno@clisp.org>
12684
12685         gnulib-tool: Refactor.
12686         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12687         from func_emit_autoconf_snippets.
12688         (func_emit_autoconf_snippets): Use it.
12689
12690 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12691
12692         * NEWS: Document removal of 'exit'.
12693         * modules/exit: Remove file.
12694
12695 2011-05-01  Bruno Haible  <bruno@clisp.org>
12696
12697         Update DEPENDENCIES.
12698         * DEPENDENCIES (gettext): Recommend the newest release.
12699         Reported by Simon Josefsson.
12700
12701 2011-05-01  Bruno Haible  <bruno@clisp.org>
12702
12703         gnulib-tool: Reduce code duplication.
12704         * gnulib-tool (func_emit_autoconf_snippets): New function.
12705         (func_import, func_create_testdir): Use it.
12706
12707 2011-04-30  Eric Blake  <eblake@redhat.com>
12708
12709         fclose: don't fail on non-seekable input stream
12710         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12711         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12712         since fflush is allowed to fail in that case.
12713
12714 2011-04-30  Bruno Haible  <bruno@clisp.org>
12715
12716         dup3: cleanup
12717         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12718
12719 2011-04-30  Bruno Haible  <bruno@clisp.org>
12720
12721         netdb: Make it work in C++ mode.
12722         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12723         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12724         module.
12725         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12726         gl_MODULE_INDICATOR_FOR_TESTS.
12727         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12728         * modules/netdb-c++-tests: New file.
12729         * tests/test-netdb-c++.cc: New file.
12730
12731 2011-04-30  Bruno Haible  <bruno@clisp.org>
12732
12733         New modules 'vfscanf', 'vscanf'.
12734         * modules/vfscanf: New file.
12735         * modules/vscanf: New file.
12736         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12737         here.
12738         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12739         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12740
12741 2011-04-30  Bruno Haible  <bruno@clisp.org>
12742
12743         passfd: Add comments.
12744         * lib/passfd.c: Add comments about platforms.
12745
12746 2011-04-30  Bruno Haible  <bruno@clisp.org>
12747
12748         sys_uio: Make <sys/uio.h> self-contained.
12749         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12750         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12751
12752 2011-04-30  Bruno Haible  <bruno@clisp.org>
12753
12754         sys_socket: Ensure 'struct iovec' definition.
12755         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12756         <sys/socket.h>.
12757         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12758
12759 2011-04-30  Bruno Haible  <bruno@clisp.org>
12760
12761         sys_uio: Protect definition of 'struct iovec'.
12762         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12763         it as a C struct.
12764
12765 2011-04-30  Bruno Haible  <bruno@clisp.org>
12766
12767         manywarnings: fix indentation
12768         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12769
12770 2011-04-30  Pádraig Brady <P@draigBrady.com>
12771
12772         manywarnings: add -Wno-missing-field-initializers if needed.
12773         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12774         option if it's needed to allow initialization with { 0, }
12775
12776 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12777
12778         announce-gen: cosmetic improvement
12779         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12780
12781 2011-04-29  Jim Meyering  <meyering@redhat.com>
12782
12783         vc-list-files: indent with spaces, not TABs
12784         * build-aux/vc-list-files: Convert leading TABs to spaces,
12785         to match the style of most other files in gnulib.
12786
12787         announce-gen: indent with spaces, not TABs
12788         * build-aux/announce-gen: Convert all TABs to spaces, to match
12789         the style of most other files in gnulib.
12790
12791 2011-04-29  Eric Blake  <eblake@redhat.com>
12792
12793         quotearg: avoid uninitialized variable use
12794         * lib/quotearg.c (quoting_options_from_style): Initialize
12795         remaining fields, and ensure that custom styles are only used via
12796         quoting_options rather than quoting_style.
12797
12798 2011-04-29  Jim Meyering  <meyering@redhat.com>
12799
12800         maint.mk: remove unused VC-tag variable
12801         * top/maint.mk (VC-tag): Remove unused variable.
12802
12803 2011-04-29  Bruno Haible  <bruno@clisp.org>
12804
12805         netdb: fix gai_strerror replacements
12806         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12807         * modules/netdb: Substitute it.
12808
12809 2011-04-29  Jim Meyering  <meyering@redhat.com>
12810
12811         test-getcwd.c: avoid new set-but-not-used warning
12812         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12813         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12814         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12815         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12816
12817         test-hash.c: avoid a new shadowing warning
12818         * tests/test-hash.c (main): Don't shadow "dup".
12819
12820 2011-04-28  Eric Blake  <eblake@redhat.com>
12821
12822         getaddrinfo: fix gai_strerror signature
12823         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12824         and work around mingw with UNICODE defined.
12825         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12826         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12827         * modules/netdb (Makefile.am): Substitute it.
12828         * lib/netdb.in.h (gai_strerror): Declare replacement.
12829         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12830         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12831         the fix.
12832
12833         getsockopt: avoid compiler warning
12834         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12835         Reported by Matthias Bolte.
12836
12837         tests: drop unused link dependency
12838         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12839         * modules/dirent-safer-tests (Makefile.am): Likewise.
12840         * modules/fdopendir-tests (Makefile.am): Likewise.
12841         * modules/mkfifoat-tests (Makefile.am): Likewise.
12842         * modules/openat-safer-tests (Makefile.am): Likewise.
12843         * modules/openat-tests (Makefile.am): Likewise.
12844         * modules/readlinkat-tests (Makefile.am): Likewise.
12845         * modules/symlinkat-tests (Makefile.am): Likewise.
12846         * modules/linkat-tests (Makefile.am): Likewise.
12847         (Depends-on): Switch to filenamecat-lgpl.
12848         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12849         LIBINTL.
12850         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12851         * tests/test-linkat.c (main): Don't require xalloc.
12852
12853         hash, mgetgroups: drop xalloc dependency
12854         * lib/hash.c (includes): Adjust includes.
12855         * lib/mgetgroups.c (includes): Likewise.
12856         (xgetgroups): Move...
12857         * lib/xgetgroups.c: ...to new file.
12858         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12859         * modules/xgetgroups: New file, split from...
12860         * modules/mgetgroups: ...here.
12861         (Depends-on): Add xalloc-oversized.
12862         * modules/hash (Depends-on): Likewise.
12863         * modules/hash-tests (Depends-on): Drop xalloc.
12864         (test_hash_LDADD): Drop unused library.
12865         * tests/test-hash.c (main): Break xalloc dependency.
12866         (includes): Drop unused include.
12867
12868         xalloc-oversized: new module
12869         * modules/xalloc-oversized: New module.
12870         * modules/xalloc (Depends-on): Add it.
12871         * lib/xalloc.h (xalloc_oversized): Move...
12872         * lib/xalloc-oversized.h: ...into new file.
12873
12874         utimecmp: drop dependency on xmalloc
12875         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12876         due to memory pressure.
12877         * modules/utimecmp (Depends-on): Drop xalloc.
12878
12879 2011-04-27  Eric Blake  <eblake@redhat.com>
12880
12881         getcwd: fix mingw bugs
12882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12883         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12884         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12885
12886 2011-04-27  Bruno Haible  <bruno@clisp.org>
12887
12888         mkstemps: Ensure declaration on MacOS X 10.5.
12889         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12890         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12891         MacOS X.
12892
12893 2011-04-27  Bruno Haible  <bruno@clisp.org>
12894
12895         mkstemp: More documentation.
12896         * doc/posix-functions/mkstemp.texi: Document header file problem on
12897         MacOS X.
12898
12899 2011-04-27  Bruno Haible  <bruno@clisp.org>
12900
12901         mkstemp: Tweak configure message when cross-compiling.
12902         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12903         result as a guess.
12904
12905 2011-04-27  Bruno Haible  <bruno@clisp.org>
12906
12907         clean-temp: Clarify what it does.
12908         * lib/clean-temp.h: Add more comments.
12909         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12910         module.
12911         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12912         * doc/glibc-functions/mkstemps.texi: Likewise.
12913         * doc/glibc-functions/mkostemps.texi: Likewise.
12914
12915 2011-04-27  Eric Blake  <eblake@redhat.com>
12916
12917         fchdir: avoid extra chdir and fix test
12918         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12919         getcwd-lgpl.
12920         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12921         have to be canonical.
12922         (canonicalize_file_name): Drop unused macro.
12923         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12924
12925         filenamecat-lgpl: fix licence
12926         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12927         when it was first created.
12928
12929         linkat, renameat: add missing dependency
12930         * modules/linkat (Depends-on): Require getcwd-lgpl.
12931         * modules/renameat (Depends-on): Likewise.
12932
12933         tests: reduce dependencies
12934         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12935         * tests/test-renameat.c (main): Likewise.
12936         * modules/linkat-tests (Depends-on): Relax dependency.
12937         * modules/renameat-tests (Depends-on): Likewise.
12938         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12939         dependency explicit.
12940
12941         save-cwd: reduce default dependency
12942         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12943         * lib/save-cwd.c: Update comments.
12944         * NEWS: Document the semantic change.
12945
12946         getcwd: enhance tests
12947         * tests/test-getcwd-lgpl.c: New file, taken from...
12948         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12949         repeat long path stress tests from m4 probe.
12950         * modules/getcwd-lgpl-tests: New module.
12951         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12952         * m4/getcwd-abort-bug.m4: Update comment.
12953         * m4/getcwd-path-max.m4: Likewise.
12954
12955         getcwd-lgpl: new module
12956         * modules/getcwd-lgpl: New module.
12957         * lib/getcwd-lgpl.c: New file.
12958         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12959         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12960         * modules/getcwd (configure.ac): Set C witness.
12961         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12962
12963         getcwd: tweak comments
12964         * m4/getcwd-abort-bug.m4: Fix comments.
12965         * m4/getcwd-path-max.m4: Likewise.
12966         * m4/getcwd.m4: Likewise.
12967
12968 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12969         and Eric Blake  <eblake@redhat.com>
12970
12971         mkstemp: replace if system version uses wrong permissions
12972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12973         read/write mode bits set in file created by mkstemp.
12974         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12975
12976 2011-04-27  Eric Blake  <eblake@redhat.com>
12977
12978         passfd: avoid compiler warning
12979         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12980         Reported by Laine Stump.
12981
12982 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12983
12984         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12985         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12986
12987 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12988         and Eric Blake  <eblake@redhat.com>
12989
12990         mkstemp: mention clean-temp module
12991         * lib/mkstemp.c: Add comment.
12992         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12993
12994 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12995
12996         inttypes: also provide default values for 32-bit tests
12997         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12998         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12999
13000 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13001
13002         strtoumax: remove dependency on strtoimax
13003         This is like the strtoull change of yesterday.
13004         * modules/strtoumax (Files): Add lib/strtoimax.c.
13005         (Depends-on): Remove strtoimax and add verify.
13006
13007         inttypes-incomplete: new module
13008         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13009         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13010         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13011         of gl_INTTYPES_H.
13012         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13013         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13014         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13015         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13016         * modules/strtoumax, modules/xstrtol (Depends-on):
13017         Depend on inttypes-incomplete, not inttypes.
13018         * modules/inttypes-incomplete: New module, containing the contents
13019         of the old modules/inttypes module, except that the Files: section
13020         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13021         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13022         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13023         (Depends-on): Depend only on inttypes-incomplete.
13024         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13025
13026         inttypes: omit now-redundant strtoimax and strtoumax work
13027         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13028         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13029
13030         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13031         This supports apps that need pointers to strtoimax and strtoumax,
13032         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13033         nonexistent functions.  See
13034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13035         et seq.
13036         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13037         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13038         a macro.
13039         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13040
13041 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13042
13043         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13044
13045 2011-04-25  Bruno Haible  <bruno@clisp.org>
13046
13047         strtol, strtoul: Mark modules as obsolete.
13048         * modules/strtol (Status, Notice): New sections.
13049         * modules/strtoul (Status, Notice): New sections.
13050
13051 2011-04-25  Bruno Haible  <bruno@clisp.org>
13052
13053         strtod: Remove check for strtod, unless supporting old platforms.
13054         * modules/strtod-obsolete: New file.
13055         * m4/strtod-obsolete.m4: New file.
13056         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13057         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13058         * modules/strtod (Depends-on): Add strtod-obsolete.
13059         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13060
13061 2011-04-25  Bruno Haible  <bruno@clisp.org>
13062
13063         strcase: Make module obsolete.
13064         * modules/strcase (Status, Notice): New sections.
13065
13066 2011-04-25  Bruno Haible  <bruno@clisp.org>
13067
13068         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13069         * modules/dup2-obsolete: New file.
13070         * m4/dup2-obsolete.m4: New file.
13071         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13072         gl_FUNC_DUP2_OBSOLETE is not also defined.
13073         * modules/dup2 (Depends-on): Add dup2-obsolete.
13074         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13075
13076 2011-04-25  Bruno Haible  <bruno@clisp.org>
13077
13078         strnlen: Avoid memchr related link error on old obsolete platforms.
13079         * modules/memchr-obsolete: New file.
13080         * m4/memchr-obsolete.m4: New file.
13081         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13082         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13083         * modules/memchr (Depends-on): Add memchr-obsolete.
13084         * modules/strnlen (Depends-on): Likewise.
13085         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13086
13087 2011-04-25  Jim Meyering  <meyering@redhat.com>
13088
13089         maint.mk: makefile_at_at_check extend and clean up
13090         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13091         in addition to */Makefile.am.
13092         Exempt legitimate uses of @VAR@ notation, e.g.,
13093         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13094         Remove obsolete coreutils-specific comment.
13095         Prompted by discussion here:
13096         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13097
13098 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         strtoul: remove dependency on strtol
13101         This is so that 'configure' need not check for strtol merely because
13102         the application needs strtoul.
13103         * modules/strtoul (Files): Add lib/strtol.c.
13104         (Depends-on): Remove strtol.
13105
13106         strtoull: remove dependency on strtoul
13107         This is like the strtoll change.
13108         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13109         (Depends-on): Remove strtoul.
13110
13111         strtoll: remove dependency on strtol
13112         This is so that 'configure' need not check for strtol merely because
13113         the application needs strtoll.
13114         * modules/strtoll (Files): Add lib/strtol.c.
13115         (Depends-on): Remove strtol.
13116
13117 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         inttypes: Move some configure check to module 'imaxdiv'.
13120         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13121         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13122         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13123
13124 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13125
13126         inttypes: Move some configure check to module 'imaxabs'.
13127         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13128         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13129         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13130
13131 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13132
13133         inttypes: Remove configure tests that are not needed since 2009-12-31.
13134         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13135         gl_cv_header_working_inttypes_h.
13136
13137 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13138
13139         * modules/strnlen (Depends-on): Remove memchr.
13140         The strnlen implementation doesn't need the memchr module's fixes; see
13141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13142
13143         strtol: remove dependency on wchar
13144         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13145         * modules/strtol (Depends-on): Remove wchar.
13146
13147 2011-04-21  Eric Blake  <eblake@redhat.com>
13148
13149         passfd: fix test regression on Linux
13150         * modules/passfd-tests (configure.ac): Correct socketpair check.
13151
13152         passfd: speed up configure and drop unused code
13153         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13154         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13155         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13156         Instead of probing at configure for unix_scm_rights_bsd44_way,
13157         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13158         check to a struct member probe.
13159         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13160         (sendfd, recvfd): Update preprocessor checks.
13161         * modules/passfd (Files): Reflect rename, and drop unused file.
13162         (Depends-on): Drop unused dependency.
13163
13164         passfd: allow compilation on mingw
13165         * modules/sys_socket (Depends-on): Add sys_uio.
13166         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13167         iovec and a minimal struct msghdr.
13168         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13169         * tests/test-sys_socket.c (main): Enhance test.
13170         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13171         guaranteed to provide what we need.
13172         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13173         * modules/passfd-tests (Depends-on): Add sys_wait.
13174         * tests/test-passfd.c (main): Skip test on mingw, for now.
13175         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13176         partial 'struct msghdr' implementation.
13177
13178         sys_uio: new module
13179         * modules/sys_uio: New module.
13180         * modules/sys_uio-tests: Likewise.
13181         * lib/sys_uio.in.h: New file.
13182         * m4/sys_uio_h.m4: Likewise.
13183         * tests/test-sys_uio.c: Likewise.
13184         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13185         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13186
13187 2011-04-20  Jim Meyering  <meyering@redhat.com>
13188
13189         useless-if-before-free: avoid false-positive
13190         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13191         disjunct so that it too requires a terminating ";".  Without that,
13192         this script would identify as useless one statement from gcc that
13193         was not:
13194           if (aligned_ptr)
13195             free (((void **) aligned_ptr) [-1]);
13196
13197 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13198
13199         doc: update users.txt.
13200         * users.txt: Add barcode.
13201
13202 2011-04-19  Bruno Haible  <bruno@clisp.org>
13203
13204         ioctl: Remove link dependency on native Windows.
13205         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13206         (gl_close_fn, gl_ioctl_fn): New types.
13207         (struct fd_hook): Renamed from struct close_hook. Change type of
13208         private_close_fn field. Add private_ioctl_fn field.
13209         (close_hook_fn): Add parameter for primary close method.
13210         (execute_close_hooks, execute_all_close_hooks): Likewise.
13211         (ioctl_hook_fn): New type.
13212         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13213         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13214         argument.
13215         (unregister_fd_hook): Renamed from unregister_close_hook.
13216         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13217         Don't include <unistd.h>.
13218         (close): Remove undef.
13219         (anchor): Update.
13220         (execute_close_hooks): Add argument for primary close method.
13221         (execute_all_close_hooks): Likewise.
13222         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13223         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13224         argument. Allow each argument to be NULL.
13225         (unregister_fd_hook): Renamed from unregister_close_hook.
13226         * lib/close.c (rpl_close): Pass 'close' function pointer to
13227         execute_all_close_hooks.
13228         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13229         (primary_ioctl): New function.
13230         (ioctl): Don't call ioctlsocket here. Instead, call
13231         execute_all_ioctl_hooks.
13232         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13233         close method.
13234         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13235         (fd_sockets_hook): Renamed from close_sockets_hook.
13236         (gl_sockets_startup, gl_sockets_cleanup): Update.
13237         * modules/fd-hook: Renamed from modules/close-hook. Update.
13238         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13239         * modules/sockets (Depends-on): Likewise.
13240         * modules/ioctl (Depends-on): Add fd-hook.
13241         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13242         GNULIB_SOCKET.
13243
13244 2011-04-19  Bruno Haible  <bruno@clisp.org>
13245
13246         Move the support of O_NONBLOCK in open() to the 'open' module.
13247         * modules/nonblocking (Depends-on): Remove 'open'.
13248         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13249         gl_cv_have_open_O_NONBLOCK.
13250         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13251         O_NONBLOCK support.
13252         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13253
13254 2011-04-17  Bruno Haible  <bruno@clisp.org>
13255
13256         pipe2: Simplify code.
13257         * lib/pipe2.c (pipe2): Reduce code duplication.
13258
13259 2011-04-17  Bruno Haible  <bruno@clisp.org>
13260
13261         nonblocking: Add comment.
13262         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13263
13264 2011-04-17  Bruno Haible  <bruno@clisp.org>
13265
13266         nonblocking: Add tests for sockets.
13267         * tests/test-nonblocking-socket.sh: New file.
13268         * tests/test-nonblocking-socket-main.c: New file.
13269         * tests/test-nonblocking-socket-child.c: New file.
13270         * tests/test-nonblocking-socket.h: New file.
13271         * tests/socket-server.h: New file.
13272         * tests/socket-client.h: New file.
13273         * modules/nonblocking-socket-tests: New file.
13274         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13275
13276 2011-04-17  Bruno Haible  <bruno@clisp.org>
13277
13278         nonblocking: Add tests for pipes.
13279         * tests/test-nonblocking-pipe.sh: New file.
13280         * tests/test-nonblocking-pipe-main.c: New file.
13281         * tests/test-nonblocking-pipe-child.c: New file.
13282         * tests/test-nonblocking-pipe.h: New file.
13283         * tests/test-nonblocking-writer.h: New file.
13284         * tests/test-nonblocking-reader.h: New file.
13285         * tests/test-nonblocking-misc.h: New file.
13286         * modules/nonblocking-pipe-tests: New file.
13287         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13288
13289 2011-04-16  Bruno Haible  <bruno@clisp.org>
13290
13291         gettext: Clarify the needed programmer actions.
13292         * modules/gettext (Notice): New field.
13293         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13294
13295 2011-04-16  Bruno Haible  <bruno@clisp.org>
13296
13297         strchrnul: Tweak last commit.
13298         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13299         bug.
13300         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13301         as in _GL_FUNCDECL_SYS.
13302         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13303         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13304
13305 2011-04-15  Eric Blake  <eblake@redhat.com>
13306
13307         strchrnul: work around cygwin bug
13308         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13309         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13311         * modules/string (Makefile.am): Substitute it.
13312         * lib/string.in.h (strchrnul): Use it.
13313
13314 2011-04-15  Bruno Haible  <bruno@clisp.org>
13315
13316         Don't require lib/stdio-write.c when only module 'stdio' is used.
13317         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13318         invocation.
13319         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13320
13321 2011-04-14  Bruno Haible  <bruno@clisp.org>
13322
13323         Support non-blocking pipe I/O in read() on native Windows.
13324         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13325         (read): New declaration.
13326         * lib/read.c: New file.
13327         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13328         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13329         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13330         vscanf): New declarations.
13331         * lib/stdio-read.c: New file.
13332         * m4/read.m4: New file.
13333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13334         REPLACE_READ.
13335         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13336         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13337         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13338         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13339         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13340         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13341         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13342         * modules/read: New file.
13343         * modules/nonblocking (Files): Add lib/stdio-read.c.
13344         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13345         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13346         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13347         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13348         * modules/pread (Depends-on): Add read.
13349         * modules/safe-read (Depends-on): Likewise.
13350         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13351         gets, scanf, vfscanf, vscanf): Verify signatures.
13352         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13353         problem with non-blocking pipes.
13354         * doc/posix-functions/fgetc.texi: Likewise.
13355         * doc/posix-functions/fgets.texi: Likewise.
13356         * doc/posix-functions/fread.texi: Likewise.
13357         * doc/posix-functions/fscanf.texi: Likewise.
13358         * doc/posix-functions/getc.texi: Likewise.
13359         * doc/posix-functions/getchar.texi: Likewise.
13360         * doc/posix-functions/gets.texi: Likewise.
13361         * doc/posix-functions/scanf.texi: Likewise.
13362         * doc/posix-functions/vfscanf.texi: Likewise.
13363         * doc/posix-functions/vscanf.texi: Likewise.
13364
13365 2011-04-14  Bruno Haible  <bruno@clisp.org>
13366
13367         Support non-blocking pipe I/O in write() on native Windows.
13368         * lib/write.c (rpl_write): Split a write request that failed merely
13369         because the byte count was larger than the pipe buffer's size.
13370         * doc/posix-functions/write.texi: Mention the problem with large byte
13371         counts.
13372
13373 2011-04-14  Bruno Haible  <bruno@clisp.org>
13374
13375         wchar: Ensure that wchar_t gets defined on uClibc.
13376         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13377         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13378
13379 2011-04-13  Bruno Haible  <bruno@clisp.org>
13380
13381         safe-write, full-read: Avoid unnecessary compilation units.
13382         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13383         (Depends-on): Remove safe-read. Add ssize_t.
13384         * modules/full-read (Files): Add lib/full-write.c.
13385         (Depends-on): Add full-write.
13386
13387 2011-04-13  Bruno Haible  <bruno@clisp.org>
13388
13389         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13390         * modules/pwrite (Depends-on): Add 'write'.
13391
13392 2011-04-13  Bruno Haible  <bruno@clisp.org>
13393
13394         Support non-blocking pipe I/O in write() on native Windows.
13395         * lib/unistd.in.h (write): Enable replacement also if
13396         GNULIB_UNISTD_H_NONBLOCKING is 1.
13397         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13398         (rpl_write): When failing to write on a non-blocking pipe, change
13399         errno from ENOSPC to EAGAIN.
13400         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13401         putchar, puts, vfprintf, vprintf): Enable replacement also if
13402         GNULIB_STDIO_H_NONBLOCKING is 1.
13403         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13404         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13405         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13406         CALL_WITH_SIGPIPE_EMULATION.
13407         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13408         * m4/nonblocking.m4: New file.
13409         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13410         for non-blocking I/O support.
13411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13412         GNULIB_UNISTD_H_NONBLOCKING.
13413         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13414         required for non-blocking I/O support.
13415         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13416         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13417         lib/stdio-write.c, m4/asm-underscore.m4.
13418         (Depends-on): Add stdio, unistd.
13419         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13420         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13421         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13422         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13423         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13424         problem with non-blocking pipes.
13425         * doc/posix-functions/fputc.texi: Likewise.
13426         * doc/posix-functions/fputs.texi: Likewise.
13427         * doc/posix-functions/fwrite.texi: Likewise.
13428         * doc/posix-functions/printf.texi: Likewise.
13429         * doc/posix-functions/putc.texi: Likewise.
13430         * doc/posix-functions/putchar.texi: Likewise.
13431         * doc/posix-functions/puts.texi: Likewise.
13432         * doc/posix-functions/vfprintf.texi: Likewise.
13433         * doc/posix-functions/vprintf.texi: Likewise.
13434         * doc/posix-functions/write.texi: Likewise.
13435
13436 2011-04-10  Jim Meyering  <meyering@redhat.com>
13437
13438         maint.mk: prohibit doubled words
13439         Detect them also when they're separated by a newline.
13440         There are 3 ways to customize it:
13441           - disable the test on a per file basis, as usual with rules using
13442             $(VC_LIST_EXCEPT)
13443           - replace the default doubled-word-selecting regexp (affects all files)
13444           - ignore a particular file-vs-doubled-word match
13445         I nearly used that last one to ignore the "is is" match in
13446         coreutils' NEWS file, since the text was "ls -is is ..."
13447         To do that, I would have added this line to cfg.mk:
13448           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13449         but it would have ignored any "is is" match in NEWS.
13450         Low probability, but still...
13451         Instead, I changed the text, slightly:
13452           -  ls -is is now consistent with ls -lis in ignoring values returned
13453           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13454         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13455         (prohibit_doubled_word_): Define.
13456         (sc_prohibit_doubled_word): New rule.
13457         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13458
13459 2011-04-10  Jim Meyering  <meyering@redhat.com>
13460
13461         maint: fix doubled-word typo in comment
13462         * m4/gethostname.m4: s/is is/it is/
13463         * m4/getdomainname.m4: Likewise.
13464
13465 2011-04-10  Jim Meyering  <meyering@redhat.com>
13466
13467         maint: remove doubled word: s/it it/it/
13468         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13469
13470 2011-04-10  Jim Meyering  <meyering@redhat.com>
13471
13472         maint.mk: remove useless semicolon and backslash
13473         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13474         semicolon and backslash.
13475
13476 2011-04-10  Bruno Haible  <bruno@clisp.org>
13477
13478         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13479         * modules/stdint-tests (Depends-on): Add wchar.
13480
13481 2011-04-10  Jim Meyering  <meyering@redhat.com>
13482
13483         maint: remove doubled words in comments, e.g., s/a a/a/
13484         * lib/strptime.c (day_of_the_week): s/the the/the/
13485         * tests/test-chown.h (test_chown): s/a a/a/
13486
13487         test-chown.h: correct a cast
13488         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13489         when the destination is a stat.st_gid.
13490
13491 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13492
13493         getaddrinfo: Fix test for sa_len member.
13494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13495         include <sys/types.h> before <sys/socket.h>.
13496
13497 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         maint: change "can not" to "cannot"
13500         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13501         boundaries.
13502
13503 2011-04-09  Jim Meyering  <meyering@redhat.com>
13504
13505         maint: change "a a" to "a"
13506         * tests/test-lchown.h (test_lchown): s/a a/a/
13507
13508         maint.mk: prohibit \<the the\>
13509         * top/maint.mk (sc_prohibit_the_the): New rule.
13510
13511         maint: fix "the the" in comment
13512         * lib/count-one-bits.h: s/the the/the/
13513
13514         maint: change "can not" to "cannot"
13515         But do not change the occurrences in maintain.texi or in
13516         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13517         * doc/gnulib-tool.texi: s/can not/cannot/
13518         * doc/posix-functions/accept.texi (accept): Likewise.
13519         * doc/posix-functions/socket.texi (socket): Likewise.
13520         * lib/mbrtowc.c: Likewise.
13521
13522         maint.mk: prohibit use of "can not"
13523         * top/maint.mk (sc_prohibit_can_not): New rule.
13524         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13525
13526 2011-04-09  Bruno Haible  <bruno@clisp.org>
13527
13528         careadlinkat: Guard against misuse of careadlinkatcwd.
13529         * lib/careadlinkat.c: Include <stdlib.h>.
13530         (careadlinkatcwd): Check that the fd argument is as expected.
13531
13532 2011-04-09  Bruno Haible  <bruno@clisp.org>
13533
13534         careadlinkat: Use common coding style.
13535         * lib/careadlinkat.c: Move gnulib includes after system includes.
13536
13537 2011-04-09  Bruno Haible  <bruno@clisp.org>
13538
13539         careadlinkat: Clarify specification.
13540         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13541         (careadlinkatcwd): Add comment.
13542         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13543
13544 2011-04-09  Bruno Haible  <bruno@clisp.org>
13545
13546         areadlinkat: Avoid link error on many platforms.
13547         * modules/areadlinkat (Depends-on): Add areadlink.
13548
13549 2011-04-09  Bruno Haible  <bruno@clisp.org>
13550
13551         allocator, careadlinkat: Fix double-inclusion guard.
13552         * lib/allocator.h: Fix double-inclusion guard.
13553         * lib/careadlinkat.h: Likewise.
13554
13555 2011-04-09  Bruno Haible  <bruno@clisp.org>
13556
13557         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13558         * lib/relocwrapper.c: Update dependencies hierarchy.
13559         * build-aux/install-reloc: Update list of files to be compiled.
13560         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13561         lib/allocator.[hc].
13562
13563 2011-04-08  Eric Blake  <eblake@redhat.com>
13564
13565         strftime: silence gnulib-tool warning
13566         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13567
13568 2011-04-08  Bruno Haible  <bruno@clisp.org>
13569
13570         verify: Fix syntax error with GCC 4.6 in C++ mode.
13571         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13572         (HAVE_STATIC_ASSERT): New macro.
13573         (verify_true, verify): Use 'static_assert' if it is supported and
13574         '_Static_assert' is not supported.
13575
13576 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13577
13578         allocator: New module.
13579         * modules/allocator, lib/allocator.c: New files.
13580         * lib/allocator.h (stdlib_allocator): New decl.
13581         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13582         Remove.  Do not include <stdlib.h>.
13583         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13584         * modules/careadlinkat (Files): Remove lib/allocator.h.
13585         (Depends-on): Add allocator.
13586
13587         stdlib: let modules use system malloc, realloc
13588         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13589         if !_GL_USE_STDLIB_ALLOC.
13590         (malloc, realloc): Limit this change to a smaller scope.
13591
13592         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13593         (malloc, realloc): Don't #undef; no longer needed.
13594         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13595         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13596         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13597         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13598         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13599         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13600         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13601         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13602
13603         careadlinkat: rename members to avoid problem
13604         * lib/allocator.h (struct allocator): Rename members from
13605         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13606         and realloc are #define'd.  Reported by Eric Blake in
13607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13608         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13609
13610 2011-04-08  Eric Blake  <eblake@redhat.com>
13611
13612         nonblocking: reduce dependency
13613         * tests/test-nonblocking.c: Only test sockets when in use.
13614         * modules/nonblocking-tests (Depends-on): Drop socket.
13615         (Makefile.am): Link even if sockets are not present.
13616         * modules/pipe2-tests (Makefile.am): Likewise.
13617         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13618
13619         pipe2: fix O_NONBLOCK support on mingw
13620         * modules/pipe2 (Depends-on): Add nonblocking.
13621         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13622         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13623         * tests/test-nonblocking.c (main): Likewise.
13624         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13625
13626         fcntl-h: fix O_ACCMODE on cygwin
13627         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13628         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13629
13630         pipe-filter: drop O_NONBLOCK workarounds
13631         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13632         * modules/pipe-filter-ii (Depends-on): Likewise.
13633         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13634
13635         nonblocking: provide O_NONBLOCK for mingw
13636         * modules/nonblocking (Depends-on): Add open.
13637         (configure.ac): Set new witness macro.
13638         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13639         * modules/fcntl-h (Makefile.am): Substitute it.
13640         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13641         nonblocking module is in use.
13642         * lib/nonblocking.c: Adjust portability test.
13643         * lib/open.c (open): Don't let native open see gnulib flag.
13644         * tests/test-fcntl-h.c (main): Enhance test.
13645         * tests/test-open.h (test_open): Likewise.
13646         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13647
13648         careadlinkat: fix compilation error on mingw
13649         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13650         within struct allocator.
13651
13652 2011-04-06  Eric Blake  <eblake@redhat.com>
13653
13654         binary-io: relicense under LGPLv2+
13655         * modules/binary-io (License): Relax to LGPLv2+.
13656         Requested for libvirt, and required by pipe2.
13657
13658 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13659
13660         verify: use _Static_assert if available
13661         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13662         (verify_true, verify): Use it if available.  This generates better
13663         diagnostics with GCC 4.6.0 and later.
13664
13665 2011-04-05  Bruno Haible  <bruno@clisp.org>
13666
13667         Remove leftover generated .h files after config.status changed.
13668
13669         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13670         GL_GENERATE_ALLOCA_H.
13671         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13672         GL_GENERATE_ALLOCA_H evaluates to false.
13673
13674         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13675         GL_GENERATE_ARGZ_H.
13676         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13677         evaluates to false.
13678
13679         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13680         GL_GENERATE_BYTESWAP_H.
13681         * modules/byteswap (Makefile.am): Remove byteswap.h if
13682         GL_GENERATE_BYTESWAP_H evaluates to false.
13683
13684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13685         GL_GENERATE_ERRNO_H.
13686         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13687         evaluates to false.
13688
13689         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13690         GL_GENERATE_FLOAT_H.
13691         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13692         evaluates to false.
13693
13694         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13695         GL_GENERATE_FNMATCH_H.
13696         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13697         GL_GENERATE_FNMATCH_H evaluates to false.
13698
13699         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13700         GL_GENERATE_GLOB_H.
13701         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13702         evaluates to false.
13703
13704         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13705         automake conditional GL_GENERATE_ICONV_H.
13706         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13707         evaluates to false.
13708
13709         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13710         GL_GENERATE_NETINET_IN_H.
13711         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13712         GL_GENERATE_NETINET_IN_H evaluates to false.
13713
13714         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13715         conditional GL_GENERATE_PTHREAD_H.
13716         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13717         * modules/pthread (Makefile.am): Remove pthread.h if
13718         GL_GENERATE_PTHREAD_H evaluates to false.
13719
13720         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13721         GL_GENERATE_SCHED_H.
13722         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13723         evaluates to false.
13724
13725         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13726         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13727         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13728         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13729
13730         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13731         GL_GENERATE_STDARG_H.
13732         * modules/stdarg (Makefile.am): Remove stdarg.h if
13733         GL_GENERATE_STDARG_H evaluates to false.
13734
13735         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13736         GL_GENERATE_STDBOOL_H.
13737         * modules/stdbool (Makefile.am): Remove stdbool.h if
13738         GL_GENERATE_STDBOOL_H evaluates to false.
13739
13740         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13741         conditional GL_GENERATE_STDDEF_H.
13742         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13743         * modules/stddef (Makefile.am): Remove stddef.h if
13744         GL_GENERATE_STDDEF_H evaluates to false.
13745
13746         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13747         GL_GENERATE_STDINT_H.
13748         * modules/stdint (Makefile.am): Remove stdint.h if
13749         GL_GENERATE_STDINT_H evaluates to false.
13750
13751         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13752         GL_GENERATE_SYSEXITS_H.
13753         * modules/sysexits (Makefile.am): Remove sysexits.h if
13754         GL_GENERATE_SYSEXITS_H evaluates to false.
13755
13756         Reported by Karl Berry and Ralf Wildenhues.
13757
13758 2011-04-05  Bruno Haible  <bruno@clisp.org>
13759
13760         Ensure to rebuild generated .h files when config.status has changed.
13761         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13762         config.status.
13763         * modules/ctype (Makefile.am): Likewise.
13764         * modules/dirent (Makefile.am): Likewise.
13765         * modules/errno (Makefile.am): Likewise.
13766         * modules/fcntl-h (Makefile.am): Likewise.
13767         * modules/float (Makefile.am): Likewise.
13768         * modules/getopt-posix (Makefile.am): Likewise.
13769         * modules/glob (Makefile.am): Likewise.
13770         * modules/iconv-h (Makefile.am): Likewise.
13771         * modules/inttypes (Makefile.am): Likewise.
13772         * modules/langinfo (Makefile.am): Likewise.
13773         * modules/locale (Makefile.am): Likewise.
13774         * modules/math (Makefile.am): Likewise.
13775         * modules/netdb (Makefile.am): Likewise.
13776         * modules/netinet_in (Makefile.am): Likewise.
13777         * modules/poll-h (Makefile.am): Likewise.
13778         * modules/pthread (Makefile.am): Likewise.
13779         * modules/pty (Makefile.am): Likewise.
13780         * modules/sched (Makefile.am): Likewise.
13781         * modules/search (Makefile.am): Likewise.
13782         * modules/selinux-h (Makefile.am): Likewise.
13783         * modules/signal (Makefile.am): Likewise.
13784         * modules/spawn (Makefile.am): Likewise.
13785         * modules/stdarg (Makefile.am): Likewise.
13786         * modules/stdbool (Makefile.am): Likewise.
13787         * modules/stddef (Makefile.am): Likewise.
13788         * modules/stdint (Makefile.am): Likewise.
13789         * modules/stdio (Makefile.am): Likewise.
13790         * modules/stdlib (Makefile.am): Likewise.
13791         * modules/string (Makefile.am): Likewise.
13792         * modules/strings (Makefile.am): Likewise.
13793         * modules/sys_file (Makefile.am): Likewise.
13794         * modules/sys_ioctl (Makefile.am): Likewise.
13795         * modules/sys_select (Makefile.am): Likewise.
13796         * modules/sys_socket (Makefile.am): Likewise.
13797         * modules/sys_stat (Makefile.am): Likewise.
13798         * modules/sys_time (Makefile.am): Likewise.
13799         * modules/sys_times (Makefile.am): Likewise.
13800         * modules/sys_utsname (Makefile.am): Likewise.
13801         * modules/sys_wait (Makefile.am): Likewise.
13802         * modules/sysexits (Makefile.am): Likewise.
13803         * modules/termios (Makefile.am): Likewise.
13804         * modules/time (Makefile.am): Likewise.
13805         * modules/unistd (Makefile.am): Likewise.
13806         * modules/wchar (Makefile.am): Likewise.
13807         * modules/wctype-h (Makefile.am): Likewise.
13808         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13809
13810 2011-04-05  Bruno Haible  <bruno@clisp.org>
13811
13812         pipe2: Relicense under LGPLv2+.
13813         * modules/pipe2 (License): Change to LGPLv2+.
13814         Requested by Eric Blake, for libvirt.
13815
13816 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13817
13818         bootstrap: compute gnulib_extra_files after updating build_aux
13819         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13820         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13821
13822 2011-04-05  Eric Blake  <eblake@redhat.com>
13823
13824         bootstrap: preserve git whitelist item sorting
13825         * build-aux/bootstrap (sort_patterns): New function.
13826         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13827
13828 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13829
13830         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13831         sc_space_tab check.
13832
13833 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13834
13835         areadlink, areadlinkat: rewrite in terms of careadlinkat
13836         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13837         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13838         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13839         (malloc, realloc): Remove #undefs.
13840         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13841         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13842         readlink, ssize_t, stdint, unistd.
13843         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13844         areadlink, stdint.
13845
13846         careadlinkat: new module
13847         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13848         * modules/careadlinkat: New files, written by me with
13849         a review and feedback from Ben Pfaff in
13850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13851
13852 2011-04-01  Bruno Haible  <bruno@clisp.org>
13853
13854         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13855         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13856         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13857         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13858         Reported by Bruce Korb <bruce.korb@gmail.com>.
13859
13860 2011-04-01  Bruno Haible  <bruno@clisp.org>
13861
13862         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13863         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13864         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13865         * modules/wcpcpy (Depends-on): Add extensions.
13866         * modules/wcpncpy (Depends-on): Likewise.
13867         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13868         systems.
13869         * doc/posix-functions/wcpncpy.texi: Likewise.
13870         * doc/posix-functions/wcwidth.texi: Likewise.
13871
13872 2011-03-31  Eric Blake  <eblake@redhat.com>
13873
13874         nonblocking: fix mingw test failures
13875         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13876         non-blocking flag on regular file.
13877         (get_nonblocking_flag): Set errno on invalid fd.
13878         * tests/test-nonblocking.c (main): Avoid test failure on
13879         directories if fchdir is not active.
13880         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13881
13882 2011-03-31  Bruno Haible  <bruno@clisp.org>
13883
13884         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13885         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13886         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13887         Reported by Simon Josefsson <simon@josefsson.org>.
13888
13889 2011-03-31  Bruno Haible  <bruno@clisp.org>
13890         and Eric Blake  <eblake@redhat.com>
13891
13892         nonblocking: new module
13893         * modules/nonblocking: New module.
13894         * modules/nonblocking-tests: Likewise.
13895         * lib/nonblocking.h: New file.
13896         * lib/nonblocking.c: Likewise.
13897         * tests/test-nonblocking.c: New test.
13898         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13899
13900 2011-03-30  Bruno Haible  <bruno@clisp.org>
13901
13902         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13903         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13904         instead of 'printf' format for GCC >= 4.4.
13905         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13906         (fprintf, printf, vfprintf, vprintf): Declare with
13907         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13908         the system's vfprintf() function.
13909         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13910
13911 2011-03-30  Eric Blake  <eblake@redhat.com>
13912
13913         passfd: fix scoping bug
13914         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13915         before sendmsg/recvmsg.
13916
13917         passfd: standardize coding conventions
13918         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13919         can be learned at compile time.
13920         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13921         ifdefs.
13922         (sendfd, recvfd): Follow gnulib code conventions.
13923
13924         passfd: fix incorrect sendmsg arguments
13925         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13926         incorrect msg_controllen value.
13927         * modules/passfd-tests (Depends-on): Check for alarm.
13928         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13929         Reported by Bastien ROUCARIES.
13930
13931 2011-03-30  Bruno Haible  <bruno@clisp.org>
13932
13933         c-strcasestr: Relicense under LGPLv2+.
13934         * modules/c-strcasestr (License): Change to LGPLv2+.
13935         Requested by Eric Blake, for libvirt.
13936
13937 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13938
13939         * users.txt: Add libidn2.  Fix libtasn1 link.
13940
13941 2011-03-30  Jim Meyering  <meyering@redhat.com>
13942
13943         tests: readlink* ("",... fails with EINVAL on newer kernels
13944         readlink and readlinkat have typically failed with ENOENT for
13945         the invalid, empty file name,  "".  However, with the advent
13946         of linux-2.6.39, they fail with EINVAL.
13947         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13948         when operating on the empty file name.
13949         * tests/test-readlink.h (test_readlink): Likewise.
13950
13951 2011-03-29  Bruno Haible  <bruno@clisp.org>
13952
13953         Relicense some modules under LGPLv2+, for libidn2.
13954         * modules/array-mergesort (License): Change to LGPLv2+.
13955         * modules/c-strcaseeq (License): Likewise.
13956         * modules/striconveh (License): Likewise.
13957         * modules/striconveha (License): Likewise.
13958         * modules/uniconv/base (License): Likewise.
13959         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13960         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13961         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13962         * modules/unictype/base (License): Likewise.
13963         * modules/unictype/bidiclass-of (License): Likewise.
13964         * modules/unictype/category-M (License): Likewise.
13965         * modules/unictype/category-none (License): Likewise.
13966         * modules/unictype/category-of (License): Likewise.
13967         * modules/unictype/category-test (License): Likewise.
13968         * modules/unictype/category-test-withtable (License): Likewise.
13969         * modules/unictype/combining-class (License): Likewise.
13970         * modules/unictype/joiningtype-of (License): Likewise.
13971         * modules/unictype/scripts (License): Likewise.
13972         * modules/uninorm/base (License): Likewise.
13973         * modules/uninorm/canonical-decomposition (License): Likewise.
13974         * modules/uninorm/composition (License): Likewise.
13975         * modules/uninorm/decompose-internal (License): Likewise.
13976         * modules/uninorm/decomposition-table (License): Likewise.
13977         * modules/uninorm/nfc (License): Likewise.
13978         * modules/uninorm/nfd (License): Likewise.
13979         * modules/uninorm/u32-normalize (License): Likewise.
13980         * modules/unistr/base (License): Likewise.
13981         * modules/unistr/u32-cpy (License): Likewise.
13982         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13983         * modules/unistr/u32-to-u8 (License): Likewise.
13984         * modules/unistr/u32-uctomb (License): Likewise.
13985         * modules/unistr/u8-check (License): Likewise.
13986         * modules/unistr/u8-mblen (License): Likewise.
13987         * modules/unistr/u8-mbtouc (License): Likewise.
13988         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13989         * modules/unistr/u8-mbtoucr (License): Likewise.
13990         * modules/unistr/u8-prev (License): Likewise.
13991         * modules/unistr/u8-strlen (License): Likewise.
13992         * modules/unistr/u8-to-u32 (License): Likewise.
13993         * modules/unistr/u8-uctomb (License): Likewise.
13994         * modules/unitypes (License): Likewise.
13995         Requested by Simon Josefsson.
13996
13997 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13998
13999         lib-symbol-visibility: Add a notice.
14000         * modules/lib-symbol-visibility (Notice): New field.
14001
14002 2011-03-29  Bruno Haible  <bruno@clisp.org>
14003
14004         getaddrinfo: Doc fix.
14005         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14006         section "fixed in Gnulib".
14007
14008 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14009
14010         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14011         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14012
14013 2011-03-26  Bruno Haible  <bruno@clisp.org>
14014
14015         unictype/property-byname: Reduce the number of load-time relocations.
14016         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14017         (UC_PROPERTY_INDEX_*): New enumeration values.
14018         (uc_property_byname): Convert an index from the lookup table to an
14019         uc_property_t.
14020         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14021         values.
14022
14023 2011-03-26  Bruno Haible  <bruno@clisp.org>
14024
14025         unictype/property-byname: Allow omitted word separators and aliases.
14026         * lib/unictype/pr_byname.gperf: Add property names without word
14027         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14028         for 'space'.
14029
14030 2011-03-26  Bruno Haible  <bruno@clisp.org>
14031
14032         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14033         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14034         also hyphens to space.
14035         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14036         without spaces.
14037         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14038
14039 2011-03-26  Bruno Haible  <bruno@clisp.org>
14040
14041         unictype/joiningtype-byname: Recognize long names as well.
14042         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14043         a long name.
14044         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14045         unictype/joiningtype_byname.h.
14046         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14047         * lib/unictype/joiningtype_byname.gperf: New file.
14048         * modules/unictype/joiningtype-byname (Files): Add
14049         lib/unictype/joiningtype_byname.gperf.
14050         (Depends-on): Add gperf.
14051         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14052         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14053         long names.
14054
14055         Tests for module 'unictype/joiningtype-longname'.
14056         * modules/unictype/joiningtype-longname-tests: New file.
14057         * tests/unictype/test-joiningtype_longname.c: New file.
14058
14059         New module 'unictype/joiningtype-longname'.
14060         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14061         * lib/unictype/joiningtype_longname.c: New file.
14062         * modules/unictype/joiningtype-longname: New file.
14063         * modules/unictype/joiningtype-all (Depends-on): Add
14064         unictype/joiningtype-longname.
14065
14066 2011-03-26  Bruno Haible  <bruno@clisp.org>
14067
14068         unictype/bidiclass-byname: Recognize long names as well.
14069         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14070         name.
14071         * lib/unictype/bidi_byname.c: Include <string.h>,
14072         unictype/bidi_byname.h.
14073         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14074         * lib/unictype/bidi_byname.gperf: New file.
14075         * modules/unictype/bidiclass-byname (Files): Add
14076         lib/unictype/bidi_byname.gperf.
14077         (Depends-on): Add gperf.
14078         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14079         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14080         long names.
14081
14082         Tests for module 'unictype/bidiclass-longname'.
14083         * modules/unictype/bidiclass-longname-tests: New file.
14084         * tests/unictype/test-bidi_longname.c: New file.
14085
14086         New module 'unictype/bidiclass-longname'.
14087         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14088         * lib/unictype/bidi_longname.c: New file.
14089         * modules/unictype/bidiclass-longname: New file.
14090         * modules/unictype/bidiclass-all (Depends-on): Add
14091         unictype/bidiclass-longname.
14092
14093 2011-03-26  Bruno Haible  <bruno@clisp.org>
14094
14095         unictype/bidi*: Rename modules.
14096         * modules/unictype/bidiclass-all: Renamed from
14097         modules/unictype/bidicategory-all.
14098         * modules/unictype/bidiclass-name: Renamed from
14099         modules/unictype/bidiclass-name.
14100         (Description): Update.
14101         * modules/unictype/bidiclass-name-tests: Renamed from
14102         modules/unictype/bidicategory-name-tests.
14103         * modules/unictype/bidiclass-byname: Renamed from
14104         modules/unictype/bidicategory-byname.
14105         (Description): Update.
14106         * modules/unictype/bidiclass-byname-tests: Renamed from
14107         modules/unictype/bidicategory-byname-tests.
14108         * modules/unictype/bidiclass-of: Renamed from
14109         modules/unictype/bidicategory-of.
14110         (Description): Update.
14111         * modules/unictype/bidiclass-of-tests: Renamed from
14112         modules/unictype/bidicategory-of-tests.
14113         * modules/unictype/bidiclass-test: Renamed from
14114         modules/unictype/bidicategory-test.
14115         (Description): Update.
14116         * modules/unictype/bidiclass-test-tests: Renamed from
14117         modules/unictype/bidicategory-test-tests.
14118         * modules/unictype/bidicategory-all: New file, a simple redirection.
14119         * modules/unictype/bidicategory-name: Likewise.
14120         * modules/unictype/bidicategory-byname: Likewise.
14121         * modules/unictype/bidicategory-of: Likewise.
14122         * modules/unictype/bidicategory-test: Likewise.
14123         * modules/unictype/property-bidi-* (Dependencies): Update.
14124         * lib/unictype/bidi_*.c: Update comment.
14125
14126 2011-03-26  Bruno Haible  <bruno@clisp.org>
14127
14128         unictype/bidi*: Rename functions, part 2.
14129         * modules/unictype/bidicategory-name (configure.ac): Update required
14130         libunistring version.
14131         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14132
14133 2011-03-25  Bruno Haible  <bruno@clisp.org>
14134
14135         New module 'unictype/combining-class-all'.
14136         * modules/unictype/combining-class-all: New file.
14137
14138         Tests for module 'unictype/combining-class-byname'.
14139         * modules/unictype/combining-class-byname-tests: New file.
14140         * tests/unictype/test-combiningclass_byname.c: New file.
14141
14142         New module 'unictype/combining-class-byname'.
14143         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14144         * lib/unictype/combiningclass_byname.c: New file.
14145         * lib/unictype/combiningclass_byname.gperf: New file.
14146         * modules/unictype/combining-class-byname: New file.
14147
14148         Tests for module 'unictype/combining-class-longname'.
14149         * modules/unictype/combining-class-longname-tests: New file.
14150         * tests/unictype/test-combiningclass_longname.c: New file.
14151
14152         New module 'unictype/combining-class-longname'.
14153         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14154         * lib/unictype/combiningclass_longname.c: New file.
14155         * modules/unictype/combining-class-longname: New file.
14156
14157         Tests for module 'unictype/combining-class-name'.
14158         * modules/unictype/combining-class-name-tests: New file.
14159         * tests/unictype/test-combiningclass_name.c: New file.
14160
14161         New module 'unictype/combining-class-name'.
14162         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14163         * lib/unictype/combiningclass_name.c: New file.
14164         * modules/unictype/combining-class-name: New file.
14165
14166 2011-03-25  Bruno Haible  <bruno@clisp.org>
14167
14168         unictype/combining-class: Rename source files.
14169         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14170         of unictype/combining.h.
14171         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14172         Update.
14173         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14174         * modules/unictype/combining-class (Description): Fix.
14175         (Files, Makefile.am): Update.
14176         * tests/unictype/test-combiningclass.c: Renamed from
14177         tests/unictype/test-combining.c.
14178         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14179
14180 2011-03-25  Bruno Haible  <bruno@clisp.org>
14181
14182         unictype: Update list of canonical combining classes.
14183         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14184
14185 2011-03-25  Bruno Haible  <bruno@clisp.org>
14186
14187         unictype/category-byname: Recognize long names as well.
14188         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14189         a long name.
14190         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14191         unictype/categ_byname.h.
14192         (UC_CATEGORY_INDEX_*): New enumeration values.
14193         (uc_general_category_byname): Use uc_general_category_lookup and
14194         convert from index to value.
14195         * lib/unictype/categ_byname.gperf: New file.
14196         * modules/unictype/category-byname (Files): Add
14197         lib/unictype/categ_byname.gperf.
14198         (Depends-on): Add gperf.
14199         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14200         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14201         long names.
14202
14203         Tests for module 'unictype/category-longname'.
14204         * modules/unictype/category-longname-tests: New file.
14205         * tests/unictype/test-categ_longname.c: New file.
14206
14207         New module 'unictype/category-longname'.
14208         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14209         * lib/unictype/categ_longname.c: New file.
14210         * modules/unictype/category-longname: New file.
14211         * modules/unictype/category-all (Depends-on): Add it.
14212
14213 2011-03-25  Bruno Haible  <bruno@clisp.org>
14214
14215         Tests for module 'unictype/category-LC'.
14216         * modules/unictype/category-LC-tests: New file.
14217         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14218
14219         New module 'unictype/category-LC'.
14220         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14221         (UC_CATEGORY_LC): New declaration.
14222         (UC_CASED_LETTER): New macro.
14223         * lib/gen-uni-tables.c (is_category_LC): New function.
14224         (output_categories): Also handle category LC.
14225         (UC_CATEGORY_MASK_LC): New enumeration value.
14226         (general_category_byname): Also handle category LC.
14227         * lib/unictype/categ_LC.c: New file.
14228         * lib/unictype/categ_LC.h: New file, automatically generated.
14229         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14230         category LC.
14231         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14232         * modules/unictype/category-LC: New file.
14233         * modules/unictype/category-byname (Depends-on): Add
14234         unictype/category-LC.
14235         * modules/unictype/category-all (Depends-on): Likewise.
14236
14237 2011-03-25  Eric Blake  <eblake@redhat.com>
14238
14239         xmalloc: revert yesterday's regression
14240         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14241         realloc's underlying behavior (allowing allocation of zero-size
14242         objects, especially if malloc-gnu is also in use).
14243
14244 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14245
14246         maint.mk: add missing version to VC-tag
14247         * top/maint.mk: git tag was missing actual tag name; add it.
14248
14249         valgrind: do leak checking, and exit with code 1 on error (not 0)
14250         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14251         to VALGRIND.
14252
14253 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14254
14255         posix-modules: say what it does.
14256         * posix-modules: Add a line to the --help output saying what it does.
14257
14258 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14259
14260         xmalloc: Do not leak if underlying realloc is C99 compatible.
14261         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14262         This avoids a leak on C99-based systems.  See
14263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14264
14265 2011-03-24  Eric Blake  <eblake@redhat.com>
14266
14267         realloc: document portability problem
14268         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14269         passing 0 size to realloc.
14270
14271 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14272
14273         doc: update users.txt
14274         * users.txt: Add cvsps, tmpwatch
14275
14276 2011-03-23  Matt Rice  <ratmice@gmail.com>
14277
14278         doc: update users.txt
14279         * users.txt: Add gdb.
14280
14281 2011-03-23  Jim Meyering  <meyering@redhat.com>
14282
14283         doc: update users.txt
14284         Looking through matches up to the following URL (there are still
14285         several more pages), I found several projects that use gnulib:
14286         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14287         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14288         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14289
14290 2011-03-22  Bruno Haible  <bruno@clisp.org>
14291
14292         unictype/bidi*: Rename functions.
14293         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14294         uc_bidi_class, uc_is_bidi_class): New declarations.
14295         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14296         uc_bidi_category_byname.
14297         (uc_bidi_category_byname): New function.
14298         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14299         u_bidi_category_name.
14300         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14301         (uc_bidi_category_name): New function.
14302         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14303         uc_bidi_category.
14304         (uc_bidi_category): New function.
14305         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14306         uc_is_bidi_category. Invoke uc_bidi_class.
14307         (uc_is_bidi_category): New function.
14308         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14309         instead of uc_bidi_category_byname.
14310         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14311         instead of uc_bidi_category_name.
14312         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14313         uc_bidi_category.
14314         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14315         instead of uc_is_bidi_category.
14316
14317 2011-03-21  Bruno Haible  <bruno@clisp.org>
14318
14319         New module 'unictype/joininggroup-all'.
14320         * modules/unictype/joininggroup-all: New file.
14321
14322         Tests for module 'unictype/joininggroup-of'.
14323         * modules/unictype/joininggroup-of-tests: New file.
14324         * tests/unictype/test-joininggroup_of.c: New file.
14325         * tests/unictype/test-joininggroup_of.h: New file, automatically
14326         generated by gen-uni-tables.
14327
14328         New module 'unictype/joininggroup-of'.
14329         * modules/unictype/joininggroup-of: New file.
14330         * lib/unictype/joininggroup_of.c: New file.
14331         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14332         gen-uni-tables.
14333
14334         Tests for module 'unictype/joininggroup-byname'.
14335         * modules/unictype/joininggroup-byname-tests: New file.
14336         * tests/unictype/test-joininggroup_byname.c: New file.
14337
14338         New module 'unictype/joininggroup-byname'.
14339         * modules/unictype/joininggroup-byname: New file.
14340         * lib/unictype/joininggroup_byname.c: New file.
14341         * lib/unictype/joininggroup_byname.gperf: New file.
14342
14343         Tests for module 'unictype/joininggroup-name'.
14344         * modules/unictype/joininggroup-name-tests: New file.
14345         * tests/unictype/test-joininggroup_name.c: New file.
14346
14347         New module 'unictype/joininggroup-name'.
14348         * modules/unictype/joininggroup-name: New file.
14349         * lib/unictype/joininggroup_name.c: New file.
14350         * lib/unictype/joininggroup_name.h: New file.
14351
14352         New module 'unictype/joiningtype-all'.
14353         * modules/unictype/joiningtype-all: New file.
14354
14355         Tests for module 'unictype/joiningtype-of'.
14356         * modules/unictype/joiningtype-of-tests: New file.
14357         * tests/unictype/test-joiningtype_of.c: New file.
14358         * tests/unictype/test-joiningtype_of.h: New file, automatically
14359         generated by gen-uni-tables.
14360
14361         New module 'unictype/joiningtype-of'.
14362         * modules/unictype/joiningtype-of: New file.
14363         * lib/unictype/joiningtype_of.c: New file.
14364         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14365         gen-uni-tables.
14366
14367         Tests for module 'unictype/joiningtype-byname'.
14368         * modules/unictype/joiningtype-byname-tests: New file.
14369         * tests/unictype/test-joiningtype_byname.c: New file.
14370
14371         New module 'unictype/joiningtype-byname'.
14372         * modules/unictype/joiningtype-byname: New file.
14373         * lib/unictype/joiningtype_byname.c: New file.
14374
14375         Tests for module 'unictype/joiningtype-name'.
14376         * modules/unictype/joiningtype-name-tests: New file.
14377         * tests/unictype/test-joiningtype_name.c: New file.
14378
14379         New module 'unictype/joiningtype-name'.
14380         * modules/unictype/joiningtype-name: New file.
14381         * lib/unictype/joiningtype_name.c: New file.
14382
14383         unictype: Add support for Arabic shaping properties.
14384         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14385         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14386         declarations.
14387         (UC_JOINING_GROUP_*): New enumeration values.
14388         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14389         declarations.
14390         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14391         (unicode_joining_type): New variable.
14392         (UC_JOINING_GROUP_*): New enumeration values.
14393         (unicode_joining_group): New variable.
14394         (fill_arabicshaping, joining_type_as_c_identifier,
14395         output_joining_type_test, output_joining_type,
14396         joining_group_as_c_identifier, output_joining_group_test,
14397         output_joining_group): New functions.
14398         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14399         fill_arabicshaping and output_joining_type_test, output_joining_type,
14400         output_joining_group_test, output_joining_group.
14401         Reported by Simon Josefsson.
14402
14403 2011-03-21  Jim Meyering  <meyering@redhat.com>
14404
14405         strftime: fix a bug in yesterday's change
14406         * lib/strftime.c (add): Accommodate width's initial value of -1.
14407         Otherwise, nstrftime would copy uninitialized data into
14408         the result buffer.
14409
14410 2011-03-21  Jim Meyering  <meyering@redhat.com>
14411
14412         tests: add strftime-tests module
14413         * tests/test-strftime.c: New file.
14414         * modules/strftime-tests: New module.
14415
14416 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14417
14418         strftime: don't assume a byte count fits in 'int'
14419         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14420         found this problem by static analysis, using gcc -Wstrict-overflow
14421         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14422         on an integer overflow having undefined behavior, but it turns out
14423         that the argument is a size, which might not fit in 'int' anyway,
14424
14425 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14426
14427         stdio: don't require ignore_value around fwrite
14428
14429         This patch works around libc bug 11959
14430         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14431         Without this patch, applications must often write
14432         ignore_value (fwrite (...)) even though the ignore_value is
14433         not helpful here.  It's common to write many objects, using
14434         fwrite/printf/etc., and then use ferror to detect output error.
14435
14436         I considered making this patch optional, but decided against it,
14437         because libc is obviously being inconsistent here: there is no
14438         reason libc should insist that user code must inspect fwrite
14439         return's value without also insisting that it inspect printf's,
14440         putchar's, etc.  If user code wants to have a strict style where
14441         all these functions' values are checked (so that ferror need not
14442         be checked), we could add support for that style in a new gnulib
14443         module, but in the meantime it's better to be consistent and to
14444         support common usage.
14445
14446         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14447         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14448         that we are compiling in checking mode, and if not C++, and
14449         if not already wrapping fwrite for some other reason.
14450         (fwrite): #define to rpl_fwrite if the latter is defined.
14451
14452 2011-03-20  Bruno Haible  <bruno@clisp.org>
14453
14454         verror: Fix compilation error introduced on 2011-02-13.
14455         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14456         instead of __attribute__.
14457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14458
14459 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14460             Bruno Haible  <bruno@clisp.org>
14461
14462         socklen: do not depend on sys_socket
14463         While trying to modify Emacs to use gnulib's socklen module,
14464         I discovered a circular dependency: socklen depends on sys_socket
14465         and vice versa.  Emacs can use socklen, but it does not need
14466         sys_socket because it has its own substitute for sys/socket.h.
14467         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14468         gl_TYPE_SOCKLEN_T.
14469         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14470         gl_PREREQ_SYS_H_SOCKET.
14471         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14472         gl_PREREQ_SYS_H_SOCKET.
14473         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14474         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14475         * modules/socklen (Depends-on): Do not depend on sys_socket.
14476         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14477
14478 2011-03-20  Jim Meyering  <meyering@redhat.com>
14479
14480         maint.mk: sort file names *after* new transformation
14481         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14482         prefix would have led to an unwarranted failure in GNU parted.
14483         Sort after that transformation.
14484
14485 2011-03-19  Jim Meyering  <meyering@redhat.com>
14486
14487         maint.mk: fix po-file syntax-check rule
14488         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14489         Patch by Bruno Haible.
14490
14491 2011-03-19  Bruno Haible  <bruno@clisp.org>
14492
14493         socklen: Update comment.
14494         * m4/socklen.m4: Update comment about platforms.
14495
14496 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14497             Bruno Haible  <bruno@clisp.org>
14498
14499         inet_ntop, inet_pton: Simplify.
14500         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14501         documented to provide socklen_t and we already depend on sys_socket.
14502         * modules/inet_pton (Depends-on): Likewise.
14503         * lib/arpa_inet.in.h: Adjust comment.
14504
14505 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14506             Bruno Haible  <bruno@clisp.org>
14507
14508         netdb: Simplify.
14509         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14510         documented to provide socklen_t and we already depend on sys_socket.
14511         * lib/netdb.in.h: Adjust comment.
14512
14513 2011-03-19  Bruno Haible  <bruno@clisp.org>
14514
14515         sys_socket, netdb: Document problem with socklen_t.
14516         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14517         platforms.
14518         * doc/posix-headers/netdb.texi: Likewise.
14519
14520 2011-03-18  Eric Blake  <eblake@redhat.com>
14521
14522         maint.mk: let po check work in VPATH build
14523         * top/maint.mk (po_file): Allow cfg.mk override.
14524         (sc_po_check): Allow VPATH use.
14525         Reported by Jiri Denemark.
14526
14527 2011-03-16  Jim Meyering  <meyering@redhat.com>
14528
14529         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14530         Before, you would have had to create one .x-sc_ file per rule in order
14531         to exempt offending files.  Now, you may instead use a Make variable --
14532         usually defined in cfg.mk -- whose name identifies the affected rule.
14533         * top/maint.mk (_sc_excl): Define.
14534         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14535         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14536
14537 2011-03-13  Bruno Haible  <bruno@clisp.org>
14538
14539         ignore-value tests: Avoid warnings.
14540         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14541         empty for gcc < 3.4.
14542
14543 2011-03-13  Bruno Haible  <bruno@clisp.org>
14544
14545         passfd: Fix link error on Solaris.
14546         * modules/passfd (Description): Correct.
14547         (Depends-on): Add socketlib.
14548         (Link): New section.
14549         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14550
14551 2011-03-13  Bruno Haible  <bruno@clisp.org>
14552
14553         passfd: Fix link error on AIX 5.2.
14554         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14555
14556 2011-03-13  Bruno Haible  <bruno@clisp.org>
14557
14558         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14559         * lib/sys_socket.in.h: Include <stddef.h>.
14560         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14561         CMSG_FIRSTHDR. Remove unused variable.
14562
14563 2011-03-13  Bruno Haible  <bruno@clisp.org>
14564
14565         passfd: Fix compilation error on OpenBSD.
14566         * lib/passfd.c: Include <sys/uio.h>.
14567
14568 2011-03-13  Bruno Haible  <bruno@clisp.org>
14569
14570         passfd test: Fix warnings.
14571         * tests/test-passfd.c: Include <sys/wait.h>.
14572         (main): Fix typo.
14573
14574 2011-03-13  Bruno Haible  <bruno@clisp.org>
14575
14576         passfd module, part 4, tweaks.
14577         * tests/test-passfd.c: Reorder includes.
14578         (main): Fix perror and printf calls.
14579
14580 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14581
14582         passfd module, part 4.
14583         * modules/passfd-tests: New file.
14584         * tests/test-passfd.c: New file.
14585
14586 2011-03-13  Jim Meyering  <meyering@redhat.com>
14587
14588         Makefile: rely on GNU make; derive syntax-check rule names
14589         Rather than requiring that each sc_ rule be listed as a dependent
14590         of "check", use features of GNU make to derive the list.
14591         * Makefile (syntax-check-rules): Define.
14592         (check): Depend on the new variable, not the hard-coded list.
14593
14594 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14595             Bruno Haible  <bruno@clisp.org>
14596
14597         passfd module, part 3.
14598         * lib/passfd.h (recvfd): Add a flags argument.
14599         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14600         (recvfd): Add a flags argument.
14601         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14602         exists.
14603         * modules/passfd (Depends-on): Add cloexec.
14604         Suggested by Eric Blake.
14605
14606 2011-03-13  Bruno Haible  <bruno@clisp.org>
14607
14608         passfd module, part 2, tweaks.
14609         * modules/passfd (Files): Reorder.
14610         (Depends-on): Remove errno.
14611         (Include): Remove <sys/socket.h>, <sys/un.h>.
14612         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14613         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14614         specification header. Include <sys/socket.h> always. Don't include
14615         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14616         (sendfd): Clarify that it sets errno when it fails.
14617         (recvfd): Fix specification.
14618
14619 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14620
14621         passfd module, part 2.
14622         * modules/passfd: New file.
14623         * lib/passfd.h: New file.
14624         * lib/passfd.c: New file.
14625
14626 2011-03-12  Bruno Haible  <bruno@clisp.org>
14627
14628         wcswidth, mbswidth: Avoid integer overflow.
14629         * lib/wcswidth.c: Include <limits.h>.
14630         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14631         * lib/mbswidth.c: Include <limits.h>.
14632         (mbsnwidth): Avoid 'int' overflow.
14633         Reported by Jim Meyering.
14634
14635 2011-03-12  Bruno Haible  <bruno@clisp.org>
14636
14637         futimens, utimensat: Avoid endless recursion on Solaris 10.
14638         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14639         Solaris.
14640         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14641         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14642
14643 2011-03-11  Jim Meyering  <meyering@redhat.com>
14644
14645         maint.mk: relax a regexp to accommodate other formatting styles
14646         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14647         between "ngettext" and the following "(".
14648
14649 2011-03-11  Pádraig Brady <P@draigBrady.com>
14650
14651         maint.mk: suppress a false positive warning
14652         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14653         diagnostics are marked with ngettext.
14654
14655 2011-03-10  Eric Blake  <eblake@redhat.com>
14656
14657         wchar: add explicit dependencies, for Tru64
14658         * modules/mbmemcasecoll (Depends-on): Add wchar.
14659         * modules/mbtowc (Depends-on): Likewise.
14660         * modules/vasnprintf (Depends-on): Likewise.
14661         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14662         * modules/wctomb (Depends-on): Likewise.
14663         Reported by Peter O'Gorman.
14664
14665 2011-03-08  Bruno Haible  <bruno@clisp.org>
14666
14667         passfd module, part 1, tweaks.
14668         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14669         Improve indentation. Improve AC_MSG_CHECKING messages.
14670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14671         gl_SOCKET_FAMILIES.
14672
14673 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14674
14675         passfd module, part 1.
14676         * m4/afunix.m4: New file.
14677         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14678         sockets.
14679
14680 2011-03-08  Bruno Haible  <bruno@clisp.org>
14681
14682         regex-quote: New API.
14683         * lib/regex-quote.h: Include <stdbool.h>.
14684         (struct regex_quote_spec): New type.
14685         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14686         New declarations.
14687         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14688         'const struct regex_quote_spec *' argument.
14689         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14690         (pcre_special): New constant.
14691         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14692         New functions.
14693         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14694         'const struct regex_quote_spec *' argument.
14695         * modules/regex-quote (Depends-on): Add stdbool.
14696         * tests/test-regex-quote.c (check): Update for new API. Add test for
14697         anchored results.
14698         * NEWS: Mention the API change.
14699         Reported by Reuben Thomas and Eric Blake.
14700
14701 2011-03-06  Bruno Haible  <bruno@clisp.org>
14702
14703         regex-quote: Fix creation of POSIX extended regular expressions.
14704         * lib/regex-quote.c (ere_special): Add grouping and alternation
14705         operators.
14706
14707 2011-03-05  Bruno Haible  <bruno@clisp.org>
14708
14709         doc: Improve doc regarding autopoint vs. gnulib.
14710         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14711         disable autopoint while running autoreconf.
14712         Suggested by Ralf Wildenhues.
14713
14714 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14715
14716         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14717         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14718
14719 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14720
14721         parse-duration: remove xalloc.h dependency
14722         * lib/parse-duration.c (parse_period): handle NULL return from
14723         strdup instead of calling xstrdup().
14724         * modules/parse-duration: remove "xalloc" dependency
14725
14726 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14727
14728         bootstrap: honor m4_base when running aclocal
14729         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14730
14731 2011-03-02  Jim Meyering  <meyering@redhat.com>
14732
14733         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14734         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14735         on request from Matt Booth.
14736
14737 2011-03-01  Eric Blake  <eblake@redhat.com>
14738
14739         test-link: work on Hurd
14740         * tests/test-link.h (test_link): Hurd rejects linking directories
14741         with EISDIR instead of the POSIX-mandated EPERM.
14742
14743 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14744
14745         stdio: simplify by moving files to printf-posix, sigpipe
14746         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14747         since this symbol is needed only if printf is replaced.
14748         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14749         Require gl_ASM_SYMBOL_PREFIX.
14750         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14751         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14752         (Depends-on): Add 'raise'.
14753         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14754         * modules/stdio (Files): Remove lib/stdio-write.c,
14755         m4/asm-underscore.m4.
14756         (Depends-on): Remove 'raise'.
14757
14758         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14759         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14760         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14761         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14762
14763 2011-02-28  Bruno Haible  <bruno@clisp.org>
14764
14765         localcharset: Assume ANSI C behaviour of free().
14766         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14767         calling free().
14768         Suggested by Simon Josefsson <simon@josefsson.org>.
14769
14770 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14771             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14772             Bruno Haible  <bruno@clisp.org>  (tiny change)
14773
14774         On Cygwin, use /proc file system instead of win32 API.
14775         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14776         Win32 file names.
14777         (DllMain): Simplify by removing Cygwin specific code.
14778         (find_shared_library_fullname): Use Linux specific implementation also
14779         for Cygwin.
14780         (get_shared_library_fullname): Update accordingly.
14781         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14782         Win32 file names.
14783         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14784         Cygwin specific code.
14785
14786 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14787             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14788
14789         Fix OpenMP flag detection for various Fortran compilers.
14790         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14791         OpenMP-conditional compilation construct, to force compile
14792         failure with missing OpenMP flag.
14793         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14794
14795 2011-02-25  Eric Blake  <eblake@redhat.com>
14796
14797         strstr: expand test coverage
14798         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14799         compilation.
14800         * tests/test-memmem.c (main): Duplicate tests.
14801         * tests/test-strcasestr.c (main): Likewise.
14802         * tests/test-c-strcasestr.c (main): Likewise.
14803
14804 2011-02-25  Jim Meyering  <meyering@redhat.com>
14805
14806         maint.mk: detect missing-NL-at-EOF, too
14807         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14808         it also detects when a file lacks a newline at EOF.
14809         (require_exactly_one_NL_at_EOF_): Renamed from
14810         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14811         since people may well have .x-sc_... file names tied to the
14812         existing name.  Suggested by Eric Blake.
14813
14814 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14815
14816         dirname: move m4/dos.m4 functionality into lib/dosname.h
14817
14818         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14819         extracts symbols from it, puts them into config.h; but it's much
14820         easier to use the symbols directly.  filename.h already does this,
14821         but it disagrees with dos.m4 in some respects.  This patch
14822         introduces a different include file dosname.h that packages up
14823         dos.m4, and then later we can work on merging filename.h and
14824         dosname.h.  Applications that need only the easy-to-configure
14825         symbols should consider including dosname.h rather than dirname.h.
14826         * NEWS: Mention incompatible changes.
14827         * m4/dos.m4: Remove.
14828         * lib/dosname.h, modules/dosname: New files.
14829         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14830         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14831         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14832         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14833         Include dosname.h, not dirname.h.
14834         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14835         Include dosname.h, for definitions of symbols like ISSLASH
14836         that used to be in config.h.
14837         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14838         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14839         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14840         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14841         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14842         * modules/rmdir (Files): Likewise.
14843         * modules/stat (Files): Likewise.
14844         * modules/unlink (Files): Likewise.
14845         * modules/dirname-lgpl (Depends-on): Add dosname.
14846         * modules/lstat (Depends-on): Likewise.
14847         * modules/openat (Depends-on): Likewise.
14848         * modules/rmdir (Depends-on): Likewise.
14849         * modules/savewd (Depends-on): Likewise.
14850         * modules/stat (Depends-on): Likewise.
14851         * modules/unlink (Depends-on): Likewise.
14852         * modules/openat (Depends-on): Remove dirname-lgpl.
14853         * modules/savewd (Depends-on): Likewise.
14854         * tests/test-dirname.c: Do not use removed symbols like
14855         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14856         the remaining symbols, e.g., ISSLASH ('\\').
14857
14858 2011-02-25  Eric Blake  <eblake@redhat.com>
14859
14860         strstr: revert patches that introduced bug and pessimization
14861         * lib/str-two-way.h: Add another reference.
14862         (two_way_short_needle, two_way_long_needle): Revert changes from
14863         2011-02-24; they pessimize search speed.
14864         (critical_factorization): Partially revert changes from
14865         2010-06-22; they violate the requirement that the left half of the
14866         needle be smaller than the period of the needle.
14867
14868 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14869
14870         filenamecat: remove unnecessary dependency on dirname-lgpl
14871         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14872         is no direct dependency, just an indirect one via filenamecat-lgpl.
14873
14874         remove: remove unnecessary use of m4/dos.m4
14875         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14876         * modules/remove (FILES): Remove m4/dos.m4.
14877
14878         * lib/openat-proc.c: Don't include dirname.h; not needed.
14879
14880         backupfile: remove unnecessary use of m4/dos.m4
14881         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14882         of its symbols are used by the backupfile code.  backupfile.c does
14883         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14884         for the rare case of programs that want all their backup file
14885         names to live within 8+3 limits, and dos.m4 doesn't address that.
14886         * modules/backupfile (Files): Remove m4/dos.m4.
14887
14888 2011-02-24  Jim Meyering  <meyering@redhat.com>
14889
14890         strstr: fix a bug whereby strstr would mistakenly return NULL
14891         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14892         in period calculation.
14893         (two_way_long_needle): Likewise.
14894         The original problem was reported by Mike Stump in
14895         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14896         Ralf Wildenhues provided the short needle and haystack.
14897         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14898         Add a more involved test to trigger the bug in two_way_long_needle.
14899
14900 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14901
14902         gnulib-tool: remove use of bold display in help screen
14903         * gnulib-tool (func_usage): Do not use bold display anymore in the
14904         help screen.  That was just meant to be a temporary emphasis for a
14905         backward-incompatible change.
14906
14907 2011-02-23  Bruno Haible  <bruno@clisp.org>
14908
14909         Fix misindentation of preprocessor directives.
14910         * lib/argp-namefrob.h: Reindent preprocessor directives.
14911         * lib/getopt_int.h (struct _getopt_data): Likewise.
14912         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14913         * lib/vasnprintf.c (decode_long_double): Likewise.
14914         * tests/test-argmatch.c: Insert blank lines, for clarity.
14915         * tests/test-exclude.c: Likewise.
14916
14917 2011-02-22  Bruno Haible  <bruno@clisp.org>
14918
14919         ioctl: Fix for MacOS X in 64-bit mode.
14920         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14921         value.
14922         Suggested by Eric Blake.
14923         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14924
14925 2011-02-22  Jim Meyering  <meyering@redhat.com>
14926
14927         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14928         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14929         in lib/.
14930
14931 2011-02-22  Eric Blake  <eblake@redhat.com>
14932
14933         maint: avoid any CDPATH issue
14934         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14935
14936         maint: adjust cpp indentation for my modules, as well
14937         * Makefile (sc_cpp_indent_check): Add my name.
14938         * lib/fbufmode.c: Filter through cppi.
14939         * lib/fpurge.c: Likewise.
14940         * lib/freadable.c: Likewise.
14941         * lib/freading.c: Likewise.
14942         * lib/fwritable.c: Likewise.
14943         * lib/fwriting.c: Likewise.
14944         * lib/sigaction.c: Likewise.
14945
14946 2011-02-22  Jim Meyering  <meyering@redhat.com>
14947
14948         maint: adjust cpp indentation to reflect nesting depth
14949         I.e., in a block of code that begins with an unnested "#if",
14950         put one space between the "#" in column 1 and following token.
14951         For example,
14952         -#include <sys/vfs.h>
14953         +# include <sys/vfs.h>
14954         Do this only in .c files that are part of a module I maintain.
14955         * lib/linkat.c: Filter through cppi.
14956         * lib/nanosleep.c: Likewise.
14957         * lib/openat.c: Likewise.
14958         * lib/openat-die.c: Likewise.
14959         * lib/dup3.c: Likewise.
14960         * lib/fchownat.c: Likewise.
14961         * lib/flock.c: Likewise.
14962         * lib/fsync.c: Likewise.
14963         * lib/fts.c: Likewise.
14964         * lib/getpass.c: Likewise.
14965         * lib/gettimeofday.c: Likewise.
14966         * lib/userspec.c: Likewise.
14967         * Makefile (sc_cpp_indent_check): New rule, to check this.
14968
14969 2011-02-22  Bruno Haible  <bruno@clisp.org>
14970
14971         New module 'wctomb'.
14972         * lib/stdlib.in.h (wctomb): New declaration.
14973         * lib/wctomb.c: New file.
14974         * lib/wctomb-impl.h: New file.
14975         * m4/wctomb.m4: New file.
14976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14977         REPLACE_WCTOMB.
14978         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14979         REPLACE_WCTOMB.
14980         * modules/wctomb: New file.
14981         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14982         * doc/posix-functions/wctomb.texi: Mention the new module.
14983         * modules/wctob (Depends-on): Add wctomb.
14984
14985 2011-02-22  Bruno Haible  <bruno@clisp.org>
14986
14987         New module 'mbtowc'.
14988         * lib/stdlib.in.h (mbtowc): New declaration.
14989         * lib/mbtowc.c: New file.
14990         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14991         * m4/mbtowc.m4: New file.
14992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14993         REPLACE_MBTOWC.
14994         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14995         REPLACE_MBTOWC.
14996         * modules/mbtowc: New file.
14997         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14998         * doc/posix-functions/mbtowc.texi: Mention the new module.
14999         * modules/btowc (Depends-on): Add mbtowc.
15000
15001 2011-02-22  Bruno Haible  <bruno@clisp.org>
15002
15003         wcrtomb: Add more tests for native Windows platforms.
15004         * tests/test-wcrtomb-w32-1.sh: New file.
15005         * tests/test-wcrtomb-w32-2.sh: New file.
15006         * tests/test-wcrtomb-w32-3.sh: New file.
15007         * tests/test-wcrtomb-w32-4.sh: New file.
15008         * tests/test-wcrtomb-w32-5.sh: New file.
15009         * tests/test-wcrtomb-w32.c: New file.
15010         * modules/wcrtomb-tests (Files): Add them.
15011         (Makefile.am): Arrange to run these tests.
15012         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15013         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15014
15015 2011-02-20  Bruno Haible  <bruno@clisp.org>
15016
15017         wcrtomb: Enhance test.
15018         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15019
15020 2011-02-20  Bruno Haible  <bruno@clisp.org>
15021
15022         mbrtowc: Tiny optimization.
15023         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15024
15025 2011-02-20  Jim Meyering  <meyering@redhat.com>
15026
15027         test-exclude.c: remove unmatched #endif
15028         * tests/test-exclude.c: Remove stray #endif, left over from
15029         the change of a week ago.
15030
15031 2011-02-19  Jim Meyering  <meyering@redhat.com>
15032
15033         git-version-gen: skip "-dirty" check when appropriate
15034         * build-aux/git-version-gen: Don't run any git commands when the
15035         version string comes from .tarball-version.  Prior to this, we
15036         would run git update-index --refresh even from a just-unpacked
15037         tarball directory, and that could affect a .git/ directory in a
15038         parent of the build directory.  Reported by Mike Frysinger.
15039
15040 2011-02-19  Bruno Haible  <bruno@clisp.org>
15041
15042         unictype/property-byname: Reduce the size of the 'data' segment.
15043         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15044
15045 2011-02-19  Bruno Haible  <bruno@clisp.org>
15046
15047         unictype/scripts: Reduce the size of the 'data' segment.
15048         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15049         '%pic'.
15050         * lib/unictype/scripts_byname.gperf: Regenerated.
15051
15052 2011-02-19  Bruno Haible  <bruno@clisp.org>
15053
15054         stdint: Update documentation.
15055         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15056
15057 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15058
15059         stdint: omit redundant check for wchar.h
15060         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15061         always tests whether wchar.h exists, so remove the now-redundant test.
15062
15063 2011-02-18  Bruno Haible  <bruno@clisp.org>
15064
15065         stdint: Cut dependency to module 'wchar'.
15066         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15067         include the necessary prerequisites.
15068         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15069         * modules/stdint (Depends-on): Remove wchar.
15070         (Makefile.am): Substitute HAVE_WCHAR_H.
15071         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15072
15073 2011-02-18  Eric Blake  <eblake@redhat.com>
15074
15075         longlong: skip, rather than fail, on cross-compilation
15076         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15077         when cross-compiling; regression from 2011-02-16.
15078
15079 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15080
15081         * NEWS: Mention 2011-02-08 change to stdlib.
15082
15083 2011-02-17  Bruno Haible  <bruno@clisp.org>
15084
15085         getloadavg: Add comments about platforms.
15086         * m4/getloadavg.m4: Add comment.
15087         * lib/getloadavg.c: Likewise.
15088
15089 2011-02-17  Bruno Haible  <bruno@clisp.org>
15090
15091         getloadavg: Fix link error on Solaris 2.6.
15092         * modules/getloadavg (Link): New section.
15093         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15094         linking test-getloadavg.
15095         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15096         getloadavg.
15097
15098 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15099
15100         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15101         It was 'int', but this doesn't match the IRIX 6.5 manual.
15102         Suggested by Bruno Haible in
15103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15104
15105 2011-02-17  Bruno Haible  <bruno@clisp.org>
15106
15107         havelib: Fix comments.
15108         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15109         change.
15110
15111 2011-02-17  Bruno Haible  <bruno@clisp.org>
15112
15113         havelib: Update config.rpath.
15114         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15115
15116 2011-02-17  Bruno Haible  <bruno@clisp.org>
15117
15118         getloadavg test: Add some plausibility checks.
15119         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15120         is improbable.
15121
15122 2011-02-16  Eric Blake  <eblake@redhat.com>
15123
15124         maintainer-makefile: make syntax-check a no-op from tarballs
15125         * top/maint.mk (no-vc-detected): New rule.
15126         (local-checks-available): Use it to avoid hanging if someone tries
15127         'make syntax-check' from a tarball.  Also append to any non-syntax
15128         checks already defined in cfg.mk.
15129
15130 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15131
15132         longlong: tune, particularly for common case of c99
15133
15134         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15135         or running anything if c99, or if unsigned long long int does not
15136         work.  In either case, we know the answer without further tests.
15137         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15138         it at most once, and use its results for both long long int and
15139         unsigned long long int.  This is more likely to be efficient in
15140         the common case where the program wants to check for both long
15141         long int and unsigned long long int.
15142         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15143         since the answer is already known.
15144
15145 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15146
15147         getloadavg: set errno
15148         * lib/getloadavg.c: Set errno when returning -1.  If no other
15149         error number looks appropriate, set it to ENOSYS if the getloadavg
15150         looks like it can't possibly ever work, ENOTSUP otherwise.
15151         Suggested by Bruno Haible in
15152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15153
15154         getloadavg: trim unused parts and speed up 'configure'
15155         * NEWS: Document this.
15156         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15157         always compiled if getloadavg is absent.
15158         Move test code to ...
15159         * tests/test-getloadavg.c: New file, containing previous
15160         contents of test from lib/getloadavg.c.  It also contains
15161         suggestions by Bruno Haible in
15162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15163         * modules/getloadavg-tests: New file.
15164         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15165         Do tests in the same order as they're needed for getloadavg.c.
15166         Omit setgid-related tests that generate symbols KMEM_GROUP,
15167         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15168         Do only the tests that are needed to see whether the system has
15169         getloadavg, moving the other tests into ...
15170         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15171         NLIST_NAME_UNION; nobody should be using it.  Do not define
15172         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15173         relevant, as the user of this module shouldn't care how getloadavg
15174         is implemented.
15175
15176         getloadavg: omit unused var
15177         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15178
15179 2011-02-15  Jim Meyering  <meyering@redhat.com>
15180
15181         doc: update users.txt
15182         * users.txt: Update iwhd's URL.
15183
15184 2011-02-13  Bruno Haible  <bruno@clisp.org>
15185
15186         Consistent macro naming for macros that use GCC __attribute__.
15187         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15188         _ATTRIBUTE_NONNULL_.
15189         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15190         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15191         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15192         ATTRIBUTE_DEPRECATED.
15193         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15194         ATTRIBUTE_NORETURN.
15195         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15196         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15197         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15198         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15199         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15200         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15201         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15202         ATTRIBUTE_SENTINEL.
15203         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15204         ATTRIBUTE_RETURN_CHECK.
15205         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15206         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15207         ATTRIBUTE_NORETURN.
15208         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15209         Reported by Paul Eggert.
15210
15211 2011-02-13  Bruno Haible  <bruno@clisp.org>
15212
15213         Don't interfere with a program's definition of __attribute__.
15214         * lib/argp.h (__attribute__): Remove definition.
15215         (_GL_ATTRIBUTE_FORMAT): New macro.
15216         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15217         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15218         (_GL_ATTRIBUTE_FORMAT): New macro.
15219         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15220         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15221         GCC 3 or newer.
15222         * lib/error.h (__attribute__): Remove definition.
15223         (_GL_ATTRIBUTE_FORMAT): New macro.
15224         (error, error_at_line): Use it.
15225         * lib/hash.h (__attribute__): Remove definition.
15226         (ATTRIBUTE_WUR): Update definition. Define always.
15227         * lib/openat.h (__attribute__): Remove definition.
15228         (ATTRIBUTE_NORETURN): Update definition. Define always.
15229         * lib/sigpipe-die.h (__attribute__): Remove definition.
15230         (ATTRIBUTE_NORETURN): Update definition. Define always.
15231         * lib/vasnprintf.h (__attribute__): Remove definition.
15232         (_GL_ATTRIBUTE_FORMAT): New macro.
15233         (asnprintf, vasnprintf): Use it.
15234         * lib/xalloc.h (__attribute__): Remove definition.
15235         (ATTRIBUTE_NORETURN): Update definition. Define always.
15236         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15237         * lib/xmemdup0.h (__attribute__): Remove definition.
15238         (ATTRIBUTE_NORETURN): Update definition. Define always.
15239         * lib/xprintf.h (__attribute__): Remove definition.
15240         (_GL_ATTRIBUTE_FORMAT): New macro.
15241         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15242         * lib/xstrtol.h (__attribute__): Remove definition.
15243         (ATTRIBUTE_NORETURN): Update definition. Define always.
15244         * lib/xvasprintf.h (__attribute__): Remove definition.
15245         (_GL_ATTRIBUTE_FORMAT): New macro.
15246         (xasprintf, xvasprintf): Use it.
15247         * tests/test-argmatch.c (__attribute__): Remove definition.
15248         (ATTRIBUTE_NORETURN): Update definition. Define always.
15249         * tests/test-exclude.c (__attribute__): Remove definition.
15250         (ATTRIBUTE_NORETURN): Update definition. Define always.
15251         Reported by Paul Eggert.
15252
15253 2011-02-13  Bruno Haible  <bruno@clisp.org>
15254
15255         mbrtowc: Add more tests for native Windows platforms.
15256         * tests/test-mbrtowc-w32-1.sh: New file.
15257         * tests/test-mbrtowc-w32-2.sh: New file.
15258         * tests/test-mbrtowc-w32-3.sh: New file.
15259         * tests/test-mbrtowc-w32-4.sh: New file.
15260         * tests/test-mbrtowc-w32-5.sh: New file.
15261         * tests/test-mbrtowc-w32.c: New file.
15262         * modules/mbrtowc-tests (Files): Add them.
15263         (Makefile.am): Arrange to run these tests.
15264         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15265         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15266
15267 2011-02-13  Bruno Haible  <bruno@clisp.org>
15268
15269         mbrtowc: Work around native Windows bug.
15270         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15271         guess when no suitable locale for testing was found.
15272         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15273
15274 2011-02-13  Bruno Haible  <bruno@clisp.org>
15275
15276         mbsinit: Work around mingw bug.
15277         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15278         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15279         Windows.
15280         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15281
15282 2011-02-13  Bruno Haible  <bruno@clisp.org>
15283
15284         mbsinit: Don't crash for a NULL argument.
15285         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15286         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15287
15288 2011-02-13  Bruno Haible  <bruno@clisp.org>
15289
15290         Don't interfere with a program's definition of __attribute__.
15291         * lib/stdio.in.h (__attribute__): Remove definition.
15292         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15293         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15294         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15295         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15296         * lib/string.in.h (__attribute__): Remove definition.
15297         Reported by Paul Eggert.
15298
15299 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15300
15301         stdlib: don't get in the way of non-GCC __attribute__
15302         See thread starting at
15303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15304         Revert previous stdlib change, installing the following instead:
15305         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15306         to get in the way of a non-GCC compiler that supports __attribute__.
15307         (_GL_ATTRIBUTE_RETURN): New macro.
15308         (_Exit): Use it instead of __attribute__.
15309
15310 2011-02-12  Bruno Haible  <bruno@clisp.org>
15311
15312         quotearg test: Avoid test failure on mingw.
15313         * tests/test-quotearg.sh: Convert the locale identifier from native
15314         Windows syntax to Unix syntax.
15315
15316 2011-02-12  Bruno Haible  <bruno@clisp.org>
15317
15318         setlocale: Prefer gnulib's override over libintl's override.
15319         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15320         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15321         GNULIB_defined_setlocale is set.
15322
15323 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15324
15325         stdlib: support non-GCC __attribute__
15326
15327         Fix a serious and tricky problem encountered when attempting to
15328         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15329         5.5, but it crashed due to memory corruption on Solaris 10 with
15330         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15331         bits that are otherwise zero.  This tagging is optional inside
15332         Emacs but is preferred and is used when __attribute__ ((__aligned
15333         (8))) works, as it does with both recent-enough GCC and with Sun C
15334         5.11.  However, Sun C 5.11 is not GCC and does not #define
15335         __GNUC__ and __GNUC_MINOR__.
15336
15337         When I added the getloadavg module to Emacs, it brought in
15338         stdlib.in.h, which contained this fragment:
15339
15340            #ifndef __attribute__
15341            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15342            #  define __attribute__(Spec)   /* empty */
15343            # endif
15344            #endif
15345
15346         When files that include <stdlib.h> were compiled with Sun C 5.11,
15347         the above code disabled __attribute__ ((__aligned (8))), which
15348         caused variables to not be properly aligned, which eventually led
15349         to the pointer corruption mentioned above.  (This was a bit hard
15350         to diagnose, unfortunately.)
15351
15352         Several "#define __attribute__(X) /* empty */" code snippets need
15353         to be eradicated from Gnulib to work with non-GCC compilers that
15354         support __attribute__.  The Autoconf way to do this is to test for
15355         each kind of attribute that we want support for, and selectively
15356         enable that in source code.
15357
15358         Fix this problem just for stdlib.h, by adding a test for the
15359         __noreturn__ attribute, and change stdlib.in.h to use that test
15360         when needed.  This technique can be easily generalized to the
15361         other *.in.h files and attributes, and a similar technique can be
15362         used for *.h and *.c files.  This patch is enough to solve the
15363         problem for Emacs + getloadavg, and I thought I'd publish it for
15364         feedback before undertaking further, similar fixes in other
15365         modules.
15366
15367         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15368         because it's not needed for stdlib.h.  It merely substitutes the
15369         value directly into stdlib.h.  We may well need to #define it, or
15370         similar symbols, for other modules, but it's nice to also have an
15371         option to not #define it for applications like Emacs that do not
15372         need it.
15373
15374         * lib/stdlib.in.h (__attribute__): Do not #define.
15375         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15376         be defined only if the _Exit module is also used.
15377         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15379         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15380         platforms.
15381         * modules/_Exit (Files): Add m4/attribute.m4.
15382         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15383         * m4/attribute.m4: New file.
15384
15385 2011-02-12  Bruno Haible  <bruno@clisp.org>
15386
15387         wcsrtombs: Work around bug on native Windows.
15388         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15389         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15390         instead of len.
15391         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15392
15393 2011-02-12  Bruno Haible  <bruno@clisp.org>
15394
15395         mbsrtowcs: Work around bug on native Windows.
15396         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15397         against mingw bug.
15398         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15399
15400 2011-02-12  Bruno Haible  <bruno@clisp.org>
15401
15402         Avoid setlocale bugs in tests.
15403         * modules/btowc (Dependencies): Add setlocale.
15404         * modules/c-strcase (Dependencies): Likewise.
15405         * modules/mbmemcasecmp (Dependencies): Likewise.
15406         * modules/mbmemcasecoll (Dependencies): Likewise.
15407         * modules/mbrtowc (Dependencies): Likewise.
15408         * modules/mbscasecmp (Dependencies): Likewise.
15409         * modules/mbscasestr (Dependencies): Likewise.
15410         * modules/mbschr (Dependencies): Likewise.
15411         * modules/mbscspn (Dependencies): Likewise.
15412         * modules/mbsinit (Dependencies): Likewise.
15413         * modules/mbsncasecmp (Dependencies): Likewise.
15414         * modules/mbsnrtowcs (Dependencies): Likewise.
15415         * modules/mbspbrk (Dependencies): Likewise.
15416         * modules/mbspcasecmp (Dependencies): Likewise.
15417         * modules/mbsrchr (Dependencies): Likewise.
15418         * modules/mbsrtowcs (Dependencies): Likewise.
15419         * modules/mbsspn (Dependencies): Likewise.
15420         * modules/mbsstr (Dependencies): Likewise.
15421         * modules/nl_langinfo (Dependencies): Likewise.
15422         * modules/quotearg (Dependencies): Likewise.
15423         * modules/unicase/locale-language (Dependencies): Likewise.
15424         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15425         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15426         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15427         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15428         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15429         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15430         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15431         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15432         * modules/vasnprintf-posix (Dependencies): Likewise.
15433         * modules/wcrtomb (Dependencies): Likewise.
15434         * modules/wcsnrtombs (Dependencies): Likewise.
15435         * modules/wcsrtombs (Dependencies): Likewise.
15436
15437 2011-02-12  Bruno Haible  <bruno@clisp.org>
15438
15439         setlocale: Workaround native Windows bug.
15440         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15441         succeeds but sets LC_CTYPE to "C", report a failure.
15442         * tests/test-setlocale2.sh: New file.
15443         * tests/test-setlocale2.c: New file.
15444         * modules/setlocale-tests (Files): Add the new files.
15445         (Makefile.am): Enable test-setlocale2.sh test.
15446         * doc/posix-functions/setlocale.texi: Mention workaround.
15447
15448 2011-02-11  Bruno Haible  <bruno@clisp.org>
15449
15450         Tests for module 'setlocale'.
15451         * modules/setlocale-tests: New file.
15452         * tests/test-setlocale1.sh: New file.
15453         * tests/test-setlocale1.c: New file.
15454
15455         New module 'setlocale'.
15456         * lib/locale.in.h (setlocale): New declaration.
15457         * lib/setlocale.c: New file, based on
15458         gettext/gettext-runtime/intl/setlocale.c.
15459         * m4/setlocale.m4: New file.
15460         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15461         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15462         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15463         REPLACE_SETLOCALE.
15464         * modules/setlocale: New file.
15465         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15466         * doc/posix-functions/setlocale.texi: Mention the new module.
15467
15468 2011-02-11  Bruno Haible  <bruno@clisp.org>
15469
15470         Prepare for locale dependent tests on mingw.
15471         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15472         because it has the wrong locale encoding.
15473         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15474         French_France.1252 instead of "fr".
15475         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15476         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15477         because it has the wrong locale encoding.
15478         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15479         native Windows, try Turkish_Turkey.65001.
15480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15481         Chinese_China.54936.
15482
15483         Prepare for locale dependent tests on mingw.
15484         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15485         differently.
15486         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15487         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15488         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15490
15491 2011-02-11  Eric Blake  <eblake@redhat.com>
15492
15493         strptime: avoid compiler warnings
15494         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15495         compiler warnings about dead code.
15496         Reported by Daniel P. Berrange.
15497
15498 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15499
15500         doc: update users.txt
15501         * users.txt: Add rcs.
15502
15503 2011-02-10  John W. Eaton  <jwe@gnu.org>
15504
15505         doc: update users.txt
15506         * users.txt: Add octave.
15507
15508 2011-02-10  Jim Meyering  <meyering@redhat.com>
15509
15510         doc: update users.txt
15511         * users.txt: Add iwhd.
15512
15513 2011-02-09  Bruno Haible  <bruno@clisp.org>
15514
15515         gnulib-tool: Make copyright notice adjustment more robust.
15516         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15517         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15518         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15519         License".
15520         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15521
15522 2011-02-06  Bruno Haible  <bruno@clisp.org>
15523
15524         New module 'towctrans'.
15525         * modules/towctrans: New file.
15526         * lib/wctype.in.h (towctrans): New declaration.
15527         * lib/towctrans.c: New file.
15528         * lib/towctrans-impl.h: New file.
15529         * m4/towctrans.m4: New file.
15530         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15531         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15532         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15533         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15534         * doc/posix-functions/towctrans.texi: Mention the new module.
15535
15536 2011-02-06  Bruno Haible  <bruno@clisp.org>
15537
15538         New module 'wctrans'.
15539         * modules/wctrans: New file.
15540         * lib/wctype.in.h (wctrans): New declaration.
15541         * lib/wctrans.c: New file.
15542         * lib/wctrans-impl.h: New file.
15543         * m4/wctrans.m4: New file.
15544         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15545         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15546         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15547         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15548         * doc/posix-functions/wctrans.texi: Mention the new module.
15549
15550 2011-02-06  Bruno Haible  <bruno@clisp.org>
15551
15552         New module 'iswctype'.
15553         * modules/iswctype: New file.
15554         * lib/wctype.in.h (iswctype): New declaration.
15555         * lib/iswctype.c: New file.
15556         * lib/iswctype-impl.h: New file.
15557         * m4/iswctype.m4: New file.
15558         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15559         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15560         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15561         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15562         * doc/posix-functions/iswctype.texi: Mention the new module and the
15563         HP-UX 11.00 problem.
15564
15565 2011-02-06  Bruno Haible  <bruno@clisp.org>
15566
15567         New module 'wctype'.
15568         * modules/wctype: Change to represent the wctype() substitute.
15569         * lib/wctype.in.h (wctype): New declaration.
15570         * lib/wctype.c: New file.
15571         * lib/wctype-impl.h: New file.
15572         * m4/wctype.m4: New file.
15573         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15574         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15575         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15576         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15577         * doc/posix-functions/wctype.texi: Mention the new module and the
15578         HP-UX 11.00 problem.
15579
15580 2011-02-06  Bruno Haible  <bruno@clisp.org>
15581
15582         wctype-h: Ensure wctype_t and wctrans_t are defined.
15583         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15584         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15585         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15586         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15587         HAVE_WCTRANS_T.
15588         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15589
15590 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15591
15592         flock: fix license typo
15593
15594         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15595         omitted.
15596
15597 2011-02-08  Bruno Haible  <bruno@clisp.org>
15598
15599         Split large sed scripts, for HP-UX sed.
15600         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15601         to avoid HP-UX limit of 99 commands, in the near future.
15602         * modules/stdlib (Makefile.am): Likewise.
15603         * modules/unistd (Makefile.am): Likewise.
15604         * modules/wchar (Makefile.am): Likewise.
15605         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15606         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15608
15609 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15610             Bruno Haible  <bruno@clisp.org>
15611
15612         stdlib: improve random_r modularization
15613         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15614         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15615         you also need the random_r module to get this material right.
15616         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15617         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15618         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15619
15620 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15621
15622         stdlib: don't depend on stdint
15623         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15624         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15625         be independent of whether stdint.h is needed.
15626         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15627         here, instead of ...
15628         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15629         struct random_data should be using the random_r module, not just
15630         the stdlib module (which wouldn't make sense: what package needs
15631         just struct random_data without also needing random_r?).
15632         * modules/stdlib (Depends-on): Remove stdint.
15633
15634         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15635         See the thread rooted at
15636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15637         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15638         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15639         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15640         __VMS)); previously it was always included (via fcntl--.h).
15641         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15642         hand; this is good enough for load averages.  Also, do not use
15643         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15644         flags directly if available and don't bother otherwise.  (Packages
15645         that need the extra reliability should use the modules that define
15646         these flags on older platforms that lack them.)
15647         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15648         fcntl-safer.
15649
15650 2011-02-08  Jim Meyering  <meyering@redhat.com>
15651
15652         di-set.h, ino-map.h: add multiple-inclusion guard
15653         Technically, the guard is required only for ino-map.h, due to its
15654         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15655         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15656         * lib/ino-map.h: Likewise.
15657
15658 2011-02-06  Bruno Haible  <bruno@clisp.org>
15659
15660         iswblank: Ensure declaration on glibc systems.
15661         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15662         * modules/iswblank (Dependencies): Add 'extensions'.
15663         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15664
15665 2011-02-06  Bruno Haible  <bruno@clisp.org>
15666
15667         New module 'iswblank'.
15668         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15669         * modules/iswblank: New file.
15670         * modules/wctype-h (Files): Remove lib/iswblank.c.
15671         (Makefile.am): Substitute GNULIB_ISWBLANK.
15672         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15673         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15674         (gl_WCTYPE_H_DEFAULTS): New macro.
15675         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15676         * modules/iswblank-tests: New file.
15677         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15678         * tests/test-wctype-h.c (main): Remove iswblank tests.
15679         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15680         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15681         of 'wctype-h'.
15682         * NEWS: Mention the change.
15683         * modules/mbchar (Depends-on): Add iswblank.
15684
15685 2011-02-08  Bruno Haible  <bruno@clisp.org>
15686
15687         di-set tests: Refactor.
15688         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15689         unnecessary includes.
15690         (ASSERT): Remove macro.
15691         (main): Make C90 compliant by avoiding variable declaration after
15692         statement.
15693         * modules/di-set-tests (Files): Add tests/macros.h.
15694
15695 2011-02-08  Bruno Haible  <bruno@clisp.org>
15696
15697         ino-map tests: Refactor.
15698         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15699         unnecessary includes.
15700         (ASSERT): Remove macro.
15701         (main): Make C90 compliant by avoiding variable declaration after
15702         statement.
15703         * modules/ino-map-tests (Files): Add tests/macros.h.
15704
15705 2011-02-08  Jim Meyering  <meyering@redhat.com>
15706
15707         di-set: add "const" to a cast
15708         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15709         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15710
15711 2011-02-06  Bruno Haible  <bruno@clisp.org>
15712
15713         Rename module 'wctype' to 'wctype-h'.
15714         * modules/wctype-h: Renamed from modules/wctype.
15715         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15716         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15717         (Files, Depends-on, Makefile.am): Update.
15718         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15719         (Files, Makefile.am): Update.
15720         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15721         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15722         * doc/posix-headers/wctype.texi: Update.
15723         * doc/posix-functions/iswalnum.texi: Update.
15724         * doc/posix-functions/iswalpha.texi: Update.
15725         * doc/posix-functions/iswblank.texi: Update.
15726         * doc/posix-functions/iswcntrl.texi: Update.
15727         * doc/posix-functions/iswdigit.texi: Update.
15728         * doc/posix-functions/iswgraph.texi: Update.
15729         * doc/posix-functions/iswlower.texi: Update.
15730         * doc/posix-functions/iswprint.texi: Update.
15731         * doc/posix-functions/iswpunct.texi: Update.
15732         * doc/posix-functions/iswspace.texi: Update.
15733         * doc/posix-functions/iswupper.texi: Update.
15734         * doc/posix-functions/iswxdigit.texi: Update.
15735         * doc/posix-functions/towlower.texi: Update.
15736         * doc/posix-functions/towupper.texi: Update.
15737         * NEWS: Mention the change.
15738         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15739         * modules/mbchar (Dependencies): Likewise.
15740         * modules/mbswidth (Dependencies): Likewise.
15741         * modules/quotearg (Dependencies): Likewise.
15742         * modules/regex (Dependencies): Likewise.
15743         * modules/wcscasecmp (Dependencies): Likewise.
15744         * modules/wcsncasecmp (Dependencies): Likewise.
15745         * modules/wcwidth (Dependencies): Likewise.
15746
15747 2011-02-06  Bruno Haible  <bruno@clisp.org>
15748
15749         New module 'wcswidth'.
15750         * modules/wcswidth: New file.
15751         * lib/wchar.in.h (wcswidth): New declaration.
15752         * lib/wcswidth.c: New file.
15753         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15754         * m4/wcswidth.m4: New file.
15755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15757         REPLACE_WCSWIDTH.
15758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15759         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15760         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15761         * doc/posix-functions/wcswidth.texi: Mention the new module.
15762
15763 2011-02-06  Bruno Haible  <bruno@clisp.org>
15764
15765         New module 'wcstok'.
15766         * modules/wcstok: New file.
15767         * lib/wchar.in.h (wcstok): New declaration.
15768         * lib/wcstok.c: New file.
15769         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15770         * m4/wcstok.m4: New file.
15771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15774         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15775         * doc/posix-functions/wcstok.texi: Mention the new module.
15776
15777 2011-02-06  Bruno Haible  <bruno@clisp.org>
15778
15779         New module 'wcsstr'.
15780         * modules/wcsstr: New file.
15781         * lib/wchar.in.h (wcsstr): New declaration.
15782         * lib/wcsstr.c: New file.
15783         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15784         * m4/wcsstr.m4: New file.
15785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15788         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15789         * doc/posix-functions/wcsstr.texi: Mention the new module.
15790
15791 2011-02-06  Bruno Haible  <bruno@clisp.org>
15792
15793         New module 'wcspbrk'.
15794         * modules/wcspbrk: New file.
15795         * lib/wchar.in.h (wcspbrk): New declaration.
15796         * lib/wcspbrk.c: New file.
15797         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15798         * m4/wcspbrk.m4: New file.
15799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15802         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15803         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15804
15805 2011-02-06  Bruno Haible  <bruno@clisp.org>
15806
15807         New module 'wcsspn'.
15808         * modules/wcsspn: New file.
15809         * lib/wchar.in.h (wcsspn): New declaration.
15810         * lib/wcsspn.c: New file.
15811         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15812         * m4/wcsspn.m4: New file.
15813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15816         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15817         * doc/posix-functions/wcsspn.texi: Mention the new module.
15818
15819 2011-02-06  Bruno Haible  <bruno@clisp.org>
15820
15821         New module 'wcscspn'.
15822         * modules/wcscspn: New file.
15823         * lib/wchar.in.h (wcscspn): New declaration.
15824         * lib/wcscspn.c: New file.
15825         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15826         * m4/wcscspn.m4: New file.
15827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15830         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15831         * doc/posix-functions/wcscspn.texi: Mention the new module.
15832
15833 2011-02-06  Bruno Haible  <bruno@clisp.org>
15834
15835         New module 'wcsrchr'.
15836         * modules/wcsrchr: New file.
15837         * lib/wchar.in.h (wcsrchr): New declaration.
15838         * lib/wcsrchr.c: New file.
15839         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15840         * m4/wcsrchr.m4: New file.
15841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15844         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15845         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15846
15847 2011-02-06  Bruno Haible  <bruno@clisp.org>
15848
15849         New module 'wcschr'.
15850         * modules/wcschr: New file.
15851         * lib/wchar.in.h (wcschr): New declaration.
15852         * lib/wcschr.c: New file.
15853         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15854         * m4/wcschr.m4: New file.
15855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15858         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15859         * doc/posix-functions/wcschr.texi: Mention the new module.
15860
15861 2011-02-06  Bruno Haible  <bruno@clisp.org>
15862
15863         New module 'wcsdup'.
15864         * modules/wcsdup: New file.
15865         * lib/wchar.in.h (wcsdup): New declaration.
15866         * lib/wcsdup.c: New file.
15867         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15868         * m4/wcsdup.m4: New file.
15869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15872         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15873         * doc/posix-functions/wcsdup.texi: Mention the new module.
15874
15875 2011-02-06  Bruno Haible  <bruno@clisp.org>
15876
15877         New module 'wcsxfrm'.
15878         * modules/wcsxfrm: New file.
15879         * lib/wchar.in.h (wcsxfrm): New declaration.
15880         * lib/wcsxfrm.c: New file.
15881         * lib/wcsxfrm-impl.h: New file.
15882         * m4/wcsxfrm.m4: New file.
15883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15886         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15887         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15888
15889 2011-02-06  Bruno Haible  <bruno@clisp.org>
15890
15891         New module 'wcscoll'.
15892         * modules/wcscoll: New file.
15893         * lib/wchar.in.h (wcscoll): New declaration.
15894         * lib/wcscoll.c: New file.
15895         * lib/wcscoll-impl.h: New file.
15896         * m4/wcscoll.m4: New file.
15897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15900         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15901         * doc/posix-functions/wcscoll.texi: Mention the new module.
15902
15903 2011-02-06  Bruno Haible  <bruno@clisp.org>
15904
15905         New module 'wcsncasecmp'.
15906         * modules/wcsncasecmp: New file.
15907         * lib/wchar.in.h (wcsncasecmp): New declaration.
15908         * lib/wcsncasecmp.c: New file.
15909         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15910         * m4/wcsncasecmp.m4: New file.
15911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15914         HAVE_WCSNCASECMP.
15915         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15916         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15917
15918 2011-02-06  Bruno Haible  <bruno@clisp.org>
15919
15920         New module 'wcscasecmp'.
15921         * modules/wcscasecmp: New file.
15922         * lib/wchar.in.h (wcscasecmp): New declaration.
15923         * lib/wcscasecmp.c: New file.
15924         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15925         * m4/wcscasecmp.m4: New file.
15926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15929         HAVE_WCSCASECMP.
15930         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15931         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15932
15933 2011-02-05  Bruno Haible  <bruno@clisp.org>
15934
15935         New module 'wcsncmp'.
15936         * modules/wcsncmp: New file.
15937         * lib/wchar.in.h (wcsncmp): New declaration.
15938         * lib/wcsncmp.c: New file.
15939         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15940         * m4/wcsncmp.m4: New file.
15941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15944         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15945         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15946
15947 2011-02-05  Bruno Haible  <bruno@clisp.org>
15948
15949         New module 'wcscmp'.
15950         * modules/wcscmp: New file.
15951         * lib/wchar.in.h (wcscmp): New declaration.
15952         * lib/wcscmp.c: New file.
15953         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15954         * m4/wcscmp.m4: New file.
15955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15958         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15959         * doc/posix-functions/wcscmp.texi: Mention the new module.
15960
15961 2011-02-05  Bruno Haible  <bruno@clisp.org>
15962
15963         New module 'wcsncat'.
15964         * modules/wcsncat: New file.
15965         * lib/wchar.in.h (wcsncat): New declaration.
15966         * lib/wcsncat.c: New file.
15967         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15968         * m4/wcsncat.m4: New file.
15969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15972         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15973         * doc/posix-functions/wcsncat.texi: Mention the new module.
15974
15975 2011-02-05  Bruno Haible  <bruno@clisp.org>
15976
15977         New module 'wcscat'.
15978         * modules/wcscat: New file.
15979         * lib/wchar.in.h (wcscat): New declaration.
15980         * lib/wcscat.c: New file.
15981         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15982         * m4/wcscat.m4: New file.
15983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15986         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15987         * doc/posix-functions/wcscat.texi: Mention the new module.
15988
15989 2011-02-05  Bruno Haible  <bruno@clisp.org>
15990
15991         New module 'wcpncpy'.
15992         * modules/wcpncpy: New file.
15993         * lib/wchar.in.h (wcpncpy): New declaration.
15994         * lib/wcpncpy.c: New file.
15995         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15996         * m4/wcpncpy.m4: New file.
15997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15999         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16000         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16001         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16002
16003 2011-02-05  Bruno Haible  <bruno@clisp.org>
16004
16005         New module 'wcsncpy'.
16006         * modules/wcsncpy: New file.
16007         * lib/wchar.in.h (wcsncpy): New declaration.
16008         * lib/wcsncpy.c: New file.
16009         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16010         * m4/wcsncpy.m4: New file.
16011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16014         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16015         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16016
16017 2011-02-05  Bruno Haible  <bruno@clisp.org>
16018
16019         New module 'wcpcpy'.
16020         * modules/wcpcpy: New file.
16021         * lib/wchar.in.h (wcpcpy): New declaration.
16022         * lib/wcpcpy.c: New file.
16023         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16024         * m4/wcpcpy.m4: New file.
16025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16027         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16028         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16029         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16030
16031 2011-02-05  Bruno Haible  <bruno@clisp.org>
16032
16033         New module 'wcscpy'.
16034         * modules/wcscpy: New file.
16035         * lib/wchar.in.h (wcscpy): New declaration.
16036         * lib/wcscpy.c: New file.
16037         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16038         * m4/wcscpy.m4: New file.
16039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16042         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16043         * doc/posix-functions/wcscpy.texi: Mention the new module.
16044
16045 2011-02-05  Bruno Haible  <bruno@clisp.org>
16046
16047         New module 'wcsnlen'.
16048         * modules/wcsnlen: New file.
16049         * lib/wchar.in.h (wcsnlen): New declaration.
16050         * lib/wcsnlen.c: New file.
16051         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16052         * m4/wcsnlen.m4: New file.
16053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16056         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16057         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16058
16059 2011-02-05  Bruno Haible  <bruno@clisp.org>
16060
16061         New module 'wcslen'.
16062         * modules/wcslen: New file.
16063         * lib/wchar.in.h (wcslen): New declaration.
16064         * lib/wcslen.c: New file.
16065         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16066         * m4/wcslen.m4: New file.
16067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16070         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16071         * doc/posix-functions/wcslen.texi: Mention the new module.
16072
16073 2011-02-05  Bruno Haible  <bruno@clisp.org>
16074
16075         New module 'wmemset'.
16076         * modules/wmemset: New file.
16077         * lib/wchar.in.h (wmemset): New declaration.
16078         * lib/wmemset.c: New file.
16079         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16080         * m4/wmemset.m4: New file.
16081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16083         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16084         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16085         * doc/posix-functions/wmemset.texi: Mention the new module.
16086
16087 2011-02-05  Bruno Haible  <bruno@clisp.org>
16088
16089         New module 'wmemmove'.
16090         * modules/wmemmove: New file.
16091         * lib/wchar.in.h (wmemmove): New declaration.
16092         * lib/wmemmove.c: New file.
16093         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16094         * m4/wmemmove.m4: New file.
16095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16097         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16098         HAVE_WMEMMOVE.
16099         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16100         * doc/posix-functions/wmemmove.texi: Mention the new module.
16101
16102 2011-02-05  Bruno Haible  <bruno@clisp.org>
16103
16104         New module 'wmemcpy'.
16105         * modules/wmemcpy: New file.
16106         * lib/wchar.in.h (wmemcpy): New declaration.
16107         * lib/wmemcpy.c: New file.
16108         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16109         * m4/wmemcpy.m4: New file.
16110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16112         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16113         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16114         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16115
16116 2011-02-05  Bruno Haible  <bruno@clisp.org>
16117
16118         New module 'wmemcmp'.
16119         * modules/wmemcmp: New file.
16120         * lib/wchar.in.h (wmemcmp): New declaration.
16121         * lib/wmemcmp.c: New file.
16122         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16123         * m4/wmemcmp.m4: New file.
16124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16126         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16127         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16128         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16129
16130 2011-02-07  Jim Meyering  <meyering@redhat.com>
16131
16132         di-set, ino-map: new modules, from coreutils
16133         * lib/di-set.c: New file.
16134         * lib/di-set.h: Likewise.
16135         * lib/ino-map.c: Likewise.
16136         * lib/ino-map.h: Likewise.
16137         * modules/di-set: Likewise.
16138         * modules/di-set-tests: Likewise.
16139         * modules/ino-map: Likewise.
16140         * modules/ino-map-tests: Likewise.
16141         * tests/test-di-set.c: Likewise.
16142         * tests/test-ino-map.c: Likewise.
16143
16144 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16145
16146         getloadavg: merge minor changes from Emacs
16147
16148         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16149         (getloadavg): Use memset, not bzero.
16150
16151         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16152         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16153         clash (bug#86).
16154
16155 2010-11-14  Bruno Haible  <bruno@clisp.org>
16156
16157         Allow multiple gnulib generated replacements to coexist.
16158         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16159         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16160         * lib/langinfo.in.h (nl_item): Likewise.
16161         * lib/math.in.h (_NaN, NAN): Likewise.
16162         * lib/netdb.in.h (struct addrinfo): Likewise.
16163         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16164         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16165         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16166         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16167         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16168         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16169         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16170         pthread_mutexattr_init, pthread_mutexattr_settype,
16171         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16172         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16173         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16174         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16175         * lib/sched.in.h (struct sched_param): Likewise.
16176         * lib/se-selinux.in.h (security_class_t, security_context_t,
16177         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16178         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16179         lsetfilecon, fsetfilecon, security_check_context,
16180         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16181         Likewise.
16182         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16183         Likewise.
16184         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16185         _gl_function_taking_int_returning_void_t, union sigval,
16186         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16187         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16188         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16189         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16190         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16191         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16192         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16193         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16194         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16195         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16196         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16197         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16198         socklen_t, rpl_fd_isset): Likewise.
16199         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16200         * lib/sys_time.in.h (struct timeval): Likewise.
16201         * lib/sys_times.in.h (struct tms): Likewise.
16202         * lib/sys_utsname.in.h (struct utsname):
16203         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16204         * lib/unistd.in.h (getpagesize): Likewise.
16205         * lib/wchar.in.h (mbstate_t): Likewise.
16206         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16207         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16208         towlower, towupper): Likewise.
16209         Reported by Sam Steingold <sds@gnu.org>.
16210
16211 2011-02-05  Eric Blake  <eblake@redhat.com>
16212
16213         unsetenv: work around Haiku issues
16214         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16215         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16216
16217 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16218
16219         libposix: avoid calling error() within libposix
16220         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16221         is defined.
16222
16223 2011-02-05  Eric Blake  <eblake@redhat.com>
16224
16225         strerror_r-posix: port to cygwin
16226         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16227         implementation.
16228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16229         * tests/test-strerror_r.c (main): Fix test.
16230         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16231         issue.
16232
16233 2011-02-05  Bruno Haible  <bruno@clisp.org>
16234
16235         New module 'wmemchr'.
16236         * modules/wmemchr: New file.
16237         * lib/wchar.in.h (wmemchr): New declaration.
16238         * lib/wmemchr.c: New file.
16239         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16240         * m4/wmemchr.m4: New file.
16241         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16242         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16243         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16244         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16245         * doc/posix-functions/wmemchr.texi: Mention the new module.
16246
16247 2011-02-04  Eric Blake  <eblake@redhat.com>
16248
16249         fdopendir: detect FreeBSD bug
16250         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16251         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16252
16253 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16254
16255         stdbool: do not define HAVE_STDBOOL_H
16256         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16257         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16258         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16259         imported from the latest Autoconf git.  It was motivated by Emacs,
16260         which uses gnulib but does not need HAVE_STDBOOL_H.
16261
16262 2011-02-04  Bruno Haible  <bruno@clisp.org>
16263
16264         wcsnrtombs: Prepare for new module wwcsnrtombs.
16265         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16266         * lib/wcsnrtombs.c: Include it.
16267         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16268
16269         wcsrtombs: Prepare for new module wwcsrtombs.
16270         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16271         * lib/wcsrtombs.c: Include it.
16272         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16273
16274         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16275         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16276         * lib/mbsnrtowcs.c: Include it.
16277         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16278
16279         mbsrtowcs: Prepare for new module mbsrtowwcs.
16280         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16281         * lib/mbsrtowcs.c: Include it.
16282         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16283
16284 2011-02-04  Bruno Haible  <bruno@clisp.org>
16285
16286         vasnprintf: Reduce use of malloc for small format strings.
16287         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16288         (arguments): Add room for the first 7 arguments.
16289         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16290         (char_directives, u8_directives, u16_directives, u32_directives): Add
16291         room for the first 7 directives.
16292         * lib/printf-parse.c: Include <string.h>.
16293         (PRINTF_PARSE): Change memory handling code so that it uses the first
16294         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16295         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16296         Reported by Pádraig Brady <P@draigbrady.com>.
16297
16298 2011-01-31  Eric Blake  <eblake@redhat.com>
16299
16300         dup2: work around Haiku bug
16301         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16302         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16303         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16304         * tests/test-dup2.c (main): Enhance test.
16305
16306 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16307
16308         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16309         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16310         declared by eglibc 2.11.2.
16311         * lib/stdio.in.h: Likewise.
16312
16313 2011-01-31  Eric Blake  <eblake@redhat.com>
16314
16315         ignore-value: add missing test dependency
16316         * tests/test-ignore-value.c: Revert previous change; stdio.h
16317         provides off_t.
16318         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16319
16320 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16321
16322         mktime: clarify long_int width checking
16323         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16324         the top level, to make it clearer that the assumption about
16325         long_int width is being checked.  See
16326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16327
16328 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16329
16330         ignore-value: Fix self-test.
16331         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16332
16333 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16334
16335         TYPE_MAXIMUM: avoid theoretically undefined behavior
16336         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16337         negative number, which the C Standard says has undefined behavior.
16338         In practice this is not a problem, but might as well do it by the book.
16339         Reported by Rich Felker and Eric Blake; see
16340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16341         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16342         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16344         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16345         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16346         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16347
16348         mktime: #undef mktime before #defining it
16349         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16350
16351         mktime: systematically normalize tm_isdst comparisons
16352         * lib/mktime.c (isdst_differ): New function.
16353         (__mktime_internal): Use it systematically for all isdst comparisons.
16354         This completes the fix for libc BZ #6723, and removes the need for
16355         normalizing tm_isdst.  See
16356         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16357         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16358
16359         mktime: fix some integer overflow issues and sidestep the rest
16360
16361         This was prompted by a bug report by Benjamin Lindner for MinGW
16362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16363         His bug is due to signed integer overflow (0 - INT_MIN), and I
16364         I scanned through mktime.c looking for other integer overflow
16365         problems, fixing all the bugs I found.
16366
16367         Although the C Standard says the resulting code is still not safe
16368         in the presence of integer overflow, in practice it should be good
16369         enough for all real-world two's-complement implementations, except
16370         for debugging environments that deliberately trap on integer
16371         overflow (e.g., gcc -ftrapv).
16372
16373         * lib/mktime.c (WRAPV): New macro.
16374         (SHR): Also check that long_int and time_t shift right in the
16375         usual way, before using the fast-but-unportable method.
16376         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16377         used.  The code already assumed two's complement, so there's
16378         no need to test for alternatives.  All uses removed.
16379         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16380         the C standard.  Problem reported by Rich Felker in
16381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16382         (twos_complement_arithmetic): Also check long_int and time_t.
16383         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16384         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16385         (__mktime_internal): Avoid integer overflow with unary subtraction
16386         in two instances where -1 - X is an adequate replacement for -X,
16387         since the calculations are approximate.
16388
16389 2011-01-29  Eric Blake  <eblake@redhat.com>
16390
16391         mktime: avoid infinite loop
16392         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16393         type; behavior is still undefined but portable to all known targets.
16394         Reported by Rich Felker.
16395
16396 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16397
16398         rename, unlink, same-inode: Relicense.
16399         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16400         * modules/unlink (License): Likewise.
16401         * modules/same-inode (License): Likewise.
16402
16403 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16404
16405         mktime: avoid problems on NetBSD 5 / i386
16406         * lib/mktime.c (long_int): New type.  This works around a problem
16407         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16408         but time_t is 64 bits, and where I expect the existing code is
16409         wrong in some cases.
16410         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16411         (ydhms_diff): Bring back the compile-time check for wide-enough
16412         year and yday.
16413
16414         mktime: fix misspelling in comment
16415         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16416         This merges all recent glibc changes of importance.
16417
16418 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16419
16420         move-if-change: cope with concurrent mv of identical file.
16421         * build-aux/move-if-change (CMPPROG): Accept environment
16422         variable as an override for `cmp'.
16423         (usage): Document CMPPROG.
16424         Adjust comparison to drop stdout.  Cope with failure of mv if
16425         the target file exists and is identical to the source, for
16426         parallel builds.
16427         Report from H.J. Lu against binutils in PR binutils/12283.
16428
16429 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16430
16431         * users.txt: Mention sharutils.
16432
16433 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16434
16435         * users.txt: Mention OATH Toolkit.
16436
16437 2011-01-27  Bruno Haible  <bruno@clisp.org>
16438
16439         Prepare for supporting FreeBSD 10.
16440         * build-aux/config.libpath: Remove handling of freebsd1*.
16441
16442 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16443
16444         Prepare for supporting FreeBSD 10.
16445         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16446         match FreeBSD 10.0.
16447
16448 2011-01-27  Bruno Haible  <bruno@clisp.org>
16449
16450         vma-iter, get-rusage-as: Add OpenBSD support.
16451         * modules/vma-iter (configure.ac): Test for mquery.
16452         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16453         * lib/vma-iter.c: Include <sys/mman.h>.
16454         (vma_iterate): Add an implementation based on mquery().
16455         * lib/resource-ext.h (get_rusage_as): Update comments.
16456         * lib/get-rusage-as.c: Likewise.
16457         * lib/get-rusage-data.c: Likewise.
16458
16459 2011-01-26  Karl Berry  <karl@gnu.org>
16460
16461         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16462         variables to make it easier to override the makeinfo program used.
16463
16464 2011-01-26  Eric Blake  <eblake@redhat.com>
16465
16466         fcntl: work around Haiku F_DUPFD bugs
16467         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16468         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16469         cloexec bit on duplication.
16470         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16471
16472 2011-01-26  Bruno Haible  <bruno@clisp.org>
16473
16474         Enable memory leak tests on AIX.
16475         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16476         * tests/test-fprintf-posix3.c (main): Likewise.
16477
16478 2011-01-26  Bruno Haible  <bruno@clisp.org>
16479
16480         Tests for module 'get-rusage-data'.
16481         * modules/get-rusage-data-tests: New file.
16482         * tests/test-get-rusage-data.c: New file.
16483
16484         New module 'get-rusage-data'.
16485         * lib/resource-ext.h (get_rusage_data): New declaration.
16486         * lib/get-rusage-data.c: New file.
16487         * modules/get-rusage-data: New file.
16488
16489 2011-01-25  Bruno Haible  <bruno@clisp.org>
16490
16491         get-rusage-as: Allow for easier testing.
16492         * lib/resource-ext.h (get_rusage_as): Add comment.
16493         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16494         (main): New function for interactive testing.
16495
16496 2011-01-25  Bruno Haible  <bruno@clisp.org>
16497
16498         vma-iter: Treat Haiku like BeOS.
16499         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16500         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16501
16502 2011-01-25  Eric Blake  <eblake@redhat.com>
16503
16504         c-stack: fix regression on cygwin when libsigsegv is present
16505         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16506
16507 2011-01-24  Bruno Haible  <bruno@clisp.org>
16508
16509         vma-iter: Avoid empty intervals.
16510         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16511         on an empty interval.
16512
16513 2011-01-24  Jim Meyering  <meyering@redhat.com>
16514
16515         u64: remove unnecessary #include
16516         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16517
16518 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16519
16520         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16521         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16522
16523 2011-01-23  Bruno Haible  <bruno@clisp.org>
16524
16525         New module 'vma-iter'.
16526         * lib/vma-iter.h: New file.
16527         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16528         * modules/vma-iter: New file.
16529         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16530         for get_rusage_as_via_iterator.
16531         (vma_iterate_callback): New function.
16532         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16533         * modules/get-rusage-as (Depends-on): Add vma-iter.
16534
16535 2011-01-23  Bruno Haible  <bruno@clisp.org>
16536
16537         uninorm: Tweak includes.
16538         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16539         Reported by Jim Meyering.
16540
16541 2011-01-23  Bruno Haible  <bruno@clisp.org>
16542
16543         get-rusage-as: Improve on NetBSD.
16544         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16545         /proc, like on FreeBSD.
16546
16547 2011-01-23  Jim Meyering  <meyering@redhat.com>
16548
16549         xreadlink.h: remove unnecessary #include
16550         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16551
16552         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16553         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16554
16555 2011-01-23  Bruno Haible  <bruno@clisp.org>
16556
16557         get-rusage-as: Fix bug.
16558         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16559         original limit when aborting the first loop.
16560
16561 2011-01-23  Bruno Haible  <bruno@clisp.org>
16562
16563         wctype: Ensure valid C syntax.
16564         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16565         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16566
16567 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16568
16569         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16571         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16572         as they are needed only for configure's test case.
16573         This removes two unnecessary symbols from config.h.
16574
16575         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16576         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16578         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16579         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16581         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16582         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16583         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16584         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16585         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16587         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16588         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16589         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16590         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16591         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16592         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16593
16594 2011-01-21  Eric Blake  <eblake@redhat.com>
16595
16596         maintainer-makefile: work with older git for submodule check
16597         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16598         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16599         Reported by Matthias Bolte.
16600
16601         bootstrap: minor portability fixes
16602         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16603         (usage): Omit leading capital and trailing . on help phrases, per
16604         GNU Coding Standards.
16605         (check_versions, top level): Prefix messages with script name.
16606
16607 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16608
16609         bootstrap: support --no-git option
16610         * build-aux/bootstrap: Add --no-git option, to be used when
16611         --gnulib-srcdir points to the exact desired checkout.
16612
16613 2011-01-21  Eric Blake  <eblake@redhat.com>
16614
16615         strerror_r-posix: work with glibc 2.13
16616         * lib/strerror_r.c (strerror_r): Fix return type.
16617
16618 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16619             Bruno Haible  <bruno@clisp.org>
16620
16621         uN_strstr: New unit tests.
16622         * modules/unistr/u8-strstr-tests: New file.
16623         * modules/unistr/u16-strstr-tests: New file.
16624         * modules/unistr/u32-strstr-tests: New file.
16625         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16626         * tests/unistr/test-u8-strstr.c: New file.
16627         * tests/unistr/test-u16-strstr.c: New file.
16628         * tests/unistr/test-u32-strstr.c: New file.
16629
16630 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16631             Bruno Haible  <bruno@clisp.org>
16632
16633         Make uN_strstr functions O(n) worst-case.
16634         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16635         16-bit and 32-bit unit cases, use the unibyte algorithm from
16636         lib/mbsstr.c.
16637         * lib/unistr/u8-strstr.c: Include <string.h>.
16638         (UNIT_IS_UINT8_T): New macro.
16639         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16640         (U_STRLEN, U_STRNLEN): New macros.
16641         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16642         (U_STRLEN, U_STRNLEN): New macros.
16643         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16644         (configure.ac): Update required libunistring version.
16645         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16646         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16647         malloca.
16648         (configure.ac): Update required libunistring version.
16649         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16650         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16651         malloca.
16652         (configure.ac): Update required libunistring version.
16653
16654 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16655             Bruno Haible  <bruno@clisp.org>
16656
16657         Prepare for faster uN_strstr functions.
16658         * lib/str-kmp.h: Support definable UNITs.
16659         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16660         needle_len argument.
16661         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16662         * lib/mbscasestr.c (mbscasestr): Likewise.
16663
16664 2011-01-21  Pádraig Brady <P@draigBrady.com>
16665
16666         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16667         * tests/test-malloca.c (main): Unset the environment variable
16668         to greatly speed up the test.
16669         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16670         * modules/malloca-tests: Depend on unsetenv.
16671
16672 2011-01-21  Pádraig Brady <P@draigBrady.com>
16673
16674         ignore-value: remove stdint dependency
16675         * lib/ignore-value.h: Remove <stdint.h>
16676         * modules/ignore-value: Remove stdint dependency.
16677
16678 2011-01-21  Jim Meyering  <meyering@redhat.com>
16679
16680         maint.mk: adjust variable name to be consistent with other gl_ vars
16681         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16682         to be lower case.
16683
16684 2011-01-20  Jim Meyering  <meyering@redhat.com>
16685
16686         maint.mk: make "check" depend on public-submodule-commit by default
16687         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16688
16689 2011-01-20  Bruno Haible  <bruno@clisp.org>
16690
16691         mbfile, mbiter: Complete change from 2008-12-21.
16692         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16693         * m4/mbiter.m4 (gl_MBITER): Likewise.
16694
16695 2011-01-20  Jim Meyering  <meyering@redhat.com>
16696
16697         init.sh: insert space between each function name and "()"
16698         * tests/init.sh: Make it a little easier to see that a function's
16699         name is "warn_", and not "warn" when looking at the first part of
16700         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16701
16702 2011-01-20  Jim Meyering  <meyering@redhat.com>
16703
16704         mountlist: clean up code formatting
16705         * lib/mountlist.c (read_file_system_list): Split a long line,
16706         correct bracing style, use NULL in place of "(struct statfs *)0",
16707         don't parenthesize return value, add spaces around "=" and after
16708         ";-in-for-stmt".
16709
16710 2011-01-14  Markus Duft <mduft@gentoo.org>
16711
16712         mountlist: add support for Interix
16713         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16714         Apply statvfs to all entries of /dev/fs.
16715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16716         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16717
16718 2011-01-20  Jim Meyering  <meyering@redhat.com>
16719
16720         maint.mk: improve the public-submodule-commit rule
16721         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16722         to suppress printing of its commands... unless V=1.
16723         Add git submodule's --quiet option to suppress printing of e.g.,
16724         "Entering gnulib" output.
16725         "cd" into $(srcdir) before running git submodule.
16726
16727 2011-01-20  Bruno Haible  <bruno@clisp.org>
16728
16729         include_next: Fix bug introduced on 2011-01-18.
16730         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16731         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16732         ac_cv_header_... variable if the second argument is not 'check'.
16733         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16734         gl_NEXT_HEADERS_INTERNAL.
16735
16736 2011-01-20  Bruno Haible  <bruno@clisp.org>
16737
16738         Allow the user to avoid the GNULIB_TEST_* macros.
16739         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16740         Suggested by Paul Eggert.
16741
16742 2011-01-14  Jim Meyering  <meyering@redhat.com>
16743
16744         bootstrap: avoid failure when there is no .gitmodules file
16745         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16746         has been assigned to, even when its value is the empty string.
16747         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16748         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16749         Reported by John W. Eaton <jwe@gnu.org>.
16750
16751 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16752
16753         assume <ctype.h>, ..., <time.h> exist
16754         For years gnulib has been assuming the existence of the headers
16755         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16756         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16757         them, since they don't appear to be needed.
16758         * README (Portability guidelines): Document this.
16759         * lib/flock.c: Assume <fcntl.h> exists.
16760         * lib/regex_internal.h: Assume <locale.h> exists.
16761         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16763         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16764         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16765         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16766         * m4/regex.m4 (gl_REGEX): Likewise.
16767         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16768         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16769         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16770         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16771         * tests/test-argp.c: Likewise.
16772         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16773
16774         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16775         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16776         AA_APPLE_UNIVERSAL_BUILD.  See
16777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16778         * NEWS: Document this.
16779
16780 2011-01-19  Eric Blake  <eblake@redhat.com>
16781
16782         c-stack: assume stack overflow if SA_SIGINFO unsupported
16783         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16784         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16785         sigaction will work.
16786         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16787         behavior match Linux.
16788         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16789
16790         stdbool-tests: accomodate Haiku
16791         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16792
16793         binary-io: fix O_TEXT on Haiku
16794         * modules/binary-io (Depends-on): Add fcntl-h.
16795         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16796         than blindly undefining O_TEXT.
16797         Reported by Scott McCreary.
16798
16799 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16800
16801         include_next: do not check for standard headers like stddef.h
16802
16803         I found this problem when modifying Emacs to use gnulib.
16804         I noticed that it added HAVE_STDDEF_H to config.h, even though
16805         gnulib always assumes <stddef.h> exists as per README and this
16806         symbol is unnecessary.
16807         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16808         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16809         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16810         faster for headers like stddef.h that are known to exist.
16811         (gl_CHECK_NEXT_HEADERS): Use it.
16812         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16813         rather than gl_CHECK_NEXT_HEADERS.
16814         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16815         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16816
16817 2011-01-18  Eric Blake  <eblake@redhat.com>
16818
16819         ansi-c++-opt: skip C++ dependency style if C++ is unused
16820         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16821         tests when we know C++ compilation is not desired.
16822         Reported by Scott McCreary.
16823
16824 2011-01-18  Bruno Haible  <bruno@clisp.org>
16825
16826         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16827         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16828         (main): Perform test also when getrlimit and setrlimit don't exist or
16829         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16830         limiting the address space size using setrlimit, compare the address
16831         space size before and after the the test.
16832         * tests/test-dprintf-posix2.c: Likewise.
16833         * tests/test-fprintf-posix3.sh: Update skip messages.
16834         * tests/test-dprintf-posix2.sh: Likewise.
16835         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16836         * modules/dprintf-posix-tests (Depends-on): Likewise.
16837         Reported by Bruce Korb <bkorb@gnu.org> and
16838         Gary V. Vaughan <gary@gnu.org>.
16839
16840 2011-01-18  Bruno Haible  <bruno@clisp.org>
16841
16842         get-rusage-as: Improvement for Cygwin.
16843         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16844         areas that are merely reserved.
16845
16846 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16847
16848         strftime: remove dependencies on multibyte modules
16849
16850         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16851         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16852         only if __osf__ is defined, and I suspect OSF doesn't need these
16853         other modules.  If my guess is wrong, we'll need to come up with a
16854         variant of strftime that doesn't need the multibyte modules.
16855
16856         I discovered this problem when attempting modify Emacs to use the
16857         strftime module.  With the previous gnulib, this caused Emacs to
16858         need 31 new files, ranging from lib/config.charset to
16859         m4/wint_t.m4.  This was overkill and I expect would be offputting
16860         to the Emacs maintainers.  After this change, only 6 new files are
16861         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16862         stdbool.m4, and tm_gmtoff.m4.
16863
16864         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16865         Suggested by Bruno Haible in
16866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16867         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16868         and do not check for wchar.h.
16869         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16870         (Depends-on): Remove mbrlen, mbsinit, wchar.
16871
16872 2011-01-18  Bruno Haible  <bruno@clisp.org>
16873
16874         Tests for module 'get-rusage-as'.
16875         * modules/get-rusage-as-tests: New file.
16876         * tests/test-get-rusage-as.c: New file.
16877
16878         New module 'get-rusage-as'.
16879         * modules/get-rusage-as: New file.
16880         * lib/resource-ext.h: New file.
16881         * lib/get-rusage-as.c: New file.
16882
16883 2011-01-17  Eric Blake  <eblake@redhat.com>
16884
16885         sigaction: relax license from LGPLv3+ to LGPLv2+
16886         * modules/sigaction (License): Relax to LGPLv2+.
16887
16888 2011-01-14  Bruno Haible  <bruno@clisp.org>
16889
16890         filemode: Make function declarations usable in C++ mode.
16891         * lib/filemode.h: Enclose function declarations in extern "C" block.
16892         Reported by John W. Eaton <jwe@gnu.org>.
16893
16894 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16895
16896         save-cwd: no longer include "xgetcwd.h"
16897         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16898         This avoids a compilation failure in projects that use save-cwd
16899         without also using the xgetcwd module.
16900
16901 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16902
16903         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16904         This is so that a program like Emacs, which needs only dtoastr,
16905         does not have to bother with distributing and compiling ftoastr
16906         and ldtoastr.
16907         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16908         * modules/dtoastr, modules/ldtoastr: New files.
16909         * modules/ftoastr: Now works just for 'float'.
16910         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16911         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16912         dtoastr.c, ldtoastr.c.
16913
16914 2011-01-11  Jim Meyering  <meyering@redhat.com>
16915
16916         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16917         There is no need to work around the lack of the fchdir function,
16918         since gnulib can now provide a replacement when required.
16919         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16920         * modules/save-cwd (Depends-on): Add fchdir.
16921
16922 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16923
16924         openat, save-cwd: avoid xmalloc
16925
16926         This removes a direct (but undocumented) dependency of openat on
16927         xalloc, along with an indirect dependency via save-cwd.  It also
16928         removes a dependency of save-cwd on xgetcwd, and thereby
16929         indirectly on xalloc.  This change causes the openat substitute
16930         to fall back on save_cwd when memory is tight, and for save_cwd to
16931         fail instead of dying when memory is tight, but that's good enough.
16932         Problem and initial idea for fix reported by Bastien Roucaries in
16933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16934
16935         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16936         xalloc.h (for xmalloc).
16937         (openat_proc_name): Use malloc, not xmalloc.
16938         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16939         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16940
16941         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16942         This avoids heap allocation for file names whose lengths are in
16943         the range 512..1023, with the upper bound increasing to at most
16944         4031 depending on the platform's PATH_MAX.  (We do not want
16945         pathmax.h here as it might supply a non-constant PATH_MAX.)
16946         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16947         Perhaps they should be moved to malloca.h?
16948         (OPENAT_BUFFER_SIZE): Use them.
16949
16950 2011-01-10  Bruno Haible  <bruno@clisp.org>
16951
16952         doc: Update users.txt.
16953         * users.txt: Add recutils.
16954
16955 2011-01-09  Karl Berry  <karl@gnu.org>
16956
16957         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16958
16959         * doc/configmake.texi: New file.
16960         * doc/gnulib.texi: Include it.
16961         * modules/configmake: Move documentation from here.
16962
16963 2011-01-09  Bruno Haible  <bruno@clisp.org>
16964
16965         Update to Unicode 6.0.0.
16966         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16967         (get_lbp): Update for Unicode 6.0.0.
16968         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16969         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16970         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16971         U+11001, U+11038..U+11046. Remove U+06DE.
16972         (uc_width): Fix bounds of planes.
16973         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16974         lib/uniwidth/width.c.
16975         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16976         trailing whitespace removed.
16977         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16978         without comments, but with the original copyright notice.
16979         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16980         * lib/unicase/ignorable.h: Likewise.
16981         * lib/unicase/tocasefold.h: Likewise.
16982         * lib/unicase/tolower.h: Likewise.
16983         * lib/unicase/totitle.h: Likewise.
16984         * lib/unicase/toupper.h: Likewise.
16985         * lib/unictype/bidi_of.h: Likewise.
16986         * lib/unictype/blocks.h: Likewise.
16987         * lib/unictype/categ_C.h: Likewise.
16988         * lib/unictype/categ_Cn.h: Likewise.
16989         * lib/unictype/categ_L.h: Likewise.
16990         * lib/unictype/categ_Ll.h: Likewise.
16991         * lib/unictype/categ_Lm.h: Likewise.
16992         * lib/unictype/categ_Lo.h: Likewise.
16993         * lib/unictype/categ_Lu.h: Likewise.
16994         * lib/unictype/categ_M.h: Likewise.
16995         * lib/unictype/categ_Mc.h: Likewise.
16996         * lib/unictype/categ_Me.h: Likewise.
16997         * lib/unictype/categ_Mn.h: Likewise.
16998         * lib/unictype/categ_N.h: Likewise.
16999         * lib/unictype/categ_Nd.h: Likewise.
17000         * lib/unictype/categ_No.h: Likewise.
17001         * lib/unictype/categ_P.h: Likewise.
17002         * lib/unictype/categ_Po.h: Likewise.
17003         * lib/unictype/categ_S.h: Likewise.
17004         * lib/unictype/categ_Sc.h: Likewise.
17005         * lib/unictype/categ_Sk.h: Likewise.
17006         * lib/unictype/categ_Sm.h: Likewise.
17007         * lib/unictype/categ_So.h: Likewise.
17008         * lib/unictype/categ_of.h: Likewise.
17009         * lib/unictype/combining.h: Likewise.
17010         * lib/unictype/ctype_alnum.h: Likewise.
17011         * lib/unictype/ctype_alpha.h: Likewise.
17012         * lib/unictype/ctype_graph.h: Likewise.
17013         * lib/unictype/ctype_lower.h: Likewise.
17014         * lib/unictype/ctype_print.h: Likewise.
17015         * lib/unictype/ctype_punct.h: Likewise.
17016         * lib/unictype/ctype_upper.h: Likewise.
17017         * lib/unictype/decdigit.h: Likewise.
17018         * lib/unictype/digit.h: Likewise.
17019         * lib/unictype/numeric.h: Likewise.
17020         * lib/unictype/pr_alphabetic.h: Likewise.
17021         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17022         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17023         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17024         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17025         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17026         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17027         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17028         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17029         * lib/unictype/pr_case_ignorable.h: Likewise.
17030         * lib/unictype/pr_cased.h: Likewise.
17031         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17032         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17033         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17034         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17035         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17036         * lib/unictype/pr_combining.h: Likewise.
17037         * lib/unictype/pr_composite.h: Likewise.
17038         * lib/unictype/pr_currency_symbol.h: Likewise.
17039         * lib/unictype/pr_decimal_digit.h: Likewise.
17040         * lib/unictype/pr_deprecated.h: Likewise.
17041         * lib/unictype/pr_format_control.h: Likewise.
17042         * lib/unictype/pr_grapheme_base.h: Likewise.
17043         * lib/unictype/pr_grapheme_extend.h: Likewise.
17044         * lib/unictype/pr_grapheme_link.h: Likewise.
17045         * lib/unictype/pr_id_continue.h: Likewise.
17046         * lib/unictype/pr_id_start.h: Likewise.
17047         * lib/unictype/pr_ideographic.h: Likewise.
17048         * lib/unictype/pr_lowercase.h: Likewise.
17049         * lib/unictype/pr_math.h: Likewise.
17050         * lib/unictype/pr_numeric.h: Likewise.
17051         * lib/unictype/pr_other_alphabetic.h: Likewise.
17052         * lib/unictype/pr_other_id_continue.h: Likewise.
17053         * lib/unictype/pr_other_math.h: Likewise.
17054         * lib/unictype/pr_punctuation.h: Likewise.
17055         * lib/unictype/pr_sentence_terminal.h: Likewise.
17056         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17057         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17058         * lib/unictype/pr_unified_ideograph.h: Likewise.
17059         * lib/unictype/pr_uppercase.h: Likewise.
17060         * lib/unictype/pr_xid_continue.h: Likewise.
17061         * lib/unictype/pr_xid_start.h: Likewise.
17062         * lib/unictype/scripts.h: Likewise.
17063         * lib/unictype/scripts_byname.gperf: Likewise.
17064         * lib/unictype/sy_java_ident.h: Likewise.
17065         * lib/unigbrk/gbrkprop.h: Likewise.
17066         * lib/unilbrk/lbrkprop1.h: Likewise.
17067         * lib/unilbrk/lbrkprop2.h: Likewise.
17068         * lib/uninorm/decomposition-table2.h: Likewise.
17069         * lib/uniwbrk/wbrkprop.h: Likewise.
17070         * tests/unicase/test-cased.c: Likewise.
17071         * tests/unicase/test-ignorable.c: Likewise.
17072         * tests/unicase/test-uc_tolower.c: Likewise.
17073         * tests/unicase/test-uc_totitle.c: Likewise.
17074         * tests/unicase/test-uc_toupper.c: Likewise.
17075         * tests/unictype/test-categ_C.c: Likewise.
17076         * tests/unictype/test-categ_Cn.c: Likewise.
17077         * tests/unictype/test-categ_L.c: Likewise.
17078         * tests/unictype/test-categ_Ll.c: Likewise.
17079         * tests/unictype/test-categ_Lm.c: Likewise.
17080         * tests/unictype/test-categ_Lo.c: Likewise.
17081         * tests/unictype/test-categ_Lu.c: Likewise.
17082         * tests/unictype/test-categ_M.c: Likewise.
17083         * tests/unictype/test-categ_Mc.c: Likewise.
17084         * tests/unictype/test-categ_Me.c: Likewise.
17085         * tests/unictype/test-categ_Mn.c: Likewise.
17086         * tests/unictype/test-categ_N.c: Likewise.
17087         * tests/unictype/test-categ_Nd.c: Likewise.
17088         * tests/unictype/test-categ_No.c: Likewise.
17089         * tests/unictype/test-categ_P.c: Likewise.
17090         * tests/unictype/test-categ_Po.c: Likewise.
17091         * tests/unictype/test-categ_S.c: Likewise.
17092         * tests/unictype/test-categ_Sc.c: Likewise.
17093         * tests/unictype/test-categ_Sk.c: Likewise.
17094         * tests/unictype/test-categ_Sm.c: Likewise.
17095         * tests/unictype/test-categ_So.c: Likewise.
17096         * tests/unictype/test-ctype_alnum.c: Likewise.
17097         * tests/unictype/test-ctype_alpha.c: Likewise.
17098         * tests/unictype/test-ctype_graph.c: Likewise.
17099         * tests/unictype/test-ctype_lower.c: Likewise.
17100         * tests/unictype/test-ctype_print.c: Likewise.
17101         * tests/unictype/test-ctype_punct.c: Likewise.
17102         * tests/unictype/test-ctype_upper.c: Likewise.
17103         * tests/unictype/test-decdigit.h: Likewise.
17104         * tests/unictype/test-digit.h: Likewise.
17105         * tests/unictype/test-numeric.h: Likewise.
17106         * tests/unictype/test-pr_alphabetic.c: Likewise.
17107         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17108         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17109         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17110         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17111         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17112         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17113         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17114         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17115         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17116         * tests/unictype/test-pr_cased.c: Likewise.
17117         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17118         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17119         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17120         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17121         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17122         * tests/unictype/test-pr_combining.c: Likewise.
17123         * tests/unictype/test-pr_composite.c: Likewise.
17124         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17125         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17126         * tests/unictype/test-pr_deprecated.c: Likewise.
17127         * tests/unictype/test-pr_format_control.c: Likewise.
17128         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17129         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17130         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17131         * tests/unictype/test-pr_id_continue.c: Likewise.
17132         * tests/unictype/test-pr_id_start.c: Likewise.
17133         * tests/unictype/test-pr_ideographic.c: Likewise.
17134         * tests/unictype/test-pr_lowercase.c: Likewise.
17135         * tests/unictype/test-pr_math.c: Likewise.
17136         * tests/unictype/test-pr_numeric.c: Likewise.
17137         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17138         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17139         * tests/unictype/test-pr_other_math.c: Likewise.
17140         * tests/unictype/test-pr_punctuation.c: Likewise.
17141         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17142         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17143         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17144         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17145         * tests/unictype/test-pr_uppercase.c: Likewise.
17146         * tests/unictype/test-pr_xid_continue.c: Likewise.
17147         * tests/unictype/test-pr_xid_start.c: Likewise.
17148         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17149         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17150         changes.
17151         * lib/unictype/categ_Cc.h: Likewise.
17152         * lib/unictype/categ_Cf.h: Likewise.
17153         * lib/unictype/categ_Co.h: Likewise.
17154         * lib/unictype/categ_Cs.h: Likewise.
17155         * lib/unictype/categ_Lt.h: Likewise.
17156         * lib/unictype/categ_Nl.h: Likewise.
17157         * lib/unictype/categ_Pc.h: Likewise.
17158         * lib/unictype/categ_Pd.h: Likewise.
17159         * lib/unictype/categ_Pe.h: Likewise.
17160         * lib/unictype/categ_Pf.h: Likewise.
17161         * lib/unictype/categ_Pi.h: Likewise.
17162         * lib/unictype/categ_Ps.h: Likewise.
17163         * lib/unictype/categ_Z.h: Likewise.
17164         * lib/unictype/categ_Zl.h: Likewise.
17165         * lib/unictype/categ_Zp.h: Likewise.
17166         * lib/unictype/categ_Zs.h: Likewise.
17167         * lib/unictype/ctype_blank.h: Likewise.
17168         * lib/unictype/ctype_cntrl.h: Likewise.
17169         * lib/unictype/ctype_digit.h: Likewise.
17170         * lib/unictype/ctype_space.h: Likewise.
17171         * lib/unictype/ctype_xdigit.h: Likewise.
17172         * lib/unictype/mirror.h: Likewise.
17173         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17174         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17175         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17176         * lib/unictype/pr_bidi_control.h: Likewise.
17177         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17178         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17179         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17180         * lib/unictype/pr_bidi_pdf.h: Likewise.
17181         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17182         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17183         * lib/unictype/pr_dash.h: Likewise.
17184         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17185         * lib/unictype/pr_diacritic.h: Likewise.
17186         * lib/unictype/pr_extender.h: Likewise.
17187         * lib/unictype/pr_hex_digit.h: Likewise.
17188         * lib/unictype/pr_hyphen.h: Likewise.
17189         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17190         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17191         * lib/unictype/pr_ignorable_control.h: Likewise.
17192         * lib/unictype/pr_iso_control.h: Likewise.
17193         * lib/unictype/pr_join_control.h: Likewise.
17194         * lib/unictype/pr_left_of_pair.h: Likewise.
17195         * lib/unictype/pr_line_separator.h: Likewise.
17196         * lib/unictype/pr_logical_order_exception.h: Likewise.
17197         * lib/unictype/pr_non_break.h: Likewise.
17198         * lib/unictype/pr_not_a_character.h: Likewise.
17199         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17200         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17201         * lib/unictype/pr_other_id_start.h: Likewise.
17202         * lib/unictype/pr_other_lowercase.h: Likewise.
17203         * lib/unictype/pr_other_uppercase.h: Likewise.
17204         * lib/unictype/pr_paired_punctuation.h: Likewise.
17205         * lib/unictype/pr_paragraph_separator.h: Likewise.
17206         * lib/unictype/pr_pattern_syntax.h: Likewise.
17207         * lib/unictype/pr_pattern_white_space.h: Likewise.
17208         * lib/unictype/pr_private_use.h: Likewise.
17209         * lib/unictype/pr_quotation_mark.h: Likewise.
17210         * lib/unictype/pr_radical.h: Likewise.
17211         * lib/unictype/pr_soft_dotted.h: Likewise.
17212         * lib/unictype/pr_space.h: Likewise.
17213         * lib/unictype/pr_titlecase.h: Likewise.
17214         * lib/unictype/pr_variation_selector.h: Likewise.
17215         * lib/unictype/pr_white_space.h: Likewise.
17216         * lib/unictype/pr_zero_width.h: Likewise.
17217         * lib/unictype/sy_c_ident.h: Likewise.
17218         * lib/unictype/sy_c_whitespace.h: Likewise.
17219         * lib/unictype/sy_java_whitespace.h: Likewise.
17220         * lib/uninorm/composition-table.gperf: Likewise.
17221         * lib/uninorm/decomposition-table1.h: Likewise.
17222         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17223         LB8.
17224         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17225         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17226         * modules/unictype/*: Bump version number of expected libunistring
17227         version.
17228
17229 2011-01-09  Bruno Haible  <bruno@clisp.org>
17230
17231         Update to Unicode 5.2.0.
17232         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17233         trailing whitespace removed.
17234
17235 2011-01-09  Bruno Haible  <bruno@clisp.org>
17236
17237         New Unicode character properties, from Unicode 5.2.0.
17238         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17239         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17240         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17241         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17242         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17243         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17244         uc_is_property_cased, uc_is_property_case_ignorable,
17245         uc_is_property_changes_when_lowercased,
17246         uc_is_property_changes_when_uppercased,
17247         uc_is_property_changes_when_titlecased,
17248         uc_is_property_changes_when_casefolded,
17249         uc_is_property_changes_when_casemapped): New declarations.
17250         * lib/unictype/pr_byname.gperf: Add the new properties.
17251         * modules/unictype/property-byname (Depends-on): Depend on the new
17252         properties modules.
17253         * modules/unictype/property-all (Depends-on): Likewise.
17254         * MODULES.html.sh (Unicode string functions): Add
17255         unictype/property-case-ignorable, unictype/property-cased,
17256         unictype/property-changes-when-casefolded,
17257         unictype/property-changes-when-casemapped,
17258         unictype/property-changes-when-lowercased,
17259         unictype/property-changes-when-titlecased,
17260         unictype/property-changes-when-uppercased.
17261
17262         New module 'unictype/property-changes-when-casemapped'.
17263         * modules/unictype/property-changes-when-casemapped: New file.
17264         * lib/unictype/pr_changes_when_casemapped.c: New file.
17265         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17266         generated by gen-uni-tables.
17267         * modules/unictype/property-changes-when-casemapped-tests: New file.
17268         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17269         automatically generated by gen-uni-tables.
17270
17271         New module 'unictype/property-changes-when-casefolded'.
17272         * modules/unictype/property-changes-when-casefolded: New file.
17273         * lib/unictype/pr_changes_when_casefolded.c: New file.
17274         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17275         generated by gen-uni-tables.
17276         * modules/unictype/property-changes-when-casefolded-tests: New file.
17277         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17278         automatically generated by gen-uni-tables.
17279
17280         New module 'unictype/property-changes-when-titlecased'.
17281         * modules/unictype/property-changes-when-titlecased: New file.
17282         * lib/unictype/pr_changes_when_titlecased.c: New file.
17283         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17284         generated by gen-uni-tables.
17285         * modules/unictype/property-changes-when-titlecased-tests: New file.
17286         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17287         automatically generated by gen-uni-tables.
17288
17289         New module 'unictype/property-changes-when-uppercased'.
17290         * modules/unictype/property-changes-when-uppercased: New file.
17291         * lib/unictype/pr_changes_when_uppercased.c: New file.
17292         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17293         generated by gen-uni-tables.
17294         * modules/unictype/property-changes-when-uppercased-tests: New file.
17295         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17296         automatically generated by gen-uni-tables.
17297
17298         New module 'unictype/property-changes-when-lowercased'.
17299         * modules/unictype/property-changes-when-lowercased: New file.
17300         * lib/unictype/pr_changes_when_lowercased.c: New file.
17301         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17302         generated by gen-uni-tables.
17303         * modules/unictype/property-changes-when-lowercased-tests: New file.
17304         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17305         automatically generated by gen-uni-tables.
17306
17307         New module 'unictype/property-case-ignorable'.
17308         * modules/unictype/property-case-ignorable: New file.
17309         * lib/unictype/pr_case_ignorable.c: New file.
17310         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17311         by gen-uni-tables.
17312         * modules/unictype/property-case-ignorable-tests: New file.
17313         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17314         generated by gen-uni-tables.
17315
17316         New module 'unictype/property-cased'.
17317         * modules/unictype/property-cased: New file.
17318         * lib/unictype/pr_cased.c: New file.
17319         * lib/unictype/pr_cased.h: New file, automatically generated by
17320         gen-uni-tables.
17321         * modules/unictype/property-cased-tests: New file.
17322         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17323         gen-uni-tables.
17324
17325 2011-01-09  Bruno Haible  <bruno@clisp.org>
17326
17327         Update to Unicode 5.2.0.
17328         * lib/gen-uni-tables.c (output_predicate, output_category,
17329         output_combclass, output_bidi_category, output_decimal_digit_test,
17330         output_decimal_digit, output_digit_test, output_digit,
17331         output_numeric_test, output_numeric, output_mirror, output_scripts,
17332         output_scripts_byname, output_blocks, output_ident_category): Fix
17333         comment header.
17334         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17335         get_wbp.
17336         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17337         items.
17338         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17339         Changes_When_Lowercased, Changes_When_Uppercased,
17340         Changes_When_Titlecased, Changes_When_Casefolded,
17341         Changes_When_Casemapped.
17342         (is_property_alphabetic, is_property_default_ignorable_code_point):
17343         Update for Unicode 5.2.0.
17344         (is_property_cased, is_property_case_ignorable,
17345         is_property_changes_when_lowercased,
17346         is_property_changes_when_uppercased,
17347         is_property_changes_when_titlecased,
17348         is_property_changes_when_casefolded,
17349         is_property_changes_when_casemapped): New functions.
17350         (output_properties): Output also the properties cased, case_ignorable,
17351         changes_when_lowercased, changes_when_uppercased,
17352         changes_when_titlecased, changes_when_casefolded,
17353         changes_when_casemapped.
17354         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17355         Unicode TR#11 revision 17 -> 19.
17356         (LBP_CP): New enumeration value.
17357         (LBP_*): Adjust values accordingly.
17358         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17359         TR#14 revision 22 -> 24.
17360         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17361         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17362         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17363         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17364         is_WBP_MIDLETTER.
17365         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17366         the code1 and code2 of each composition rule.
17367         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17368         * lib/unicase/ignorable.h: Likewise.
17369         * lib/unicase/tocasefold.h: Likewise.
17370         * lib/unicase/tolower.h: Likewise.
17371         * lib/unicase/totitle.h: Likewise.
17372         * lib/unicase/toupper.h: Likewise.
17373         * lib/unictype/bidi_of.h: Likewise.
17374         * lib/unictype/blocks.h: Likewise.
17375         * lib/unictype/categ_C.h: Likewise.
17376         * lib/unictype/categ_Cf.h: Likewise.
17377         * lib/unictype/categ_Cn.h: Likewise.
17378         * lib/unictype/categ_L.h: Likewise.
17379         * lib/unictype/categ_Ll.h: Likewise.
17380         * lib/unictype/categ_Lm.h: Likewise.
17381         * lib/unictype/categ_Lo.h: Likewise.
17382         * lib/unictype/categ_Lu.h: Likewise.
17383         * lib/unictype/categ_M.h: Likewise.
17384         * lib/unictype/categ_Mc.h: Likewise.
17385         * lib/unictype/categ_Mn.h: Likewise.
17386         * lib/unictype/categ_N.h: Likewise.
17387         * lib/unictype/categ_Nd.h: Likewise.
17388         * lib/unictype/categ_Nl.h: Likewise.
17389         * lib/unictype/categ_No.h: Likewise.
17390         * lib/unictype/categ_P.h: Likewise.
17391         * lib/unictype/categ_Pd.h: Likewise.
17392         * lib/unictype/categ_Po.h: Likewise.
17393         * lib/unictype/categ_S.h: Likewise.
17394         * lib/unictype/categ_Sc.h: Likewise.
17395         * lib/unictype/categ_So.h: Likewise.
17396         * lib/unictype/categ_of.h: Likewise.
17397         * lib/unictype/combining.h: Likewise.
17398         * lib/unictype/ctype_alnum.h: Likewise.
17399         * lib/unictype/ctype_alpha.h: Likewise.
17400         * lib/unictype/ctype_graph.h: Likewise.
17401         * lib/unictype/ctype_lower.h: Likewise.
17402         * lib/unictype/ctype_print.h: Likewise.
17403         * lib/unictype/ctype_punct.h: Likewise.
17404         * lib/unictype/ctype_upper.h: Likewise.
17405         * lib/unictype/decdigit.h: Likewise.
17406         * lib/unictype/digit.h: Likewise.
17407         * lib/unictype/numeric.h: Likewise.
17408         * lib/unictype/pr_alphabetic.h: Likewise.
17409         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17410         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17411         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17412         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17413         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17414         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17415         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17416         * lib/unictype/pr_combining.h: Likewise.
17417         * lib/unictype/pr_composite.h: Likewise.
17418         * lib/unictype/pr_currency_symbol.h: Likewise.
17419         * lib/unictype/pr_dash.h: Likewise.
17420         * lib/unictype/pr_decimal_digit.h: Likewise.
17421         * lib/unictype/pr_deprecated.h: Likewise.
17422         * lib/unictype/pr_diacritic.h: Likewise.
17423         * lib/unictype/pr_extender.h: Likewise.
17424         * lib/unictype/pr_grapheme_base.h: Likewise.
17425         * lib/unictype/pr_grapheme_extend.h: Likewise.
17426         * lib/unictype/pr_grapheme_link.h: Likewise.
17427         * lib/unictype/pr_id_continue.h: Likewise.
17428         * lib/unictype/pr_id_start.h: Likewise.
17429         * lib/unictype/pr_ideographic.h: Likewise.
17430         * lib/unictype/pr_ignorable_control.h: Likewise.
17431         * lib/unictype/pr_logical_order_exception.h: Likewise.
17432         * lib/unictype/pr_lowercase.h: Likewise.
17433         * lib/unictype/pr_numeric.h: Likewise.
17434         * lib/unictype/pr_other_alphabetic.h: Likewise.
17435         * lib/unictype/pr_punctuation.h: Likewise.
17436         * lib/unictype/pr_sentence_terminal.h: Likewise.
17437         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17438         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17439         * lib/unictype/pr_unified_ideograph.h: Likewise.
17440         * lib/unictype/pr_uppercase.h: Likewise.
17441         * lib/unictype/pr_xid_continue.h: Likewise.
17442         * lib/unictype/pr_xid_start.h: Likewise.
17443         * lib/unictype/pr_zero_width.h: Likewise.
17444         * lib/unictype/scripts.h: Likewise.
17445         * lib/unictype/scripts_byname.gperf: Likewise.
17446         * lib/unictype/sy_java_ident.h: Likewise.
17447         * lib/unigbrk/gbrkprop.h: Likewise.
17448         * lib/unilbrk/lbrkprop1.h: Likewise.
17449         * lib/unilbrk/lbrkprop2.h: Likewise.
17450         * lib/unilbrk/lbrktables.h: Likewise.
17451         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17452         LBP_CP. Implement rule LB30.
17453         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17454         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17455         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17456         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17457         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17458         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17459         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17460         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17461         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17462         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17463         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17464         bits instead of 16 bits in the code1 and code2 of each composition
17465         rule.
17466         (uc_composition): Update for Unicode 5.2.0.
17467         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17468         * lib/uninorm/decomposition-table2.h: Likewise.
17469         * lib/uniwbrk/wbrkprop.h: Likewise.
17470         * tests/unicase/test-cased.c: Likewise.
17471         * tests/unicase/test-ignorable.c: Likewise.
17472         * tests/unicase/test-uc_tolower.c: Likewise.
17473         * tests/unicase/test-uc_totitle.c: Likewise.
17474         * tests/unicase/test-uc_toupper.c: Likewise.
17475         * tests/unictype/test-categ_C.c: Likewise.
17476         * tests/unictype/test-categ_Cf.c: Likewise.
17477         * tests/unictype/test-categ_Cn.c: Likewise.
17478         * tests/unictype/test-categ_L.c: Likewise.
17479         * tests/unictype/test-categ_Ll.c: Likewise.
17480         * tests/unictype/test-categ_Lm.c: Likewise.
17481         * tests/unictype/test-categ_Lo.c: Likewise.
17482         * tests/unictype/test-categ_Lu.c: Likewise.
17483         * tests/unictype/test-categ_M.c: Likewise.
17484         * tests/unictype/test-categ_Mc.c: Likewise.
17485         * tests/unictype/test-categ_Mn.c: Likewise.
17486         * tests/unictype/test-categ_N.c: Likewise.
17487         * tests/unictype/test-categ_Nd.c: Likewise.
17488         * tests/unictype/test-categ_Nl.c: Likewise.
17489         * tests/unictype/test-categ_No.c: Likewise.
17490         * tests/unictype/test-categ_P.c: Likewise.
17491         * tests/unictype/test-categ_Pd.c: Likewise.
17492         * tests/unictype/test-categ_Po.c: Likewise.
17493         * tests/unictype/test-categ_S.c: Likewise.
17494         * tests/unictype/test-categ_Sc.c: Likewise.
17495         * tests/unictype/test-categ_So.c: Likewise.
17496         * tests/unictype/test-ctype_alnum.c: Likewise.
17497         * tests/unictype/test-ctype_alpha.c: Likewise.
17498         * tests/unictype/test-ctype_graph.c: Likewise.
17499         * tests/unictype/test-ctype_lower.c: Likewise.
17500         * tests/unictype/test-ctype_print.c: Likewise.
17501         * tests/unictype/test-ctype_punct.c: Likewise.
17502         * tests/unictype/test-ctype_upper.c: Likewise.
17503         * tests/unictype/test-decdigit.h: Likewise.
17504         * tests/unictype/test-digit.h: Likewise.
17505         * tests/unictype/test-numeric.h: Likewise.
17506         * tests/unictype/test-pr_alphabetic.c: Likewise.
17507         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17508         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17509         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17510         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17511         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17512         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17513         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17514         * tests/unictype/test-pr_combining.c: Likewise.
17515         * tests/unictype/test-pr_composite.c: Likewise.
17516         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17517         * tests/unictype/test-pr_dash.c: Likewise.
17518         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17519         * tests/unictype/test-pr_deprecated.c: Likewise.
17520         * tests/unictype/test-pr_diacritic.c: Likewise.
17521         * tests/unictype/test-pr_extender.c: Likewise.
17522         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17523         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17524         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17525         * tests/unictype/test-pr_id_continue.c: Likewise.
17526         * tests/unictype/test-pr_id_start.c: Likewise.
17527         * tests/unictype/test-pr_ideographic.c: Likewise.
17528         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17529         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17530         * tests/unictype/test-pr_lowercase.c: Likewise.
17531         * tests/unictype/test-pr_numeric.c: Likewise.
17532         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17533         * tests/unictype/test-pr_punctuation.c: Likewise.
17534         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17535         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17536         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17537         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17538         * tests/unictype/test-pr_uppercase.c: Likewise.
17539         * tests/unictype/test-pr_xid_continue.c: Likewise.
17540         * tests/unictype/test-pr_xid_start.c: Likewise.
17541         * tests/unictype/test-pr_zero_width.c: Likewise.
17542         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17543         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17544         changed behaviour: line breaking is now disallowed between a letter
17545         or '=' and '('.
17546         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17547         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17548         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17549         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17550         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17551         lib/uniwidth/width.c.
17552         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17553         without comments, but with the original copyright notice.
17554         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17555         changes.
17556         * lib/unictype/categ_Cc.h: Likewise.
17557         * lib/unictype/categ_Co.h: Likewise.
17558         * lib/unictype/categ_Cs.h: Likewise.
17559         * lib/unictype/categ_Lt.h: Likewise.
17560         * lib/unictype/categ_Me.h: Likewise.
17561         * lib/unictype/categ_Pc.h: Likewise.
17562         * lib/unictype/categ_Pe.h: Likewise.
17563         * lib/unictype/categ_Pf.h: Likewise.
17564         * lib/unictype/categ_Pi.h: Likewise.
17565         * lib/unictype/categ_Ps.h: Likewise.
17566         * lib/unictype/categ_Sk.h: Likewise.
17567         * lib/unictype/categ_Sm.h: Likewise.
17568         * lib/unictype/categ_Z.h: Likewise.
17569         * lib/unictype/categ_Zl.h: Likewise.
17570         * lib/unictype/categ_Zp.h: Likewise.
17571         * lib/unictype/categ_Zs.h: Likewise.
17572         * lib/unictype/ctype_blank.h: Likewise.
17573         * lib/unictype/ctype_cntrl.h: Likewise.
17574         * lib/unictype/ctype_digit.h: Likewise.
17575         * lib/unictype/ctype_space.h: Likewise.
17576         * lib/unictype/ctype_xdigit.h: Likewise.
17577         * lib/unictype/mirror.h: Likewise.
17578         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17579         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17580         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17581         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17582         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17583         * lib/unictype/pr_bidi_control.h: Likewise.
17584         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17585         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17586         * lib/unictype/pr_bidi_pdf.h: Likewise.
17587         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17588         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17589         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17590         * lib/unictype/pr_format_control.h: Likewise.
17591         * lib/unictype/pr_hex_digit.h: Likewise.
17592         * lib/unictype/pr_hyphen.h: Likewise.
17593         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17594         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17595         * lib/unictype/pr_iso_control.h: Likewise.
17596         * lib/unictype/pr_join_control.h: Likewise.
17597         * lib/unictype/pr_left_of_pair.h: Likewise.
17598         * lib/unictype/pr_line_separator.h: Likewise.
17599         * lib/unictype/pr_math.h: Likewise.
17600         * lib/unictype/pr_non_break.h: Likewise.
17601         * lib/unictype/pr_not_a_character.h: Likewise.
17602         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17603         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17604         * lib/unictype/pr_other_id_continue.h: Likewise.
17605         * lib/unictype/pr_other_id_start.h: Likewise.
17606         * lib/unictype/pr_other_lowercase.h: Likewise.
17607         * lib/unictype/pr_other_math.h: Likewise.
17608         * lib/unictype/pr_other_uppercase.h: Likewise.
17609         * lib/unictype/pr_paired_punctuation.h: Likewise.
17610         * lib/unictype/pr_paragraph_separator.h: Likewise.
17611         * lib/unictype/pr_pattern_syntax.h: Likewise.
17612         * lib/unictype/pr_pattern_white_space.h: Likewise.
17613         * lib/unictype/pr_private_use.h: Likewise.
17614         * lib/unictype/pr_quotation_mark.h: Likewise.
17615         * lib/unictype/pr_radical.h: Likewise.
17616         * lib/unictype/pr_soft_dotted.h: Likewise.
17617         * lib/unictype/pr_space.h: Likewise.
17618         * lib/unictype/pr_titlecase.h: Likewise.
17619         * lib/unictype/pr_variation_selector.h: Likewise.
17620         * lib/unictype/pr_white_space.h: Likewise.
17621         * lib/unictype/sy_c_ident.h: Likewise.
17622         * lib/unictype/sy_c_whitespace.h: Likewise.
17623         * lib/unictype/sy_java_whitespace.h: Likewise.
17624         * modules/uni*/*: Bump version number of expected libunistring version.
17625         Reported by Simon Josefsson.
17626
17627 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17628
17629         useless-if-before-free: fix typo in --help and make the internal,
17630         automatic version date update process work once again.
17631         --help output contained a NUL character instead of the
17632         backslash-zero that was intended.  Also, the "must lie within
17633         the first 8 lines" line is on line 9, and hence not getting
17634         automatically updated.
17635         * build-aux/useless-if-before-free: Fix the former by adding a
17636         backslash, and the latter by condensing the three lines of what-it-does
17637         to a single line, leaving one line of slack for the future.
17638
17639 2011-01-09  Bruno Haible  <bruno@clisp.org>
17640
17641         uniwidth/width: Fix width of U+1D173..U+1D17A.
17642         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17643         symbolic_width, output_width_property_test): New functions.
17644         (main): Invoke output_nonspacing_property, output_width_property_test.
17645         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17646         U+1D173..U+1D17A.
17647         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17648         1.
17649         * modules/uniwidth/*: Bump version number of expected libunistring
17650         version.
17651         * modules/unilbrk/*: Likewise.
17652
17653 2011-01-08  Bruno Haible  <bruno@clisp.org>
17654
17655         uninorm tests: Preserve copyright of Unicode data file.
17656         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17657         Mention modifications.
17658
17659 2011-01-08  Bruno Haible  <bruno@clisp.org>
17660
17661         gen-uni-tables: Prepare for Unicode 5.2.0.
17662         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17663         (debug_output_lbp, output_lbp): Update.
17664
17665 2011-01-08  Bruno Haible  <bruno@clisp.org>
17666
17667         unilbrk: Clarify gen-uni-tables.c code.
17668         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17669         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17670         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17671
17672 2011-01-07  Bruno Haible  <bruno@clisp.org>
17673
17674         strtod: Restore errno when successfully parsing Infinity or NaN.
17675         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17676         restore the original errno.
17677
17678 2011-01-07  Bruno Haible  <bruno@clisp.org>
17679
17680         remove test: Avoid failure on HP-UX 11.
17681         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17682
17683 2011-01-07  Bruno Haible  <bruno@clisp.org>
17684
17685         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17686         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17687         error code.
17688
17689 2011-01-07  Pádraig Brady <P@draigBrady.com>
17690
17691         ignore-value: fixup comments, and add Eric Blake
17692         as an author since he rewrote the macros.
17693         * lib/ignore-value.h (ignore_value):  State that
17694         we now support aggregates.  Also specify exactly
17695         when the GCC warn_unused_result feature was added.
17696
17697 2011-01-06  Eric Blake  <eblake@redhat.com>
17698
17699         ignore-value: support aggregate types
17700         * lib/ignore-value.h (ignore_value): Provide separate gcc
17701         definition.
17702         * modules/ignore-value-tests: New test module.
17703         * tests/test-ignore-value.c: New test.
17704
17705         maint.mk: improve sc_prohibit_strcmp regex
17706         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17707         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17708         definition of STRNEQ.
17709
17710         signal: work around Haiku issue with SIGBUS
17711         * lib/siglist.h: Add comment.
17712         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17713         strsignal's favoring of SIGSEGV.
17714         * tests/test-signal.c (main): Avoid test failure.
17715         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17716         Reported by Scott McCreary.
17717
17718         maint.mk: add pre-release check to ensure submodule commits are public
17719         * top/maint.mk (public-submodule-commit): New rule.
17720         (submodule-checks): New variable.
17721         (alpha beta stable): Depend on the variable.
17722
17723 2011-01-05  Pádraig Brady <P@draigBrady.com>
17724         and Jim Meyering  <meyering@redhat.com>
17725
17726         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17727         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17728         (ATTRIBUTE_DEPRECATED): Define.
17729         (_ignore_case): New function.
17730         (ignore_value): New macro, to replace the old function.
17731         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17732         * modules/ignore-value (Depends-on): Add stdint.
17733
17734 2011-01-04  Eric Blake  <eblake@redhat.com>
17735
17736         doc: regenerate INSTALL
17737         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17738         @firstparagraphindent support, now that autoconf dropped it.
17739         (INSTALL_PRELUDE): Reinstate old macro.
17740         * doc/install.texi: Resync from autoconf.
17741         * doc/INSTALL: Reflect recent autoconf update.
17742         * doc/INSTALL.ISO: Likewise.
17743         * doc/INSTALL.UTF-8: Likewise.
17744         Reported by Karl Berry.
17745
17746 2011-01-04  Bruce Korb  <address@hidden>
17747
17748         git-version-gen: avoid a sub-shell
17749         * build-aux/git-version-gen: Redirect stderr in `...` via
17750         "exec 2>...", rather than via an added sub-shell.
17751
17752 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17753
17754         git-version-gen: use (...) rather than sh -c '...'
17755         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17756         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17757
17758 2011-01-03  Jim Meyering  <meyering@redhat.com>
17759
17760         git-version-gen: convert leading TABs to spaces
17761         * build-aux/git-version-gen: Expand leading TABs.
17762
17763         git-version-gen: handle failed "git rev-list"
17764         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17765         from git and proceeding as if it had succeeded but printed no SHA1
17766         checksums, suppress the diagnostic and handle the failure.
17767         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17768
17769         git-version-gen: include command name in one more diagnostic
17770         * build-aux/git-version-gen: When the required .tarball-version file
17771         was missing or unreadable, you might see the diagnostic from "cat",
17772         but no trace of the name of the invoking script.  Now, you still see
17773         the diagnostic from cat, but also get one from "git-version-gen: ".
17774         Inspired by a patch from Bruce Korb.
17775
17776         update-copyright: adjust test to match changed code
17777         * tests/test-update-copyright.sh: Change test's expected output
17778         to match new actual output.
17779
17780 2011-01-02  Bruno Haible  <bruno@clisp.org>
17781
17782         getlogin_r: Avoid test failure on HP-UX 11.
17783         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17784         ERANGE when the second argument is zero.
17785         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17786         portability problem.
17787
17788 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17789
17790         * build-aux/update-copyright: doc Simon's changes
17791
17792 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17793
17794         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17795         environment variable.
17796
17797 2011-01-02  Bruno Haible  <bruno@clisp.org>
17798
17799         unigbrk: Avoid gcc warnings.
17800         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17801         unused variable.
17802         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17803         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17804         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17805         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17806         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17807         Change type of first argument to 'const char *'.
17808         (main): Remove unused variable.
17809         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17810         type of first argument to 'const char *'.
17811         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17812         Likewise.
17813         (main): Change type of variable 's'.
17814         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17815         to 'int'.
17816
17817 2011-01-02  Bruno Haible  <bruno@clisp.org>
17818
17819         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17820         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17821         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17822         bug.
17823         * lib/pwrite.c: Undo 2010-12-31 patch.
17824         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17825
17826 2011-01-02  Bruno Haible  <bruno@clisp.org>
17827
17828         pread: Fix test whether it works.
17829         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17830
17831 2011-01-02  Bruno Haible  <bruno@clisp.org>
17832
17833         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17834         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17835         ends in "6". Don't require a specific month name. Try also the locale
17836         names found on HP-UX 11 and Solaris 7.
17837
17838 2011-01-02  Bruno Haible  <bruno@clisp.org>
17839
17840         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17841         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17842         C linkage.
17843         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17844
17845 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17846
17847         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17848         for consistency, since the "cluster" term is not used elsewhere.
17849         * lib/unigbrk.in.h: Update name.
17850         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17851         * lib/unigbrk/u16-grapheme-next.c: Update name.
17852         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17853         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17854         * lib/unigbrk/u32-grapheme-next.c: Update name.
17855         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17856         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17857         * lib/unigbrk/u8-grapheme-next.c: Update name.
17858         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17859         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17860         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17861         Suggested by Bruno Haible.
17862
17863 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17864
17865         Remove module 'u8-grapheme-len' as too redundant with
17866         'u8-grapheme-next'.
17867         * modules/unigbrk/u8-grapheme-len: Delete file.
17868         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17869         * lib/unigbrk.in.h: Remove prototype for deleted function.
17870         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17871         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17872
17873         Remove module 'u16-grapheme-len' as too redundant with
17874         'u16-grapheme-next'.
17875         * modules/unigbrk/u16-grapheme-len: Delete file.
17876         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17877         * lib/unigbrk.in.h: Remove prototype for deleted function.
17878         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17879         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17880
17881         Remove module 'u32-grapheme-len' as too redundant with
17882         'u32-grapheme-next'.
17883         * modules/unigbrk/u32-grapheme-len: Delete file.
17884         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17885         * lib/unigbrk.in.h: Remove prototype for deleted function.
17886         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17887         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17888
17889         Suggested by Bruno Haible.
17890
17891 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17892
17893         * unigbrk.in.h: Fix typo: "ben" => "been".
17894         Reported by Bruno Haible.
17895
17896 2011-01-01  Jim Meyering  <meyering@redhat.com>
17897
17898         maint: update almost all copyright ranges to include 2011
17899         Run the new "make update-copyright" rule.
17900
17901 2011-01-01  Jim Meyering  <meyering@redhat.com>
17902
17903         maint: update-copyright: exempt doc/INSTALL*
17904         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17905         since they are generated.  Suggested by Bruno Haible.
17906
17907 2011-01-01  Jim Meyering  <meyering@redhat.com>
17908
17909         maint: refine the update-copyright rule
17910         * Makefile (update-copyright): Also exclude any file that includes
17911         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17912         code that merely generates the comment.
17913
17914 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17915
17916         New module 'u8-grapheme-len'.
17917         * modules/unigbrk/u8-grapheme-len: New file.
17918         * modules/unigbrk/u8-grapheme-len-tests: New file.
17919         * lib/unigbrk.in.h: Add prototype for new function.
17920         * lib/unigbrk/u8-grapheme-len.c: New file.
17921         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17922
17923         New module 'u16-grapheme-len'.
17924         * modules/unigbrk/u16-grapheme-len: New file.
17925         * modules/unigbrk/u16-grapheme-len-tests: New file.
17926         * lib/unigbrk.in.h: Add prototype for new function.
17927         * lib/unigbrk/u16-grapheme-len.c: New file.
17928         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17929
17930         New module 'u32-grapheme-len'.
17931         * modules/unigbrk/u32-grapheme-len: New file.
17932         * modules/unigbrk/u32-grapheme-len-tests: New file.
17933         * lib/unigbrk.in.h: Add prototype for new function.
17934         * lib/unigbrk/u32-grapheme-len.c: New file.
17935         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17936
17937         New module 'u8-grapheme-next'.
17938         * modules/unigbrk/u8-grapheme-next: New file.
17939         * modules/unigbrk/u8-grapheme-next-tests: New file.
17940         * lib/unigbrk.in.h: Add prototype for new function.
17941         * lib/unigbrk/u8-grapheme-next.c: New file.
17942         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17943
17944         New module 'u16-grapheme-next'.
17945         * modules/unigbrk/u16-grapheme-next: New file.
17946         * modules/unigbrk/u16-grapheme-next-tests: New file.
17947         * lib/unigbrk.in.h: Add prototype for new function.
17948         * lib/unigbrk/u16-grapheme-next.c: New file.
17949         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17950
17951         New module 'u32-grapheme-next'.
17952         * modules/unigbrk/u32-grapheme-next: New file.
17953         * modules/unigbrk/u32-grapheme-next-tests: New file.
17954         * lib/unigbrk.in.h: Add prototype for new function.
17955         * lib/unigbrk/u32-grapheme-next.c: New file.
17956         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17957
17958         New module 'u8-grapheme-prev'.
17959         * modules/unigbrk/u8-grapheme-prev: New file.
17960         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17961         * lib/unigbrk.in.h: Add prototype for new function.
17962         * lib/unigbrk/u8-grapheme-prev.c: New file.
17963         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17964
17965         New module 'u16-grapheme-prev'.
17966         * modules/unigbrk/u16-grapheme-prev: New file.
17967         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17968         * lib/unigbrk.in.h: Add prototype for new function.
17969         * lib/unigbrk/u16-grapheme-prev.c: New file.
17970         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17971
17972         New module 'u32-grapheme-prev'.
17973         * modules/unigbrk/u32-grapheme-prev: New file.
17974         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17975         * lib/unigbrk.in.h: Add prototype for new function.
17976         * lib/unigbrk/u32-grapheme-prev.c: New file.
17977         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17978
17979         New module 'u8-grapheme-breaks'.
17980         * modules/unigbrk/u8-grapheme-breaks: New file.
17981         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17982         * lib/unigbrk.in.h: Add prototype for new function.
17983         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17984         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17985
17986         New module 'u16-grapheme-breaks'.
17987         * modules/unigbrk/u16-grapheme-breaks: New file.
17988         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17989         * lib/unigbrk.in.h: Add prototype for new function.
17990         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17991         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17992
17993         New module 'u32-grapheme-breaks'.
17994         * modules/unigbrk/u32-grapheme-breaks: New file.
17995         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17996         * lib/unigbrk.in.h: Add prototype for new function.
17997         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17998         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17999
18000         New module 'ulc-grapheme-breaks'.
18001         * modules/unigbrk/ulc-grapheme-breaks: New file.
18002         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18003         * m4/locale-ar.m4: New file.
18004         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18005         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18006         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18007
18008 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18009
18010         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18011         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18012         modified how this file was generated before I initially submitted
18013         the module, but failed to regenerate it.  This meant that several
18014         of the level2 entries were wrong.
18015         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18016         Remove the division-by-2 that is folded into the table now that
18017         gbrkprop.h has been regenerated properly.  Now -1 entries are
18018         handled correctly.
18019
18020         New module 'unigbrk/uc-gbrk-prop-tests'.
18021         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18022         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18023         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18024         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18025
18026 2011-01-01  Bruno Haible  <bruno@clisp.org>
18027
18028         Avoid use of hexadecimal escapes.
18029         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18030         instead of hexadecimal escapes.
18031
18032 2011-01-01  Jim Meyering  <meyering@redhat.com>
18033
18034         maint: new rule to update copyright year ranges
18035         * Makefile (update-copyright): New rule.
18036
18037         maint: indent with TABs in Makefile
18038         * Makefile: Expand leading sequences of spaces to TABs
18039
18040         version-etc: update the copyright year it reports
18041         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18042
18043 2010-12-31  Bruno Haible  <bruno@clisp.org>
18044
18045         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18046         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18047         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18048         zero.
18049
18050 2010-12-31  Bruno Haible  <bruno@clisp.org>
18051
18052         pwrite: Work around HP-UX 11.11 bug.
18053         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18054         works and set REPLACE_PWRITE if not.
18055         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18056         function.
18057         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18058
18059 2010-12-31  Bruno Haible  <bruno@clisp.org>
18060
18061         pread: Work around HP-UX 11 bugs.
18062         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18063         and set REPLACE_PREAD if not.
18064         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18065
18066 2010-12-31  Eric Blake  <eblake@redhat.com>
18067
18068         nl_langinfo: fix YESEXPR on Irix 6.5
18069         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18070         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18071         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18072         it.
18073
18074 2010-12-31  Bruno Haible  <bruno@clisp.org>
18075
18076         iconv: Document HP-UX 11 bug.
18077         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18078
18079 2010-12-31  Bruno Haible  <bruno@clisp.org>
18080
18081         ldexpl: Fix link error on HP-UX 11.
18082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18083         LDEXPL_LIBM, using $ISNANL_LIBM.
18084
18085 2010-12-31  Eric Blake  <eblake@redhat.com>
18086
18087         ftello: avoid compilation failure with SunStudio c89
18088         * lib/ftello.c (ftello): Use lseek, not llseek.
18089
18090         tests: avoid failing coreutils tests on cygwin
18091         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18092         (create_exe_shims_): Return 0 when skipping.
18093
18094 2010-12-31  Bruno Haible  <bruno@clisp.org>
18095
18096         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18097         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18098
18099 2010-12-31  Bruno Haible  <bruno@clisp.org>
18100
18101         waitpid: Fix link error in C++ mode.
18102         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18103
18104 2010-12-31  Bruno Haible  <bruno@clisp.org>
18105
18106         isnan: Use GCC built-ins when possible.
18107         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18108         __builtin_isnan.
18109         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18110         (isnan): Define using GCC built-ins for GCC >= 4.0.
18111
18112 2010-12-31  Bruno Haible  <bruno@clisp.org>
18113
18114         isnand: Fix mistake.
18115         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18116         __builtin_isnand.
18117
18118 2010-12-31  Bruno Haible  <bruno@clisp.org>
18119
18120         open: Avoid C++ error on HP-UX 11.
18121         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18122
18123 2010-12-31  Bruno Haible  <bruno@clisp.org>
18124
18125         time_r: Add missing declarations on HP-UX 11.
18126         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18127         instead of HAVE_LOCALTIME_R.
18128         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18129         HAVE_LOCALTIME_R always.
18130         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18131         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18132         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18133         HAVE_LOCALTIME_R.
18134         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18135         * doc/posix-functions/localtime_r.texi: Likewise.
18136
18137 2010-12-29  Eric Blake  <eblake@redhat.com>
18138
18139         mountlist: tweak previous commit
18140         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18141         Reported by Paul Eggert.
18142
18143         mountlist: fix local drive detection on cygwin
18144         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18145         that works for cygwin.
18146
18147 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18148
18149         ftoastr, snprintf: ftoastr + snprintf module
18150         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18151         since the snprintf module now should be good enough here.
18152         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18153         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18154         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18155         GNULIB_SNPRINTF only for the test directory, and the latter
18156         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18157         seems to suffice by itself.
18158
18159 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18160
18161         alloca: one step towards thread-safety
18162         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18163         need for a static variable.  All callers changed.  This does not
18164         make the alloca replacement thread-safe, but it's one step.
18165
18166         tests: minor indenting change
18167         * tests/init.sh: Sync from coreutils housekeeping patch
18168         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18169         to keep lines within 80 columns.
18170
18171 2010-12-28  Jim Meyering  <meyering@redhat.com>
18172
18173         regex: don't infloop on persistent failing calloc
18174         * lib/regexec.c (build_trtable): Return failure indication upon
18175         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18176         In glibc, this was fixed for version 2.13:
18177         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18178
18179 2010-12-28  Bruno Haible  <bruno@clisp.org>
18180             Paul Eggert <eggert@cs.ucla.edu>
18181
18182         linkat: Make implementation robust against system behaviour variations.
18183         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18184         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18185         way, and to -2 if it needs a generic runtime test.
18186         * lib/linkat.c (solaris_optimized_link_immediate,
18187         solaris_optimized_link_follow): New functions.
18188         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18189         (check_same_link): Use it.
18190
18191 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18192
18193         New module 'unigbrk/base'.
18194         * modules/unigbrk/base: New file.
18195         * lib/unigbrk.in.h: New file.
18196
18197         New module 'unigbrk/uc-gbrk-prop'.
18198         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18199         * modules/unigbrk/uc-gbrk-prop: New file.
18200         * lib/unigbrk/gbrkprop.h: New file.
18201         * lib/unigbrk/uc-gbrk-prop.c: New file.
18202
18203         New module 'unigbrk/uc-is-grapheme-break'.
18204         * modules/unigbrk/uc-is-grapheme-break: New file.
18205         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18206         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18207         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18208         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18209         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18210
18211         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18212
18213 2010-12-27  Bruno Haible  <bruno@clisp.org>
18214
18215         linkat test: Avoid failure on Solaris 11 2010-11.
18216         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18217
18218 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18219
18220         utimens: work around glibc rounding bug on more platforms
18221         * lib/utimens.c (fdutimens): Work around rounding bug even if
18222         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18224
18225 2010-12-27  Bruno Haible  <bruno@clisp.org>
18226
18227         select tests: Improve comments.
18228         * tests/test-select.c (do_select): Add comments.
18229
18230 2010-12-27  Bruno Haible  <bruno@clisp.org>
18231
18232         select tests: Safer way of handling timeout.
18233         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18234         at every invocation.
18235
18236 2010-12-27  Bruno Haible  <bruno@clisp.org>
18237
18238         select tests: Use 'bool' where appropriate.
18239         * tests/test-select.c (connect_to_socket): Change argument type to
18240         'bool'.
18241
18242 2010-12-27  Bruno Haible  <bruno@clisp.org>
18243
18244         select tests: Use existing modules.
18245         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18246         (configure.ac): Don't test for unistd.h.
18247         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18248         declared in <unistd.h>.
18249
18250 2010-12-27  Bruno Haible  <bruno@clisp.org>
18251
18252         mbrtowc: Work around a Solaris 7 bug.
18253         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18254         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18255         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18256         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18257         MBRTOWC_NULL_ARG1_BUG.
18258         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18259         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18260         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18261         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18262
18263 2010-12-27  Jim Meyering  <meyering@redhat.com>
18264
18265         read-file.c: tweak syntax
18266         * lib/read-file.c (fread_file): Remove space after "*" in function
18267         definitions.
18268
18269 2010-12-27  Bruno Haible  <bruno@clisp.org>
18270
18271         times test: Avoid gcc warnings on OSF/1.
18272         * tests/test-times.c (main): Cast printf arguments from clock_t to
18273         'long int'.
18274
18275 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18276
18277         utimens: work around glibc rounding bug on older Linux kernels
18278         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18279         on Linux with a glibc whose utimes might not work, then work
18280         around a longstanding glibc bug involving rounding rather than
18281         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18282         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18283
18284 2010-12-26  Bruno Haible  <bruno@clisp.org>
18285
18286         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18287         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18288         _GL_CXXALIAS_SYS.
18289         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18290
18291 2010-12-26  Bruno Haible  <bruno@clisp.org>
18292
18293         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18294         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18295         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18296         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18297         looking for the declaration.
18298         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18299         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18300         problem.
18301         * doc/posix-functions/inet_pton.texi: Likewise.
18302
18303 2010-12-26  Bruno Haible  <bruno@clisp.org>
18304
18305         arpa_inet: Use the common idioms with C++ support.
18306         * lib/arpa_inet.in.h: Include c++defs.h.
18307         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18308         support.
18309         * modules/arpa_inet (Depends-on): Add c++defs.
18310         (Makefile.am): Substitute the contents of c++defs.h.
18311         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18312         * modules/arpa_inet-c++-tests: New file.
18313         * tests/test-arpa_inet-c++.cc: New file.
18314
18315 2010-12-25  Bruno Haible  <bruno@clisp.org>
18316
18317         Fix more C++ link errors on Solaris 8.
18318         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18319         $(LIB_EACCESS).
18320         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18321         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18322         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18323         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18324         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18325
18326 2010-12-25  Bruno Haible  <bruno@clisp.org>
18327
18328         printf-posix: Fix link error when a non-GCC compiler is used.
18329         * lib/stdio.in.h (printf): When not using GCC, override printf
18330         correctly.
18331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18332
18333 2010-12-25  Bruno Haible  <bruno@clisp.org>
18334
18335         strerror_r-posix: Update doc.
18336         * doc/posix-functions/strerror_r.texi: Update doc about the return
18337         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18338
18339 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18340
18341         utimens: simplify the logic of the previous change
18342         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18343         This should not affect whether the test succeeds or fails.
18344
18345         utimens: configure better on hosts with NFS clock skew
18346         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18347         uses the clock of the local host.  It might use the clock of the
18348         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18350
18351 2010-12-25  Bruno Haible  <bruno@clisp.org>
18352
18353         ptsname test: Avoid failure on Solaris.
18354         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18355         open a pseudo-terminal; don't use BSD-style ptys.
18356         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18357
18358 2010-12-25  Bruno Haible  <bruno@clisp.org>
18359
18360         ptsname: Avoid ERANGE failure on some systems.
18361         * lib/ptsname.c (buffer): Increase size.
18362
18363 2010-12-25  Bruno Haible  <bruno@clisp.org>
18364
18365         rename, renameat: Avoid test failures at NFS mounted locations.
18366         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18367         so that subsequent mkdir calls succeed.
18368
18369 2010-12-25  Bruno Haible  <bruno@clisp.org>
18370
18371         iswblank: Fix C++ link error on Solaris 8.
18372         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18373         _GL_FUNCDECL_SYS.
18374
18375 2010-12-25  Bruno Haible  <bruno@clisp.org>
18376
18377         unistd: Fix C++ link error on Solaris 8.
18378         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18379
18380 2010-12-25  Bruno Haible  <bruno@clisp.org>
18381
18382         readlink doc: Mention an old glibc bug.
18383         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18384
18385 2010-12-25  Bruno Haible  <bruno@clisp.org>
18386
18387         fcntl-h: Fix for use of C++ on glibc systems.
18388         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18389         also on glibc systems in C++ mode.
18390         Reported by Gary V. Vaughan <gary@gnu.org>.
18391
18392 2010-12-25  Bruno Haible  <bruno@clisp.org>
18393
18394         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18395         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18396
18397 2010-12-25  Bruno Haible  <bruno@clisp.org>
18398
18399         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18400         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18401         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18402         test whether truncl works according to ISO C 99 with IEC 60559.
18403         * m4/truncl-ieee.m4: New file.
18404         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18405         m4/signbit.m4.
18406         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18407
18408 2010-12-25  Bruno Haible  <bruno@clisp.org>
18409
18410         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18411         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18412         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18413         test whether ceill works according to ISO C 99 with IEC 60559.
18414         * m4/ceill-ieee.m4: New file.
18415         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18416         m4/signbit.m4.
18417         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18418
18419 2010-12-25  Bruno Haible  <bruno@clisp.org>
18420
18421         Ensure all prerequisites of <wchar.h> are included.
18422         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18423         before <wchar.h>.
18424         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18425         gl_MBRLEN_NUL_RETVAL): Likewise.
18426         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18427         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18428         AC_FUNC_MBRTOWC): Likewise.
18429         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18430         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18431         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18432         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18433         Likewise.
18434         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18435         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18436         (gl_WCHAR_H): Improve comments.
18437         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18438
18439 2010-12-25  Bruno Haible  <bruno@clisp.org>
18440
18441         strtok_r: Fix C syntax error in autoconf macro.
18442         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18443         characters in test program.
18444
18445 2010-12-24  Bruno Haible  <bruno@clisp.org>
18446
18447         ceil, trunc, round: Fix gcc warnings.
18448         * lib/ceil.c (MIN): Undefine before redefining.
18449         * lib/trunc.c (MIN): Likewise.
18450         * lib/round.c (MIN): Likewise.
18451         Include <math.h> first.
18452
18453 2010-12-24  Bruno Haible  <bruno@clisp.org>
18454
18455         select tests: Avoid failures on OSF/1 5.1.
18456         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18457         failure of closing the last socket; it may fail with ECONNRESET.
18458
18459 2010-12-24  Eric Blake  <eblake@redhat.com>
18460
18461         stdint: avoid HP-UX 10.20 preprocessor bug
18462         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18463         than #if.
18464         * tests/test-floor2.c (main): Likewise.
18465         Reported by Peter O'Gorman.
18466
18467         pipe: make obsoletion transition easier
18468         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18469         * modules/pipe (Files): Include revived file.
18470         (Include): Drop reference, to mirror getdate's behavior.
18471
18472 2010-12-24  Bruno Haible  <bruno@clisp.org>
18473
18474         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18475         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18476         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18477         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18478
18479 2010-12-24  Bruno Haible  <bruno@clisp.org>
18480
18481         gethostname: Ensure declaration on NonStop Kernel.
18482         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18483         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18484
18485 2010-12-24  Bruno Haible  <bruno@clisp.org>
18486
18487         sys_select: Ensure all necessary types on NonStop Kernel.
18488         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18489         include <sys/time.h>.
18490         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18491         NonStop Kernel.
18492         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18493
18494 2010-12-24  Bruno Haible  <bruno@clisp.org>
18495
18496         sys_select: Remove unneeded include.
18497         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18498         have <sys/select.h>.
18499
18500 2010-12-24  Bruno Haible  <bruno@clisp.org>
18501
18502         gethostname: Provide a fallback for HOST_NAME_MAX.
18503         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18504         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18505         instead.
18506         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18507
18508 2010-12-24  Bruno Haible  <bruno@clisp.org>
18509
18510         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18511         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18512         (SA_RESTART): Likewise.
18513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18514
18515 2010-12-24  Bruno Haible  <bruno@clisp.org>
18516
18517         signal: Define NSIG.
18518         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18519         * tests/test-signal.c (nsig): New variable.
18520         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18521
18522 2010-12-24  Bruno Haible  <bruno@clisp.org>
18523
18524         rename, renameat: Avoid test failures on OSF/1 5.1.
18525         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18526         alternative error codes.
18527         * tests/test-renameat.c (main): Likewise.
18528
18529 2010-12-24  Bruno Haible  <bruno@clisp.org>
18530
18531         *printf: Detect large precisions bug on Solaris 10/SPARC.
18532         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18533         by Paul Eggert.
18534         * tests/test-snprintf-posix.h (test_function): Add this test code here
18535         too.
18536         * tests/test-sprintf-posix.h (test_function): Likewise.
18537         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18538         * tests/test-vasprintf-posix.c (test_function): Likewise.
18539         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18540         around by gnulib.
18541         * doc/posix-functions/printf.texi: Likewise.
18542         * doc/posix-functions/snprintf.texi: Likewise.
18543         * doc/posix-functions/sprintf.texi: Likewise.
18544         * doc/posix-functions/vfprintf.texi: Likewise.
18545         * doc/posix-functions/vprintf.texi: Likewise.
18546         * doc/posix-functions/vsnprintf.texi: Likewise.
18547         * doc/posix-functions/vsprintf.texi: Likewise.
18548         * doc/posix-functions/dprintf.texi: Undo last commit.
18549         * doc/posix-functions/vdprintf.texi: Likewise.
18550
18551 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18552
18553         tests: port test-fdutimensat.c to Solaris 8
18554         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18555         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18556         On Solaris 8, it fails with errno == ENOSYS, because there is no
18557         futimens (so it can't use the fd), and there is no lutimens (so it
18558         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18559
18560         vsnprintf: make more consistent with snprintf; doc fixes
18561
18562         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18563         the byte count return problem was promoted from the snprintf-posix
18564         to the snprintf module.
18565         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18566         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18567         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18568         * tests/test-snprintf.c (main): Check the byte count returned.
18569         * tests/test-vsnprintf.c (main): Likewise.
18570
18571 2010-12-23  Eric Blake  <eblake@redhat.com>
18572
18573         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18574         * modules/sigpipe (License): Relax license.
18575
18576 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         doc: document Solaris printf bug with large float precisions
18579         * doc/posix-functions/dprintf.texi (dprintf):
18580         * doc/posix-functions/fprintf.texi (fprintf):
18581         * doc/posix-functions/printf.texi (printf):
18582         * doc/posix-functions/snprintf.texi (snprintf):
18583         * doc/posix-functions/sprintf.texi (sprintf):
18584         * doc/posix-functions/vdprintf.texi (vdprintf):
18585         * doc/posix-functions/vfprintf.texi (vfprintf):
18586         * doc/posix-functions/vprintf.texi (vprintf):
18587         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18588         * doc/posix-functions/vsprintf.texi (vsprintf):
18589         Mention that these functions mishandle large floating point
18590         precisions on Solaris 10.  The same bug is also present in Solaris
18591         8, and I assume earlier.  This causes "cd gnulib-tests; make
18592         check" to fail on Solaris 8 (and I assume, later) when building
18593         the latest coreutils, in test-vasprintf-posix's call to
18594         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18595         the wide flavors (e.g., wprintf) so this patch just updates the
18596         documentation for the narrow ones.
18597
18598         test-posixtm.c: add two tests
18599         * tests/test-posixtm.c: Add two tests, to highlight the
18600         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18601         around this bug; this is merely to document it.
18602
18603 2010-12-22  Bruno Haible  <bruno@clisp.org>
18604
18605         getlogin_r: Work around portability problem on OSF/1.
18606         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18607         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18608         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18609         test for a truncated result.
18610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18611         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18612         * modules/getlogin_r (Depends-on): Add memchr.
18613         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18614
18615 2010-12-22  Bruno Haible  <bruno@clisp.org>
18616
18617         ptsname: Avoid test failure on OSF/1 5.1.
18618         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18619         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18620         (same_slave): New function.
18621         (main): Use it to compare ptsname's result with the expected file name.
18622
18623 2010-12-22  Bruno Haible  <bruno@clisp.org>
18624
18625         Port extended stdio modules to HP NonStop Kernel.
18626         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18627         macros.
18628         * lib/fbufmode.c: Update comments.
18629         * lib/fflush.c: Likewise.
18630         * lib/fpurge.c: Likewise.
18631         * lib/freadable.c: Likewise.
18632         * lib/freadahead.c: Likewise.
18633         * lib/freading.c: Likewise.
18634         * lib/freadptr.c: Likewise.
18635         * lib/freadseek.c: Likewise.
18636         * lib/fseeko.c: Likewise.
18637         * lib/fseterr.c: Likewise.
18638         * lib/fwritable.c: Likewise.
18639         * lib/fwriting.c: Likewise.
18640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18641
18642 2010-12-22  Bruno Haible  <bruno@clisp.org>
18643
18644         ttyname_r: Work around bug on OSF/1 5.1.
18645         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18647         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18648         present.
18649         * lib/ttyname_r.c (ttyname_r): Update comments.
18650
18651 2010-12-22  Bruno Haible  <bruno@clisp.org>
18652
18653         round: Implement result sign according to IEEE 754.
18654         * lib/round.c (MIN, MINUS_ZERO): New macros.
18655         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18656         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18657         * tests/test-round-ieee.c (main): Likewise.
18658         * tests/test-roundl-ieee.c (main): Likewise.
18659
18660         trunc: Implement result sign according to IEEE 754.
18661         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18662         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18663         * tests/test-trunc2.c: Include minus-zero.h.
18664         (MINUS_ZERO): New macro.
18665         (trunc_reference): Keep in sync with lib/trunc.c.
18666         * tests/test-truncf2.c: Include minus-zero.h.
18667         (MINUS_ZERO): New macro.
18668         (truncf_reference): Keep in sync with lib/trunc.c.
18669         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18670         * tests/test-trunc-ieee.c (main): Likewise.
18671         * tests/test-truncl-ieee.c (main): Likewise.
18672
18673         ceil: Implement result sign according to IEEE 754.
18674         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18675         (FUNC): Return -0.0 for -1 < x < 0.
18676         * tests/test-ceil2.c: Include minus-zero.h.
18677         (MINUS_ZERO): New macro.
18678         (ceil_reference): Keep in sync with lib/ceil.c.
18679         * tests/test-ceilf2.c: Include minus-zero.h.
18680         (MINUS_ZERO): New macro.
18681         (ceilf_reference): Keep in sync with lib/ceil.c.
18682         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18683         * tests/test-ceil-ieee.c (main): Likewise.
18684         * tests/test-ceill-ieee.c (main): Likewise.
18685
18686         floor: Implement result sign according to IEEE 754.
18687         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18688         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18689         * tests/test-floorf2.c (floorf_reference): Likewise.
18690         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18691         * tests/test-floor-ieee.c (main): Likewise.
18692         * tests/test-floorl-ieee.c (main): Likewise.
18693
18694 2010-12-22  Bruno Haible  <bruno@clisp.org>
18695
18696         getaddrinfo: Update doc.
18697         * doc/posix-functions/gai_strerror.texi: Return type is also different
18698         on AIX and HP-UX.
18699
18700 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18701
18702         getaddrinfo, inet_ntop: Update doc for Solaris.
18703         * doc/posix-functions/gai_strerror.texi: Return type is also an
18704         issue on Solaris 9 and earlier.
18705         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18706         on Solaris 10 and earlier.
18707
18708 2010-12-21  Bruno Haible  <bruno@clisp.org>
18709
18710         New module 'roundl-ieee'.
18711         * modules/roundl-ieee: New file.
18712         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18713         test whether roundl works according to ISO C 99 with IEC 60559.
18714         * m4/roundl-ieee.m4: New file.
18715         * modules/roundl-ieee-tests: New file.
18716         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18717         * tests/test-roundl.c (main): Remove signbit tests.
18718         * modules/roundl-tests (Depends-on): Remove signbit.
18719         * doc/posix-functions/roundl.texi: Mention the new module.
18720
18721 2010-12-21  Bruno Haible  <bruno@clisp.org>
18722
18723         New module 'truncl-ieee'.
18724         * modules/truncl-ieee: New file.
18725         * modules/truncl-ieee-tests: New file.
18726         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18727         * tests/test-truncl.c (main): Remove signbit tests.
18728         * modules/truncl-tests (Depends-on): Remove signbit.
18729         * doc/posix-functions/truncl.texi: Mention the new module.
18730
18731 2010-12-21  Bruno Haible  <bruno@clisp.org>
18732
18733         New module 'ceill-ieee'.
18734         * modules/ceill-ieee: New file.
18735         * modules/ceill-ieee-tests: New file.
18736         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18737         * tests/test-ceill.c (main): Remove signbit tests.
18738         * modules/ceill-tests (Depends-on): Remove signbit.
18739         * doc/posix-functions/ceill.texi: Mention the new module.
18740
18741 2010-12-21  Bruno Haible  <bruno@clisp.org>
18742
18743         New module 'floorl-ieee'.
18744         * modules/floorl-ieee: New file.
18745         * modules/floorl-ieee-tests: New file.
18746         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18747         * tests/test-floorl.c (main): Remove signbit tests.
18748         * modules/floorl-tests (Depends-on): Remove signbit.
18749         * doc/posix-functions/floorl.texi: Mention the new module.
18750
18751 2010-12-21  Bruno Haible  <bruno@clisp.org>
18752
18753         New module 'round-ieee'.
18754         * modules/round-ieee: New file.
18755         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18756         whether round works according to ISO C 99 with IEC 60559.
18757         * m4/round-ieee.m4: New file.
18758         * modules/round-ieee-tests: New file.
18759         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18760         * tests/test-round1.c (main): Remove signbit tests.
18761         * modules/round-tests (Depends-on): Remove 'signbit'.
18762         * doc/posix-functions/round.texi: Mention the new module.
18763
18764 2010-12-21  Bruno Haible  <bruno@clisp.org>
18765
18766         New module 'trunc-ieee'.
18767         * modules/trunc-ieee: New file.
18768         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18769         whether trunc works according to ISO C 99 with IEC 60559.
18770         * m4/trunc-ieee.m4: New file.
18771         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18773         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18774         * modules/trunc-ieee-tests: New file.
18775         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18776         * tests/test-trunc1.c (main): Remove signbit tests.
18777         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18778         * doc/posix-functions/trunc.texi: Mention the new module.
18779
18780 2010-12-21  Bruno Haible  <bruno@clisp.org>
18781
18782         New module 'ceil-ieee'.
18783         * modules/ceil-ieee: New file.
18784         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18785         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18786         ISO C 99 with IEC 60559.
18787         * m4/ceil-ieee.m4: New file.
18788         * modules/ceil (Files): Add lib/ceil.c.
18789         (Depends-on): Add 'float'.
18790         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18791         * lib/math.in.h (ceil): New declaration.
18792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18793         REPLACE_CEIL.
18794         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18795         * modules/ceil-ieee-tests: New file.
18796         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18797         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18798         * doc/posix-functions/ceil.texi: Mention the new module.
18799
18800 2010-12-21  Bruno Haible  <bruno@clisp.org>
18801
18802         New module 'floor-ieee'.
18803         * modules/floor-ieee: New file.
18804         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18805         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18806         ISO C 99 with IEC 60559.
18807         * m4/floor-ieee.m4: New file.
18808         * modules/floor (Files): Add lib/floor.c.
18809         (Depends-on): Add 'float'.
18810         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18811         * lib/math.in.h (floor): New declaration.
18812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18813         REPLACE_FLOOR.
18814         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18815         * modules/floor-ieee-tests: New file.
18816         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18817         * tests/test-math-c++.cc: Check the signature of 'floor'.
18818         * doc/posix-functions/floor.texi: Mention the new module.
18819
18820 2010-12-21  Bruno Haible  <bruno@clisp.org>
18821
18822         New module 'roundf-ieee'.
18823         * modules/roundf-ieee: New file.
18824         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18825         test whether roundf works according to ISO C 99 with IEC 60559.
18826         * m4/roundf-ieee.m4: New file.
18827         * modules/roundf-ieee-tests: New file.
18828         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18829         * tests/test-roundf1.c (main): Remove signbit tests.
18830         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18831         * doc/posix-functions/roundf.texi: Mention the new module.
18832
18833 2010-12-21  Bruno Haible  <bruno@clisp.org>
18834
18835         New module 'truncf-ieee'.
18836         * modules/truncf-ieee: New file.
18837         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18838         test whether truncf works according to ISO C 99 with IEC 60559.
18839         * m4/truncf-ieee.m4: New file.
18840         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18842         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18843         * modules/truncf-ieee-tests: New file.
18844         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18845         * tests/test-truncf1.c (main): Remove signbit tests.
18846         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18847         * doc/posix-functions/truncf.texi: Mention the new module.
18848
18849 2010-12-21  Bruno Haible  <bruno@clisp.org>
18850
18851         New module 'ceilf-ieee'.
18852         * modules/ceilf-ieee: New file.
18853         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18854         test whether ceilf works according to ISO C 99 with IEC 60559.
18855         * m4/ceilf-ieee.m4: New file.
18856         * modules/ceilf-ieee-tests: New file.
18857         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18858         * tests/test-ceilf1.c (main): Remove signbit tests.
18859         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18860         * doc/posix-functions/ceilf.texi: Mention the new module.
18861
18862 2010-12-21  Bruno Haible  <bruno@clisp.org>
18863
18864         New module 'floorf-ieee'.
18865         * modules/floorf-ieee: New file.
18866         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18867         test whether floorf works according to ISO C 99 with IEC 60559.
18868         * m4/floorf-ieee.m4: New file.
18869         * modules/floorf-ieee-tests: New file.
18870         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18871         * tests/test-floorf1.c (main): Remove signbit tests.
18872         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18873         * doc/posix-functions/floorf.texi: Mention the new module.
18874
18875 2010-12-21  Bruno Haible  <bruno@clisp.org>
18876
18877         Support for minus zero in autoconf macros.
18878         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18879         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18880         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18881         * tests/minus-zero.h: Update comments.
18882
18883 2010-12-21  Bruno Haible  <bruno@clisp.org>
18884
18885         Tests for module 'ceil'.
18886         * modules/ceil-tests: New file.
18887         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18888         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18889
18890 2010-12-21  Bruno Haible  <bruno@clisp.org>
18891
18892         Tests for module 'floor'.
18893         * modules/floor-tests: New file.
18894         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18895         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18896
18897 2010-12-21  Bruno Haible  <bruno@clisp.org>
18898
18899         math: Fix indentation.
18900         * lib/math.in.h (floorf): Fix indentation.
18901
18902 2010-12-21  Bruno Haible  <bruno@clisp.org>
18903
18904         Fix cross-compilation guesses on Solaris.
18905         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18906         not match "solaris2.10".
18907         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18908         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18909         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18910
18911 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18912
18913         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18914         This fixes a problem observed with the latest coreutils snapshot
18915         that caused a test to fail on Solaris 8.  src/csplit.c's call
18916         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18917         earlier, instead of returning the number of bytes that would have
18918         been generated; this causes csplit to incorrectly report memory
18919         exhaustion.
18920         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18921         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18922         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18923         comments to match.
18924         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18925         Fix typo in matching older versions of Solaris: "solaris2.10"
18926         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18927         only for guessing while cross-compiling.
18928         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18929
18930 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18931
18932         ftoastr: fix comment again
18933         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18934         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18935         Also, simplify example a bit by using flags = 0.
18936
18937 2010-12-20  Bruno Haible  <bruno@clisp.org>
18938
18939         round*, trunc*: Update documentation regarding glibc.
18940         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18941         * doc/posix-functions/round.texi: Likewise.
18942         * doc/posix-functions/roundl.texi: Likewise.
18943         * doc/posix-functions/truncf.texi: Likewise.
18944         * doc/posix-functions/trunc.texi: Likewise.
18945         * doc/posix-functions/truncl.texi: Likewise.
18946
18947 2010-12-20  Bruno Haible  <bruno@clisp.org>
18948
18949         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18950         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18951         * doc/posix-functions/round.texi: Likewise.
18952         * doc/posix-functions/roundl.texi: Likewise.
18953
18954 2010-12-20  Bruno Haible  <bruno@clisp.org>
18955
18956         ttyname_r: Add missing declaration on HP-UX 11.
18957         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18958         HAVE_TTYNAME_R.
18959         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18960         declared. Set HAVE_TTYNAME_R always.
18961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18962         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18963         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18964         HAVE_TTYNAME_R.
18965         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18966
18967 2010-12-20  Bruno Haible  <bruno@clisp.org>
18968
18969         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18970         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18971         * doc/posix-functions/getlogin_r.texi: Likewise.
18972         * tests/test-getlogin.c: Include <errno.h>.
18973         (main): Avoid test failure on HP-UX 11.11.
18974         * tests/test-getlogin_r.c (main): Likewise.
18975
18976 2010-12-20  Bruno Haible  <bruno@clisp.org>
18977
18978         getlogin_r: Add missing declaration on HP-UX 11.
18979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18980         declared also when it exists as a function.
18981         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18982
18983 2010-12-20  Bruno Haible  <bruno@clisp.org>
18984
18985         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18986         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18987         through wcrtomb.
18988
18989 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         ftoastr: fix comment
18992         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18993         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18994
18995 2010-12-19  Bruno Haible  <bruno@clisp.org>
18996
18997         isnan: Ensure it is a macro.
18998         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18999         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19000         Solaris.
19001
19002 2010-12-19  Bruno Haible  <bruno@clisp.org>
19003
19004         ldexpl test: Fix link error on OSF/1 5.1.
19005         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19006
19007 2010-12-19  Bruno Haible  <bruno@clisp.org>
19008
19009         wctype: Make it work in C++ mode on OSF/1 5.1.
19010         * lib/wctype.in.h (iswblank): Declare but not define here.
19011         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19012         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19013         * modules/wctype (Files): Add lib/iswblank.c.
19014
19015 2010-12-19  Bruno Haible  <bruno@clisp.org>
19016
19017         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19018         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19019         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19020
19021 2010-12-19  Bruno Haible  <bruno@clisp.org>
19022
19023         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19025         _POSIX_PII_SOCKET.
19026         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19027         * doc/posix-functions/recvfrom.texi: Likewise.
19028         * doc/posix-functions/send.texi: Likewise.
19029         * doc/posix-functions/sendto.texi: Likewise.
19030
19031 2010-12-19  Bruno Haible  <bruno@clisp.org>
19032
19033         tcgetsid: Add missing declaration on OSF/1 5.1.
19034         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19035         HAVE_TCGETSID.
19036         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19037         Don't set HAVE_TCGETSID.
19038         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19039         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19040         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19041         HAVE_TCGETSID.
19042         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19043
19044 2010-12-19  Bruno Haible  <bruno@clisp.org>
19045
19046         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19047         * lib/stdio.in.h: During the include_next statement, let recursive
19048         includes of this file include only the system header file.
19049
19050 2010-12-19  Bruno Haible  <bruno@clisp.org>
19051
19052         iconv_open: Fix regression from 2010-12-04.
19053         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19054         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19055
19056 2010-12-19  Bruno Haible  <bruno@clisp.org>
19057
19058         stdbool test: Avoid a gcc warning.
19059         * tests/test-stdbool.c (main): Fail if e1 is false.
19060         Reported by Jim Meyering.
19061
19062 2010-12-19  Jim Meyering  <meyering@redhat.com>
19063
19064         setenv: restore to working order
19065         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19066         mistakenly removed.
19067         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19068         HAVE_SETENV.
19069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19070         HAVE_SETENV.
19071
19072 2010-12-19  Bruno Haible  <bruno@clisp.org>
19073
19074         Document some different function declarations on OSF/1 5.1.
19075         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19076         * doc/posix-functions/inet_ntop.texi: Likewise.
19077         * doc/posix-functions/gethostname.texi: Likewise.
19078         * lib/unistd.in.h (gethostname): Update comment.
19079
19080 2010-12-19  Bruno Haible  <bruno@clisp.org>
19081
19082         doc: Mention vasprintf-posix module.
19083         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19084         the 'vasprintf-posix' module.
19085         * doc/glibc-functions/vasprintf.texi: Likewise.
19086
19087 2010-12-19  Bruno Haible  <bruno@clisp.org>
19088
19089         unsetenv: Add missing declaration on OSF/1 5.1.
19090         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19091         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19092         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19094         not HAVE_UNSETENV.
19095         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19096         HAVE_UNSETENV.
19097         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19098
19099 2010-12-19  Bruno Haible  <bruno@clisp.org>
19100
19101         setenv: Add missing declaration on OSF/1 5.1.
19102         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19103         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19104         declared. Don't set HAVE_SETENV.
19105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19106         not HAVE_SETENV.
19107         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19108         HAVE_SETENV.
19109         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19110
19111 2010-12-19  Bruno Haible  <bruno@clisp.org>
19112
19113         nl_langinfo tests: Avoid gcc warning.
19114         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19115
19116 2010-12-19  Bruno Haible  <bruno@clisp.org>
19117
19118         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19119         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19120         _GL_CXXALIAS_SYS.
19121
19122 2010-12-19  Bruno Haible  <bruno@clisp.org>
19123
19124         stdbool: Relax test.
19125         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19126         address to 'bool' work in static initializer, for compilers other than
19127         GCC.
19128
19129 2010-12-19  Bruno Haible  <bruno@clisp.org>
19130
19131         ftello: Add missing declaration on OSF/1 5.1.
19132         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19133         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19135         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19136         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19137
19138 2010-12-19  Bruno Haible  <bruno@clisp.org>
19139
19140         fseeko: Add missing declaration on OSF/1 5.1.
19141         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19144         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19145         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19146
19147 2010-12-19  Bruno Haible  <bruno@clisp.org>
19148
19149         fchdir: Add missing declaration on OSF/1 5.1.
19150         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19153         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19154         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19155
19156 2010-12-19  Bruno Haible  <bruno@clisp.org>
19157
19158         relocatable-prog-wrapper: Separate from relocatable-prog.
19159         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19160         uninstall-relocwrapper rule here.
19161         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19162         Reported by Ian Beckwith <ianb@erislabs.net>.
19163
19164 2010-12-19  Bruno Haible  <bruno@clisp.org>
19165
19166         unistr/u8-mbsnlen: Add missing dependency.
19167         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19168         Reported by Ian Beckwith <ianb@erislabs.net>.
19169
19170 2010-12-19  Bruno Haible  <bruno@clisp.org>
19171
19172         iconv: Make it possible again to use this module without 'iconv-h'.
19173         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19174         if it is not defined.
19175         Reported by Ian Beckwith <ianb@erislabs.net>.
19176
19177 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19178
19179         acl: port to Solaris 8 when copying from tmpfs to ufs
19180         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19181         error number.  Problem observed on Solaris 8 with latest
19182         coreutils, with "mv A B", where A is on a tmpfs file system and B
19183         is on a ufs file system.  This caused coreutils' mv/part-symlink
19184         test to fail.
19185
19186         tests: set fail=0 at start
19187         * tests/init.sh (setup_): Move fail=0 initialization here ...
19188         (mktempd_): ... from here, so that tests can rely on fail being
19189         set to 0 initially.  This fixes a problem in coreutils; see:
19190         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19191
19192 2010-12-18  Bruno Haible  <bruno@clisp.org>
19193
19194         memmem-simple: Stylistic changes.
19195         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19196         Fix preprocessor directive indentation.
19197
19198 2010-12-15  Pádraig Brady <P@draigBrady.com>
19199
19200         memmem, memmem-simple: reorganize and expand empty needle check
19201         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19202         functional checks to memmem-simple so that one has a fully functional
19203         memmem by using just this module.
19204         Restrict the performance only check to the memmem module.
19205         Also expand the empty needle check to ensure the correct
19206         pointer is returned, not just a non NULL pointer.
19207         * doc/glibc-functions/memmem.texi: Rearrange the portability
19208         documentation to correlate with the rearranged checks.
19209         Clarify exactly how the memmem and memmem-simple modules
19210         relate to each other.
19211
19212 2010-12-15  Pádraig Brady <P@draigBrady.com>
19213             Bruno Haible  <bruno@clisp.org>
19214
19215         Improve cross-compilation guesses for uClibc.
19216         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19217         that uClibc does not have the glibc bug.
19218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19219         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19220
19221 2010-12-14  Eric Blake  <eblake@redhat.com>
19222
19223         configmake: provide fallbacks for oldest supported autotools
19224         * m4/configmake.m4: New file.
19225         * modules/configmake (Files): Ship it.
19226         (configure.ac): Use it to guarantee fallbacks.
19227
19228 2010-12-13  Pádraig Brady <P@draigBrady.com>
19229
19230         read-file: Improve handling of large files
19231         * lib/read-file.c (fread_file): Minimize realloc()s
19232         for regular files, and better manage sizes around SIZE_MAX.
19233
19234 2010-12-13  Eric Blake  <eblake@redhat.com>
19235
19236         cloexec, fcntl: relax license
19237         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19238         consent from all contributors.
19239         * modules/fcntl (License): Likewise.
19240
19241 2010-12-10  Bruno Haible  <bruno@clisp.org>
19242
19243         Tests for module 'pipe-posix'.
19244         * modules/pipe-posix-tests: New file.
19245         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19246
19247 2010-12-10  Bruno Haible  <bruno@clisp.org>
19248
19249         pipe-posix: Make it work in C++ mode.
19250         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19251         (pipe): Use common idiom, not a macro definition.
19252         * lib/pipe.c: New file.
19253         * m4/pipe.m4: New file.
19254         * modules/pipe-posix (Description): Enhance.
19255         (Files): Add lib/pipe.c, m4/pipe.m4.
19256         (configure.ac): Invoke gl_FUNC_PIPE.
19257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19258         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19259         * tests/test-unistd-c++.cc: Check the signature of pipe.
19260
19261 2010-12-10  Bruno Haible  <bruno@clisp.org>
19262
19263         Rename module 'pipe' to 'spawn-pipe'.
19264         * modules/spawn-pipe: New file, renamed from modules/pipe.
19265         (Files, configure.ac, Makefile.am): Update.
19266         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19267         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19268         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19269         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19270         "spawn-pipe.h" instead of "pipe.h".
19271         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19272         to gl_SPAWN_PIPE.
19273         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19274         (Files, Makefile.am): Update.
19275         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19276         Update.
19277         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19278         Include "spawn-pipe.h" instead of "pipe.h".
19279         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19280         * lib/javacomp.c: Likewise.
19281         * lib/javaversion.c: Likewise.
19282         * lib/pipe-filter-gi.c: Likewise.
19283         * lib/pipe-filter-ii.c: Likewise.
19284         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19285         * modules/javacomp (Depends-on): Likewise.
19286         * modules/javaversion (Depends-on): Likewise.
19287         * modules/pipe-filter-gi (Depends-on): Likewise.
19288         * modules/pipe-filter-ii (Depends-on): Likewise.
19289         * MODULES.html.sh (Executing programs): Update.
19290         * NEWS: Mention the change.
19291
19292 2010-12-10  Eric Blake  <eblake@redhat.com>
19293
19294         pipe-posix: new module
19295         * modules/pipe-posix: New file.
19296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19297         (gl_UNISTD_H): Check for declaration.
19298         * modules/unistd (Makefile.am): Substitute it.
19299         * lib/unistd.in.h (pipe): Provide it for mingw.
19300         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19301         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19302
19303 2010-12-07  Bruno Haible  <bruno@clisp.org>
19304
19305         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19306         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19307         u8_strcmp_gnu.
19308         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19309
19310 2010-12-06  Bruno Haible  <bruno@clisp.org>
19311
19312         Update internal documentation.
19313         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19314
19315 2010-12-04  Bruno Haible  <bruno@clisp.org>
19316
19317         Put more information about failed tests into the test return codes.
19318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19319         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19320         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19323         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19324         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19325         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19326         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19328         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19329         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19330         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19331         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19332         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19333         returns a bit mask.
19334         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19335         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19336         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19337         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19338         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19342         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19343         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19344         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19345         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19346         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19348         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19349         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19350         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19351         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19352         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19353         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19355         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19357         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19358         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19359         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19360         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19361         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19362         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19363         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19364         gl_PRINTF_PRECISION): Likewise.
19365         * m4/regex.m4 (gl_REGEX): Likewise.
19366         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19368         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19369         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19373         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19374         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19375         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19376         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19377         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19378         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19379         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19380         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19381         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19382         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19385         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19386         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19387         enumerated value.
19388         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19389
19390 2010-12-04  Bruno Haible  <bruno@clisp.org>
19391
19392         Update for Solaris 11 2010-11.
19393         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19394         Express, released in November 2010.
19395
19396 2010-12-04  Bruno Haible  <bruno@clisp.org>
19397
19398         nproc: Relax license.
19399         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19400         and Paul Eggert.
19401         Requested by Ludovic Courtès <ludo@gnu.org>.
19402
19403 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19404
19405         utimecmp: fine-grained src to nearby coarse-grained dest
19406
19407         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19408         and the source is on a file system with higher-resolution time
19409         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19410         not work, and the time stamps are close together, the algorithm to
19411         determine the exact resolution from the read-back mtime was buggy:
19412         it had a "!=" where it should have had an "==".  This bug has been
19413         in the code ever since it was introduced to gnulib.
19414         Problem reported by Dan Jacobson in
19415         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19416
19417 2010-11-30  Bruno Haible  <bruno@clisp.org>
19418
19419         strerror_r-posix: Fix autoconf test.
19420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19421
19422 2010-11-28  Bruno Haible  <bruno@clisp.org>
19423             Paul Eggert  <eggert@cs.ucla.edu>
19424
19425         Tests for module 'getdomainname'.
19426         * modules/getdomainname-tests: New file.
19427         * tests/test-getdomainname.c: New file, based on
19428         tests/test-gethostname.c.
19429
19430 2010-11-28  Bruno Haible  <bruno@clisp.org>
19431             Paul Eggert  <eggert@cs.ucla.edu>
19432
19433         getdomainname: Use the system function when possible.
19434         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19435         (getdomainname): Replace if needed. Provide the declaration if it is
19436         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19437         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19438         (getdomainname): When the system has getdomainname, call the system
19439         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19440         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19441         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19442         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19443         the function if its second argument is of type 'int' or if it is found
19444         in libnsl.
19445         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19446         <sys/systeminfo.h> and sysinfo().
19447         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19449         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19450         HAVE_GETDOMAINNAME.
19451         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19452         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19453         * doc/glibc-functions/getdomainname.texi: Document the problems with
19454         the getdomainname declaration.
19455
19456 2010-11-28  Bruno Haible  <bruno@clisp.org>
19457
19458         sys_socket: Ensure ss_family field on AIX.
19459         * lib/sys_socket.in.h (ss_family): New macro definition.
19460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19461         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19462         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19463         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19464         * modules/sys_socket (Makefile.am): Substitute
19465         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19466         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19467
19468 2010-11-27  Bruno Haible  <bruno@clisp.org>
19469
19470         readline: Improve configure output.
19471         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19472         "checking for readline..." result understandable.
19473
19474 2010-11-27  Bruno Haible  <bruno@clisp.org>
19475
19476         *printf-posix: Detect a bug on Solaris 10/x86.
19477         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19478         for floating-point output.
19479         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19480         directive.
19481         * tests/test-snprintf-posix.h (test_function): Likewise.
19482         * tests/test-sprintf-posix.h (test_function): Likewise.
19483         * tests/test-vasprintf-posix.c (test_function): Likewise.
19484         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19485         * doc/posix-functions/printf.texi: Likewise.
19486         * doc/posix-functions/snprintf.texi: Likewise.
19487         * doc/posix-functions/sprintf.texi: Likewise.
19488         * doc/posix-functions/vfprintf.texi: Likewise.
19489         * doc/posix-functions/vprintf.texi: Likewise.
19490         * doc/posix-functions/vsnprintf.texi: Likewise.
19491         * doc/posix-functions/vsprintf.texi: Likewise.
19492         * doc/glibc-functions/obstack_printf.texi: Likewise.
19493         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19494
19495 2010-11-27  Bruno Haible  <bruno@clisp.org>
19496
19497         Fix link error when module libunistring-optional is in use.
19498         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19499         * modules/striconveha-tests (Makefile.am): Likewise.
19500
19501 2010-11-27  Bruno Haible  <bruno@clisp.org>
19502
19503         regex: Mention link dependencies.
19504         * modules/regex (Link): New section.
19505         * modules/rpmatch (Link): Likewise.
19506         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19507
19508 2010-11-27  Bruno Haible  <bruno@clisp.org>
19509
19510         ftoastr: Fix compilation error on Solaris.
19511         * lib/ftoastr.c: Include <config.h>.
19512
19513 2010-11-27  Bruno Haible  <bruno@clisp.org>
19514
19515         getloadavg: Update documentation.
19516         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19517
19518 2010-11-27  Bruno Haible  <bruno@clisp.org>
19519
19520         sys_socket: Fix test whether the functions are declared.
19521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19522         not <sys/select.h>.
19523
19524 2010-11-27  Bruno Haible  <bruno@clisp.org>
19525
19526         getpass: Make sure to get system declaration on some platforms.
19527         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19528         gl_USE_SYSTEM_EXTENSIONS.
19529         * modules/getpass (Depends-on): Add extensions.
19530
19531 2010-11-26  Bruno Haible  <bruno@clisp.org>
19532
19533         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19534         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19535         'iconv' module is present.
19536         (ICONV_CONST): New macro.
19537         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19538         ICONV_CONST.
19539         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19540         set ICONV_CONST.
19541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19542         here.
19543         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19544         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19545         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19546         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19547         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19548         present.
19549
19550 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         ftoastr: comment fix
19553         * lib/ftoastr.c: "little" -> "little or no" in comment
19554
19555 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19556
19557         stdint: port to GCC 4.3 + OSX + Octave
19558         On this platform, stdint.h is buggy and defines int64_t to long
19559         long int.  The replacement defined it to long int, causing
19560         problems with C++ style name mangling.  Instead, trust the system
19561         definition if INT64_MAX is defined, and likewise for the unsigned
19562         variant.   Problem reported by Jarno Rajahalme in
19563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19564         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19565         and don't mess with int64_t and INT64_MAX in this case.
19566         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19567
19568 2010-11-24  Bruno Haible  <bruno@clisp.org>
19569
19570         doc: Corrections regarding MacOS X 10.4 and 10.5.
19571         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19572         MacOS X.
19573         Reported by Simon Josefsson.
19574
19575 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19576
19577         Uninstall ".bin" files installed by relocwrapper.
19578         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19579         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19580         unless it is already there.
19581
19582 2010-11-21  Bruno Haible  <bruno@clisp.org>
19583
19584         Update for NetBSD 5.0.
19585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19586         NetBSD; the test fails on NetBSD 5.0.
19587         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19588         about NetBSD.
19589
19590 2010-11-21  Bruno Haible  <bruno@clisp.org>
19591
19592         Update for HP-UX 11.23 and HP-UX 11.31.
19593         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19594         HP-UX.
19595
19596 2010-11-21  Bruno Haible  <bruno@clisp.org>
19597
19598         Update for MacOS X 10.5.
19599         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19600         MacOS X; the test fails on MacOS X 10.5.8.
19601         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19602         about MacOS X.
19603
19604 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19605
19606         bootstrap: add bootstrap_sync option.
19607         See discussion at
19608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19610         * build-aux/bootstrap: Accept --bootstrap-sync to update
19611         bootstrap if it is not identical to the local gnulib's
19612         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19613         enable this by default.  Accept --no-bootstrap-sync to disable
19614         it.
19615
19616 2010-11-20  Bruno Haible  <bruno@clisp.org>
19617
19618         Ensure that <features.h> is included before __GLIBC__ is tested.
19619         * lib/printf-parse.h: Include <features.h>.
19620         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19621         Reported by Mike Frysinger <vapier@gentoo.org>.
19622
19623         Ensure that <features.h> is included before __GLIBC__ is tested.
19624         * lib/wchar.in.h: Include <features.h>.
19625         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19626         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19627         Reported by Mike Frysinger <vapier@gentoo.org>.
19628
19629         Ensure that <features.h> is included before __GLIBC__ is tested.
19630         * lib/arpa_inet.in.h: Include <features.h>.
19631         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19632         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19633         Reported by Mike Frysinger <vapier@gentoo.org>.
19634
19635         Ensure that <features.h> is included before __GLIBC__ is tested.
19636         * build-aux/link-warning.h: Include <features.h>.
19637         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19638         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19639         Reported by Mike Frysinger <vapier@gentoo.org>.
19640
19641         Ensure that <features.h> is included before __GLIBC__ is tested.
19642         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19643         Reported by Mike Frysinger <vapier@gentoo.org>.
19644
19645 2010-11-20  Bruno Haible  <bruno@clisp.org>
19646
19647         memmem: Fix autoconf test.
19648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19649
19650 2010-11-20  Bruno Haible  <bruno@clisp.org>
19651
19652         Port to uClibc.
19653         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19654         * lib/fcntl.in.h: Likewise.
19655         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19656         * lib/mbrtowc.c (mbrtowc): Likewise.
19657         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19658         * lib/strerror_r.c: Likewise.
19659         * lib/unistr/u8-strnlen.c: Likewise.
19660         * lib/vasnprintf.c (decimal_point_char): Likewise.
19661         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19662         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19664         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19665         * tests/test-sigaction.c (handler, main): Likewise.
19666         * lib/freading.h: Treat uClibc like a non-glibc platform.
19667         * lib/freading.c: Likewise.
19668         * lib/gettext.h: Likewise.
19669         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19670         Likewise.
19671         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19672         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19673         * lib/propername.c (proper_name_utf8): Likewise.
19674         * lib/spawn.in.h: Likewise.
19675         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19676         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19677         mem_cd_iconveh_internal): Likewise.
19678         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19679         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19680         strstr, strcasestr): Likewise.
19681         * lib/unicodeio.c (unicode_to_mb): Likewise.
19682         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19683         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19684         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19685         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19686         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19687         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19688         * lib/unistr/u8-stpncpy.c: Likewise.
19689         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19690         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19691         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19693         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19694         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19695         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19698         Likewise.
19699         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19700         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19701         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19702         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19703         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19704         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19705         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19706         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19707         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19708         * tests/test-striconveha.c (main): Likewise.
19709         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19710         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19711         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19712         * doc/posix-functions/getline.texi: Likewise.
19713         Reported by Mike Frysinger <vapier@gentoo.org>.
19714
19715 2010-11-20  Bruno Haible  <bruno@clisp.org>
19716
19717         nproc: Fix condition.
19718         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19719         HAVE_PTHREAD_AFFINITY_NP.
19720
19721 2010-11-20  Bruno Haible  <bruno@clisp.org>
19722
19723         Fix a comment.
19724         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19725
19726 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19727
19728         ftoastr: don't assume snprintf
19729         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19730         Implement a subset of snprintf here, by using sprintf safely.
19731         * modules/ftoastr (Depends-on): Remove snprintf.
19732
19733 2010-11-19  Jim Meyering  <meyering@redhat.com>
19734
19735         test-rename.h: fix compilation failure
19736         * tests/test-rename.h (test_rename): Add omitted "}".
19737
19738 2010-11-17  Jim Meyering  <meyering@redhat.com>
19739
19740         maint.mk: add a URL discussing the no-@acronym policy
19741         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19742
19743 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         ftoastr: depend on snprintf, improve comments
19746         * lib/ftoastr.c: Also mention Loitsch's draft.
19747         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19748         needed in the current implementation, but it might simplify
19749         speeding up the code later.
19750         * modules/ftoastr: Depend on snprintf; this improves portability.
19751         Suggested by Bruno Haible in the same email.
19752
19753         ftoastr: port to hosts lacking strtof and strtold
19754         Problem reported by Bruno Haible in
19755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19756         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19757         environment and strtold (and presumably strtof) are not available.
19758         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19759         (configure.ac): Require gl_C99_STRTOLD.
19760
19761 2010-11-18  Bruno Haible  <bruno@clisp.org>
19762
19763         c-strtold: Avoid link error on AIX 7.
19764         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19765         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19766         (gl_C_STRTOLD): Test whether strtold_l exists.
19767         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19768
19769 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19770
19771         intprops: new macro INT_BITS_STRLEN_BOUND
19772         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19773         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19774         not exposed.  Also, it uses a slightly tighter bound than before;
19775         though this makes no practical difference, we might as well be as
19776         tight as we easily can.
19777
19778         ftoastr: new module, for lossless conversion of floats to short strings
19779         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19780         * modules/ftoastr: New files.
19781
19782 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19783
19784         bootstrap: port to Solaris sed
19785         * build-aux/bootstrap (get_version): Port to Solaris sed.
19786         See Ralf Wildenhues's note in
19787         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19788
19789 2010-11-14  Jim Meyering  <meyering@redhat.com>
19790
19791         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19792         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19793         and move definition closer to sole use.
19794
19795 2010-11-13  Jim Meyering  <meyering@redhat.com>
19796
19797         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19798         Now we require at least autoconf-2.59, which means the work-around
19799         is no longer needed.
19800         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19801         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19802         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19805
19806 2010-11-13  Bruno Haible  <bruno@clisp.org>
19807
19808         rename, renameat: Avoid test failures at NFS mounted locations.
19809         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19810         functions.
19811         (test_rename): Use assert_nonexistent.
19812         * tests/test-rename.c: Include <dirent.h>.
19813         * tests/test-renameat.c: Likewise.
19814         Reported by Gary V. Vaughan <gary@gnu.org>.
19815
19816         rename, renameat: Document Linux bug with NFS
19817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19818         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19819         * doc/posix-functions/renameat.texi: Likewise.
19820         Suggested by Eric Blake.
19821
19822 2010-11-13  Bruno Haible  <bruno@clisp.org>
19823
19824         rename test: Add comments.
19825         * tests/test-rename.h (test_rename): Add structure and comments.
19826
19827 2010-11-13  Eric Blake  <eblake@redhat.com>
19828
19829         maintainer-makefile: cover a few more files
19830         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19831         scripts generated within C files, for libvirt.
19832
19833 2010-11-13  Bruno Haible  <bruno@clisp.org>
19834
19835         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19836         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19837         character, return the number of bytes that belong together, not always
19838         1.
19839         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19840         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19841         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19842         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19843         number of bytes of an invalid character.
19844         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19845         (main): Invoke it.
19846         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19847         results.
19848         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19849         malformed byte sequences.
19850         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19851         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19852         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19853         Reported by Ben Pfaff and Paolo Bonzini.
19854
19855 2010-11-13  Bruno Haible  <bruno@clisp.org>
19856
19857         openat: Work around glibc bug with fchownat() and empty file names.
19858         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19859         (gl_FUNC_FCHOWNAT): Invoke it.
19860         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19861         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19862         Reported by Gary V. Vaughan <gary@gnu.org>.
19863
19864 2010-11-13  Bruno Haible  <bruno@clisp.org>
19865
19866         openat: Ensure autoconf macro ordering.
19867         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19868         gl_USE_SYSTEM_EXTENSIONS.
19869         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19870
19871 2010-11-13  Bruno Haible  <bruno@clisp.org>
19872
19873         Update comments.
19874         * lib/unistr/u8-check.c: Update file name in comments.
19875         * lib/unistr/u8-mblen.c: Likewise.
19876         * lib/unistr/u8-prev.c: Likewise.
19877         * lib/unistr/u8-strmblen.c: Likewise.
19878         * lib/unistr/u8-strmbtouc.c: Likewise.
19879
19880 2010-11-13  Jim Meyering  <meyering@redhat.com>
19881
19882         tests: avoid test failure on Solaris 10 due to lack of PATH export
19883         * tests/test-update-copyright.sh: Don't forget to export PATH.
19884
19885         init.sh: ensure that IFS is defined, just in case...
19886         * tests/init.sh (setup_): Ensure that IFS is defined,
19887         so that saving and restoring it works as expected.  This
19888         appears to be useful at least for an old version of dash
19889         from a long time ago (RH 6).  See here for details:
19890         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19891
19892         maint.mk: tighten "test a == b" check
19893         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19894         test to files that contain something like #!/bin/sh.
19895         Without this, coreutils would get two false positives in
19896         the comments of C source files.
19897
19898 2010-11-12  Eric Blake  <eblake@redhat.com>
19899
19900         bootstrap: fix typo in previous attempt
19901         * build-aux/bootstrap (buildreq): Correct the grouping.
19902         Reported by Paul Eggert.
19903
19904         maintainer-makefile: prohibit test x == x
19905         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19906         Based on a report by Matthias Bolte.
19907
19908         bootstrap: allow FreeBSD gzip
19909         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19910         which has no '.' and goes to stderr.
19911         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19912         Reported by Matthias Bolte.
19913
19914         maintainer-makefile: check for i18n setup
19915         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19916         will likely work.
19917
19918 2010-11-12  Bruno Haible  <bruno@clisp.org>
19919
19920         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19921         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19922         * lib/nanosleep.c (nanosleep): Likewise.
19923
19924 2010-11-11  Bruno Haible  <bruno@clisp.org>
19925
19926         fcntl-h: Fix for use of C++ on glibc systems.
19927         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19928         also on glibc systems in C++ mode.
19929         Reported by Gary V. Vaughan <gary@gnu.org>.
19930
19931 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19932
19933         mknod: avoid false failure with dash
19934         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19935
19936 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19937
19938         unlink: Fix "is it should" typo in diagnostic.
19939         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19940         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19941
19942 2010-11-11  Bruno Haible  <bruno@clisp.org>
19943
19944         Tests for module 'strerror_r-posix'.
19945         * modules/strerror_r-posix-tests: New file.
19946         * tests/test-strerror_r.c: New file.
19947         * tests/test-string-c++.cc: Check the signature of strerror_r.
19948
19949         New module 'strerror_r-posix'.
19950         * lib/string.in.h (strerror_r): New declaration.
19951         * lib/strerror_r.c: New file.
19952         * m4/strerror_r.m4: New file.
19953         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19954         of strerror_r.
19955         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19956         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19957         * modules/strerror_r-posix: New file.
19958         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19959         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19960         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19961         portability problems.
19962
19963 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19964
19965         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19966         line is also considered for output. Quoted function name in shell
19967         command, so temporary files for functions like MyClass::operator()
19968         are removed correctly without errors.
19969
19970 2010-11-09  Bruno Haible  <bruno@clisp.org>
19971
19972         * doc/posix-functions/strerror.texi: List more failing platforms.
19973
19974         * doc/posix-functions/strerror.texi: Add a comment.
19975
19976 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19977
19978         fdopendir: fix bug on MacOS X when low on file descriptors
19979
19980         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19981         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19982         All callers changed.
19983         (fdopendir): Invoke save_cwd at the top level, not after using
19984         multiple dup() calls to use up file descriptors.  Then retry
19985         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19986         less than the maximum number of open file descriptors, because
19987         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19988         on Mac OS X 10.6.4 for tar 1.24
19989         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19990         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19991         and for tar 1.25
19992         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19993
19994 2010-11-07  Bruno Haible  <bruno@clisp.org>
19995
19996         vasnprintf: Support I flag on glibc systems.
19997         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19998         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19999         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20000         snprintf function.
20001         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20002         glibc systems.
20003         * tests/test-vasnprintf-posix3.c: New file.
20004         * modules/vasnprintf-posix-tests (Files): Add it.
20005         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20006
20007 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20008
20009         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20010         * MODULES.html.sh: For compiler warnings, use name
20011         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20012
20013 2010-11-05  Eric Blake  <eblake@redhat.com>
20014
20015         ceil, floor: avoid spurious failure with icc
20016         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20017         [denormals-as-zero] when optimizing without -mieee-fp option.
20018         * tests/test-floorf2.c (floorf_reference): Likewise.
20019         * tests/test-ceilf1.c (dummy): New function.
20020         (main): Use it to outsmart icc's optimization.
20021         * tests/test-floorf1.c (dummy, main): Likewise.
20022
20023         tests: require working signbit
20024         * modules/ceilf-tests (Depends-on): Add signbit.
20025         * modules/ceill-tests (Depends-on): Likewise.
20026         * modules/floorf-tests (Depends-on): Likewise.
20027         * modules/floorl-tests (Depends-on): Likewise.
20028         * modules/round-tests (Depends-on): Likewise.
20029         * modules/roundf-tests (Depends-on): Likewise.
20030         * modules/roundl-tests (Depends-on): Likewise.
20031         * modules/trunc-tests (Depends-on): Likewise.
20032         * modules/truncf-tests (Depends-on): Likewise.
20033         * modules/truncl-tests (Depends-on): Likewise.
20034
20035         strtod: work around icc bug
20036         * lib/strtod.c (minus_zero): Define to working value.
20037         (strtod): Use it to avoid icc bug.
20038
20039         copysign: enhance tests
20040         * modules/copysign-tests (Files): Add minus-zero.h.
20041         * tests/test-copysign.c (main): Also test zeros.
20042
20043 2010-11-04  Eric Blake  <eblake@redhat.com>
20044
20045         ceil, floor, round, trunc: enhance tests of -0
20046         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20047         * tests/test-ceill.c (main): Likewise.
20048         * tests/test-floorf1.c (main): Likewise.
20049         * tests/test-floorl.c (main): Likewise.
20050         * tests/test-round1.c (main): Likewise.
20051         * tests/test-roundf1.c (main): Likewise.
20052         * tests/test-roundl.c (main): Likewise.
20053         * tests/test-trunc1.c (main): Likewise.
20054         * tests/test-truncf1.c (main): Likewise.
20055         * tests/test-truncl.c (main): Likewise.
20056
20057 2010-11-04  Eric Blake  <eblake@redhat.com>
20058
20059         frexp, tests: work around ICC bug with -zero
20060         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20061         works with more compilers.
20062         * tests/minus-zero.h: New file.
20063         * modules/ceilf-tests (Files): Include it.
20064         * modules/ceill-tests (Files): Likewise.
20065         * modules/floorf-tests (Files): Likewise.
20066         * modules/floorl-tests (Files): Likewise.
20067         * modules/frexp-nolibm-tests (Files): Likewise.
20068         * modules/frexp-tests (Files): Likewise.
20069         * modules/frexpl-nolibm-tests (Files): Likewise.
20070         * modules/frexpl-tests (Files): Likewise.
20071         * modules/isnan-tests (Files): Likewise.
20072         * modules/isnand-nolibm-tests (Files): Likewise.
20073         * modules/isnand-tests (Files): Likewise.
20074         * modules/isnanf-nolibm-tests (Files): Likewise.
20075         * modules/isnanf-tests (Files): Likewise.
20076         * modules/isnanl-nolibm-tests (Files): Likewise.
20077         * modules/isnanl-tests (Files): Likewise.
20078         * modules/round-tests (Files): Likewise.
20079         * modules/roundf-tests (Files): Likewise.
20080         * modules/roundl-tests (Files): Likewise.
20081         * modules/ldexpl-tests (Files): Likewise.
20082         * modules/signbit-tests (Files): Likewise.
20083         * modules/snprintf-posix-tests (Files): Likewise.
20084         * modules/sprintf-posix-tests (Files): Likewise.
20085         * modules/strtod-tests (Files): Likewise.
20086         * modules/trunc-tests (Files): Likewise.
20087         * modules/truncf-tests (Files): Likewise.
20088         * modules/truncl-tests (Files): Likewise.
20089         * modules/vsnprintf-posix-tests (Files): Likewise.
20090         * modules/vsprintf-posix-tests (Files): Likewise.
20091         * modules/vasnprintf-posix-tests (Files): Likewise.
20092         * modules/vasprintf-posix-tests (Files): Likewise.
20093         * tests/test-ceilf1.c (main): Use it.
20094         * tests/test-ceill.c (main): Likewise.
20095         * tests/test-floorf1.c (main): Likewise.
20096         * tests/test-floorl.c (main): Likewise.
20097         * tests/test-frexp.c (main): Likewise.
20098         * tests/test-frexpl.c (main): Likewise.
20099         * tests/test-isnan.c (main): Likewise.
20100         * tests/test-isnand.h (main): Likewise.
20101         * tests/test-isnanf.h (main): Likewise.
20102         * tests/test-isnanl.h (main): Likewise.
20103         * tests/test-ldexpl.c (main): Likewise.
20104         * tests/test-round.c (main): Likewise.
20105         * tests/test-roundf.c (main): Likewise.
20106         * tests/test-roundl.c (main): Likewise.
20107         * tests/test-signbit.c (test_signbitf, test_signbitd)
20108         (test_signbitl): Likewise.
20109         * tests/test-snprintf-posix.h (test_function): Likewise.
20110         * tests/test-sprintf-posix.h (test_function): Likewise.
20111         * tests/test-strtod.c (main): Likewise.
20112         * tests/test-trunc1.c (main): Likewise.
20113         * tests/test-truncf1.c (main): Likewise.
20114         * tests/test-truncl.c (main): Likewise.
20115
20116         isnanl: work around icc bug
20117         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20118
20119 2010-11-03  Eric Blake  <eblake@redhat.com>
20120
20121         tests: fix compiler warnings
20122         * tests/test-getopt.h (test_getopt): Fix condition.
20123         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20124         * tests/test-pipe2.c (main): Likewise.
20125         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20126
20127         utimens: fix broken m4 test
20128         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20129
20130 2010-10-28  Bruno Haible  <bruno@clisp.org>
20131
20132         posix_spawn*, getdtablesize: Relax license.
20133         * modules/posix_spawn (License): Change to LGPLv2+.
20134         * modules/posix_spawnp (License): Likewise.
20135         * modules/posix_spawn-internal (License): Likewise.
20136         * modules/posix_spawnattr_init (License): Likewise.
20137         * modules/posix_spawnattr_getflags (License): Likewise.
20138         * modules/posix_spawnattr_setflags (License): Likewise.
20139         * modules/posix_spawnattr_getpgroup (License): Likewise.
20140         * modules/posix_spawnattr_setpgroup (License): Likewise.
20141         * modules/posix_spawnattr_getschedparam (License): Likewise.
20142         * modules/posix_spawnattr_setschedparam (License): Likewise.
20143         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20144         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20145         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20146         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20147         * modules/posix_spawnattr_getsigmask (License): Likewise.
20148         * modules/posix_spawnattr_setsigmask (License): Likewise.
20149         * modules/posix_spawnattr_destroy (License): Likewise.
20150         * modules/posix_spawn_file_actions_init (License): Likewise.
20151         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20152         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20153         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20154         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20155         * modules/getdtablesize (License): Likewise.
20156         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20157
20158 2010-10-26  Bruno Haible  <bruno@clisp.org>
20159
20160         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20161         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20162         Cygwin and mingw.
20163         Suggested by Eric Blake.
20164
20165 2010-10-26  Bruno Haible  <bruno@clisp.org>
20166
20167         stdio: Work around compilation error due to renameat() on Solaris 10.
20168         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20169         * lib/renameat.c: Don't include <unistd.h> here.
20170         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20171         Reported by Paul Eggert and Eric Blake.
20172
20173 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20174
20175         renameat: port to Solaris 10, which declares renameat in unistd.h
20176
20177         * lib/renameat.c: Include unistd.h before stdio.h, because
20178         Solaris 10 declares renameat in unistd.h.  Problem encountered
20179         when building GNU tar 1.24 on Solaris 10.
20180
20181 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20182
20183         fdopendir: fix C89 compilation
20184         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20185         compilers.
20186
20187 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20188
20189         inttostr: simplify by removing unnecessary redundancy
20190         * lib/anytostr.c: Don't include verify.h.
20191         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20192         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20193         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20194         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20195         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20196         Likewise.
20197         * modules/inttostr (Depends-on): Remove 'verify'.
20198
20199 2010-10-23  Bruno Haible  <bruno@clisp.org>
20200
20201         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20202         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20203         Reported by Eric Blake.
20204
20205 2010-10-23  Bruno Haible  <bruno@clisp.org>
20206
20207         Tests: Fix LOCALE_JA on MirBSD 10.
20208         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20209         to an UTF-8 locale.
20210         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20211         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20212         Reported by Eric Blake.
20213
20214 2010-10-21  Bruno Haible  <bruno@clisp.org>
20215
20216         nl_langinfo test: Avoid test failure on NetBSD 5.
20217         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20218         Reported by Eric Blake.
20219
20220 2010-10-21  Eric Blake  <eblake@redhat.com>
20221
20222         c-stack: work around libsigsegv 2.8 bug
20223         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20224         overflow on at least PowerPC64.
20225
20226 2010-10-17  Bruno Haible  <bruno@clisp.org>
20227
20228         userspec: Drop redundant file.
20229         * modules/userspec (Files): Remove lib/inttostr.h.
20230
20231 2010-10-17  Bruno Haible  <bruno@clisp.org>
20232
20233         nl_langinfo tests: Silence some warnings.
20234         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20235         Reported by Jim Meyering.
20236
20237 2010-10-17  Bruno Haible  <bruno@clisp.org>
20238
20239         Make use of GCC's attribute __alloc_size__.
20240         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20241         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20242         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20243         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20244         __alloc_size__.
20245         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20246         Suggested by Jim Meyering.
20247
20248 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20249
20250         bootstrap: anchor .gitignore entries.
20251         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20252         with...
20253         (insert_vc_ignore): ... this new function, which prepends `/' to
20254         all .gitignore entries before passing them to
20255         insert_sorted_if_absent.
20256
20257 2010-10-16  Bruno Haible  <bruno@clisp.org>
20258
20259         nextafter: Fix configure check.
20260         * modules/nextafter (configure.ac): Correct expected prototype.
20261
20262 2010-10-16  Bruno Haible  <bruno@clisp.org>
20263
20264         termios: Update documentation.
20265         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20266
20267 2010-10-16  Bruno Haible  <bruno@clisp.org>
20268
20269         tests: Make them compile with TinyCC.
20270         * tests/test-strstr.c (main): Remove parentheses around array
20271         initializer.
20272
20273 2010-10-15  Eric Blake  <eblake@redhat.com>
20274
20275         ignore-value: make header idempotent
20276         * lib/ignore-value.h: Add double-inclusion guards.
20277         Reported by Stefan Berger.
20278
20279 2010-10-15  Jim Meyering  <meyering@redhat.com>
20280
20281         GNUmakefile: handle "stable" target, not "major"
20282         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20283         lists in maint.mk and announce-gen.  Without this, "make stable"
20284         would fail to ensure that $(VERSION) is up to date.
20285
20286 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20287
20288         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20289         & co.
20290
20291 2010-10-14  Bruno Haible  <bruno@clisp.org>
20292
20293         vasnprintf: Don't set errno to 0.
20294         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20295         block that sets it to 0.
20296         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20297
20298 2010-10-14  Bruno Haible  <bruno@clisp.org>
20299
20300         socketlib: Fix.
20301         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20302         gl_PREREQ_SYS_H_WINSOCK2.
20303         Reported by Ian Beckwith <ianb@erislabs.net>.
20304
20305 2010-10-13  Jim Meyering  <meyering@redhat.com>
20306
20307         test-select-stdin.c: avoid warn_unused_result warnings
20308         * tests/test-select-stdin.c: Include "macros.h".
20309         ASSERT that read and fflush succeed.
20310
20311 2010-10-13  Jim Meyering  <meyering@redhat.com>
20312
20313         git-version-gen: do require git-VC'd files in cwd
20314         * build-aux/git-version-gen: Reject a git version string
20315         if there are no commits associated with the current directory.
20316         This avoids an unlikely false-positive (unrelated dir whose parent
20317         repository also contains a tag matching v*), as pointed out
20318         by Giuseppe Scrivano in
20319         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20320
20321 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20322
20323         argv-iter: omit nonconforming declaration
20324         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20325         enum arg_iter_err declaration, which doesn't conform to C99.
20326         Solaris 10 cc warns about this.
20327
20328 2010-10-13  Eric Blake  <eblake@redhat.com>
20329
20330         termios: fix compilation on mingw
20331         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20332         (gl_TERMIOS_H): Adjust it on mingw.
20333         * modules/termios (Makefile.am): Substitute new key.
20334         * lib/termios.in.h (includes): Make include_next conditional.
20335         * doc/posix-headers/termios.texi (termios.h): Update
20336         documentation.
20337         Reported by Daniel P. Berrange.
20338
20339 2010-10-13  Jim Meyering  <meyering@redhat.com>
20340
20341         git-version-gen: don't require that .git/ be in the current dir
20342         * build-aux/git-version-gen: Adjust this script so that it works
20343         when run from any working directory beneath the top-level .git/-
20344         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20346
20347         test-select: avoid warn_unused_result warnings
20348         * tests/test-select.c: Include "macros.h".
20349         ASSERT that each call to read, write, and pipe succeeds.
20350         While not technically required, also check each "close".
20351         * modules/select-tests (Files): Add tests/macros.h.
20352
20353         test-symlinkat: remove declaration of unused local
20354         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20355
20356         test-inttostr: avoid shadowing warnings
20357         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20358         and use malloc rather than the stack for the same reason as
20359         mentioned in the comment justifying the other allocation.
20360
20361 2010-10-11  Bruno Haible  <bruno@clisp.org>
20362
20363         stdlib: Allow multiple gnulib generated replacements to coexist.
20364         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20365         Reported by Sam Steingold <sds@gnu.org>.
20366
20367 2010-10-11  Jim Meyering  <meyering@redhat.com>
20368
20369         fix a documentation typo
20370         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20371
20372 2010-10-11  Eric Blake  <eblake@redhat.com>
20373
20374         futimens: work around Solaris 11 bug
20375         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20376         * tests/test-futimens.h (test_futimens): Enhance, rather than
20377         weaken test.
20378         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20379
20380 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20381
20382         Indentation.
20383         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20384         higher-level operators more to the left.
20385
20386 2010-10-11  Jim Meyering  <meyering@redhat.com>
20387
20388         test-futimens: avoid unwarranted test failure on Solaris 5.11
20389         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20390         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20391         because it tries to dereference the NULL name argument.
20392
20393 2010-10-11  Bruno Haible  <bruno@clisp.org>
20394
20395         Indentation.
20396         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20397         indentation.
20398
20399 2010-10-11  Jim Meyering  <meyering@redhat.com>
20400
20401         spawn.in.h: make indentation consistent with parentheses
20402         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20403         Make indentation consistent with parentheses.
20404
20405 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20406
20407         Fix mismatched parens in previous commit
20408         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20409         parens.
20410
20411 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20412
20413         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20414
20415         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20416         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20417         * lib/malloca.c: Include "verify.h".
20418         (verify1): Remove, replacing with a verify call.
20419         * lib/relocwrapper.c (verify1): Likewise.
20420         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20421         Likewise.
20422         * modules/malloca (Depends-on): Add 'verify'.
20423         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20424         * modules/vasnprintf (Depends-on): Add 'verify'.
20425         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20426         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20427         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20428         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20429         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20430         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20431         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20432
20433         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20434
20435         Formerly the style was sometimes 2*X - 1, because the C standard
20436         was wrongly thought to disallow ?: in integral constant expressions.
20437         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20438         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20439         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20440         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20441         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20442         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20443         verify that time_t cannot be floating.
20444
20445 2010-10-08  Eric Blake  <eblake@redhat.com>
20446
20447         time: enforce recent POSIX ruling that time_t is integral
20448         * lib/time.in.h (__time_t_must_be_integral): Detect any
20449         problematic systems, allowing the rest of gnulib to assume POSIX.
20450
20451 2010-10-08  Jim Meyering  <meyering@redhat.com>
20452
20453         fdopendir: fix a bug on systems lacking openat and /proc support
20454         OpenBSD 4.7 is one such system.  The most noticeable effect was
20455         failure of any application making nontrivial use of fts: rm, du,
20456         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20457           ./rm: traversal failed: `a': Bad file descriptor
20458         Debugging that, you see that even though FD 6 was closed just
20459         prior to the opendir call in fd_clone_opendir, its resulting
20460         dir->dd_fd was 8, rather than the expected value of 6:
20461
20462         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20463         93                close (fd);
20464         (gdb) n
20465         94                dir = fd_clone_opendir (dupfd);
20466         (gdb) n
20467         95                saved_errno = errno;
20468         (gdb) p dir->dd_fd
20469         $11 = 8
20470
20471         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20472         The problem is that on OpenBSD, fd_clone_opendir has to resort
20473         to using the old-style save/restore CWD mechanism, due to its
20474         lack of openat/proc support, and *that* would steal the FD (6)
20475         that opendir was supposed to use.
20476
20477         The fix is to squirrel away the desired FD so that save_cwd uses a
20478         different one, and then free the dest FD right before calling opendir.
20479         That guarantees opendir will use the required file descriptor.
20480
20481         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20482
20483 2010-10-08  Bruno Haible  <bruno@clisp.org>
20484
20485         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20486         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20487
20488 2010-10-08  Bruno Haible  <bruno@clisp.org>
20489
20490         nanosleep: Make replacement POSIX compliant.
20491         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20492         is out of range.
20493         Reported by Jim Meyering.
20494
20495 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20496
20497         bootstrap: add hook for altering gnulib.mk, for Bison
20498         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20499         the Bison bootstrapping process can rewrite file names and variables
20500         in this file before later parts of 'bootstrap' use the file.
20501         Bison wants to include lib/gnulib.mk from the top-level makefile,
20502         so it needs the file names in this file to be relative to the top
20503         level, not relative to lib; plus it needs variable names to be
20504         rewritten.
20505         (slurp): Use the new function.
20506
20507         bootstrap: reformat for readability
20508         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20509
20510 2010-10-08  Eric Blake  <eblake@redhat.com>
20511
20512         docs: update cygwin progress
20513         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20514         1.7.7.
20515         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20516         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20517         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20518         * doc/posix-functions/carg.texi (carg): Likewise.
20519         * doc/posix-functions/cargf.texi (cargf): Likewise.
20520         * doc/posix-functions/casin.texi (casin): Likewise.
20521         * doc/posix-functions/casinf.texi (casinf): Likewise.
20522         * doc/posix-functions/casinh.texi (casinh): Likewise.
20523         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20524         * doc/posix-functions/catan.texi (catan): Likewise.
20525         * doc/posix-functions/catanf.texi (catanf): Likewise.
20526         * doc/posix-functions/catanh.texi (catanh): Likewise.
20527         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20528         * doc/posix-functions/ccos.texi (ccos): Likewise.
20529         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20530         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20531         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20532         * doc/posix-functions/cexp.texi (cexp): Likewise.
20533         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20534         * doc/posix-functions/cimag.texi (cimag): Likewise.
20535         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20536         * doc/posix-functions/clog.texi (clog): Likewise.
20537         * doc/posix-functions/clogf.texi (clogf): Likewise.
20538         * doc/posix-functions/conj.texi (conj): Likewise.
20539         * doc/posix-functions/conjf.texi (conjf): Likewise.
20540         * doc/posix-functions/cpow.texi (cpow): Likewise.
20541         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20542         * doc/posix-functions/cproj.texi (cproj): Likewise.
20543         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20544         * doc/posix-functions/creal.texi (creal): Likewise.
20545         * doc/posix-functions/crealf.texi (crealf): Likewise.
20546         * doc/posix-functions/csin.texi (csin): Likewise.
20547         * doc/posix-functions/csinf.texi (csinf): Likewise.
20548         * doc/posix-functions/csinh.texi (csinh): Likewise.
20549         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20550         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20551         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20552         * doc/posix-functions/ctan.texi (ctan): Likewise.
20553         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20554         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20555         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20556         * doc/posix-headers/complex.texi (complex.h): Likewise.
20557
20558 2010-10-07  Jim Meyering  <meyering@redhat.com>
20559
20560         parse-datetime: avoid compilation failure on OpenBSD 4.7
20561         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20562         This works around a compilation failure on OpenBSD 4.7:
20563         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20564
20565 2010-10-07  Eric Blake  <eblake@redhat.com>
20566
20567         docs: update cygwin progress
20568         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20569         1.7.6.
20570         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20571         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20572         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20573         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20574         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20575         Likewise.
20576         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20577         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20578         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20579         Likewise.
20580         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20581         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20582         Likewise.
20583         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20584         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20585         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20586         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20587         Likewise.
20588         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20589         Likewise.
20590         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20591
20592         docs: update parse-datetime history
20593         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20594         documentation of this function's history and alternatives.
20595
20596         cygwin: use more robust version check
20597         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20598         exclude an eventual cygwin 1.9.1.
20599         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20600         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20601         (gl_FUNC_STRCASESTR): Likewise.
20602         Reported by Bruno Haible.
20603
20604 2010-10-06  Bruno Haible  <bruno@clisp.org>
20605
20606         string, sys_select: Avoid #including large headers unless necessary.
20607         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20608         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20609         OSF/1, BeOS, Haiku.
20610         Reported by Jim Meyering.
20611
20612 2010-10-05  Eric Blake  <eblake@redhat.com>
20613
20614         memmem, strstr, strcasestr: fix bug with long periodic needle
20615         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20616         periodic needle having false positive.
20617         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20618         and cygwin 1.7.7.
20619         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20621         (gl_FUNC_STRCASESTR): Likewise.
20622         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20623         * tests/test-memmem.c (main): Expose the bug.
20624         * tests/test-strcasestr.c (main): Likewise.
20625         * tests/test-strstr.c (main): Likewise.
20626         * tests/test-c-strcasestr.c (main): Likewise.
20627         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20628         * doc/posix-functions/strstr.texi (strstr): Likewise.
20629         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20630         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20631
20632 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20633
20634         parse-datetime: do some more renaming
20635         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20636         parse_datetime, not get_date.  Mention the renaming.
20637         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20638         in comments.
20639         * m4/bison.m4: Likewise.
20640
20641 2010-10-05  Eric Blake  <eblake@redhat.com>
20642
20643         parse-datetime: better name than get_date
20644         * NEWS: Reword the deprecation notice.
20645         * modules/get_date: Rename to modules/parse-datetime.
20646         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20647         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20648         * lib/get_date.y: Rename to lib/parse-datetime.y.
20649         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20650         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20651         * doc/getdate.texi: Provide fallback wrapper.
20652         * lib/getdate.h: Move guts, and wrap...
20653         * lib/parse-datetime.h: ...new file.
20654         * lib/parse-datetime.y (get_date): Rename...
20655         (parse_datetime): ...to this.
20656         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20657         (gl_PARSE_DATETIME): ...to this.
20658         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20659         documentation.
20660         * modules/getdate (Files): Provide fallback docs and header.
20661         (Notice, Depends-on): Update references.
20662         * tests/test-parse-datetime.c: Likewise.
20663         * DEPENDENCIES: Likewise.
20664         * MODULES.html.sh (Date and time <time.h>): Likewise.
20665         * doc/parse-datetime.texi (Date input formats)
20666         (Authors of parse_datetime): Likewise.
20667         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20668         (Include): Likewise.
20669         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20670         * gnulib-tool: Likewise.
20671         * m4/bison.m4 (gl_BISON): Likewise.
20672         Suggested by Bruno Haible.
20673
20674 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20675
20676         more ports to Solaris tr, which needs [] around ranges
20677         * gnulib-tool: Solaris tr needs [] around ranges.
20678         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20679         * tests/test-pipe-filter-gi1.c (main): Likewise.
20680         * tests/test-pipe-filter-ii1.c (main): Likewise.
20681
20682 2010-10-05  Eric Blake  <eblake@redhat.com>
20683
20684         bootstrap: fix Solaris regression
20685         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20686         around ranges.
20687         Reported by Pádraig Brady.
20688
20689         bootstrap: work with pkg-config
20690         * build-aux/bootstrap (check_versions): Also transliterate - in
20691         prerequisite name.
20692         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20693         prerequisites that were already found, to avoid confusion.
20694         Reported by Justin Clift.
20695
20696         faccessat: remove unused wrappers
20697         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20698         presence of these wrappers dragged in -lgen on Solaris.
20699         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20700
20701 2010-10-05  Jim Meyering  <meyering@redhat.com>
20702
20703         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20704         * Makefile (sc_pragma_columns): New syntax-check rule.
20705
20706 2010-10-04  Bruno Haible  <bruno@clisp.org>
20707
20708         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20709         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20710         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20711         Reported by Bruce Korb and Eric Blake.
20712
20713 2010-10-04  Bruno Haible  <bruno@clisp.org>
20714
20715         threadlib: Make option --with-libpth-prefix work.
20716         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20717         use $LIBPTH, not just -lpth.
20718
20719 2010-10-04  Bruno Haible  <bruno@clisp.org>
20720
20721         Avoid line length limitation from HP NonStop system header files.
20722         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20723         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20724         * lib/ctype.in.h: Likewise.
20725         * lib/dirent.in.h: Likewise.
20726         * lib/errno.in.h: Likewise.
20727         * lib/fcntl.in.h: Likewise.
20728         * lib/float.in.h: Likewise.
20729         * lib/getopt.in.h: Likewise.
20730         * lib/iconv.in.h: Likewise.
20731         * lib/inttypes.in.h: Likewise.
20732         * lib/langinfo.in.h: Likewise.
20733         * lib/locale.in.h: Likewise.
20734         * lib/math.in.h: Likewise.
20735         * lib/netdb.in.h: Likewise.
20736         * lib/netinet_in.in.h: Likewise.
20737         * lib/poll.in.h: Likewise.
20738         * lib/pthread.in.h: Likewise.
20739         * lib/pty.in.h: Likewise.
20740         * lib/sched.in.h: Likewise.
20741         * lib/se-selinux.in.h: Likewise.
20742         * lib/search.in.h: Likewise.
20743         * lib/signal.in.h: Likewise.
20744         * lib/spawn.in.h: Likewise.
20745         * lib/stdarg.in.h: Likewise.
20746         * lib/stddef.in.h: Likewise.
20747         * lib/stdint.in.h: Likewise.
20748         * lib/stdio.in.h: Likewise.
20749         * lib/stdlib.in.h: Likewise.
20750         * lib/string.in.h: Likewise.
20751         * lib/strings.in.h: Likewise.
20752         * lib/sys_file.in.h: Likewise.
20753         * lib/sys_ioctl.in.h: Likewise.
20754         * lib/sys_select.in.h: Likewise.
20755         * lib/sys_socket.in.h: Likewise.
20756         * lib/sys_stat.in.h: Likewise.
20757         * lib/sys_time.in.h: Likewise.
20758         * lib/sys_times.in.h: Likewise.
20759         * lib/sys_utsname.in.h: Likewise.
20760         * lib/sys_wait.in.h: Likewise.
20761         * lib/sysexits.in.h: Likewise.
20762         * lib/termios.in.h: Likewise.
20763         * lib/time.in.h: Likewise.
20764         * lib/unistd.in.h: Likewise.
20765         * lib/wchar.in.h: Likewise.
20766         * lib/wctype.in.h: Likewise.
20767         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20768         * modules/ctype (Makefile.am): Likewise.
20769         * modules/dirent (Makefile.am): Likewise.
20770         * modules/errno (Makefile.am): Likewise.
20771         * modules/fcntl-h (Makefile.am): Likewise.
20772         * modules/float (Makefile.am): Likewise.
20773         * modules/getopt-posix (Makefile.am): Likewise.
20774         * modules/iconv-h (Makefile.am): Likewise.
20775         * modules/inttypes (Makefile.am): Likewise.
20776         * modules/langinfo (Makefile.am): Likewise.
20777         * modules/locale (Makefile.am): Likewise.
20778         * modules/math (Makefile.am): Likewise.
20779         * modules/netdb (Makefile.am): Likewise.
20780         * modules/netinet_in (Makefile.am): Likewise.
20781         * modules/poll-h (Makefile.am): Likewise.
20782         * modules/pthread (Makefile.am): Likewise.
20783         * modules/pty (Makefile.am): Likewise.
20784         * modules/sched (Makefile.am): Likewise.
20785         * modules/search (Makefile.am): Likewise.
20786         * modules/selinux-h (Makefile.am): Likewise.
20787         * modules/signal (Makefile.am): Likewise.
20788         * modules/spawn (Makefile.am): Likewise.
20789         * modules/stdarg (Makefile.am): Likewise.
20790         * modules/stddef (Makefile.am): Likewise.
20791         * modules/stdint (Makefile.am): Likewise.
20792         * modules/stdio (Makefile.am): Likewise.
20793         * modules/stdlib (Makefile.am): Likewise.
20794         * modules/string (Makefile.am): Likewise.
20795         * modules/strings (Makefile.am): Likewise.
20796         * modules/sys_file (Makefile.am): Likewise.
20797         * modules/sys_ioctl (Makefile.am): Likewise.
20798         * modules/sys_select (Makefile.am): Likewise.
20799         * modules/sys_socket (Makefile.am): Likewise.
20800         * modules/sys_stat (Makefile.am): Likewise.
20801         * modules/sys_time (Makefile.am): Likewise.
20802         * modules/sys_times (Makefile.am): Likewise.
20803         * modules/sys_utsname (Makefile.am): Likewise.
20804         * modules/sys_wait (Makefile.am): Likewise.
20805         * modules/sysexits (Makefile.am): Likewise.
20806         * modules/termios (Makefile.am): Likewise.
20807         * modules/time (Makefile.am): Likewise.
20808         * modules/unistd (Makefile.am): Likewise.
20809         * modules/wchar (Makefile.am): Likewise.
20810         * modules/wctype (Makefile.am): Likewise.
20811
20812 2010-10-04  Bruno Haible  <bruno@clisp.org>
20813
20814         read-file tests: Avoid a test failure on NonStop Kernel.
20815         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20816         a regular file.
20817         Reported by Joachim Schmitz <schmitz@hp.com>.
20818
20819 2010-10-03  Bruno Haible  <bruno@clisp.org>
20820
20821         gnulib-tool: Fixes for --create-testdir with --libtool.
20822         * gnulib-tool (func_get_automake_snippet): Don't augment
20823         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20824         an executable.
20825         (func_create_testdir): Handle module 'alloca' like func_import.
20826         Reported by Bruce Korb <bruce.korb@gmail.com>.
20827
20828 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20829
20830         Avoid some lines longer than 80 characters.
20831         * lib/stdint.in.h: Break long comment lines.
20832         * lib/math.in.h: Likewise.
20833         (_GL_NUM_UINT_WORDS): New macro, for readability.
20834         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20835         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20836         * lib/stdlib.in.h: Likewise.
20837         * lib/spawn.in.h: Likewise.
20838         * lib/sys_socket.in.h: Update an URL.
20839         * lib/sys_stat.in.h: Break long line.
20840
20841 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20842
20843         Improve pmccabe2html.
20844         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20845         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20846         when the sources change. Remove the line in the HTML about "Used
20847         ranges" (which implied that there might be other unused ranges),
20848         rename "Resume" to "Summary" (easier to understand for more users).
20849         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20850         styles, and some unnecessary blank lines.
20851
20852 2010-10-03  Bruno Haible  <bruno@clisp.org>
20853             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20854
20855         acl: Add support for ACLs on NonStop Kernel.
20856         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20857         Check whether the function aclsort() exists.
20858         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20859         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20860         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20861         (acl_nontrivial [HAVE_ACLSORT]: New function.
20862         (file_has_acl): Implement for NonStop Kernel.
20863         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20864         (qset_acl): Implement for NonStop Kernel.
20865         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20866         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20867         (main): Implement for NonStop Kernel.
20868         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20869         Kernel. Handle this flavor.
20870         * tests/test-set-mode-acl.sh: Likewise.
20871         * tests/test-copy-acl.sh: Likewise.
20872         * tests/test-copy-file.sh: Likewise.
20873
20874 2010-10-03  Bruno Haible  <bruno@clisp.org>
20875
20876         Info about ACLs on NonStop Kernel.
20877         * doc/acl-resources.txt: Add info about NonStop Kernel.
20878         References by Joachim Schmitz <schmitz@hp.com>.
20879
20880 2010-10-02  Bruno Haible  <bruno@clisp.org>
20881
20882         Define missing EDQUOT on NonStop Kernel.
20883         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20884         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20886         missing.
20887         * doc/posix-headers/errno.texi: Mention the NSK bug.
20888         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20889         Reported by Joachim Schmitz <schmitz@hp.com>.
20890
20891 2010-10-02  Bruno Haible  <bruno@clisp.org>
20892
20893         Update doc for POSIX:2008.
20894         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20895         Update URL of POSIX specification.
20896
20897 2010-10-02  Bruno Haible  <bruno@clisp.org>
20898
20899         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20900         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20901         from gnulib, not from Automake.
20902
20903 2010-10-02  Bruno Haible  <bruno@clisp.org>
20904
20905         New module 'system-posix'.
20906         * modules/system-posix: New file.
20907         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20908         module is present.
20909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20910         GNULIB_SYSTEM_POSIX.
20911         * modules/stdlib (Depends-on): Remove sys_wait.
20912         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20913         * doc/posix-functions/system.texi: Mention the new module.
20914         * doc/posix-headers/stdlib.texi: Likewise.
20915         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20916         define test_sys_wait_macros to a no-op.
20917         Reported by Sam Steingold <sds@gnu.org>.
20918
20919 2010-09-30  Bruno Haible  <bruno@clisp.org>
20920
20921         More renaming from 'getdate' to 'get_date'.
20922         * doc/get_date.texi: Renamed from doc/getdate.texi.
20923         * modules/get_date (Files): Update.
20924         * MODULES.html.sh (Date and time <time.h>): Update.
20925         * DEPENDENCIES: Update.
20926         * gnulib-tool: Update comment.
20927         * m4/bison.m4 (gl_BISON): Likewise.
20928         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20929
20930 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20931
20932         bootstrap: support ACLOCAL_FLAGS during aclocal
20933         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20934         can add additional -I dir for third-party .m4 files.
20935
20936 2010-09-30  Eric Blake  <eblake@redhat.com>
20937
20938         bootstrap: use glibtoolize on MacOS
20939         * build-aux/bootstrap (check_versions): Convert libtool into
20940         libtoolize.
20941         (tool search): Move libtool check earlier, and look for
20942         glibtoolize for MacOS.
20943         (gnulib_tool_options): Auto-add --libtool when appropriate.
20944         Reported by Justin Clift.
20945
20946         poll: fix typo that broke test on MacOS
20947         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20948         Reported by Justin Clift.
20949
20950         getdate: rename to get_date
20951         Note: getdate.h is not renamed, to minimize client impact.
20952         * modules/getdate: Mark obsolete.  Move old contents...
20953         * modules/get_date: ...to new module name.
20954         * modules/getdate-tests: Move...
20955         * modules/get_date-tests: ...here.
20956         * m4/getdate.m4: Move...
20957         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20958         * lib/getdate.y: Move...
20959         * lib/get_date.y: ...here.
20960         * tests/test-getdate.c: Move...
20961         * tests/test-get_date.c: ...here.
20962         * doc/posix-functions/getdate.texi (getdate): Update name.
20963         * NEWS: Mention the change.
20964
20965 2010-09-29  Bruno Haible  <bruno@clisp.org>
20966
20967         Separate the module 'waitpid' from the module 'sys_wait'.
20968         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20969         present.
20970         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20971         gl_MODULE_INDICATOR_FOR_TESTS.
20972         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20973         * modules/sys_wait (Depends-on): Remove waitpid.
20974         (Makefile.am): Substitute GNULIB_WAITPID.
20975         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20976         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20977         signature only if the 'waitpid' module is present.
20978         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20979         * NEWS: Mention the change.
20980         * modules/grantpt (Depends-on): Add waitpid.
20981         * modules/wait-process (Depends-on): Likewise.
20982
20983 2010-09-29  Bruno Haible  <bruno@clisp.org>
20984
20985         More tests for module 'sys_wait'.
20986         * modules/sys_wait-c++-tests: New file.
20987         * tests/test-sys_wait-c++.cc: New file.
20988         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20989         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20990
20991 2010-09-29  Bruno Haible  <bruno@clisp.org>
20992
20993         New module 'waitpid'.
20994         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20995         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20996         Don't include <process.h>.
20997         (waitpid): Declare only, using modern idiom.
20998         * m4/waitpid.m4: New file.
20999         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21000         * modules/waitpid: New file.
21001         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21002         (Makefile.am): Update.
21003         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21004
21005 2010-09-28  Bruno Haible  <bruno@clisp.org>
21006
21007         poll: Assume ANSI C.
21008         * lib/poll.c (poll): Use an ANSI C declaration.
21009
21010 2010-09-28  Bruno Haible  <bruno@clisp.org>
21011
21012         poll-h: Create poll.h on all platforms.
21013         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21014         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21015         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21016         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21017         (gl_REPLACE_POLL_H): Don't set POLL_H.
21018         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21019         * modules/poll-h (Depends-on): Add include_next.
21020         (Makefile.am): Create poll.h unconditionally. Substitute also
21021         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21022
21023 2010-09-28  Bruno Haible  <bruno@clisp.org>
21024
21025         Tests for module 'poll-h'.
21026         * modules/poll-h-c++-tests: New file.
21027         * tests/test-poll-h-c++.cc: New file.
21028
21029         Tests for module 'poll-h'.
21030         * modules/poll-h-tests: New file.
21031         * tests/test-poll-h.c: New file.
21032
21033 2010-09-28  Bruno Haible  <bruno@clisp.org>
21034
21035         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21036         * modules/poll-h (Depends-on): Add 'extensions'.
21037
21038 2010-09-28  Bruno Haible  <bruno@clisp.org>
21039
21040         New module 'poll-h'.
21041         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21042         (poll): Use modern idiom.
21043         * modules/poll-h: New file.
21044         * modules/poll (Files): Remove lib/poll.in.h.
21045         (Depends-on): Add poll-h.
21046         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21047         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21048         * m4/poll_h.m4: New file.
21049         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21050         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21051         and invoke gl_REPLACE_POLL_H.
21052         * lib/poll.c: Use common idiom.
21053         * tests/test-poll.c: Likewise.
21054         * doc/posix-headers/poll.texi: Mention the poll-h module.
21055         Suggested by Eric Blake.
21056
21057 2010-09-26  Bruno Haible  <bruno@clisp.org>
21058
21059         sys_wait: Implement WSTOPSIG.
21060         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21061         Reported by Simon Josefsson.
21062
21063 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21064
21065         stdlib, sys_wait: Avoid compilation error on mingw.
21066         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21067
21068 2010-09-26  Bruno Haible  <bruno@clisp.org>
21069
21070         stdlib tests: Avoid code duplication.
21071         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21072         * modules/sys_wait-tests (Files): Likewise.
21073         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21074         * tests/test-stdlib.c: Include test-sys_wait.h.
21075         (main): Invoke test_sys_wait_macros.
21076         * tests/test-sys_wait.c: Include test-sys_wait.h.
21077         (main): Invoke test_sys_wait_macros.
21078
21079 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21080
21081         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21082         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21083         sure Windows sockets are working before calling getaddrinfo.
21084         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21085         * doc/gnulib.texi (Windows sockets): Fix typo.
21086
21087 2010-09-25  Bruno Haible  <bruno@clisp.org>
21088
21089         Tests for module 'regex-quote'.
21090         * modules/regex-quote-tests: New file.
21091         * tests/test-regex-quote.c: New file.
21092
21093         New module 'regex-quote'.
21094         * lib/regex-quote.h: New file.
21095         * lib/regex-quote.c: New file.
21096         * modules/regex-quote: New file.
21097         Suggested by Reuben Thomas <rrt@sc3d.org>.
21098
21099 2010-09-24  Bruno Haible  <bruno@clisp.org>
21100
21101         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21102         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21103
21104 2010-09-23  Bruno Haible  <bruno@clisp.org>
21105
21106         setenv: Relax license.
21107         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21108         Blake.
21109         Requested by Eric Blake.
21110
21111 2010-09-22  Bruno Haible  <bruno@clisp.org>
21112
21113         termios: Relax license.
21114         * modules/termios (License): Change to LGPLv2+.
21115         Requested by Eric Blake.
21116
21117 2010-09-22  Bruno Haible  <bruno@clisp.org>
21118
21119         threadlib: Allow the package to change the default to 'no'.
21120         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21121         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21122         Reported by Paul Eggert.
21123
21124 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21125             Bruno Haible  <bruno@clisp.org>
21126
21127         Fix endless loop in mbmemcasecoll.
21128         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21129         byte.
21130         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21131
21132 2010-09-22  Bruno Haible  <bruno@clisp.org>
21133
21134         Tests for module 'memcoll'.
21135         * modules/memcoll-tests: New file.
21136         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21137
21138         memcoll, xmemcoll: Clarify size vs. length.
21139         * modules/memcoll.c (memcoll0): Clarify specification.
21140         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21141         passed to collate_error.
21142
21143 2010-09-22  Bruno Haible  <bruno@clisp.org>
21144
21145         Tests for module 'memcasecmp'.
21146         * modules/memcasecmp-tests: New file.
21147         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21148
21149 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21150
21151         * lib/pthread.in.h: Add split double-inclusion guard, and include
21152         system <pthread.h> if there is one.  Use @@-style as in other
21153         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21154         pthread.h doesn't.
21155         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21156         (pthread_mutexattr_settype, pthread_mutex_trylock):
21157         New static inline functions, if there's no system <pthread.h>.
21158         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21159         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21160         Approximate with mutexes if the system lacks spinlocks, as in
21161         MacOS.
21162         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21163         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21164         @@-style.  Check for spinlocks separately.
21165         (gl_PTHREAD_DEFAULTS): New macro.
21166         * modules/pthread: Redo to use a more typical style for in.h files.
21167
21168 2010-09-21  Eric Blake  <eblake@redhat.com>
21169
21170         net_if: enhance tests
21171         * tests/test-net_if.c (main): Move signature checks earlier.
21172         Print failures to stderr.
21173         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21174         Document the bug that we do not yet fix.
21175
21176 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21177
21178         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21179         about gnulib, not GSS.
21180
21181 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21182
21183         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21184         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21185         for Emacs.
21186         * build-aux/pmccabe2html: Make Makefile.am example code more
21187         cut-and-paste friendly.
21188
21189 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21190
21191         * tests/test-net_if.c: New file.
21192         * modules/net_if-tests: New file.
21193
21194 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         pthread: add pthread_spin_destroy
21197         * lib/pthread.in.h (pthread_spin_destroy): New function.
21198
21199 2010-09-19  Bruno Haible  <bruno@clisp.org>
21200
21201         gnulib-tool: Fix --help output.
21202         * gnulib-tool (func_usage): Fix help message.
21203         Reported by Reuben Thomas <rrt@sc3d.org>.
21204
21205 2010-09-18  Jim Meyering  <meyering@redhat.com>
21206
21207         maint.mk: avoid unexpanded \n in two diagnostics
21208         * top/maint.mk (sc_prohibit_always_true_header_tests):
21209         Don't use a literal \n in a halt=... assignment.  It would not be
21210         expanded, and the two \n bytes would appear in the diagnostic output
21211         rather than the desired newline.  Use halt=$$(printf ... instead.
21212         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21213
21214 2010-09-18  Bruno Haible  <bruno@clisp.org>
21215
21216         netinet_in: Doc tweak.
21217         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21218         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21219
21220 2010-09-18  Jim Meyering  <meyering@redhat.com>
21221
21222         init.sh: correct an outdated comment
21223         * tests/init.sh (create_exe_shims_):  s/function/alias/
21224
21225         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21226         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21227         a file named "*.exe" is removed between the glob expansion and the
21228         processing of that oddly named file.
21229
21230 2010-09-17  Eric Blake  <eblake@redhat.com>
21231
21232         mirbsd: add some more support
21233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21234         in BSD family.
21235         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21236         devices as OpenBSD.
21237         * m4/host-os.m4 (mirbsd): Add MirBSD.
21238
21239         tests: fix unportable assumption on sys/wait.h
21240         * tests/test-sys_wait.c (main): Relax test.
21241         * tests/test-stdlib.c (main): Likewise.
21242
21243         init.sh: accomodate directory with no .exes
21244         * tests/init.sh: Accomodate directory containing only scripts.
21245
21246         tests: avoid compiler warning
21247         * tests/test-stdlib.c (main): Use the variable.
21248
21249         fdutimens, fdutimensat: update signature, again
21250         * lib/utimens.h (gl_futimens): Delete, and move signature...
21251         (fdutimens): ...here.
21252         (fdutimensat): Rearrange signature.
21253         (lutimensat): Rename variable for clarity.
21254         * lib/fdutimensat.c (fdutimensat): Update signature.
21255         * lib/utimens.c (fdutimens): Likewise.
21256         (gl_futimens): Delete.
21257         (utimens, lutimens): Update callers.
21258         * lib/futimens.c (futimens): Likewise.
21259         * tests/test-fdutimensat.c: Likewise.
21260         * tests/test-utimens.c: Likewise.
21261         * tests/test-futimens.h: Update comment.
21262         * NEWS: Mention this.
21263         Suggested by Paul Eggert.
21264
21265 2010-09-17  Bruno Haible  <bruno@clisp.org>
21266
21267         Take over the maintenance of some older macros from Autoconf.
21268         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21269         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21270         GNU Autoconf.
21271         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21272         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21273
21274 2010-09-17  Eric Blake  <eblake@redhat.com>
21275
21276         fdutimensat: drop atflag validation
21277         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21278         with valid fd, to close a race scenario where futimens is
21279         unsupported and FILE was replaced by a symlink.
21280         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21281         accordingly.
21282         Suggested by Paul Eggert.
21283
21284 2010-09-16  Bruno Haible  <bruno@clisp.org>
21285
21286         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21287         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21288
21289 2010-09-16  Bruno Haible  <bruno@clisp.org>
21290
21291         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21292         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21293         login_tty exists.
21294         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21295
21296 2010-09-16  Bruno Haible  <bruno@clisp.org>
21297
21298         login_tty: Make the replacement code work on BSD systems.
21299         * lib/login_tty.c: Include <sys/ioctl.h>.
21300         (login_tty): Use ioctl TIOCSCTTY when available.
21301         * modules/login_tty (Depends-on): Add sys_ioctl.
21302         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21303
21304 2010-09-16  Bruno Haible  <bruno@clisp.org>
21305
21306         login_tty: Stricter unit test.
21307         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21308         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21309         and tcgetsid() after login_tty.
21310         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21311
21312 2010-09-16  Bruno Haible  <bruno@clisp.org>
21313
21314         New module 'tcgetsid'.
21315         * lib/tcgetsid.c: New file.
21316         * m4/tcgetsid.m4: New file.
21317         * modules/tcgetsid: New file.
21318         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21319         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21320         GNULIB_TCGETSID, HAVE_TCGETSID.
21321         * lib/termios.in.h: Include <sys/types.h>.
21322         (tcgetsid): New declaration.
21323         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21324         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21325         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21326         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21327
21328 2010-09-16  Bruno Haible  <bruno@clisp.org>
21329
21330         Tests for module 'termios'.
21331         * modules/termios-c++-tests: New file.
21332         * modules/termios-tests: New file.
21333         * tests/test-termios-c++.cc: New file.
21334         * tests/test-termios.c: New file.
21335
21336         New module 'termios'.
21337         * modules/termios: New file.
21338         * lib/termios.in.h: New file.
21339         * m4/termios_h.m4: New file.
21340         * doc/posix-headers/termios.texi: Mention the new module.
21341
21342 2010-09-16  Eric Blake  <eblake@redhat.com>
21343
21344         fdutimensat: add an atflag parameter
21345         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21346         * lib/utimens.h (fdutimensat): Update prototype.
21347         * tests/test-fdutimensat.c: Adjust test to match.
21348         * NEWS: Document the change.
21349         Suggested by Paul Eggert.
21350
21351 2010-09-16  Bruno Haible  <bruno@clisp.org>
21352
21353         Fix typos in comments.
21354         * lib/striconveh.h: Fix typo in comment.
21355         * lib/login_tty.c (login_tty): Likewise.
21356
21357 2010-09-15  Bruno Haible  <bruno@clisp.org>
21358
21359         stdlib: clarify MirBSD WEXITSTATUS bug
21360         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21361         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21362
21363 2010-09-15  Eric Blake  <eblake@redhat.com>
21364
21365         stdlib: work around MirBSD WEXITSTATUS bug
21366         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21367         * modules/stdlib (Depends-on): Add sys_wait.
21368         * tests/test-sys_wait.c (main): Enhance test.
21369         * tests/test-stdlib.c (main): Likewise.
21370         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21371
21372         docs: mention MacOS issue with WEXITSTATUS(constant)
21373         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21374         issue.
21375         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21376
21377         strnlen: add tests
21378         * modules/strnlen-tests: New file.
21379         * tests/test-strnlen.c: Likewise.
21380
21381 2010-09-14  Bruno Haible  <bruno@clisp.org>
21382
21383         unistr/base: Avoid link errors when module 'libunistring' is also used.
21384         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21385         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21386         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21387         Declare also when HAVE_LIBUNISTRING is set.
21388         Reported by Pádraig Brady <P@draigbrady.com>.
21389
21390 2010-09-14  Eric Blake  <eblake@redhat.com>
21391
21392         test-rawmemchr: make more robust
21393         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21394         (Depends-on, configure.ac): Add needed prerequisites to use it.
21395         * modules/memchr-tests (Files, Depends-on, configure.ac):
21396         Likewise, to avoid implicit reliance on memchr module prereqs.
21397         * tests/test-memchr.c (main): Ensure proper masking.
21398         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21399         reads.
21400
21401         memchr: detect glibc Alpha bug
21402         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21403         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21404         Alpha.
21405         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21406         * tests/test-memchr.c (main): Enhance test.
21407         Reported by Nelson H. F. Beebe.
21408
21409 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21410
21411         fts, getcwd, glob: audit for dirfd returning -1
21412         * lib/fts.c (opendir): Remove #define; no longer used.
21413         (opendirat): New arg PDIR_FD.  All callers changed.
21414         (fts_build, _opendir2): Use new opendirat to avoid the need for
21415         dirfd, or for checking whether dirfd returns a negative value.
21416         Don't use opendir; always use openat followed by fdopendir.
21417         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21418         it.
21419         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21420         returns -1 here.
21421         * modules/fts (Depends-on): Remove dirfd.
21422         * modules/getcwd (Depends-on): Likewise.
21423
21424 2010-09-13  Eric Blake  <eblake@redhat.com>
21425
21426         float: fix broken MirBSD header
21427         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21428         * doc/posix-headers/float.texi (float.h): Document it.
21429
21430 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21431
21432         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21433         * lib/fts.c (opendirat): New arg extra_flags.
21434         (__opendir2): Use it to avoid following symlinks when opening
21435         a directory, if symlinks are not supposed to be followed.  See
21436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21437
21438         fdopendir: preserve argument fd before returning
21439         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21440         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21441         (fdopendir): Use them, arranging for FD to be open to the same
21442         directory that it was when it started.  (It might be temporarily
21443         closed while fdopendir is running, so this not thread- or
21444         signal-safe.)  Be careful to do the right thing even when file
21445         descriptors are scarce and dup fails with errno == EMFILE.  See
21446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21447
21448 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21449
21450         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21451         * NEWS: Document change.
21452         * m4/regex.m4: Disable test for regoff_t size.
21453
21454 2010-09-13  Jim Meyering  <meyering@redhat.com>
21455
21456         fts: don't operate on an invalid file descriptor after failed dup
21457         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21458         negative file descriptor.
21459
21460 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21461
21462         savedir: add streamsavedir, deprecate fdsavedir
21463         * NEWS: Mention deprecation of fdsavedir.
21464         * lib/savedir.c (streamsavedir): New extern function, whose name
21465         ends in "savedir" to be consistent with the others.  This differs
21466         from savedirstream in that it doesn't close its argument.  The
21467         next version of GNU tar will use this instead of fdsavedir, to
21468         avoid some race conditions and conserve file descriptors.
21469         (savedirstream): Reimplement as a wrapper around streamsavedir.
21470         (fdsavedir): Add a comment deprecating this function.  As far as
21471         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21472         * lib/savedir.h (streamsavedir): New decl.
21473         (fdsavedir): Add a comment deprecating this.
21474
21475 2010-09-10  Bruno Haible  <bruno@clisp.org>
21476
21477         langinfo: Fix last commit.
21478         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21479         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21480         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21481
21482 2010-09-10  Bruno Haible  <bruno@clisp.org>
21483
21484         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21485         * lib/progreloc.c (O_EXEC): Define fallback.
21486
21487 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21488
21489         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21490         * NEWS: Document recent changes to fcntl-h.
21491         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21492         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21493         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21494         Similarly for O_SEARCH; this last was already true, but not documented.
21495         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21496         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21497         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21498         Likewise.
21499         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21500         is zero, not whether it is defined.
21501         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21502         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21503         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21504
21505 2010-09-10  Bruno Haible  <bruno@clisp.org>
21506
21507         langinfo, nl_langinfo: Fix for IRIX 5.3.
21508         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21509         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21510         HAVE_LANGINFO_YESEXPR.
21511         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21512         HAVE_LANGINFO_YESEXPR.
21513         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21514         HAVE_LANGINFO_T_FMT_AMPM is 0.
21515         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21516         HAVE_LANGINFO_YESEXPR is 0.
21517         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21518         NOEXPR.
21519         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21520         * doc/posix-functions/nl_langinfo.texi: Likewise.
21521         Reported by Eric Blake.
21522
21523 2010-09-10  Bruno Haible  <bruno@clisp.org>
21524
21525         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21526         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21527         on FreeBSD 8.0 and OpenBSD 4.6.
21528         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21529         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21530         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21531         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21532         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21533         ac_includes_default.
21534         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21535
21536 2010-09-09  Eric Blake  <eblake@redhat.com>
21537
21538         strsignal: work around NetBSD bug
21539         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21540         * lib/string.in.h (includes): Likewise.
21541         * doc/posix-functions/strsignal.texi (strsignal): Document the
21542         bug.
21543         Reported by Nelson H. F. Beebe.
21544
21545         gnulib-tool: work with NetBSD /bin/sh
21546         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21547         (func_get_description, func_get_comment, func_get_status)
21548         (func_get_notice, func_get_applicability, func_get_filelist)
21549         (func_get_dependencies, func_get_autoconf_early_snippet)
21550         (func_get_autoconf_snippet, func_get_automake_snippet)
21551         (func_get_include_directive, func_get_link_directive)
21552         (func_get_license, func_get_maintainer, func_import): Avoid
21553         shell syntax errors from parsing syntax extensions.
21554
21555 2010-09-09  Bruno Haible  <bruno@clisp.org>
21556
21557         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21558         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21559         a reliable way to determine whether the 'alias' command works.
21560
21561 2010-09-08  Jim Meyering  <meyering@redhat.com>
21562
21563         init.sh: penalize a set-x-impaired shell; don't disqualify it
21564         * tests/init.sh: Too many shells corrupt application stderr when
21565         you set -x, so we can't afford to disqualify them, since at least
21566         on Irix-6.5, that would disqualify all bourne shells.
21567         Instead, use a two-pass approach.
21568         On the first pass, try to find a shell that meets the stricter
21569         condition that set -x does not corrupt stderr.
21570         If no shell meets the stricter condition, retest each candidate
21571         shell, but without that extra condition.  Finally, when
21572         VERBOSE=yes is requested and set -x might cause trouble, simply
21573         issue a warning and refrain from enabling debug output.
21574
21575 2010-09-08  Eric Blake  <eblake@redhat.com>
21576
21577         unsetenv: fix OpenBSD bug
21578         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21579         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21580         documentation.
21581         Reported by Jim Meyering.
21582
21583         strtod: work around IRIX 6.5 bug
21584         * lib/strtod.c (strtod): Reparse number on shorter string if
21585         exponent parse was invalid.
21586         * tests/test-strtod.c (main): Add check for "0x1p 2".
21587         Reported by Tom G. Christensen.
21588
21589         getopt: optimize previous patch
21590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21591         empty variable.  Speed up awk script.
21592         Reported by Paolo Bonzini.
21593
21594 2010-09-08  Jim Meyering  <meyering@redhat.com>
21595
21596         test.sh: disqualify shells for which set -x corrupts stderr
21597         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21598         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21599         appear in stderr output.  For example, this command:
21600             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21601         prints "P=1" on those two systems:
21602
21603 2010-09-08  Bruno Haible  <bruno@clisp.org>
21604
21605         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21606         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21607         commands, because some shells ignore redirections when there is an
21608         error in the command lookup.
21609         Reported by Eric Blake.
21610
21611 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21612
21613         * lib/regex.h: Fix a mention of `regex_compile' (should be
21614         `re_compile_pattern').
21615         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21616         (re_set_registers): Correct name of parameter in comment.
21617
21618         * doc/regex.texi: Add documentation for missing syntax flags.
21619         Remove commented-out documentation of defunct syntax option
21620         RE_NO_EMPTY_ALTS.
21621         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21622         Add documentation of re_set_registers.
21623         Document trick to re-use a pattern buffer by setting fastmap manually.
21624         Update documentation of struct re_pattern_buffer per public members.
21625         Uncomment documentation of equivalence class operators and
21626         collating symbol operators, since they are now implemented,
21627         Explain leftmost-longest matching in relation to alternatives.
21628         Tidy documentation of substring matching.
21629         Remove POSIX documentation, which is done better in
21630         glibc, and refer the reader there. Keep BSD API documentation, as
21631         that is not readily available elsewhere.
21632
21633 2010-09-07  Eric Blake  <eblake@redhat.com>
21634
21635         getopt: handle POSIXLY_CORRECT set but not exported
21636         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21637         export state of POSIXLY_CORRECT, due to bash set -o posix.
21638         Reported by Dustin J. Mitchell.
21639
21640 2010-09-05  Bruno Haible  <bruno@clisp.org>
21641
21642         gnulib-tool: Highlight the changed options.
21643         * gnulib-tool (func_usage): Display the --import, --add-import,
21644         --remove-import explanations in bold font.
21645
21646 2010-09-06  Karl Berry  <karl@gnu.org>
21647
21648         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21649
21650 2010-09-05  Bruno Haible  <bruno@clisp.org>
21651
21652         uniwidth/width: Update comment.
21653         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21654         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21655
21656 2010-09-05  Bruno Haible  <bruno@clisp.org>
21657
21658         isinf, isnan: Relax license.
21659         * modules/isinf (License): Change from GPL to LGPL, with consent from
21660         Ben Pfaff.
21661         * modules/isnan (License): Likewise.
21662         Requested by Ludovic Courtès.
21663
21664 2010-09-04  Bruno Haible  <bruno@clisp.org>
21665
21666         gnulib-tool: Help migration from --import to --add-import or --update.
21667         * gnulib-tool: Emit a verbose error message when --import is used
21668         without any module name.
21669
21670 2010-09-04  Bruno Haible  <bruno@clisp.org>
21671
21672         Update doc about gnulib-tool.
21673         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21674         'gnulib-tool --update' in more detail.
21675         Reported by Eric Blake.
21676
21677 2010-09-04  Bruno Haible  <bruno@clisp.org>
21678
21679         gnulib-tool: Change --import. New options --add/remove-import.
21680         * gnulib-tool: New options --add-import, --remove-import.
21681         (func_usage): Document them.
21682         (have_associative): Define always.
21683         (func_import): In import mode, don't merge the specified settings with
21684         the cached settings. Implement remove-import mode.
21685         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21686         Explain when to use them versus --import.
21687         (Simple update): Use --add-import instead of --import.
21688         * NEWS: Mention the change.
21689
21690 2010-09-04  Bruno Haible  <bruno@clisp.org>
21691
21692         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21693         separate gnulib.mk.
21694
21695 2010-09-04  Bruno Haible  <bruno@clisp.org>
21696
21697         gnulib-tool: Don't talk about CVS any more.
21698         * gnulib-tool (func_usage, func_import): Write "version control"
21699         instead of CVS.
21700
21701 2010-09-04  Jim Meyering  <meyering@redhat.com>
21702
21703         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21704         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21705         false positives (whose names may be ill-chosen) when searching
21706         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21707         would cause a false-positive.
21708
21709         avoid coreutils "make distcheck" failure
21710         Coreutils tests with an absolute build directory name that contains
21711         a space.  Not quoting this directory name caused a failure.
21712         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21713         * tests/test-vc-list-files-cvs.sh: Likewise.
21714
21715 2010-09-04  Bruno Haible  <bruno@clisp.org>
21716
21717         gnulib-tool: Avoid error when run in a package without Makefile.am.
21718         * gnulib-tool: When collecting the m4dirs in a package that does not
21719         have a Makefile.am, eliminate those directories that contain no
21720         gnulib-cache.m4. Fix expression that counts these directories.
21721
21722 2010-09-04  Bruno Haible  <bruno@clisp.org>
21723
21724         update-copyright test: Improve output when perl is missing or too old.
21725         * tests/test-update-copyright.sh: Move test of Perl version down after
21726         the test whether Perl exists. Provide an explanation relating Perl's
21727         error message to Automake's SKIP: message.
21728
21729 2010-09-04  Bruno Haible  <bruno@clisp.org>
21730
21731         Don't augment PATH in TESTS_ENVIRONMENT.
21732         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21733         set abs_aux_dir instead of augmenting PATH.
21734         * modules/vc-list-files-tests (Makefile.am): Likewise.
21735         * tests/test-update-copyright.sh: Augment PATH here.
21736         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21737         path_prepend_.
21738         * tests/test-vc-list-files-git.sh: Likewise.
21739
21740 2010-09-04  Jim Meyering  <meyering@redhat.com>
21741
21742         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21743         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21744
21745 2010-09-04  Bruno Haible  <bruno@clisp.org>
21746
21747         strdup: Fix compilation error in C++ mode.
21748         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21749         the macro.
21750
21751 2010-09-04  Bruno Haible  <bruno@clisp.org>
21752
21753         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21754         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21755         macro into a function.
21756         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21757
21758 2010-09-04  Bruno Haible  <bruno@clisp.org>
21759
21760         Set PATH_SEPARATOR the same way autoconf does.
21761         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21762         the value of PATH_SEPARATOR the same way autoconf-generated configure
21763         scripts do.
21764         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21765         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21766
21767 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21768
21769         Set PATH_SEPARATOR the same way autoconf does.
21770         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21771         the same way autoconf-generated configure scripts do.
21772         * posix-modules: Likewise.
21773
21774 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21775
21776         hash: fix safe_hasher const typo
21777         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21778         const; otherwise, there is a type error later.
21779
21780 2010-09-02  Jim Meyering  <meyering@redhat.com>
21781
21782         test-update-copyright.sh: require perl 5.8.0
21783         * tests/test-update-copyright.sh: Require 5.8.0,
21784         which Tom G. Christensen has confirmed is adequate,
21785         while 5.6.1 is not.
21786
21787 2010-09-02  Eric Blake  <eblake@redhat.com>
21788
21789         tests: init.sh improvements for re-exec'ing with zsh
21790         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21791         -vx through shell re-exec.
21792         Reported by Tom G. Christensen.
21793
21794         wctype: fix typo in previous commit
21795         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21796         Reported by Ludovic Courtès.
21797
21798 2010-09-02  Jim Meyering  <meyering@redhat.com>
21799
21800         test-update-copyright.sh: skip test if Perl is too old
21801         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21802         Reported by Tom G. Christensen.
21803
21804 2010-09-02  Bruno Haible  <bruno@clisp.org>
21805
21806         wctype: Avoid compilation error on IRIX 6.5.30.
21807         * lib/wctype.in.h (iswblank): Declare with a replacement if
21808         REPLACE_ISWBLANK is set.
21809         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21810         declared. Set REPLACE_ISWBLANK.
21811         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21812         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21813         * doc/posix-headers/wctype.texi: Likewise.
21814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21815
21816 2010-09-01  Bruno Haible  <bruno@clisp.org>
21817
21818         New module 'socketlib'.
21819         * modules/socketlib: New file.
21820         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21821         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21822         * modules/sockets (Depends-on): Add socketlib.
21823         Suggested by Sam Steingold <sds@gnu.org>.
21824
21825 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21826
21827         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21828
21829         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21830         when one needs search access to a directory but not read access.
21831         On systems where it is available, it works in some cases where
21832         O_RDONLY does not, namely on directories that are searchable but
21833         not readable, and which need only to be searchable.  If O_SEARCH
21834         is not available, fall back to the traditional method of using
21835         O_RDONLY.
21836
21837         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21838         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21839         when opening a directory that needs only to be searchable.
21840         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21841         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21842         * lib/openat-proc.c (openat_proc_name): Likewise.
21843         * lib/openat.c (openat_needs_fchdir): Likewise.
21844         * lib/save-cwd.c (save_cwd): Likewise.
21845         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21846
21847 2010-08-28  Bruno Haible  <bruno@clisp.org>
21848
21849         New module 'host-cpu-c-abi'.
21850         * modules/host-cpu-c-abi: New file.
21851         * m4/host-cpu-c-abi.m4: New file, based on part of
21852         clisp/src/m4/general.m4.
21853         Requested by Sam Steingold <sds@gnu.org>.
21854
21855 2010-08-31  Eric Blake  <eblake@redhat.com>
21856         and Jim Meyering  <meyering@redhat.com>
21857
21858         hash: factor, and guard against misbehaving hasher function
21859         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21860         of table->hasher's return value.  Also protect against a hash value
21861         so large that adding it to table->bucket results in a NULL pointer.
21862         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21863         Use it in place of open-coded check-and-abort.
21864
21865 2010-08-30  Bruno Haible  <bruno@clisp.org>
21866
21867         hash: silence spurious clang warning
21868         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21869         Reported by Eric Blake.
21870
21871 2010-08-30  Eric Blake  <eblake@redhat.com>
21872
21873         strstr, memmem, strcasestr: avoid leaked shell message
21874         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21875         FreeBSD.
21876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21878
21879         tests: silence clang warning
21880         * tests/test-malloca.c (do_allocation): Avoid dead store.
21881
21882 2010-08-29  Bruno Haible  <bruno@clisp.org>
21883
21884         gettext: Fix recent mistake.
21885         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21886
21887 2010-08-29  Bruno Haible  <bruno@clisp.org>
21888
21889         selinux-h: Offer a --without-selinux option.
21890         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21891         --without-selinux was specified, skip all tests and define
21892         HAVE_SELINUX_SELINUX_H to 0.
21893         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21894         set LIB_SELINUX to empty.
21895         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21896         gl_LIBSELINUX. If --without-selinux was specified, replace
21897         selinux/context.h.
21898         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21899
21900 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21901             Bruno Haible  <bruno@clisp.org>
21902
21903         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21904         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21905         of HAVE_REALLOC.
21906         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21907         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21908         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21909         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21910
21911 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21912             Bruno Haible  <bruno@clisp.org>
21913
21914         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21915         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21916         HAVE_CALLOC.
21917         * lib/xmalloc.c: Update accordingly.
21918         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21919         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21920         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21921
21922 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21923             Bruno Haible  <bruno@clisp.org>
21924
21925         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21926         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21927         HAVE_MALLOC.
21928         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21929         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21930         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21931
21932 2010-08-29  Bruno Haible  <bruno@clisp.org>
21933
21934         Update modules list.
21935         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21936         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21937         (String handling <string.h>): Add astrxfrm.
21938         (File system functions): Add readlinkat.
21939
21940 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21941
21942         Tests for module 'realloc-gnu'.
21943         * modules/realloc-gnu-tests: New file.
21944         * tests/test-realloc-gnu.c: New file.
21945
21946         Tests for module 'calloc-gnu'.
21947         * modules/calloc-gnu-tests: New file.
21948         * tests/test-calloc-gnu.c: New file.
21949
21950         Tests for module 'malloc-gnu'.
21951         * modules/malloc-gnu-tests: New file.
21952         * tests/test-malloc-gnu.c: New file.
21953
21954 2010-08-28  Bruno Haible  <bruno@clisp.org>
21955
21956         Rename module 'realloc' -> 'realloc-gnu'.
21957         * modules/realloc-gnu: New file, copied from modules/realloc.
21958         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21959         obsolete.
21960         * modules/mgetgroups (Depends-on): Update.
21961         * doc/posix-functions/realloc.texi: Update.
21962         * NEWS: Mention the change.
21963
21964         Rename module 'calloc' -> 'calloc-gnu'.
21965         * modules/calloc-gnu: New file, copied from modules/calloc.
21966         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21967         obsolete.
21968         * doc/posix-functions/calloc.texi: Update.
21969         * NEWS: Mention the change.
21970
21971         Rename module 'malloc' -> 'malloc-gnu'.
21972         * modules/malloc-gnu: New file, copied from modules/malloc.
21973         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21974         obsolete.
21975         * modules/argp (Depends-on): Update.
21976         * modules/regex (Depends-on): Update.
21977         * doc/posix-functions/malloc.texi: Update.
21978         * NEWS: Mention the change.
21979
21980 2010-08-28  Eric Blake  <eblake@redhat.com>
21981
21982         pread, pwrite: add missing dependency
21983         * modules/pread (Depends-on): Add extensions.
21984         * modules/pwrite (Depends-on): Likewise.
21985
21986 2010-08-28  Bruno Haible  <bruno@clisp.org>
21987
21988         unistr/u*-strchr: Fix tests dependencies.
21989         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21990         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21991         Reported by Ian Beckwith <ianb@erislabs.net>.
21992
21993 2010-08-28  Bruno Haible  <bruno@clisp.org>
21994
21995         read-file: Don't occupy too much unused memory.
21996         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21997
21998 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21999             Eric Blake  <eblake@redhat.com>
22000             Bruno Haible  <bruno@clisp.org>
22001
22002         read-file: Avoid memory reallocations with regular files.
22003         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22004         (fread_file): With regular files, use the remaining length as the
22005         initial buffer size.  Check against overflow.
22006         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22007         sys_stat.
22008
22009 2010-08-28  Bruno Haible  <bruno@clisp.org>
22010
22011         ftello: Relax license.
22012         * modules/ftello (License): Relax to LGPLv2+.
22013         Reported by Eric Blake.
22014
22015 2010-08-28  Bruno Haible  <bruno@clisp.org>
22016
22017         Avoid relocwrapper link errors due to gnulib replacement functions.
22018         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22019         function.
22020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22021
22022 2010-08-28  Bruno Haible  <bruno@clisp.org>
22023
22024         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22025         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22026         defined.
22027         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22028         Suggested by Eric Blake.
22029
22030 2010-08-28  Bruno Haible  <bruno@clisp.org>
22031
22032         sys_socket, netdb: Ensure socklen_t gets defined.
22033         * modules/sys_socket (Depends-on): Add socklen.
22034         * modules/netdb (Depends-on): Likewise.
22035         * modules/getaddrinfo (Depends-on): Remove socklen.
22036         * modules/getsockopt (Depends-on): Likewise.
22037         * modules/setsockopt (Depends-on): Likewise.
22038         * tests/test-sys_socket.c: Check that socklen_t is defined.
22039         * tests/test-netdb.c: Likewise.
22040         * m4/socklen.m4: Update comments.
22041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22042
22043 2010-08-27  Eric Blake  <eblake@redhat.com>
22044
22045         login_tty: add missing dependency
22046         * modules/login_tty (Depends-on): Add pty.
22047
22048 2010-08-26  Eric Blake  <eblake@redhat.com>
22049
22050         lib-symbol-versions: fix m4 quoting
22051         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22052         format for AC_LINK_IFELSE.
22053
22054         glob: fix compile test
22055         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22056
22057         btowc: fix missing file
22058         * modules/btowc (Files): Also ship locale-fr.m4.
22059
22060         lseek: fix link test
22061         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22062         AC_LINK_IFELSE.
22063
22064         include_next: silence autoconf 2.68 warning
22065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22066         AC_COMPILE_IFELSE as special.
22067         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22068         autoconf < 2.68.
22069
22070         acl: fix compilation test
22071         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22072         AC_COMPILE_IFELSE.
22073
22074 2010-08-26  Bruno Haible  <bruno@clisp.org>
22075
22076         Modernize AC_TRY_RUN invocations.
22077         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22078         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22079         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22080         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22081         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22082         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22084         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22085         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22086         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22087         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22088         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22089         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22090         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22092         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22093         gl_MBRLEN_NUL_RETVAL): Likewise.
22094         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22095         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22096         Likewise.
22097         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22098         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22099         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22100         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22101         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22102         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22103         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22104         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22105         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22106         Likewise.
22107         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22108         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22110         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22111         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22112         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22113         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22114         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22115         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22117
22118 2010-08-26  Bruno Haible  <bruno@clisp.org>
22119
22120         Modernize AC_TRY_LINK invocations.
22121         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22122         AC_TRY_LINK.
22123         * m4/argp.m4 (gl_ARGP): Likewise.
22124         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22125         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22126         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22127         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22128         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22129         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22130         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22131         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22132         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22133         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22134         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22135         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22136         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22137         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22138         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22139         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22140         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22141         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22142         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22143         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22144         Likewise.
22145         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22146         Likewise.
22147         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22148         Likewise.
22149         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22151         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22152         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22153         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22154         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22155         * m4/servent.m4 (gl_SERVENT): Likewise.
22156         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22157         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22158         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22159         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22160         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22161         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22162         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22163         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22164         * modules/tsearch-tests (configure.ac): Likewise.
22165
22166 2010-08-26  Bruno Haible  <bruno@clisp.org>
22167
22168         Modernize AC_TRY_COMPILE invocations.
22169         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22170         AC_TRY_COMPILE.
22171         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22172         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22173         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22174         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22175         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22176         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22177         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22178         * m4/lock.m4 (gl_LOCK): Likewise.
22179         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22180         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22181         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22182         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22183         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22184         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22185         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22186         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22187         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22188         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22189         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22190         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22191         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22192         extraneous semicolon.
22193
22194 2010-08-26  Jim Meyering  <meyering@redhat.com>
22195
22196         stat-time: relax license LGPL
22197         * modules/stat-time (License): Change from GPL to LGPL,
22198         with consent from all contributors, for use in libguile.
22199         Requested by Ludovic Courtès.
22200
22201 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22202
22203         poll: return immediately on POLLHUP.
22204         * lib/poll.c (poll): Always set timeout before wait_timeout is
22205         computed.
22206
22207 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22208
22209         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22210         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22211         rmdir ("dir/.//"), unlinkat.
22212
22213 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22214
22215         stdbool: avoid spurious failure with modern xlc
22216         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22217
22218 2010-08-24  Bruno Haible  <bruno@clisp.org>
22219
22220         getloadavg: simplify code
22221         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22222         gl_have_func. Update comments.
22223
22224 2010-08-24  Eric Blake  <eblake@redhat.com>
22225
22226         getloadavg: don't define SVR4 on cygwin
22227         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22228         only define SVR4 when -lkvm is required.
22229         Reported by Yaakov Selkowitz.
22230
22231 2010-08-24  Bruno Haible  <bruno@clisp.org>
22232
22233         priv-set: fix comment
22234         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22235
22236 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22237
22238         priv-set: fix comments
22239         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22240         to match code, as suggested by David Bartley in:
22241         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22242
22243 2010-08-23  Eric Blake  <eblake@redhat.com>
22244
22245         stdbool: avoid rejecting clang
22246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22247         * tests/test-stdbool.c: Enable more tests if using the system
22248         <stdbool.h> instead of the gnulib replacement.
22249         (main): Move xlc bug test to a runtime test for all compilers.
22250         Reported by Anders Kaseorg.
22251
22252         argz: fix shell quoting issue
22253         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22254         Reported by Charles Wilson.
22255
22256 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22257             Erik Faye-Lund <kusmabite@gmail.com>
22258
22259         poll, select: handle ERROR_BROKEN_PIPE.
22260         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22261         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22262         * lib/select.c (win32_compute_revents): Do not mark a pipe
22263         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22264
22265 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22266
22267         fts: allow compilation with C++
22268         * lib/fts_.h: Specify extern "C" linkage with C++.
22269
22270 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22271
22272         Fix gnulib-tool sed script de-commentation for AIX sed.
22273         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22274         sed.
22275
22276 2010-08-17  Eric Blake  <eblake@redhat.com>
22277
22278         test-stddef: test for (some) offsetof bugs
22279         * tests/test-stddef.c: Enhance test to ensure correct type of
22280         offsetof.
22281         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22282         that we are not fixing at this time.
22283
22284 2010-08-15  Bruno Haible  <bruno@clisp.org>
22285
22286         stpncpy: Allow stpncpy to be defined as a macro.
22287         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22288         if it's already correctly declared.
22289         * lib/string.in.h (stpncpy): Undefine before redefining.
22290         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22291
22292 2010-08-14  Bruno Haible  <bruno@clisp.org>
22293
22294         Rename module 'memxfrm' to 'amemxfrm'.
22295         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22296         (amemxfrm): Renamed from memxfrm.
22297         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22298         (amemxfrm): Renamed from memxfrm.
22299         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22300         * NEWS: Mention the change.
22301         * MODULES.html.sh (String handling <string.h>): Update.
22302         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22303         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22304         * lib/unicase/u16-casexfrm.c: Likewise.
22305         * lib/unicase/u32-casexfrm.c: Likewise.
22306         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22307         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22308         * lib/uninorm/u16-normxfrm.c: Likewise.
22309         * lib/uninorm/u32-normxfrm.c: Likewise.
22310         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22311         memxfrm.
22312         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22313         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22314         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22315         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22316         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22317         Suggested by Paul Eggert.
22318
22319 2010-08-14  Bruno Haible  <bruno@clisp.org>
22320
22321         Tests for module 'astrxfrm'.
22322         * modules/astrxfrm-tests: New file.
22323         * tests/test-astrxfrm.c: New file.
22324
22325         New module 'astrxfrm'.
22326         * lib/astrxfrm.h: New file.
22327         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22328         * modules/astrxfrm: New file.
22329
22330 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22331
22332         regex: Tweak doc.
22333         * doc/regex.texi (Overview): Don't mention regex.c.
22334         (GNU Regular Expression Compiling): Likewise.
22335         (Match-end-of-line Operator): Mention 'not_eol'.
22336
22337 2010-08-14  Brian Gough  <bjg@gnu.org>
22338             Bruno Haible  <bruno@clisp.org>
22339
22340         git-merge-changelog: add doc relating to use with bzr and hg.
22341         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22342
22343 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22344
22345         pthread: fix pthread.h creation for srcdir != builddir
22346         * modules/pthread (Makefile.am): Fix the rule to work also in a
22347         non-srcdir build.
22348
22349 2010-08-13  Karl Berry  <karl@gnu.org>
22350
22351         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22352         * doc/posix-*/*: force line break before @url of POSIX
22353         specifications.
22354         Suggested by Werner Lemberg.
22355
22356 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22357
22358         strtod: fix const diagnostic
22359         * lib/strtod.c (strtod): Don't assign const char * to char *,
22360         as this elicits a warning from GCC when warnings are enabled.
22361
22362 2010-08-10  Pádraig Brady <P@draigbrady.com>
22363         and Eric Blake  <eblake@redhat.com>
22364
22365         copy-acl: ignore ENOTSUP on HP-UX
22366         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22367         so that it is available for HP-UX.
22368         * lib/copy-acl.c (qcopy_acl): Use it.
22369         Reported by Patrick M. Callahan.
22370
22371 2010-08-10  Eric Blake  <eblake@redhat.com>
22372
22373         open, chown: relax license
22374         * modules/open (License): Change to LGPLv2+, with consent by all
22375         authors, for use in augeas.
22376         * modules/chown (License): Likewise.
22377         * modules/lchown (Likewise): Likewise.
22378         Requested by Adam Stokes.
22379
22380 2010-08-09  Karl Berry  <karl@gnu.org>
22381
22382         * build-aux/ar-lib: new file, import from Automake.
22383         * config/srclist.txt: autocheck for updates.
22384
22385 2010-08-09  Eric Blake  <eblake@redhat.com>
22386
22387         readlinkat: adjust client modules
22388         * modules/areadlinkat (Depends-on): Use readlinkat, not
22389         symlinkat.
22390         * modules/areadlinkat-with-size (Depends-on): Likewise.
22391
22392         mknod: be more vocal about danger of running tests as root
22393         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22394         root, since that is just asking for problems.
22395         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22396
22397         readlinkat: split into its own module
22398         * modules/symlinkat: Split readlinkat...
22399         * modules/readlinkat: ...into separate module.
22400         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22401         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22402         * lib/symlinkat.c (readlinkat): Move...
22403         * lib/readlinkat.c: ...into new file.
22404         * modules/symlinkat-tests: Split readlinkat test...
22405         * modules/readlinkat-tests: ...into separate module.
22406         * tests/test-symlinkat.c: Split...
22407         * tests/test-readlinkat.c: ...into new file.
22408         * NEWS: Document the split.
22409         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22410         * lib/unistd.in.h (readlinkat): Likewise.
22411         Suggested by Bruno Haible.
22412
22413 2010-08-08  Bruno Haible  <bruno@clisp.org>
22414
22415         memxfrm: Speed up.
22416         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22417         that usually only one call to strxfrm is necessary for each string
22418         part.
22419         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22420
22421 2010-08-07  Karl Berry  <karl@gnu.org>
22422
22423         * doc/posix-headers/limits.texi,
22424         * doc/posix-functions/malloc.texi,
22425         * doc/posix-functions/strsignal.texi: missing @item.
22426         * doc/ld-version-script.texi: spurious leading i.
22427         * doc/regex.texi (Interval Operators): no commas inside @var.
22428
22429 2010-08-01  Bruno Haible  <bruno@clisp.org>
22430
22431         Integrate the regex documentation.
22432         * doc/gnulib.texi: Define 'cn' index.
22433         (Regular expressions): New a chapter that includes regex.texi and
22434         regexprops-generic.texi.
22435         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22436         syntax.
22437
22438         Whitespace cleanup.
22439         * doc/regex.texi: Remove trailing spaces.
22440
22441         Add regex documentation.
22442         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22443         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22444         Written by Kathy A. Hargreaves and Karl Berry.
22445
22446 2010-08-01  Bruno Haible  <bruno@clisp.org>
22447
22448         link: Update documentation.
22449         * doc/posix-functions/link.texi: Update regarding Solaris.
22450
22451 2010-07-31  Bruno Haible  <bruno@clisp.org>
22452
22453         Update modules list.
22454         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22455         (String handling <string.h>): Add memcmp2, memxfrm.
22456         (Container data structures): Add xlist, xsublist, xoset.
22457         (Core language properties): Add alignof, unused-parameter.
22458         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22459         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22460         (Unibyte characters <ctype.h>): New section.
22461         (String handling <string.h>): New section.
22462         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22463         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22464         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22465         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22466         tan, tanh, tanl, y0, y1, yn.
22467         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22468         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22469         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22470         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22471         unlockpt, vdprintf, vdprintf-posix.
22472         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22473         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22474         xconcat-filename.
22475         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22476         getdtablesize, pipe2, pipe2-safer.
22477         (Security): New section.
22478         (Networking functions): Add accept4.
22479         (Signal handling): Add sigpipe.
22480         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22481         mbmemcasecoll.
22482         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22483         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22484         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22485         pipe-filter-ii.
22486         (Misc): Add argp-version-etc, login_tty, parse-duration.
22487
22488 2010-07-31  Bruno Haible  <bruno@clisp.org>
22489
22490         Improve doc in MODULES.html.
22491         * modules/linkat (Description): Add the word "function".
22492         * modules/mkfifo (Description): Likewise.
22493         * modules/mknod (Description): Likewise.
22494         * modules/remove (Description): Likewise.
22495         * modules/renameat (Description): Likewise.
22496         * modules/stat (Description): Likewise.
22497         * modules/symlink (Description): Likewise.
22498         * modules/unlink (Description): Likewise.
22499
22500 2010-07-31  Bruno Haible  <bruno@clisp.org>
22501
22502         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22503         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22504         option --enable/disable-c++ instead of --enable/disable-cxx.
22505         * NEWS: Mention the change.
22506
22507 2010-07-31  Bruno Haible  <bruno@clisp.org>
22508
22509         readlink, areadlink: Relax test a bit.
22510         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22511         alternative to ENOTDIR.
22512         * tests/test-areadlink.h (test_areadlink): Likewise.
22513         Reported by Rainer Tammer.
22514
22515 2010-07-31  Bruno Haible  <bruno@clisp.org>
22516
22517         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22518         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22519         character, perform the search using U_STRCHR.
22520         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22521         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22522         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22523         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22524         Suggested by Paolo Bonzini.
22525
22526 2010-07-31  Bruno Haible  <bruno@clisp.org>
22527
22528         unistr/u*-strstr: Fix dependencies.
22529         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22530         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22531         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22532
22533 2010-07-31  Bruno Haible  <bruno@clisp.org>
22534
22535         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22536         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22537         the beginning of the loop.
22538         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22539         cases in 'switch' statement.
22540
22541         unistr/u8-strchr: Fix several bugs.
22542         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22543         the string. When not found, return NULL, not a pointer near the end.
22544
22545         More tests for unistr/u8-strchr.
22546         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22547         that the function does not read past the first occurrence of the byte
22548         being searched.
22549         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22550         * tests/unistr/test-u16-strchr.c (main): New function.
22551         * tests/unistr/test-u32-strchr.c (main): New function.
22552
22553 2010-07-31  Bruno Haible  <bruno@clisp.org>
22554
22555         posix-modules: Ignore backup files of documentation files.
22556         * posix-modules: grep only through files named *.texi.
22557
22558 2010-07-31  Bruno Haible  <bruno@clisp.org>
22559
22560         symlinkat: Fix documentation.
22561         * doc/posix-functions/readlinkat.texi: Fix module name.
22562
22563 2010-07-31  Bruno Haible  <bruno@clisp.org>
22564
22565         fchownat: Replace also when chown has the trailing slash bug.
22566         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22567         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22568         introduced on 2010-04-10.
22569         Reported by Rainer Tammer.
22570
22571 2010-07-31  Bruno Haible  <bruno@clisp.org>
22572
22573         linkat: Work around AIX 7.1 bug.
22574         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22575         whether linkat handles trailing slash correctly. If not, replace linkat
22576         and define LINKAT_TRAILING_SLASH_BUG.
22577         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22578         check whether (fd1,file1) points to a directory if file1 or file2 ends
22579         in a slash. Code taken from lib/link.c.
22580         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22581         Reported by Rainer Tammer.
22582
22583 2010-07-31  Bruno Haible  <bruno@clisp.org>
22584
22585         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22586         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22587         This disables an xlc optimization that was causing wrong test results.
22588         Reported by Rainer Tammer.
22589
22590 2010-07-31  Bruno Haible  <bruno@clisp.org>
22591
22592         iconv: Work around AIX 6.1..7.1 bug.
22593         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22594         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22595         cross-compiling, guess no on all versions of AIX.
22596         Reported by Rainer Tammer.
22597
22598 2010-07-31  Bruno Haible  <bruno@clisp.org>
22599
22600         readlink: Relax test a bit.
22601         * tests/test-readlink.h (test_readlink): Allow different errno value
22602         when readlink is called with a file name that ends in / and refers to
22603         a file.
22604         Suggested by Eric Blake.
22605         Reported by Rainer Tammer.
22606
22607 2010-07-31  Bruno Haible  <bruno@clisp.org>
22608
22609         copysign: Does not require -lm on glibc systems.
22610         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22611         gl_COMMON_DOUBLE_MATHFUNC.
22612         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22613
22614 2010-07-31  Bruno Haible  <bruno@clisp.org>
22615
22616         duplocale: Work around AIX 7.1 bug.
22617         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22618         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22619         * lib/duplocale.c (rpl_duplocale): Update comment.
22620         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22621         Reported by Rainer Tammer.
22622
22623 2010-07-30  Bruno Haible  <bruno@clisp.org>
22624
22625         dirfd: Avoid link error on AIX 7.1.
22626         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22627         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22628         exist, set REPLACE_DIRFD.
22629         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22630         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22631         * doc/posix-functions/dirfd.texi: Update.
22632         Reported by Rainer Tammer.
22633
22634 2010-07-30  Eric Blake  <eblake@redhat.com>
22635
22636         strtod: next round of AIX fixes
22637         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22638         exponent.
22639         * tests/test-strtod.c (main): Enhance tests.
22640         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22641         Reported by Rainer Tammer.
22642
22643         futimens: fix configure check
22644         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22645         Reported by Bruno Haible.
22646
22647 2010-07-30  Bruno Haible  <bruno@clisp.org>
22648
22649         getline: Update regarding AIX.
22650         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22651         Reported by Rainer Tammer.
22652
22653 2010-07-30  Bruno Haible  <bruno@clisp.org>
22654
22655         wcwidth: Drop replacement on AIX 7.
22656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22657         AIX 7.
22658         Reported by Rainer Tammer.
22659
22660 2010-07-30  Bruno Haible  <bruno@clisp.org>
22661
22662         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22663         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22664         a 'char *'.
22665         Reported by Rainer Tammer.
22666
22667 2010-07-30  Bruno Haible  <bruno@clisp.org>
22668
22669         unlink: Update regarding AIX.
22670         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22671         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22672         Reported by Rainer Tammer.
22673
22674 2010-07-30  Bruno Haible  <bruno@clisp.org>
22675
22676         symlink: Update regarding AIX.
22677         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22678         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22679         Reported by Rainer Tammer.
22680
22681 2010-07-30  Bruno Haible  <bruno@clisp.org>
22682
22683         strndup: Update regarding AIX.
22684         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22685         AIX 7.
22686         Reported by Rainer Tammer.
22687
22688 2010-07-30  Bruno Haible  <bruno@clisp.org>
22689
22690         stat: Update regarding AIX.
22691         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22692         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22693         Reported by Rainer Tammer.
22694
22695 2010-07-30  Bruno Haible  <bruno@clisp.org>
22696
22697         truncl: Fix autoconf test.
22698         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22699         whether truncl works.
22700         Reported by Rainer Tammer.
22701
22702 2010-07-30  Bruno Haible  <bruno@clisp.org>
22703
22704         round: Update regarding AIX.
22705         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22706         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22707         Reported by Rainer Tammer.
22708
22709 2010-07-30  Bruno Haible  <bruno@clisp.org>
22710
22711         rename: Update regarding AIX.
22712         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22713         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22714         Reported by Rainer Tammer.
22715
22716 2010-07-30  Bruno Haible  <bruno@clisp.org>
22717
22718         printf.m4: Update regarding AIX.
22719         * m4/printf.m4: Update comments regarding AIX.
22720         Reported by Rainer Tammer.
22721
22722 2010-07-30  Bruno Haible  <bruno@clisp.org>
22723
22724         iconv: Update regarding AIX.
22725         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22726         AIX 7.
22727         Reported by Rainer Tammer.
22728
22729 2010-07-30  Bruno Haible  <bruno@clisp.org>
22730
22731         getopt: Update regarding AIX.
22732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22733         no on AIX.
22734         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22735         Reported by Rainer Tammer.
22736
22737 2010-07-30  Bruno Haible  <bruno@clisp.org>
22738
22739         ldexpl; Update regarding AIX.
22740         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22741         on AIX 7.
22742         Reported by Rainer Tammer.
22743
22744 2010-07-30  Bruno Haible  <bruno@clisp.org>
22745
22746         frexpl: Update regarding AIX.
22747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22748         on AIX 7.
22749         Reported by Rainer Tammer.
22750
22751 2010-07-30  Bruno Haible  <bruno@clisp.org>
22752
22753         open, fopen: Update regarding AIX.
22754         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22755         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22756         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22757         * doc/posix-functions/fopen.texi: Likewise.
22758         Reported by Rainer Tammer.
22759
22760 2010-07-30  Bruno Haible  <bruno@clisp.org>
22761
22762         chown: Update doc regarding AIX.
22763         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22764         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22765         Reported by Rainer Tammer.
22766
22767 2010-07-30  Eric Blake  <eblake@redhat.com>
22768
22769         strtod: fix bug in replacement function on AIX
22770         * lib/strtod.c (strtod): Special case broken "0x" parse in
22771         underlying strtod.
22772         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22773         * doc/posix-functions/strtod.texi (strtod): Likewise.
22774         Reported by Rainer Tammer.
22775
22776 2010-07-30  Bruno Haible  <bruno@clisp.org>
22777
22778         mbrlen: Fix cross-compilation guess for AIX.
22779         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22780         guess. Leftover from 2008-12-22.
22781
22782 2010-07-30  Bruno Haible  <bruno@clisp.org>
22783
22784         mbrtowc: Fix cross-compilation guess for AIX.
22785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22786         guess. Leftover from 2008-12-21.
22787
22788 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22789
22790         init.sh: work around trap limitation of some shells
22791         * tests/init.sh (setup_): Move exit trap outside of shell function.
22792
22793 2010-07-29  Eric Blake  <eblake@redhat.com>
22794
22795         strtod: aid debugging
22796         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22797         understanding why strtod is rejected.
22798
22799 2010-07-28  Bruno Haible  <bruno@clisp.org>
22800
22801         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22802         * lib/unistr/u8-chr.c: Include <string.h>.
22803         * tests/unistr/test-u8-chr.c: Likewise.
22804         * tests/unistr/test-u16-chr.c: Likewise.
22805         * tests/unistr/test-u32-chr.c: Likewise.
22806         * tests/unistr/test-u8-strchr.c: Likewise.
22807         * tests/unistr/test-u16-strchr.c: Likewise.
22808         * tests/unistr/test-u32-strchr.c: Likewise.
22809         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22810         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22811         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22812         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22813
22814 2010-07-28  Bruno Haible  <bruno@clisp.org>
22815
22816         Use spaces for indentation, not tabs.
22817         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22818
22819 2010-07-27  Bruno Haible  <bruno@clisp.org>
22820
22821         mbspcasecmp: Fix function specification.
22822         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22823         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22824         Reported by Eric Blake <eblake@redhat.com>.
22825
22826 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22827
22828         timespec: use cast and not conditional, as truncation isn't possible
22829         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22830         instead of a conditional.  Comment about the situation in more detail.
22831         This undoes most of the 2009-10-29 patch.
22832
22833 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22834
22835         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22836         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22837         * lib/unistr/u8-strchr.c: Likewise.
22838         * modules/unistr/u8-chr: Depend on memchr.
22839
22840         unistr/u*-strchr: add tests
22841         * modules/unistr/u8-strchr-tests: New file.
22842         * modules/unistr/u16-strchr-tests: New file.
22843         * modules/unistr/u32-strchr-tests: New file.
22844         * tests/unistr/test-strchr.h: New file.
22845         * tests/unistr/test-u8-strchr.c: New file.
22846         * tests/unistr/test-u16-strchr.c: New file.
22847         * tests/unistr/test-u32-strchr.c: New file.
22848
22849         unistr/u*-chr: test multibyte sequences more
22850         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22851         test vector.
22852         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22853         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22854         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22855
22856         unistr/u*-chr: test multibyte sequences
22857         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22858
22859         unistr/u*-chr: prepare for multibyte tests
22860         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22861         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22862         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22863         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22864         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22865         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22866
22867 2010-07-18  Bruno Haible  <bruno@clisp.org>
22868
22869         unistr/u8-strchr: Optimize non-ASCII argument case.
22870         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22871         because the first byte often matches anyway.
22872         Reported by Pádraig Brady <P@draigbrady.com>.
22873
22874 2010-07-15  Karl Berry  <karl@gnu.org>
22875
22876         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22877
22878 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22879
22880         getcwd: on Solaris, work better if ancestors are inaccessible
22881         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22882         buffer and size, try again with a large buffer.  This works better
22883         on Solaris, since its getcwd succeeds even if the path to the root
22884         is inaccessible, and this is helpful in common cases such as .zfs
22885         hidden directories.  Problem reported by J Chapman Flack in
22886         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22887         Use system getcwd if it's declared, not merely if it's partly
22888         working; use the partly-working test only to avoid needless effort
22889         if the system getcwd fails.
22890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22891         comment that was already obsolete and is now even more obsolete.
22892         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22893         now might call strdup.
22894
22895 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22896
22897         pthread: Add enough so that coreutils/src/sort.c compiles.
22898         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22899         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22900         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22901         Include <sys/types.h>, in case it defines pthread_t.
22902         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22903         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22904         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22905         (pthread_rwlockattr_t, pthread_spinlock_t):
22906         New typedefs, if HAVE_PTHREAD_T is not defined.
22907         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22908         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22909         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22910         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22911         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22912         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22913         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22914         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22915         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22916         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22917         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22918         New macros.
22919         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22920         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22921         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22922         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22923         (pthread_spin_unlock): New dummy functions.
22924         (pthread_create): Return EAGAIN; don't set errno.
22925         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22926         require AC_C_INLINE.
22927         * modules/pthread (Depends-on): Add sched, time.
22928         (pthread.h): Use AM_V_GEN.
22929
22930 2010-07-13  Bruno Haible  <bruno@clisp.org>
22931
22932         striconveh: Don't malloc memory if the result buffer is sufficient.
22933         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22934         buffer if its size is sufficient.
22935         Reported by Ludovic Courtès <ludo@gnu.org>.
22936
22937 2010-07-13  Bruno Haible  <bruno@clisp.org>
22938
22939         strtod: Add safety check.
22940         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22941
22942 2010-07-12  Bruno Haible  <bruno@clisp.org>
22943
22944         Unify tests that set gl_cv_func_ldexpl_no_libm.
22945         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22946         gl_FUNC_LDEXPL.
22947         (gl_FUNC_LDEXPL): Invoke it.
22948         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22949
22950 2010-07-12  Bruno Haible  <bruno@clisp.org>
22951
22952         Unify tests that set gl_cv_func_ldexp_no_libm.
22953         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22954         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22955         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22956         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22957         * modules/strtod (Files): Add m4/ldexp.m4.
22958
22959 2010-07-12  Bruno Haible  <bruno@clisp.org>
22960
22961         Unify tests that set gl_cv_func_frexpl_no_libm.
22962         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22963         gl_FUNC_FREXPL_NO_LIBM.
22964         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22965         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22966
22967 2010-07-12  Bruno Haible  <bruno@clisp.org>
22968
22969         Unify tests that set gl_cv_func_frexp_no_libm.
22970         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22971         gl_FUNC_FREXP_NO_LIBM.
22972         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22973         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22974
22975 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22976
22977         memcoll: clarify sizes versus lengths, document better, and tweak perf
22978         * lib/memcoll.c (strcoll_loop, memcoll0):
22979         Improve quality of descriptive comments.  Name variables
22980         consistently as to whether they are lengths (which do not include
22981         terminating null) versus sizes (which do).
22982         * lib/xmemcoll.c (xmemcoll0): Likewise.
22983         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22984         returned when s1size == 0; this is easier to compile and saves
22985         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22986
22987 2010-07-12  Bruno Haible  <bruno@clisp.org>
22988
22989         Tests for module '_Exit'.
22990         * modules/_Exit-tests: New file.
22991         * tests/test-_Exit.sh: New file.
22992         * tests/test-_Exit.c: New file.
22993
22994         New module '_Exit'.
22995         * lib/stdlib.in.h (__attribute__): New macro.
22996         (_Exit): New declaration.
22997         * lib/_Exit.c: New file.
22998         * m4/_Exit.m4: New file.
22999         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23000         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23001         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23002         * modules/_Exit: New file.
23003         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23004         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23005
23006 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23007
23008         strtod: make it more-accurate typically, and don't require libm
23009         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23010         Include limits.h.  Don't include string.h.
23011         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23012         (locale_isspace): New function, so that no casts are needed to
23013         check whether *s is a space.
23014         (ldexp): Provide an unused dummy if not available.
23015         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23016         (strtod): Use them.  This implementation prefers to use the
23017         underlying strtod if available, falling back on our own code
23018         only to fix known bugs.  This is more likely to produce an
23019         accurate result.  Also, it avoids the use of libm functions.
23020         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23021         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23022         was absent, but it caused a test failure with coreutils.
23023         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23024         with libm.
23025         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23026         * modules/strtod-tests (Makefile.am): Likewise.
23027
23028 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23029             Bruno Haible  <bruno@clisp.org>
23030
23031         unistr/u8-strchr: Optimize ASCII argument case.
23032         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23033
23034 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23035
23036         (x)memcoll: minor tweaks
23037         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23038         is after the type that it qualifies.
23039         (memcoll0): Likewise.
23040         * lib/memcoll.h (memcoll0): Likewise.
23041         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23042         * lib/xmemcoll.h (xmemcoll0): Likewise.
23043         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23044         differs from memcoll in that the NUL byte is part of the argument.
23045         Omit the abort-checks, as performance is a real issue here.  Plus,
23046         the checks were wrong anyway (an off-by-one error).  Omit local
23047         variable 'diff', as it's a bit clearer that way.
23048         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23049         no longer needed.
23050
23051 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23052
23053         (x)memcoll: speedup when input is known to be NUL delimited
23054         * lib/memcoll.c: Include stdlib.
23055         (memcoll0): New function.
23056         (strcoll_loop): New function, refactored for use in both memcoll
23057         and memcoll0.
23058         * lib/memcoll.h (memcoll0): Add prototype.
23059         * lib/xmemcoll.c (xmemcoll0): New function.
23060         (collate_error): New function, refactored for use in both xmemcoll
23061         and xmemcoll0.
23062         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23063         * m4/memcoll.m4: add inline invocation.
23064
23065 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23066
23067         * build-aux/bootstrap: Remove any local translations
23068         from the translation project synchronization directory,
23069         so that local only translations are not distributed.
23070
23071 2010-07-04  Bruno Haible  <bruno@clisp.org>
23072
23073         fsusage: Clarify which code applies to which platforms.
23074         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23075         platform.
23076         * lib/fsusage.c (get_fs_usage): Likewise.
23077
23078 2010-07-04  Bruno Haible  <bruno@clisp.org>
23079
23080         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23081         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23082         Reported by Martin Lambers <marlam@marlam.de>.
23083
23084 2010-07-04  Jim Meyering  <meyering@redhat.com>
23085
23086         hash: once again explicitly disallow insertion of NULL
23087         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23088         inserting a NULL pointer cannot work with these functions.
23089         Add a comment with details.
23090         This reverts part of the 2010-07-01 commit, 5bef1a35
23091         "hash: extend module to deal with non-pointer keys".
23092
23093 2010-07-01  Bruno Haible  <bruno@clisp.org>
23094
23095         stdbool: Update doc.
23096         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23097         Info from Christian Weisgerber <naddy@mips.inka.de>.
23098
23099 2010-07-01  Jim Meyering  <meyering@redhat.com>
23100
23101         hash: extend module to deal with non-pointer keys
23102         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23103         but that allows insertion of non-pointer entries.
23104         Do not disallow an ENTRY value of NULL.
23105         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23106         * lib/hash.h (hash_insert0): Declare.
23107
23108 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23109
23110         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23111         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23112         not present (i.e. with autoconf 2.59 and when using gettextize, not
23113         gnulib), require AC_GNU_SOURCE instead.
23114
23115 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23116
23117         idpriv-drop: Fix tests.
23118         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23119         not to the test-idpriv-droptemp program.
23120
23121 2010-06-29  Bruno Haible  <bruno@clisp.org>
23122
23123         string: Fix syntax error with g++ 2.96.
23124         * lib/string.in.h (__pure__): Remove definition.
23125         (_GL_ATTRIBUTE_PURE): New macro.
23126         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23127         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23128         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23129
23130 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23131
23132         unitypes: Fix bug introduced on 2010-05-18.
23133         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23134
23135 2010-06-22  Eric Blake  <eblake@redhat.com>
23136
23137         memmem: slight optimization
23138         * lib/str-two-way.h (critical_factorization): Update comments.
23139         Reduce work during factorization phase.
23140         Reported by Carlos Bueno <carlos@bueno.org>.
23141
23142 2010-06-21  Bruno Haible  <bruno@clisp.org>
23143
23144         Fix HAVE_CALLOC_POSIX misnomer.
23145         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23146         !HAVE_CALLOC_POSIX.
23147         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23148         HAVE_CALLOC_POSIX.
23149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23150         instead of HAVE_CALLOC_POSIX.
23151         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23152         HAVE_CALLOC_POSIX.
23153
23154         Use modern idiom for calloc() replacement.
23155         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23156         AC_FUNC_CALLOC.
23157         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23158         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23159         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23160         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23161         (gl_REPLACE_CALLOC): New macro.
23162
23163 2010-06-21  Bruno Haible  <bruno@clisp.org>
23164
23165         Fix HAVE_REALLOC_POSIX misnomer.
23166         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23167         !HAVE_REALLOC_POSIX.
23168         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23169         HAVE_REALLOC_POSIX.
23170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23171         instead of HAVE_REALLOC_POSIX.
23172         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23173         HAVE_REALLOC_POSIX.
23174
23175         Use modern idiom for realloc() replacement.
23176         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23177         AC_FUNC_REALLOC.
23178         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23179         Autoconf's AC_FUNC_REALLOC.
23180         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23181         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23182         (gl_REPLACE_REALLOC): New macro.
23183         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23184
23185 2010-06-21  Bruno Haible  <bruno@clisp.org>
23186
23187         Fix HAVE_MALLOC_POSIX misnomer.
23188         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23189         !HAVE_MALLOC_POSIX.
23190         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23191         HAVE_MALLOC_POSIX.
23192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23193         instead of HAVE_MALLOC_POSIX.
23194         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23195         HAVE_MALLOC_POSIX.
23196
23197         Use modern idiom for malloc() replacement.
23198         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23199         AC_FUNC_MALLOC.
23200         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23201         Autoconf's AC_FUNC_MALLOC.
23202         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23203         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23204         (gl_REPLACE_MALLOC): New macro.
23205         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23206
23207 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23208
23209         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23210         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23211         This macro takes 3 arguments, not 4.
23212
23213 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23214
23215         ipv6: fix detection under mingw
23216         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23217         in6_addr.
23218
23219 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23220
23221         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23222         that strtod() works when cross-compiling to a glibc version known
23223         to work.
23224
23225 2010-06-15  Bruno Haible  <bruno@clisp.org>
23226
23227         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23228
23229 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23230
23231         select: Correct timeout.
23232         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23233
23234 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23235
23236         git-version-gen: init shell var to avoid env var influence
23237         * build-aux/git-version-gen (v): Init shell var to empty.
23238
23239 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23240
23241         priv-set: Don't assume that priv.h exists merely because getppriv does.
23242         See Jan Andersen's bug report about AIX 5L in
23243         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23244         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23245         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23246         * lib/priv-set.h: Likewise.
23247         * tests/test-priv-set.c: Likewise.
23248
23249 2010-06-13  Bruno Haible  <bruno@clisp.org>
23250
23251         relocatable: Make it easier to test whether to install wrappers.
23252         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23253         RELOCATABLE_VIA_WRAPPER.
23254
23255 2010-06-13  Bruno Haible  <bruno@clisp.org>
23256
23257         gnulib-tool: Display specified modules and dependencies differently.
23258         * gnulib-tool (func_show_module_list): New function.
23259         (func_import, func_create_testdir): Invoke it.
23260         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23261
23262 2010-06-13  Bruno Haible  <bruno@clisp.org>
23263
23264         gnulib-tool: Align code of func_import and func_create_testdir.
23265         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23266         specified_modules.
23267
23268 2010-06-12  Jim Meyering  <meyering@redhat.com>
23269
23270         test-inttostr: avoid spurious failure on Solaris 9
23271         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23272         to accept "%ju".  Reported by Bruno Haible.
23273
23274 2010-06-11  Jim Meyering  <meyering@redhat.com>
23275
23276         test-sys_socket: mark variables as used more readably
23277         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23278         as "used" explicitly via (void) statement casts.  This is more
23279         readable than using them in an artificial return expression.
23280         Suggestion from Bruno Haible.
23281
23282 2010-06-11  Bruno Haible  <bruno@clisp.org>
23283
23284         Avoid some more warnings from "gcc -Wwrite-strings".
23285         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23286         to 'const char *'.
23287         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23288         * tests/test-c-strcasestr.c (main): Likewise.
23289         * tests/test-mbscasestr1.c (main): Likewise.
23290         * tests/test-mbscasestr2.c (main): Likewise.
23291         * tests/test-memmem.c (main): Likewise.
23292         * tests/test-strstr.c (main): Likewise.
23293         * tests/test-strcasestr.c (main): Likewise.
23294
23295 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23296
23297         init.sh: change framework_failure_ to fail with status 99, not 1
23298         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23299         automake's parallel-tests rule that this is an unexpected failure,
23300         even if the test is listed in XFAIL_TESTS.
23301
23302 2010-06-11  Jim Meyering  <meyering@redhat.com>
23303
23304         test-inttostr: avoid warnings about 4-6KB literal strings
23305         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23306         Include "macros.h", for its definition of ASSERT.
23307         (CK): s/assert/ASSERT/
23308         * modules/inttostr-tests (Files): Add macros.h.
23309
23310         init.sh: don't use $ME_ or skip_ before they are defined
23311         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23312         their first uses.  Also hoist their companions: warn_, fail_,
23313         framework_failure_, $stderr_fileno.  Prompted by a patch from
23314         Stefano Lattarini.
23315
23316         test-sys_socket: avoid set-but-not-used warnings from gcc
23317         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23318         avoid warning about set-but-not-used variables.
23319
23320         test-xvasprintf: avoid 'const' discard warnings
23321         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23322         "const" when assigning from literal strings.
23323         (test_xasprintf): Add "void" in function argument list to placate
23324         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23325
23326         tests: avoid compilation warnings in argmatch and exclude tests...
23327         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23328         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23329         Since it always exits, declare with the "noreturn" attribute.
23330         * tests/test-argmatch.c: Likewise.
23331
23332         tests: avoid 'const' discard warnings in mbsstr tests
23333         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23334         * tests/test-mbsstr2.c (main): Likewise.
23335
23336         test-verify: avoid warning from gcc's -Wmissing-declarations
23337         * tests/test-verify.c (function): Declare to be static.
23338
23339         test-inttostr.c: include <string.h> for use of strcmp
23340         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23341
23342         test-linkat: avoid failed assertion on "other" architectures
23343         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23344         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23345         sparc: https://bugs.launchpad.net/bugs/591968
23346
23347 2010-06-11  Jim Meyering  <meyering@redhat.com>
23348
23349         printf.m4: avoid autoconf's "Expanded Before Required" warning
23350         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23351         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23352         autoconf warning.
23353
23354 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23355
23356         Replacement header templates are now named with ".in", not "_".
23357         * doc/gnulib-intro.texi: Correct.
23358
23359 2010-06-10  Jim Meyering  <meyering@redhat.com>
23360
23361         inttostr-tests: depend on snprintf, not snprintf-posix
23362         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23363         snprintf-posix, to avoid this aclocal failure:
23364           missing file gnulib-tests/vasnprintf.c
23365           configure.ac:45: error: expected source file, required through \
23366           AC_LIBSOURCES, not found
23367
23368 2010-06-10  Jim Meyering  <meyering@redhat.com>
23369
23370         inttostr: add a new function, inttostr, and tests
23371         The namesake function was not available.  The existence of the
23372         template file, inttostr.c makes its addition nontrivial.
23373         * lib/anytostr.c: Rename from inttostr.c.
23374         (anytostr): Rename from inttostr.
23375         * lib/inttostr.c: New file.
23376         * modules/inttostr (Files): Add anytostr.c.
23377         (Makefile.am): Set lib_SOURCES instead of ...
23378         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23379         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23380         * lib/offtostr.c: Likewise.
23381         * lib/uinttostr.c: Likewise.
23382         * lib/umaxtostr.c: Likewise.
23383         * modules/inttostr-tests: New file.
23384         * tests/test-inttostr.c: New file.  Test these functions.
23385
23386 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23387             Bruno Haible  <bruno@clisp.org>
23388
23389         Add "Extending Gnulib" chapter to manual.
23390         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23391         chapter.
23392         (Extending Gnulib): New chapter.
23393         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23394         chapter.
23395
23396 2010-06-09  Bruno Haible  <bruno@clisp.org>
23397
23398         Avoid relocwrapper link errors due to gnulib replacement functions.
23399         * lib/areadlink.c: Use the system's malloc, realloc functions.
23400         (areadlink): Set errno to ENOMEM explicitly.
23401         * modules/areadlink (Depends-on): Remove malloc-posix.
23402         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23403
23404 2010-06-09  Bruno Haible  <bruno@clisp.org>
23405
23406         Avoid relocwrapper link errors due to gnulib replacement functions.
23407         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23408         * lib/malloca.c: Likewise.
23409         * lib/relocatable.c: Likewise.
23410         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23411         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23412         * lib/setenv.c: Use the system's malloc, realloc functions.
23413         * lib/strerror.c: Use the system's sprintf function.
23414         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23415
23416 2010-06-04  Bruno Haible  <bruno@clisp.org>
23417
23418         Prefer documented low-level autoconf macro names.
23419         * m4/lib-link.m4: Use m4_translit instead of translit.
23420         * m4/environ.m4: Likewise.
23421         * m4/mathfunc.m4: Likewise.
23422         * m4/onceonly.m4: Likewise.
23423         * m4/stdint.m4: Likewise.
23424         Suggested by Eric Blake.
23425
23426 2010-06-04  Martin Lambers  <marlam@marlam.de>
23427             Bruno Haible  <bruno@clisp.org>
23428
23429         havelib: Allow library names with '+' characters.
23430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23431         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23432
23433 2010-06-09  Bruno Haible  <bruno@clisp.org>
23434
23435         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23436         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23437         realloc failed.
23438
23439 2010-06-08  Peter Simons  <simons@cryp.to>
23440
23441         maint.mk: make the news-check rule more configurable
23442         * top/maint.mk (news-check-lines-spec): New variable.
23443         (news-check): Use "sed -n 1,10p" in place of "head".
23444
23445 2010-06-07  Jim Meyering  <meyering@redhat.com>
23446
23447         do-release-commit-and-tag: fix typo in --help
23448         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23449
23450         regex: avoid new dead-code warning with gcc-4.6.0
23451         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23452         if-block containing a while-loop.  It's been unused for at least
23453         5 years.
23454
23455 2010-06-05  Bruno Haible  <bruno@clisp.org>
23456
23457         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23458         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23459
23460 2010-06-04  Bruno Haible  <bruno@clisp.org>
23461
23462         Update to GNU gettext 0.18.1.
23463         * modules/gettext (configure.ac): Require gettext infrastructure from
23464         version 0.18.1.
23465
23466 2010-06-03  Bruno Haible  <bruno@clisp.org>
23467
23468         Don't use AC_LIBOBJ with file names in subdirectories.
23469         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23470         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23471         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23472         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23473         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23474         gl_LIBUNISTRING_LIBSOURCE.
23475         (Makefile.am): Augment lib_SOURCES here, conditionally.
23476         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23477
23478 2010-06-03  Bruno Haible  <bruno@clisp.org>
23479
23480         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23481         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23482         expansion does not end with a newline.
23483         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23484         unnecessary newline.
23485
23486 2010-06-03  Bruno Haible  <bruno@clisp.org>
23487
23488         Reduce dependencies.
23489         * tests/test-quotearg.h: New file, extracted from
23490         tests/test-quotearg.c.
23491         * tests/test-quotearg-simple.c: New file, extracted from
23492         tests/test-quotearg.c.
23493         * tests/test-quotearg.c: Don't include <ctype.h>.
23494         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23495         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23496         use_quote_double_quotes, use_quotearg_colon): Moved to
23497         tests/test-quotearg.h.
23498         (results_g, flag_results, custom_quotes, custom_results): Moved
23499         to tests/test-quotearg-simple.c.
23500         (main): Moved the part that does not depend on gettext to
23501         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23502         performed.
23503         * modules/quotearg-simple: New file.
23504         * modules/quotearg-simple-tests: New file.
23505         * modules/quotearg (Depends-on): Add quotearg-simple.
23506         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23507         (Files): Add tests/test-quotearg.h.
23508         Reported by Paolo Bonzini.
23509
23510 2010-06-03  Bruno Haible  <bruno@clisp.org>
23511
23512         Reduce dependencies.
23513         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23514
23515 2010-06-03  Bruno Haible  <bruno@clisp.org>
23516
23517         time: Undefine more broken macros.
23518         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23519         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23520         Reported by Eric Blake.
23521
23522 2010-06-03  Bruno Haible  <bruno@clisp.org>
23523
23524         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23525         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23526         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23527         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23528         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23529         Reported by Ludovic Courtès <ludo@gnu.org>.
23530
23531 2010-06-02  Eric Blake  <eblake@redhat.com>
23532
23533         time: work with mingw + pthreads-win32 library
23534         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23535         if timespec is defined only in pthread.h.
23536         * modules/time (Makefile.am): Substitute it.
23537         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23538         <pthread.h>, when needed.
23539         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23540         from the library.
23541
23542 2010-05-31  Bruno Haible  <bruno@clisp.org>
23543
23544         Avoid expanding two macros in the wrong order.
23545         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23546         gl_LIBUNISTRING if it is defined.
23547         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23548         autoconf >= 2.64.
23549         Reported by Ludovic Courtès <ludo@gnu.org>.
23550
23551 2010-05-27  Jim Meyering  <meyering@redhat.com>
23552
23553         maint.mk: also prohibit "#undef" of always-defined symbols
23554         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23555         Allow more than one space before the symbol name.
23556         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23557         the regexp uses alternation.
23558
23559 2010-05-26  Eric Blake  <eblake@redhat.com>
23560
23561         maint.mk: avoid echo -e
23562         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23563         Convert all uses of echo -* to printf.
23564         Reported by Matthias Bolte.
23565
23566 2010-05-25  Bruno Haible  <bruno@clisp.org>
23567
23568         Update to GNU gettext 0.18, part 2.
23569         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23570         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23571
23572 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23573
23574         Add missing include in test-pwrite.c.
23575         * tests/test-pwrite.c: Include string.h, for strcmp.
23576
23577 2010-05-24  Bruno Haible  <bruno@clisp.org>
23578
23579         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23580
23581 2010-05-24  Bruno Haible  <bruno@clisp.org>
23582
23583         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23584         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23585         iconveh_error argument.
23586         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23587         U_STRCONV_TO_LOCALE.
23588         * lib/unistr/u16-strcoll.c: Likewise.
23589         * lib/unistr/u32-strcoll.c: Likewise.
23590         * modules/unistr/u8-strcoll (Depends-on): Add
23591         uniconv/u8-strconv-to-enc, localcharset. Remove
23592         uniconv/u8-strconv-to-locale.
23593         (configure.ac): Bump version number.
23594         * modules/unistr/u16-strcoll (Depends-on): Add
23595         uniconv/u16-strconv-to-enc, localcharset. Remove
23596         uniconv/u16-strconv-to-locale.
23597         (configure.ac): Bump version number.
23598         * modules/unistr/u32-strcoll (Depends-on): Add
23599         uniconv/u32-strconv-to-enc, localcharset. Remove
23600         uniconv/u32-strconv-to-locale.
23601         (configure.ac): Bump version number.
23602
23603 2010-05-24  Bruno Haible  <bruno@clisp.org>
23604
23605         Avoid a test failure on NetBSD 5.0.
23606         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23607         an iconv() bug.
23608
23609 2010-05-24  Bruno Haible  <bruno@clisp.org>
23610
23611         Adjust #include directive style.
23612         * modules/regex (Includes): Recommend to write <regex.h>.
23613
23614 2010-05-24  Bruno Haible  <bruno@clisp.org>
23615
23616         regex: Don't require alloca.
23617         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23618         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23619         only inside if (0).
23620
23621 2010-05-23  Jim Meyering  <meyering@redhat.com>
23622
23623         test-renameat.c: include <sys/stat.h>
23624         * tests/test-renameat.c: Include <sys/stat.h>; required for
23625         definition of S_IS* macros.
23626
23627 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23628
23629         Update maintainer documentation for 'relocatable-prog' module.
23630         * doc/relocatable-maint.texi: Update.
23631         Comments by Bruno Haible.
23632
23633 2010-05-23  Bruno Haible  <bruno@clisp.org>
23634
23635         git-merge-changelog: Enable --split-merged-entry by default.
23636         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23637         (usage): Don't mention this option any more.
23638         Reported by Ralf Wildenhues.
23639
23640 2010-05-23  Jim Meyering  <meyering@redhat.com>
23641
23642         test-pwrite: do not leave behind a test file named "out"
23643         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23644         The trivial-looking use of init.sh is really necessary.
23645         It ensures that the temporary file, "out", is created in
23646         a temporary directory, and removed upon termination.
23647         * tests/test-pwrite.sh: Re-add file.
23648         * modules/pwrite-tests: Reference it.
23649
23650 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23651
23652         Fix output redirection buglet in init.sh.
23653         * tests/init.sh: Fix redirection of stderr.
23654
23655 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23656
23657         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23658
23659 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23660
23661         * modules/valgrind-tests: New file.
23662         * m4/valgrind-tests.m4: New file.
23663         * doc/valgrind-tests.texi: New file.
23664         * doc/gnulib.texi (Running self-tests under valgrind): New
23665         section.
23666
23667 2010-05-19  Bruno Haible  <bruno@clisp.org>
23668
23669         Clean up dead code in recent commit.
23670         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23671         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23672         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23673         Suggested by Paolo Bonzini.
23674
23675 2010-05-19  Bruno Haible  <bruno@clisp.org>
23676
23677         Avoid valgrind error reports from libunistring.
23678         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23679         * modules/libunistring (Files): Add it.
23680         * modules/libunistring-optional (Files): Likewise.
23681
23682 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23683             Bruno Haible  <bruno@clisp.org>
23684
23685         New module 'libunistring-optional'.
23686         * modules/libunistring-optional: New file.
23687         * m4/libunistring-base.m4: New file.
23688         * m4/libunistring-optional.m4: New file.
23689         * lib/unicase.in.h: Renamed from lib/unicase.h.
23690         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23691         * lib/unictype.in.h: Renamed from lib/unictype.h.
23692         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23693         * lib/uniname.in.h: Renamed from lib/uniname.h.
23694         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23695         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23696         * lib/unistr.in.h: Renamed from lib/unistr.h.
23697         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23698         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23699         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23700         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23701         gl_LIBUNISTRING. If the library was found, determine the installed
23702         version and set LIBUNISTRING_VERSION.
23703         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23704         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23705         handle a configuration option --with-included-libunistring.
23706         * modules/libunistring (Files): Add m4/absolute-header.m4.
23707         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23708         Add m4/libunistring-base.m4.
23709         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23710         (Makefile.am): Build unicase.h from unicase.in.h.
23711         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23712         Add m4/libunistring-base.m4.
23713         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23714         (Makefile.am): Build uniconv.h from uniconv.in.h.
23715         * modules/unictype/base (Files): Use unictype.in.h instead of
23716         unictype.h. Add m4/libunistring-base.m4.
23717         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23718         (Makefile.am): Build unictype.h from unictype.in.h.
23719         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23720         Add m4/libunistring-base.m4.
23721         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23722         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23723         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23724         Add m4/libunistring-base.m4.
23725         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23726         (Makefile.am): Build uniname.h from uniname.in.h.
23727         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23728         Add m4/libunistring-base.m4.
23729         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23730         (Makefile.am): Build uninorm.h from uninorm.in.h.
23731         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23732         unistdio.h. Add m4/libunistring-base.m4.
23733         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23734         (Makefile.am): Build unistdio.h from unistdio.in.h.
23735         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23736         Add m4/libunistring-base.m4.
23737         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23738         (Makefile.am): Build unistr.h from unistr.in.h.
23739         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23740         Add m4/libunistring-base.m4.
23741         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23742         (Makefile.am): Build unitypes.h from unitypes.in.h.
23743         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23744         Add m4/libunistring-base.m4.
23745         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23746         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23747         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23748         uniwidth.h. Add m4/libunistring-base.m4.
23749         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23750         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23751         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23752         instead of augmenting lib_SOURCES.
23753         * modules/unicase/empty-suffix-context: Likewise.
23754         * modules/unicase/locale-language: Likewise.
23755         * modules/unicase/tolower: Likewise.
23756         * modules/unicase/totitle: Likewise.
23757         * modules/unicase/toupper: Likewise.
23758         * modules/unicase/u8-casecmp: Likewise.
23759         * modules/unicase/u8-casecoll: Likewise.
23760         * modules/unicase/u8-casefold: Likewise.
23761         * modules/unicase/u8-casexfrm: Likewise.
23762         * modules/unicase/u8-ct-casefold: Likewise.
23763         * modules/unicase/u8-ct-tolower: Likewise.
23764         * modules/unicase/u8-ct-totitle: Likewise.
23765         * modules/unicase/u8-ct-toupper: Likewise.
23766         * modules/unicase/u8-is-cased: Likewise.
23767         * modules/unicase/u8-is-casefolded: Likewise.
23768         * modules/unicase/u8-is-lowercase: Likewise.
23769         * modules/unicase/u8-is-titlecase: Likewise.
23770         * modules/unicase/u8-is-uppercase: Likewise.
23771         * modules/unicase/u8-prefix-context: Likewise.
23772         * modules/unicase/u8-suffix-context: Likewise.
23773         * modules/unicase/u8-tolower: Likewise.
23774         * modules/unicase/u8-totitle: Likewise.
23775         * modules/unicase/u8-toupper: Likewise.
23776         * modules/unicase/u16-casecmp: Likewise.
23777         * modules/unicase/u16-casecoll: Likewise.
23778         * modules/unicase/u16-casefold: Likewise.
23779         * modules/unicase/u16-casexfrm: Likewise.
23780         * modules/unicase/u16-ct-casefold: Likewise.
23781         * modules/unicase/u16-ct-tolower: Likewise.
23782         * modules/unicase/u16-ct-totitle: Likewise.
23783         * modules/unicase/u16-ct-toupper: Likewise.
23784         * modules/unicase/u16-is-cased: Likewise.
23785         * modules/unicase/u16-is-casefolded: Likewise.
23786         * modules/unicase/u16-is-lowercase: Likewise.
23787         * modules/unicase/u16-is-titlecase: Likewise.
23788         * modules/unicase/u16-is-uppercase: Likewise.
23789         * modules/unicase/u16-prefix-context: Likewise.
23790         * modules/unicase/u16-suffix-context: Likewise.
23791         * modules/unicase/u16-tolower: Likewise.
23792         * modules/unicase/u16-totitle: Likewise.
23793         * modules/unicase/u16-toupper: Likewise.
23794         * modules/unicase/u32-casecmp: Likewise.
23795         * modules/unicase/u32-casecoll: Likewise.
23796         * modules/unicase/u32-casefold: Likewise.
23797         * modules/unicase/u32-casexfrm: Likewise.
23798         * modules/unicase/u32-ct-casefold: Likewise.
23799         * modules/unicase/u32-ct-tolower: Likewise.
23800         * modules/unicase/u32-ct-totitle: Likewise.
23801         * modules/unicase/u32-ct-toupper: Likewise.
23802         * modules/unicase/u32-is-cased: Likewise.
23803         * modules/unicase/u32-is-casefolded: Likewise.
23804         * modules/unicase/u32-is-lowercase: Likewise.
23805         * modules/unicase/u32-is-titlecase: Likewise.
23806         * modules/unicase/u32-is-uppercase: Likewise.
23807         * modules/unicase/u32-prefix-context: Likewise.
23808         * modules/unicase/u32-suffix-context: Likewise.
23809         * modules/unicase/u32-tolower: Likewise.
23810         * modules/unicase/u32-totitle: Likewise.
23811         * modules/unicase/u32-toupper: Likewise.
23812         * modules/unicase/ulc-casecmp: Likewise.
23813         * modules/unicase/ulc-casecoll: Likewise.
23814         * modules/unicase/ulc-casexfrm: Likewise.
23815         * modules/uniconv/u8-conv-from-enc: Likewise.
23816         * modules/uniconv/u8-conv-to-enc: Likewise.
23817         * modules/uniconv/u8-strconv-from-enc: Likewise.
23818         * modules/uniconv/u8-strconv-from-locale: Likewise.
23819         * modules/uniconv/u8-strconv-to-enc: Likewise.
23820         * modules/uniconv/u8-strconv-to-locale: Likewise.
23821         * modules/uniconv/u16-conv-from-enc: Likewise.
23822         * modules/uniconv/u16-conv-to-enc: Likewise.
23823         * modules/uniconv/u16-strconv-from-enc: Likewise.
23824         * modules/uniconv/u16-strconv-from-locale: Likewise.
23825         * modules/uniconv/u16-strconv-to-enc: Likewise.
23826         * modules/uniconv/u16-strconv-to-locale: Likewise.
23827         * modules/uniconv/u32-conv-from-enc: Likewise.
23828         * modules/uniconv/u32-conv-to-enc: Likewise.
23829         * modules/uniconv/u32-strconv-from-enc: Likewise.
23830         * modules/uniconv/u32-strconv-from-locale: Likewise.
23831         * modules/uniconv/u32-strconv-to-enc: Likewise.
23832         * modules/uniconv/u32-strconv-to-locale: Likewise.
23833         * modules/unictype/bidicategory-byname: Likewise.
23834         * modules/unictype/bidicategory-name: Likewise.
23835         * modules/unictype/bidicategory-of: Likewise.
23836         * modules/unictype/bidicategory-test: Likewise.
23837         * modules/unictype/block-list: Likewise.
23838         * modules/unictype/block-test: Likewise.
23839         * modules/unictype/category-C: Likewise.
23840         * modules/unictype/category-Cc: Likewise.
23841         * modules/unictype/category-Cf: Likewise.
23842         * modules/unictype/category-Cn: Likewise.
23843         * modules/unictype/category-Co: Likewise.
23844         * modules/unictype/category-Cs: Likewise.
23845         * modules/unictype/category-L: Likewise.
23846         * modules/unictype/category-Ll: Likewise.
23847         * modules/unictype/category-Lm: Likewise.
23848         * modules/unictype/category-Lo: Likewise.
23849         * modules/unictype/category-Lt: Likewise.
23850         * modules/unictype/category-Lu: Likewise.
23851         * modules/unictype/category-M: Likewise.
23852         * modules/unictype/category-Mc: Likewise.
23853         * modules/unictype/category-Me: Likewise.
23854         * modules/unictype/category-Mn: Likewise.
23855         * modules/unictype/category-N: Likewise.
23856         * modules/unictype/category-Nd: Likewise.
23857         * modules/unictype/category-Nl: Likewise.
23858         * modules/unictype/category-No: Likewise.
23859         * modules/unictype/category-P: Likewise.
23860         * modules/unictype/category-Pc: Likewise.
23861         * modules/unictype/category-Pd: Likewise.
23862         * modules/unictype/category-Pe: Likewise.
23863         * modules/unictype/category-Pf: Likewise.
23864         * modules/unictype/category-Pi: Likewise.
23865         * modules/unictype/category-Po: Likewise.
23866         * modules/unictype/category-Ps: Likewise.
23867         * modules/unictype/category-S: Likewise.
23868         * modules/unictype/category-Sc: Likewise.
23869         * modules/unictype/category-Sk: Likewise.
23870         * modules/unictype/category-Sm: Likewise.
23871         * modules/unictype/category-So: Likewise.
23872         * modules/unictype/category-Z: Likewise.
23873         * modules/unictype/category-Zl: Likewise.
23874         * modules/unictype/category-Zp: Likewise.
23875         * modules/unictype/category-Zs: Likewise.
23876         * modules/unictype/category-and: Likewise.
23877         * modules/unictype/category-and-not: Likewise.
23878         * modules/unictype/category-byname: Likewise.
23879         * modules/unictype/category-name: Likewise.
23880         * modules/unictype/category-none: Likewise.
23881         * modules/unictype/category-of: Likewise.
23882         * modules/unictype/category-or: Likewise.
23883         * modules/unictype/category-test: Likewise.
23884         * modules/unictype/combining-class: Likewise.
23885         * modules/unictype/ctype-alnum: Likewise.
23886         * modules/unictype/ctype-alpha: Likewise.
23887         * modules/unictype/ctype-blank: Likewise.
23888         * modules/unictype/ctype-cntrl: Likewise.
23889         * modules/unictype/ctype-digit: Likewise.
23890         * modules/unictype/ctype-graph: Likewise.
23891         * modules/unictype/ctype-lower: Likewise.
23892         * modules/unictype/ctype-print: Likewise.
23893         * modules/unictype/ctype-punct: Likewise.
23894         * modules/unictype/ctype-space: Likewise.
23895         * modules/unictype/ctype-upper: Likewise.
23896         * modules/unictype/ctype-xdigit: Likewise.
23897         * modules/unictype/decimal-digit: Likewise.
23898         * modules/unictype/digit: Likewise.
23899         * modules/unictype/mirror: Likewise.
23900         * modules/unictype/numeric: Likewise.
23901         * modules/unictype/property-alphabetic: Likewise.
23902         * modules/unictype/property-ascii-hex-digit: Likewise.
23903         * modules/unictype/property-bidi-arabic-digit: Likewise.
23904         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23905         * modules/unictype/property-bidi-block-separator: Likewise.
23906         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23907         * modules/unictype/property-bidi-common-separator: Likewise.
23908         * modules/unictype/property-bidi-control: Likewise.
23909         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23910         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23911         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23912         * modules/unictype/property-bidi-european-digit: Likewise.
23913         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23914         * modules/unictype/property-bidi-left-to-right: Likewise.
23915         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23916         * modules/unictype/property-bidi-other-neutral: Likewise.
23917         * modules/unictype/property-bidi-pdf: Likewise.
23918         * modules/unictype/property-bidi-segment-separator: Likewise.
23919         * modules/unictype/property-bidi-whitespace: Likewise.
23920         * modules/unictype/property-byname: Likewise.
23921         * modules/unictype/property-combining: Likewise.
23922         * modules/unictype/property-composite: Likewise.
23923         * modules/unictype/property-currency-symbol: Likewise.
23924         * modules/unictype/property-dash: Likewise.
23925         * modules/unictype/property-decimal-digit: Likewise.
23926         * modules/unictype/property-default-ignorable-code-point: Likewise.
23927         * modules/unictype/property-deprecated: Likewise.
23928         * modules/unictype/property-diacritic: Likewise.
23929         * modules/unictype/property-extender: Likewise.
23930         * modules/unictype/property-format-control: Likewise.
23931         * modules/unictype/property-grapheme-base: Likewise.
23932         * modules/unictype/property-grapheme-extend: Likewise.
23933         * modules/unictype/property-grapheme-link: Likewise.
23934         * modules/unictype/property-hex-digit: Likewise.
23935         * modules/unictype/property-hyphen: Likewise.
23936         * modules/unictype/property-id-continue: Likewise.
23937         * modules/unictype/property-id-start: Likewise.
23938         * modules/unictype/property-ideographic: Likewise.
23939         * modules/unictype/property-ids-binary-operator: Likewise.
23940         * modules/unictype/property-ids-trinary-operator: Likewise.
23941         * modules/unictype/property-ignorable-control: Likewise.
23942         * modules/unictype/property-iso-control: Likewise.
23943         * modules/unictype/property-join-control: Likewise.
23944         * modules/unictype/property-left-of-pair: Likewise.
23945         * modules/unictype/property-line-separator: Likewise.
23946         * modules/unictype/property-logical-order-exception: Likewise.
23947         * modules/unictype/property-lowercase: Likewise.
23948         * modules/unictype/property-math: Likewise.
23949         * modules/unictype/property-non-break: Likewise.
23950         * modules/unictype/property-not-a-character: Likewise.
23951         * modules/unictype/property-numeric: Likewise.
23952         * modules/unictype/property-other-alphabetic: Likewise.
23953         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23954         * modules/unictype/property-other-grapheme-extend: Likewise.
23955         * modules/unictype/property-other-id-continue: Likewise.
23956         * modules/unictype/property-other-id-start: Likewise.
23957         * modules/unictype/property-other-lowercase: Likewise.
23958         * modules/unictype/property-other-math: Likewise.
23959         * modules/unictype/property-other-uppercase: Likewise.
23960         * modules/unictype/property-paired-punctuation: Likewise.
23961         * modules/unictype/property-paragraph-separator: Likewise.
23962         * modules/unictype/property-pattern-syntax: Likewise.
23963         * modules/unictype/property-pattern-white-space: Likewise.
23964         * modules/unictype/property-private-use: Likewise.
23965         * modules/unictype/property-punctuation: Likewise.
23966         * modules/unictype/property-quotation-mark: Likewise.
23967         * modules/unictype/property-radical: Likewise.
23968         * modules/unictype/property-sentence-terminal: Likewise.
23969         * modules/unictype/property-soft-dotted: Likewise.
23970         * modules/unictype/property-space: Likewise.
23971         * modules/unictype/property-terminal-punctuation: Likewise.
23972         * modules/unictype/property-test: Likewise.
23973         * modules/unictype/property-titlecase: Likewise.
23974         * modules/unictype/property-unassigned-code-value: Likewise.
23975         * modules/unictype/property-unified-ideograph: Likewise.
23976         * modules/unictype/property-uppercase: Likewise.
23977         * modules/unictype/property-variation-selector: Likewise.
23978         * modules/unictype/property-white-space: Likewise.
23979         * modules/unictype/property-xid-continue: Likewise.
23980         * modules/unictype/property-xid-start: Likewise.
23981         * modules/unictype/property-zero-width: Likewise.
23982         * modules/unictype/scripts: Likewise.
23983         * modules/unictype/syntax-c-ident: Likewise.
23984         * modules/unictype/syntax-c-whitespace: Likewise.
23985         * modules/unictype/syntax-java-ident: Likewise.
23986         * modules/unictype/syntax-java-whitespace: Likewise.
23987         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23988         * modules/unilbrk/u8-width-linebreaks: Likewise.
23989         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23990         * modules/unilbrk/u16-width-linebreaks: Likewise.
23991         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23992         * modules/unilbrk/u32-width-linebreaks: Likewise.
23993         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23994         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23995         * modules/uniname/uniname: Likewise.
23996         * modules/uninorm/canonical-decomposition: Likewise.
23997         * modules/uninorm/composition: Likewise.
23998         * modules/uninorm/decomposing-form: Likewise.
23999         * modules/uninorm/decomposition: Likewise.
24000         * modules/uninorm/filter: Likewise.
24001         * modules/uninorm/nfc: Likewise.
24002         * modules/uninorm/nfd: Likewise.
24003         * modules/uninorm/nfkc: Likewise.
24004         * modules/uninorm/nfkd: Likewise.
24005         * modules/uninorm/u8-normalize: Likewise.
24006         * modules/uninorm/u8-normcmp: Likewise.
24007         * modules/uninorm/u8-normcoll: Likewise.
24008         * modules/uninorm/u8-normxfrm: Likewise.
24009         * modules/uninorm/u16-normalize: Likewise.
24010         * modules/uninorm/u16-normcmp: Likewise.
24011         * modules/uninorm/u16-normcoll: Likewise.
24012         * modules/uninorm/u16-normxfrm: Likewise.
24013         * modules/uninorm/u32-normalize: Likewise.
24014         * modules/uninorm/u32-normcmp: Likewise.
24015         * modules/uninorm/u32-normcoll: Likewise.
24016         * modules/uninorm/u32-normxfrm: Likewise.
24017         * modules/unistdio/u8-asnprintf: Likewise.
24018         * modules/unistdio/u8-asprintf: Likewise.
24019         * modules/unistdio/u8-snprintf: Likewise.
24020         * modules/unistdio/u8-sprintf: Likewise.
24021         * modules/unistdio/u8-u8-asnprintf: Likewise.
24022         * modules/unistdio/u8-u8-asprintf: Likewise.
24023         * modules/unistdio/u8-u8-snprintf: Likewise.
24024         * modules/unistdio/u8-u8-sprintf: Likewise.
24025         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24026         * modules/unistdio/u8-u8-vasprintf: Likewise.
24027         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24028         * modules/unistdio/u8-u8-vsprintf: Likewise.
24029         * modules/unistdio/u8-vasnprintf: Likewise.
24030         * modules/unistdio/u8-vasprintf: Likewise.
24031         * modules/unistdio/u8-vsnprintf: Likewise.
24032         * modules/unistdio/u8-vsprintf: Likewise.
24033         * modules/unistdio/u16-asnprintf: Likewise.
24034         * modules/unistdio/u16-asprintf: Likewise.
24035         * modules/unistdio/u16-snprintf: Likewise.
24036         * modules/unistdio/u16-sprintf: Likewise.
24037         * modules/unistdio/u16-u16-asnprintf: Likewise.
24038         * modules/unistdio/u16-u16-asprintf: Likewise.
24039         * modules/unistdio/u16-u16-snprintf: Likewise.
24040         * modules/unistdio/u16-u16-sprintf: Likewise.
24041         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24042         * modules/unistdio/u16-u16-vasprintf: Likewise.
24043         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24044         * modules/unistdio/u16-u16-vsprintf: Likewise.
24045         * modules/unistdio/u16-vasnprintf: Likewise.
24046         * modules/unistdio/u16-vasprintf: Likewise.
24047         * modules/unistdio/u16-vsnprintf: Likewise.
24048         * modules/unistdio/u16-vsprintf: Likewise.
24049         * modules/unistdio/u32-asnprintf: Likewise.
24050         * modules/unistdio/u32-asprintf: Likewise.
24051         * modules/unistdio/u32-snprintf: Likewise.
24052         * modules/unistdio/u32-sprintf: Likewise.
24053         * modules/unistdio/u32-u32-asnprintf: Likewise.
24054         * modules/unistdio/u32-u32-asprintf: Likewise.
24055         * modules/unistdio/u32-u32-snprintf: Likewise.
24056         * modules/unistdio/u32-u32-sprintf: Likewise.
24057         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24058         * modules/unistdio/u32-u32-vasprintf: Likewise.
24059         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24060         * modules/unistdio/u32-u32-vsprintf: Likewise.
24061         * modules/unistdio/u32-vasnprintf: Likewise.
24062         * modules/unistdio/u32-vasprintf: Likewise.
24063         * modules/unistdio/u32-vsnprintf: Likewise.
24064         * modules/unistdio/u32-vsprintf: Likewise.
24065         * modules/unistdio/ulc-asnprintf: Likewise.
24066         * modules/unistdio/ulc-asprintf: Likewise.
24067         * modules/unistdio/ulc-fprintf: Likewise.
24068         * modules/unistdio/ulc-snprintf: Likewise.
24069         * modules/unistdio/ulc-sprintf: Likewise.
24070         * modules/unistdio/ulc-vasnprintf: Likewise.
24071         * modules/unistdio/ulc-vasprintf: Likewise.
24072         * modules/unistdio/ulc-vfprintf: Likewise.
24073         * modules/unistdio/ulc-vsnprintf: Likewise.
24074         * modules/unistdio/ulc-vsprintf: Likewise.
24075         * modules/unistr/u8-check: Likewise.
24076         * modules/unistr/u8-chr: Likewise.
24077         * modules/unistr/u8-cmp: Likewise.
24078         * modules/unistr/u8-cmp2: Likewise.
24079         * modules/unistr/u8-cpy: Likewise.
24080         * modules/unistr/u8-cpy-alloc: Likewise.
24081         * modules/unistr/u8-endswith: Likewise.
24082         * modules/unistr/u8-mblen: Likewise.
24083         * modules/unistr/u8-mbsnlen: Likewise.
24084         * modules/unistr/u8-mbtouc: Likewise.
24085         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24086         * modules/unistr/u8-mbtoucr: Likewise.
24087         * modules/unistr/u8-move: Likewise.
24088         * modules/unistr/u8-next: Likewise.
24089         * modules/unistr/u8-prev: Likewise.
24090         * modules/unistr/u8-set: Likewise.
24091         * modules/unistr/u8-startswith: Likewise.
24092         * modules/unistr/u8-stpcpy: Likewise.
24093         * modules/unistr/u8-stpncpy: Likewise.
24094         * modules/unistr/u8-strcat: Likewise.
24095         * modules/unistr/u8-strchr: Likewise.
24096         * modules/unistr/u8-strcmp: Likewise.
24097         * modules/unistr/u8-strcoll: Likewise.
24098         * modules/unistr/u8-strcpy: Likewise.
24099         * modules/unistr/u8-strcspn: Likewise.
24100         * modules/unistr/u8-strdup: Likewise.
24101         * modules/unistr/u8-strlen: Likewise.
24102         * modules/unistr/u8-strmblen: Likewise.
24103         * modules/unistr/u8-strmbtouc: Likewise.
24104         * modules/unistr/u8-strncat: Likewise.
24105         * modules/unistr/u8-strncmp: Likewise.
24106         * modules/unistr/u8-strncpy: Likewise.
24107         * modules/unistr/u8-strnlen: Likewise.
24108         * modules/unistr/u8-strpbrk: Likewise.
24109         * modules/unistr/u8-strrchr: Likewise.
24110         * modules/unistr/u8-strspn: Likewise.
24111         * modules/unistr/u8-strstr: Likewise.
24112         * modules/unistr/u8-strtok: Likewise.
24113         * modules/unistr/u8-to-u16: Likewise.
24114         * modules/unistr/u8-to-u32: Likewise.
24115         * modules/unistr/u8-uctomb: Likewise.
24116         * modules/unistr/u16-check: Likewise.
24117         * modules/unistr/u16-chr: Likewise.
24118         * modules/unistr/u16-cmp: Likewise.
24119         * modules/unistr/u16-cmp2: Likewise.
24120         * modules/unistr/u16-cpy: Likewise.
24121         * modules/unistr/u16-cpy-alloc: Likewise.
24122         * modules/unistr/u16-endswith: Likewise.
24123         * modules/unistr/u16-mblen: Likewise.
24124         * modules/unistr/u16-mbsnlen: Likewise.
24125         * modules/unistr/u16-mbtouc: Likewise.
24126         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24127         * modules/unistr/u16-mbtoucr: Likewise.
24128         * modules/unistr/u16-move: Likewise.
24129         * modules/unistr/u16-next: Likewise.
24130         * modules/unistr/u16-prev: Likewise.
24131         * modules/unistr/u16-set: Likewise.
24132         * modules/unistr/u16-startswith: Likewise.
24133         * modules/unistr/u16-stpcpy: Likewise.
24134         * modules/unistr/u16-stpncpy: Likewise.
24135         * modules/unistr/u16-strcat: Likewise.
24136         * modules/unistr/u16-strchr: Likewise.
24137         * modules/unistr/u16-strcmp: Likewise.
24138         * modules/unistr/u16-strcoll: Likewise.
24139         * modules/unistr/u16-strcpy: Likewise.
24140         * modules/unistr/u16-strcspn: Likewise.
24141         * modules/unistr/u16-strdup: Likewise.
24142         * modules/unistr/u16-strlen: Likewise.
24143         * modules/unistr/u16-strmblen: Likewise.
24144         * modules/unistr/u16-strmbtouc: Likewise.
24145         * modules/unistr/u16-strncat: Likewise.
24146         * modules/unistr/u16-strncmp: Likewise.
24147         * modules/unistr/u16-strncpy: Likewise.
24148         * modules/unistr/u16-strnlen: Likewise.
24149         * modules/unistr/u16-strpbrk: Likewise.
24150         * modules/unistr/u16-strrchr: Likewise.
24151         * modules/unistr/u16-strspn: Likewise.
24152         * modules/unistr/u16-strstr: Likewise.
24153         * modules/unistr/u16-strtok: Likewise.
24154         * modules/unistr/u16-to-u32: Likewise.
24155         * modules/unistr/u16-to-u8: Likewise.
24156         * modules/unistr/u16-uctomb: Likewise.
24157         * modules/unistr/u32-check: Likewise.
24158         * modules/unistr/u32-chr: Likewise.
24159         * modules/unistr/u32-cmp: Likewise.
24160         * modules/unistr/u32-cmp2: Likewise.
24161         * modules/unistr/u32-cpy: Likewise.
24162         * modules/unistr/u32-cpy-alloc: Likewise.
24163         * modules/unistr/u32-endswith: Likewise.
24164         * modules/unistr/u32-mblen: Likewise.
24165         * modules/unistr/u32-mbsnlen: Likewise.
24166         * modules/unistr/u32-mbtouc: Likewise.
24167         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24168         * modules/unistr/u32-mbtoucr: Likewise.
24169         * modules/unistr/u32-move: Likewise.
24170         * modules/unistr/u32-next: Likewise.
24171         * modules/unistr/u32-prev: Likewise.
24172         * modules/unistr/u32-set: Likewise.
24173         * modules/unistr/u32-startswith: Likewise.
24174         * modules/unistr/u32-stpcpy: Likewise.
24175         * modules/unistr/u32-stpncpy: Likewise.
24176         * modules/unistr/u32-strcat: Likewise.
24177         * modules/unistr/u32-strchr: Likewise.
24178         * modules/unistr/u32-strcmp: Likewise.
24179         * modules/unistr/u32-strcoll: Likewise.
24180         * modules/unistr/u32-strcpy: Likewise.
24181         * modules/unistr/u32-strcspn: Likewise.
24182         * modules/unistr/u32-strdup: Likewise.
24183         * modules/unistr/u32-strlen: Likewise.
24184         * modules/unistr/u32-strmblen: Likewise.
24185         * modules/unistr/u32-strmbtouc: Likewise.
24186         * modules/unistr/u32-strncat: Likewise.
24187         * modules/unistr/u32-strncmp: Likewise.
24188         * modules/unistr/u32-strncpy: Likewise.
24189         * modules/unistr/u32-strnlen: Likewise.
24190         * modules/unistr/u32-strpbrk: Likewise.
24191         * modules/unistr/u32-strrchr: Likewise.
24192         * modules/unistr/u32-strspn: Likewise.
24193         * modules/unistr/u32-strstr: Likewise.
24194         * modules/unistr/u32-strtok: Likewise.
24195         * modules/unistr/u32-to-u16: Likewise.
24196         * modules/unistr/u32-to-u8: Likewise.
24197         * modules/unistr/u32-uctomb: Likewise.
24198         * modules/uniwbrk/u8-wordbreaks: Likewise.
24199         * modules/uniwbrk/u16-wordbreaks: Likewise.
24200         * modules/uniwbrk/u32-wordbreaks: Likewise.
24201         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24202         * modules/uniwbrk/wordbreak-property: Likewise.
24203         * modules/uniwidth/u8-strwidth: Likewise.
24204         * modules/uniwidth/u8-width: Likewise.
24205         * modules/uniwidth/u16-strwidth: Likewise.
24206         * modules/uniwidth/u16-width: Likewise.
24207         * modules/uniwidth/u32-strwidth: Likewise.
24208         * modules/uniwidth/u32-width: Likewise.
24209         * modules/uniwidth/width: Likewise.
24210         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24211         with $(LIBUNISTRING).
24212         * modules/unicase/ignorable-tests: Likewise.
24213         * modules/unicase/locale-language-tests: Likewise.
24214         * modules/unicase/tolower-tests: Likewise.
24215         * modules/unicase/totitle-tests: Likewise.
24216         * modules/unicase/toupper-tests: Likewise.
24217         * modules/unicase/u8-casecmp-tests: Likewise.
24218         * modules/unicase/u8-casecoll-tests: Likewise.
24219         * modules/unicase/u8-casefold-tests: Likewise.
24220         * modules/unicase/u8-is-cased-tests: Likewise.
24221         * modules/unicase/u8-is-casefolded-tests: Likewise.
24222         * modules/unicase/u8-is-lowercase-tests: Likewise.
24223         * modules/unicase/u8-is-titlecase-tests: Likewise.
24224         * modules/unicase/u8-is-uppercase-tests: Likewise.
24225         * modules/unicase/u8-tolower-tests: Likewise.
24226         * modules/unicase/u8-totitle-tests: Likewise.
24227         * modules/unicase/u8-toupper-tests: Likewise.
24228         * modules/unicase/u16-casecmp-tests: Likewise.
24229         * modules/unicase/u16-casecoll-tests: Likewise.
24230         * modules/unicase/u16-casefold-tests: Likewise.
24231         * modules/unicase/u16-is-cased-tests: Likewise.
24232         * modules/unicase/u16-is-casefolded-tests: Likewise.
24233         * modules/unicase/u16-is-lowercase-tests: Likewise.
24234         * modules/unicase/u16-is-titlecase-tests: Likewise.
24235         * modules/unicase/u16-is-uppercase-tests: Likewise.
24236         * modules/unicase/u16-tolower-tests: Likewise.
24237         * modules/unicase/u16-totitle-tests: Likewise.
24238         * modules/unicase/u16-toupper-tests: Likewise.
24239         * modules/unicase/u32-casecmp-tests: Likewise.
24240         * modules/unicase/u32-casecoll-tests: Likewise.
24241         * modules/unicase/u32-casefold-tests: Likewise.
24242         * modules/unicase/u32-is-cased-tests: Likewise.
24243         * modules/unicase/u32-is-casefolded-tests: Likewise.
24244         * modules/unicase/u32-is-lowercase-tests: Likewise.
24245         * modules/unicase/u32-is-titlecase-tests: Likewise.
24246         * modules/unicase/u32-is-uppercase-tests: Likewise.
24247         * modules/unicase/u32-tolower-tests: Likewise.
24248         * modules/unicase/u32-totitle-tests: Likewise.
24249         * modules/unicase/u32-toupper-tests: Likewise.
24250         * modules/unicase/ulc-casecmp-tests: Likewise.
24251         * modules/unicase/ulc-casecoll-tests: Likewise.
24252         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24253         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24254         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24255         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24256         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24257         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24258         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24259         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24260         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24261         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24262         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24263         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24264         * modules/unictype/bidicategory-byname-tests: Likewise.
24265         * modules/unictype/bidicategory-name-tests: Likewise.
24266         * modules/unictype/bidicategory-of-tests: Likewise.
24267         * modules/unictype/bidicategory-test-tests: Likewise.
24268         * modules/unictype/block-list-tests: Likewise.
24269         * modules/unictype/block-of-tests: Likewise.
24270         * modules/unictype/block-test-tests: Likewise.
24271         * modules/unictype/category-C-tests: Likewise.
24272         * modules/unictype/category-Cc-tests: Likewise.
24273         * modules/unictype/category-Cf-tests: Likewise.
24274         * modules/unictype/category-Cn-tests: Likewise.
24275         * modules/unictype/category-Co-tests: Likewise.
24276         * modules/unictype/category-Cs-tests: Likewise.
24277         * modules/unictype/category-L-tests: Likewise.
24278         * modules/unictype/category-Ll-tests: Likewise.
24279         * modules/unictype/category-Lm-tests: Likewise.
24280         * modules/unictype/category-Lo-tests: Likewise.
24281         * modules/unictype/category-Lt-tests: Likewise.
24282         * modules/unictype/category-Lu-tests: Likewise.
24283         * modules/unictype/category-M-tests: Likewise.
24284         * modules/unictype/category-Mc-tests: Likewise.
24285         * modules/unictype/category-Me-tests: Likewise.
24286         * modules/unictype/category-Mn-tests: Likewise.
24287         * modules/unictype/category-N-tests: Likewise.
24288         * modules/unictype/category-Nd-tests: Likewise.
24289         * modules/unictype/category-Nl-tests: Likewise.
24290         * modules/unictype/category-No-tests: Likewise.
24291         * modules/unictype/category-P-tests: Likewise.
24292         * modules/unictype/category-Pc-tests: Likewise.
24293         * modules/unictype/category-Pd-tests: Likewise.
24294         * modules/unictype/category-Pe-tests: Likewise.
24295         * modules/unictype/category-Pf-tests: Likewise.
24296         * modules/unictype/category-Pi-tests: Likewise.
24297         * modules/unictype/category-Po-tests: Likewise.
24298         * modules/unictype/category-Ps-tests: Likewise.
24299         * modules/unictype/category-S-tests: Likewise.
24300         * modules/unictype/category-Sc-tests: Likewise.
24301         * modules/unictype/category-Sk-tests: Likewise.
24302         * modules/unictype/category-Sm-tests: Likewise.
24303         * modules/unictype/category-So-tests: Likewise.
24304         * modules/unictype/category-Z-tests: Likewise.
24305         * modules/unictype/category-Zl-tests: Likewise.
24306         * modules/unictype/category-Zp-tests: Likewise.
24307         * modules/unictype/category-Zs-tests: Likewise.
24308         * modules/unictype/category-and-not-tests: Likewise.
24309         * modules/unictype/category-and-tests: Likewise.
24310         * modules/unictype/category-byname-tests: Likewise.
24311         * modules/unictype/category-name-tests: Likewise.
24312         * modules/unictype/category-none-tests: Likewise.
24313         * modules/unictype/category-of-tests: Likewise.
24314         * modules/unictype/category-or-tests: Likewise.
24315         * modules/unictype/category-test-withtable-tests: Likewise.
24316         * modules/unictype/combining-class-tests: Likewise.
24317         * modules/unictype/ctype-alnum-tests: Likewise.
24318         * modules/unictype/ctype-alpha-tests: Likewise.
24319         * modules/unictype/ctype-blank-tests: Likewise.
24320         * modules/unictype/ctype-cntrl-tests: Likewise.
24321         * modules/unictype/ctype-digit-tests: Likewise.
24322         * modules/unictype/ctype-graph-tests: Likewise.
24323         * modules/unictype/ctype-lower-tests: Likewise.
24324         * modules/unictype/ctype-print-tests: Likewise.
24325         * modules/unictype/ctype-punct-tests: Likewise.
24326         * modules/unictype/ctype-space-tests: Likewise.
24327         * modules/unictype/ctype-upper-tests: Likewise.
24328         * modules/unictype/ctype-xdigit-tests: Likewise.
24329         * modules/unictype/decimal-digit-tests: Likewise.
24330         * modules/unictype/digit-tests: Likewise.
24331         * modules/unictype/mirror-tests: Likewise.
24332         * modules/unictype/numeric-tests: Likewise.
24333         * modules/unictype/property-alphabetic-tests: Likewise.
24334         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24335         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24336         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24337         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24338         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24339         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24340         * modules/unictype/property-bidi-control-tests: Likewise.
24341         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24342         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24343         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24344         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24345         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24346         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24347         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24348         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24349         * modules/unictype/property-bidi-pdf-tests: Likewise.
24350         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24351         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24352         * modules/unictype/property-byname-tests: Likewise.
24353         * modules/unictype/property-combining-tests: Likewise.
24354         * modules/unictype/property-composite-tests: Likewise.
24355         * modules/unictype/property-currency-symbol-tests: Likewise.
24356         * modules/unictype/property-dash-tests: Likewise.
24357         * modules/unictype/property-decimal-digit-tests: Likewise.
24358         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24359         * modules/unictype/property-deprecated-tests: Likewise.
24360         * modules/unictype/property-diacritic-tests: Likewise.
24361         * modules/unictype/property-extender-tests: Likewise.
24362         * modules/unictype/property-format-control-tests: Likewise.
24363         * modules/unictype/property-grapheme-base-tests: Likewise.
24364         * modules/unictype/property-grapheme-extend-tests: Likewise.
24365         * modules/unictype/property-grapheme-link-tests: Likewise.
24366         * modules/unictype/property-hex-digit-tests: Likewise.
24367         * modules/unictype/property-hyphen-tests: Likewise.
24368         * modules/unictype/property-id-continue-tests: Likewise.
24369         * modules/unictype/property-id-start-tests: Likewise.
24370         * modules/unictype/property-ideographic-tests: Likewise.
24371         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24372         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24373         * modules/unictype/property-ignorable-control-tests: Likewise.
24374         * modules/unictype/property-iso-control-tests: Likewise.
24375         * modules/unictype/property-join-control-tests: Likewise.
24376         * modules/unictype/property-left-of-pair-tests: Likewise.
24377         * modules/unictype/property-line-separator-tests: Likewise.
24378         * modules/unictype/property-logical-order-exception-tests: Likewise.
24379         * modules/unictype/property-lowercase-tests: Likewise.
24380         * modules/unictype/property-math-tests: Likewise.
24381         * modules/unictype/property-non-break-tests: Likewise.
24382         * modules/unictype/property-not-a-character-tests: Likewise.
24383         * modules/unictype/property-numeric-tests: Likewise.
24384         * modules/unictype/property-other-alphabetic-tests: Likewise.
24385         * modules/unictype/property-other-default-ignorable-code-point-tests:
24386         Likewise.
24387         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24388         * modules/unictype/property-other-id-continue-tests: Likewise.
24389         * modules/unictype/property-other-id-start-tests: Likewise.
24390         * modules/unictype/property-other-lowercase-tests: Likewise.
24391         * modules/unictype/property-other-math-tests: Likewise.
24392         * modules/unictype/property-other-uppercase-tests: Likewise.
24393         * modules/unictype/property-paired-punctuation-tests: Likewise.
24394         * modules/unictype/property-paragraph-separator-tests: Likewise.
24395         * modules/unictype/property-pattern-syntax-tests: Likewise.
24396         * modules/unictype/property-pattern-white-space-tests: Likewise.
24397         * modules/unictype/property-private-use-tests: Likewise.
24398         * modules/unictype/property-punctuation-tests: Likewise.
24399         * modules/unictype/property-quotation-mark-tests: Likewise.
24400         * modules/unictype/property-radical-tests: Likewise.
24401         * modules/unictype/property-sentence-terminal-tests: Likewise.
24402         * modules/unictype/property-soft-dotted-tests: Likewise.
24403         * modules/unictype/property-space-tests: Likewise.
24404         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24405         * modules/unictype/property-test-tests: Likewise.
24406         * modules/unictype/property-titlecase-tests: Likewise.
24407         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24408         * modules/unictype/property-unified-ideograph-tests: Likewise.
24409         * modules/unictype/property-uppercase-tests: Likewise.
24410         * modules/unictype/property-variation-selector-tests: Likewise.
24411         * modules/unictype/property-white-space-tests: Likewise.
24412         * modules/unictype/property-xid-continue-tests: Likewise.
24413         * modules/unictype/property-xid-start-tests: Likewise.
24414         * modules/unictype/property-zero-width-tests: Likewise.
24415         * modules/unictype/scripts-tests: Likewise.
24416         * modules/unictype/syntax-c-ident-tests: Likewise.
24417         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24418         * modules/unictype/syntax-java-ident-tests: Likewise.
24419         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24420         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24421         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24422         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24423         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24424         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24425         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24426         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24427         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24428         * modules/uniname/uniname-tests: Likewise.
24429         * modules/uninorm/canonical-decomposition-tests: Likewise.
24430         * modules/uninorm/compat-decomposition-tests: Likewise.
24431         * modules/uninorm/composition-tests: Likewise.
24432         * modules/uninorm/decomposing-form-tests: Likewise.
24433         * modules/uninorm/decomposition-tests: Likewise.
24434         * modules/uninorm/filter-tests: Likewise.
24435         * modules/uninorm/nfc-tests: Likewise.
24436         * modules/uninorm/nfd-tests: Likewise.
24437         * modules/uninorm/nfkc-tests: Likewise.
24438         * modules/uninorm/nfkd-tests: Likewise.
24439         * modules/uninorm/u8-normcmp-tests: Likewise.
24440         * modules/uninorm/u8-normcoll-tests: Likewise.
24441         * modules/uninorm/u16-normcmp-tests: Likewise.
24442         * modules/uninorm/u16-normcoll-tests: Likewise.
24443         * modules/uninorm/u32-normcmp-tests: Likewise.
24444         * modules/uninorm/u32-normcoll-tests: Likewise.
24445         * modules/unistdio/u8-asnprintf-tests: Likewise.
24446         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24447         * modules/unistdio/u8-vasprintf-tests: Likewise.
24448         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24449         * modules/unistdio/u8-vsprintf-tests: Likewise.
24450         * modules/unistdio/u16-asnprintf-tests: Likewise.
24451         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24452         * modules/unistdio/u16-vasprintf-tests: Likewise.
24453         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24454         * modules/unistdio/u16-vsprintf-tests: Likewise.
24455         * modules/unistdio/u32-asnprintf-tests: Likewise.
24456         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24457         * modules/unistdio/u32-vasprintf-tests: Likewise.
24458         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24459         * modules/unistdio/u32-vsprintf-tests: Likewise.
24460         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24461         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24462         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24463         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24464         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24465         * modules/unistr/u8-check-tests: Likewise.
24466         * modules/unistr/u8-chr-tests: Likewise.
24467         * modules/unistr/u8-cmp-tests: Likewise.
24468         * modules/unistr/u8-cmp2-tests: Likewise.
24469         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24470         * modules/unistr/u8-cpy-tests: Likewise.
24471         * modules/unistr/u8-mblen-tests: Likewise.
24472         * modules/unistr/u8-mbsnlen-tests: Likewise.
24473         * modules/unistr/u8-mbtouc-tests: Likewise.
24474         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24475         * modules/unistr/u8-mbtoucr-tests: Likewise.
24476         * modules/unistr/u8-move-tests: Likewise.
24477         * modules/unistr/u8-next-tests: Likewise.
24478         * modules/unistr/u8-prev-tests: Likewise.
24479         * modules/unistr/u8-set-tests: Likewise.
24480         * modules/unistr/u8-stpcpy-tests: Likewise.
24481         * modules/unistr/u8-stpncpy-tests: Likewise.
24482         * modules/unistr/u8-strcat-tests: Likewise.
24483         * modules/unistr/u8-strcmp-tests: Likewise.
24484         * modules/unistr/u8-strcoll-tests: Likewise.
24485         * modules/unistr/u8-strcpy-tests: Likewise.
24486         * modules/unistr/u8-strdup-tests: Likewise.
24487         * modules/unistr/u8-strlen-tests: Likewise.
24488         * modules/unistr/u8-strmblen-tests: Likewise.
24489         * modules/unistr/u8-strmbtouc-tests: Likewise.
24490         * modules/unistr/u8-strncat-tests: Likewise.
24491         * modules/unistr/u8-strncmp-tests: Likewise.
24492         * modules/unistr/u8-strncpy-tests: Likewise.
24493         * modules/unistr/u8-strnlen-tests: Likewise.
24494         * modules/unistr/u8-to-u16-tests: Likewise.
24495         * modules/unistr/u8-to-u32-tests: Likewise.
24496         * modules/unistr/u8-uctomb-tests: Likewise.
24497         * modules/unistr/u16-check-tests: Likewise.
24498         * modules/unistr/u16-chr-tests: Likewise.
24499         * modules/unistr/u16-cmp-tests: Likewise.
24500         * modules/unistr/u16-cmp2-tests: Likewise.
24501         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24502         * modules/unistr/u16-cpy-tests: Likewise.
24503         * modules/unistr/u16-mblen-tests: Likewise.
24504         * modules/unistr/u16-mbsnlen-tests: Likewise.
24505         * modules/unistr/u16-mbtouc-tests: Likewise.
24506         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24507         * modules/unistr/u16-mbtoucr-tests: Likewise.
24508         * modules/unistr/u16-move-tests: Likewise.
24509         * modules/unistr/u16-next-tests: Likewise.
24510         * modules/unistr/u16-prev-tests: Likewise.
24511         * modules/unistr/u16-set-tests: Likewise.
24512         * modules/unistr/u16-stpcpy-tests: Likewise.
24513         * modules/unistr/u16-stpncpy-tests: Likewise.
24514         * modules/unistr/u16-strcat-tests: Likewise.
24515         * modules/unistr/u16-strcmp-tests: Likewise.
24516         * modules/unistr/u16-strcoll-tests: Likewise.
24517         * modules/unistr/u16-strcpy-tests: Likewise.
24518         * modules/unistr/u16-strdup-tests: Likewise.
24519         * modules/unistr/u16-strlen-tests: Likewise.
24520         * modules/unistr/u16-strmblen-tests: Likewise.
24521         * modules/unistr/u16-strmbtouc-tests: Likewise.
24522         * modules/unistr/u16-strncat-tests: Likewise.
24523         * modules/unistr/u16-strncmp-tests: Likewise.
24524         * modules/unistr/u16-strncpy-tests: Likewise.
24525         * modules/unistr/u16-strnlen-tests: Likewise.
24526         * modules/unistr/u16-to-u32-tests: Likewise.
24527         * modules/unistr/u16-to-u8-tests: Likewise.
24528         * modules/unistr/u16-uctomb-tests: Likewise.
24529         * modules/unistr/u32-check-tests: Likewise.
24530         * modules/unistr/u32-chr-tests: Likewise.
24531         * modules/unistr/u32-cmp-tests: Likewise.
24532         * modules/unistr/u32-cmp2-tests: Likewise.
24533         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24534         * modules/unistr/u32-cpy-tests: Likewise.
24535         * modules/unistr/u32-mblen-tests: Likewise.
24536         * modules/unistr/u32-mbsnlen-tests: Likewise.
24537         * modules/unistr/u32-mbtouc-tests: Likewise.
24538         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24539         * modules/unistr/u32-mbtoucr-tests: Likewise.
24540         * modules/unistr/u32-move-tests: Likewise.
24541         * modules/unistr/u32-next-tests: Likewise.
24542         * modules/unistr/u32-prev-tests: Likewise.
24543         * modules/unistr/u32-set-tests: Likewise.
24544         * modules/unistr/u32-stpcpy-tests: Likewise.
24545         * modules/unistr/u32-stpncpy-tests: Likewise.
24546         * modules/unistr/u32-strcat-tests: Likewise.
24547         * modules/unistr/u32-strcmp-tests: Likewise.
24548         * modules/unistr/u32-strcoll-tests: Likewise.
24549         * modules/unistr/u32-strcpy-tests: Likewise.
24550         * modules/unistr/u32-strdup-tests: Likewise.
24551         * modules/unistr/u32-strlen-tests: Likewise.
24552         * modules/unistr/u32-strmblen-tests: Likewise.
24553         * modules/unistr/u32-strmbtouc-tests: Likewise.
24554         * modules/unistr/u32-strncat-tests: Likewise.
24555         * modules/unistr/u32-strncmp-tests: Likewise.
24556         * modules/unistr/u32-strncpy-tests: Likewise.
24557         * modules/unistr/u32-strnlen-tests: Likewise.
24558         * modules/unistr/u32-to-u16-tests: Likewise.
24559         * modules/unistr/u32-to-u8-tests: Likewise.
24560         * modules/unistr/u32-uctomb-tests: Likewise.
24561         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24562         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24563         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24564         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24565         * modules/uniwidth/u8-strwidth-tests: Likewise.
24566         * modules/uniwidth/u8-width-tests: Likewise.
24567         * modules/uniwidth/u16-strwidth-tests: Likewise.
24568         * modules/uniwidth/u16-width-tests: Likewise.
24569         * modules/uniwidth/u32-strwidth-tests: Likewise.
24570         * modules/uniwidth/u32-width-tests: Likewise.
24571         * modules/uniwidth/width-tests: Likewise.
24572
24573 2010-05-18  Richard Jones  <rjones@redhat.com>
24574
24575         doc: users.txt: list hivex
24576         * users.txt: Add hivex.
24577
24578 2010-05-18  Richard Jones  <rjones@redhat.com>
24579
24580         doc: users.txt: list febootstrap
24581         * users.txt: Add febootstrap.
24582
24583 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24584
24585         bootstrap: fix an error when gnulib is not used as a git submodule
24586         * build-aux/bootstrap (gnulib_path): If its length is zero then
24587         assign "gnulib" to it.
24588         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24589
24590 2010-05-16  Bruno Haible  <bruno@clisp.org>
24591
24592         Avoid autoconf warnings about AM_ICONV.
24593         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24594         2.64.
24595
24596 2010-05-16  Bruno Haible  <bruno@clisp.org>
24597
24598         absolute-header: Make the macro usable in more situations.
24599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24600         from gl_ABSOLUTE_HEADER.
24601         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24602
24603 2010-05-16  James Youngman  <jay@gnu.org>
24604
24605         doc: update users.txt
24606         * users.txt: Add CSSC.
24607
24608 2010-05-16  Jim Meyering  <meyering@redhat.com>
24609
24610         init.sh: fix an error in the previous change; add more comments
24611         * tests/init.sh: Compare exit code in loop against 9, not 2.
24612         Patch by Bruno Haible.
24613         Make the two tests more similar by adding an empty "then" clause.
24614         Add comments.
24615
24616         init.sh: avoid unnecessary shell re-exec
24617         * tests/init.sh: Improve the re-exec-required check to first test the
24618         current shell.  If it passes the test, do not search for a shell that
24619         does pass, and do not re-exec.  This test is particularly contorted to
24620         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24621         of $(...) evokes a syntax error and causes immediate shell exit with
24622         status 2.  Bruno Haible reported that the re-exec made it impossible
24623         to single-step through any init.sh-using script.
24624
24625 2010-05-16  Bruno Haible  <bruno@clisp.org>
24626
24627         Fix collision between gnulib's and libintl's printf replacements.
24628         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24629         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24630         (printf): When using GNU C, map the __printf__ function to rpl_printf
24631         via __asm__. When not using GNU C, define rpl_printf instead of
24632         __printf__.
24633         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24634         commit.
24635         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24636         commit.
24637         * m4/asm-underscore.m4: New file.
24638         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24639         * modules/stdio (Files): Add m4/asm-underscore.m4.
24640         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24641         Reported by Ben Pfaff.
24642
24643 2010-05-16  Bruno Haible  <bruno@clisp.org>
24644
24645         verify: Avoid skipping the test on openSUSE 11.0.
24646         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24647
24648 2010-05-13  Bruno Haible  <bruno@clisp.org>
24649
24650         Avoid useless warnings from G++.
24651         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24652         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24653         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24654
24655 2010-05-11  Jim Meyering  <meyering@redhat.com>
24656
24657         maint.mk: tweak preceding change
24658         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24659         regexps tighter by anchoring at EOL, and make the new group "shy"
24660         for slightly decreased overhead.
24661
24662 2010-05-11  Eric Blake  <eblake@redhat.com>
24663
24664         maint.mk: gnulib doesn't guarantee NSIG
24665         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24666
24667 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24668
24669         test-pwrite.c: Remove unused variable declaration.
24670         * tests/test-pwrite.c (main): Remove read_buf declaration.
24671
24672         Remove useless test-pwrite.sh file.
24673         * tests/test-pwrite.sh: Delete file.
24674         * modules/pwrite-tests: Remove references.
24675         Reported by Bruno Haible.
24676
24677 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24678
24679         init.sh: fix a typo
24680         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24681
24682 2010-05-10  Jim Meyering  <meyering@redhat.com>
24683
24684         maint.mk: avoid using a temporary file in the always-defined-macros check
24685         * top/maint.mk (.re-defmac): Remove rule.
24686         (gl_trap_): Remove definition.
24687         (sc_prohibit_always-defined_macros): Rewrite not to create and
24688         depend on a temporary file.  Instead, depend on GNU grep's ability
24689         to read a list of regular expressions from stdin when given "-f -".
24690
24691 2010-05-09  Bruno Haible  <bruno@clisp.org>
24692
24693         Update to GNU gettext 0.18, part 1.
24694         * m4/gettext.m4: Update to GNU gettext 0.18.
24695         * m4/intl.m4: Likewise.
24696         * m4/po.m4: Likewise.
24697         * modules/gettext (Files): Add m4/fcntl-o.m4.
24698         (configure.ac): Require gettext infrastructure from version 0.18.
24699
24700 2010-05-09  Jim Meyering  <meyering@redhat.com>
24701
24702         init.sh: enable MALLOC_PERTURB_
24703         * tests/init.sh: Enable glibc's malloc-perturbing option.
24704
24705         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24706         With my recent change in init.sh from the two-line form:
24707             -#   : ${srcdir=.}
24708             -#   . "$srcdir/init.sh"; path_prepend_ .
24709             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24710         I noticed that using the one-line form would cause this test
24711         to fail with a false-positive, or to stop working altogether,
24712         depending on whether help-version changed or all the tests did.
24713         * top/maint.mk (_hv_regex): Remove this definition.
24714         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24715         (_hv_regex_strong): Use a stronger regex to check for conformance.
24716         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24717         Give a separate diagnostic for lack of conforming use.
24718
24719         maint.mk: prohibit definition of symbols defined by gnulib
24720         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24721         definition of symbols defined by gnulib.
24722
24723 2010-05-09  Bruno Haible  <bruno@clisp.org>
24724
24725         acl: Avoid test failure on Cygwin-hosted mingw.
24726         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24727
24728 2010-05-09  Bruno Haible  <bruno@clisp.org>
24729
24730         error: Use system's fcntl function.
24731         * lib/error.c (fcntl): Undefine.
24732
24733 2010-05-09  Jim Meyering  <meyering@redhat.com>
24734
24735         verify: adjust formatting to be more consistent
24736         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24737         argument-list '('s, and after one comma.
24738
24739 2010-05-09  Bruno Haible  <bruno@clisp.org>
24740
24741         error: More reliable output on mingw.
24742         * lib/error.c: Include <windows.h>.
24743         (is_open): New function.
24744         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24745         defined.
24746
24747 2010-05-09  Bruno Haible  <bruno@clisp.org>
24748
24749         vasnprintf: Fix syntax errors in libintl build on mingw.
24750         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24751         pad_ourselves and prec_ourselves after use.
24752
24753 2010-05-08  Bruno Haible  <bruno@clisp.org>
24754
24755         * lib/config.charset: Update comments for Cygwin 1.7.
24756         * lib/localcharset.c: Likewise.
24757
24758 2010-05-07  Jim Meyering  <meyering@redhat.com>
24759
24760         init.sh: improve comments
24761         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24762         . "${srcdir=.}/init.sh"; path_prepend_ .
24763         Add a note about path_prepend_ and the alternative of using
24764         TESTS_ENVIRONMENT.
24765
24766 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24767
24768         exclude: Unescape hashed patterns in wildcard mode.
24769         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24770         to the hash list.
24771         * tests/test-exclude8.sh: New test case.
24772         * modules/exclude-tests: Add new test.
24773
24774 2010-05-05  Eric Blake  <eblake@redhat.com>
24775
24776         verify: automate tests
24777         * modules/verify-tests: New module.
24778         * tests/test-verify.sh: New file.
24779         * tests/test-verify.c: Guard each negative test with a unique id.
24780         Also avoid warning about unused left hand of comma expressions.
24781
24782 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24783
24784         Further improvements to verify.h, suggested by Eric Blake.
24785         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24786         the GL_* versions, to avoid collision with OpenGL.
24787         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24788         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24789         than testing merely whether it's defined.
24790
24791         Modify verify.h to pacify gcc -Wredundant_decls.
24792         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24793         These use the prefix "GL_" since they're likely to be useful elsewhere.
24794         We may need to break them out into a different .h file.
24795         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24796         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24797         of verify_function__.
24798
24799 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24800
24801         Tests for module pwrite.
24802         * modules/pwrite-tests: New file.
24803         * tests/test-pwrite.sh: New file.
24804         * tests/test-pwrite.c: New file.
24805
24806         New module pwrite.
24807         * lib/unistd.in.h (pwrite): New declaration.
24808         * lib/pwrite.c: New file, from glibc with modifications.
24809         * m4/pwrite.m4: New file.
24810         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24811         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24812         REPLACE_PWRITE.
24813         * modules/pwrite: New file.
24814         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24815         REPLACE_PWRITE.
24816         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24817         * doc/posix-functions/pwrite.texi: Mention the new module.
24818
24819 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24820
24821         pread: Update documentation.
24822         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24823
24824 2010-05-04  Eric Blake  <eblake@redhat.com>
24825
24826         docs: update cygwin progress
24827         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24828         this bug.
24829         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24830         Added in cygwin 1.7.2.
24831         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24832         Likewise.
24833         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24834         Likewise.
24835         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24836         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24837         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24838         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24839         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24840         Mention nproc module.
24841         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24842         bug in cygwin 1.7.5 addition.
24843         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24844         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24845         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24846         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24847         1.7.5.
24848         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24849         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24850         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24851         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24852         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24853         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24854         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24855         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24856         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24857         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24858         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24859         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24860         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24861         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24862         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24863         Likewise.
24864         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24865         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24866         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24867         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24868         Likewise.
24869         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24870         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24871         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24872         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24873         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24874         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24875         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24876         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24877         Likewise.
24878         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24879         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24880         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24881         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24882         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24883         Likewise.
24884         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24885         Likewise.
24886         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24887         Likewise.
24888         * doc/glibc-functions/xdrrec_endofrecord.texi
24889         (xdrrec_endofrecord): Likewise.
24890         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24891         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24892         Likewise.
24893         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24894         Likewise.
24895
24896 2010-05-04  Jim Meyering  <meyering@redhat.com>
24897
24898         gendocs.sh: make its "-s FILE" option more useful
24899         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24900         $PACKAGE to reflect the probably-different basename of "FILE".
24901
24902 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24903
24904         bootstrap: don't ignore download_po_files failure
24905         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24906         failure.
24907
24908 2010-05-03  Jim Meyering  <meyering@redhat.com>
24909
24910         maint.mk: allow to pass options to gendocs.sh
24911         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24912         (gendocs_options_): New overridable variable.
24913
24914         gnu-web-doc-update: don't ignore configure or build failure
24915         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24916
24917         announce-gen: backslash-escape '@'s in --help output
24918         * build-aux/announce-gen: Fix syntax errors.
24919
24920         maint.mk, announce-gen: allow project-specific announcement mail headers
24921         * top/maint.mk (translation_project_): Define default.
24922         (announcement_Cc_, announcement_mail_headers_): Likewise.
24923         (announcement): Invoke announce-gen with new --mail-headers option.
24924         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24925
24926         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24927         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24928         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24929         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24930         line in the "err2" output file when running "make check" in verbose
24931         mode (i.e., with set -x enabled).
24932
24933 2010-05-03  Bruno Haible  <bruno@clisp.org>
24934
24935         wctob: Fix for weird platforms.
24936         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24937         argument value.
24938
24939 2010-05-03  Jim Meyering  <meyering@redhat.com>
24940
24941         maint.mk: prohibit unwarranted use of <strings.h>
24942         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24943         strings.h in a file that does not also use strcasecmp, strncasecmp,
24944         ffs or ffsll.
24945
24946         maint.mk: remove obsolete comments
24947         * top/maint.mk: Remove stale, commented-out rules.
24948
24949 2010-05-02  Bruno Haible  <bruno@clisp.org>
24950
24951         wcwidth: Declare also when it's aliased.
24952         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24953         macro.
24954
24955 2010-05-02  Bruno Haible  <bruno@clisp.org>
24956
24957         Fix regression from 2010-04-25.
24958         * gnulib-tool (func_modules_transitive_closure): Check the status of
24959         all modules, not only of the tests that are of the form foo-tests where
24960         foo is a module.
24961
24962 2010-05-02  Bruno Haible  <bruno@clisp.org>
24963
24964         wctob: Work around nasty Cygwin 1.7.2 bug.
24965         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24966         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24967
24968 2010-05-01  Bruno Haible  <bruno@clisp.org>
24969
24970         fpurge: Sharper test.
24971         * tests/test-fpurge.c (main): Add one more ftell check.
24972         * modules/fpurge-tests (Depends-on): Add ftell.
24973         Suggested by Eric Blake.
24974
24975 2010-05-01  Bruno Haible  <bruno@clisp.org>
24976
24977         ftello: Another test.
24978         * tests/test-ftello3.c: New file.
24979         * modules/ftello-tests (Files): Add it.
24980         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24981         MOSTLYCLEANFILES.
24982
24983         ftell: Another test.
24984         * tests/test-ftell3.c: New file.
24985         * modules/ftell-tests (Files): Add it.
24986         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24987         MOSTLYCLEANFILES.
24988
24989 2010-05-01  Bruno Haible  <bruno@clisp.org>
24990
24991         ftell, ftello: Work around Solaris bug.
24992         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24993         * lib/ftello.c: Include stdio-impl.h.
24994         (ftello): On Solaris, when _IOWRT is set, compute the result without
24995         looking at _IOREAD.
24996         * modules/ftello (Files): Add lib/stdio-impl.h.
24997         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24998         * doc/posix-functions/ftello.texi: Likewise.
24999         Reported by Eric Blake.
25000
25001 2010-05-01  Bruno Haible  <bruno@clisp.org>
25002
25003         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25004         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25005         the _IOWRT flag is also set.
25006
25007 2010-05-01  Bruno Haible  <bruno@clisp.org>
25008
25009         Fix doc about a HP-UX stdio bug.
25010         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25011         * doc/posix-functions/ftello.texi: Likewise.
25012
25013 2010-05-01  Bruno Haible  <bruno@clisp.org>
25014
25015         lseek test: Fix failure on Solaris.
25016         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25017         output.
25018
25019 2010-04-30  Jim Meyering  <meyering@redhat.com>
25020
25021         bootstrap: don't ignore failure to generate po*/Makevars
25022         * build-aux/bootstrap (with_gettext): Don't ignore failure
25023         to create po/Makevars or runtime-po/Makevars.
25024
25025 2010-04-29  Eric Blake  <eblake@redhat.com>
25026
25027         headers: relax license to LGPLv2+
25028         * modules/fcntl-h (License): Relax license.
25029         * modules/getopt-posix (License): Likewise.
25030         * modules/locale (License): Likewise.
25031         * modules/math (License): Likewise.
25032         * modules/pty (License): Likewise.
25033         * modules/sched (License): Likewise.
25034         * modules/search (License): Likewise.
25035         * modules/spawn (License): Likewise.
25036         * modules/stdarg (License): Likewise.
25037         * modules/sysexits (License): Likewise.
25038
25039 2010-04-29  Jim Meyering  <meyering@redhat.com>
25040
25041         inttypes: relax license to LGPLv2+
25042         * modules/inttypes (License): Relax license.
25043
25044 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25045
25046         * top/maint.mk (indent): Run twice to produce idempotent results.
25047
25048 2010-04-28  Bruno Haible  <bruno@clisp.org>
25049
25050         getdate: Generate getdate.c in the source directory.
25051         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25052         MOSTLYCLEANFILES.
25053         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25054
25055 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25056
25057         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25058         is not declared as a const *; avoid warnings in that case.
25059
25060 2010-04-28  Eric Blake  <eblake@redhat.com>
25061
25062         canonicalize-lgpl: avoid compiler warning
25063         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25064         declaration' / 'extraneous semicolon' warning with some compilers.
25065         Reported by Andreas Gruenbacher.
25066
25067 2010-04-28  Jim Meyering  <meyering@redhat.com>
25068
25069         init.sh: ensure a more reliable exit status when exiting via trap
25070         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25071         Inspired by patches from Dmitry V. Levin.
25072         Also trap on signal 3 (SIGQUIT).
25073
25074 2010-04-27  Bruno Haible  <bruno@clisp.org>
25075
25076         Update doc about utimes().
25077         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25078         'utimens' module.
25079         Reported by Andreas Gruenbacher <agruen@suse.de>.
25080
25081 2010-04-27  Eric Blake  <eblake@redhat.com>
25082
25083         full-read, full-write: relax license
25084         * modules/full-read (License): Drop to LGPLv2+.
25085         * modules/full-write (License): Likewise.
25086         * modules/safe-read (License): Likewise.
25087         * modules/safe-write (License): Likewise.
25088
25089         pthread: mention library for linking
25090         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25091
25092 2010-04-27  Jim Meyering  <meyering@redhat.com>
25093
25094         maint.mk: fix a bug introduced in last change
25095         * top/maint.mk (gl_assured_headers_): Now that all names are on
25096         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25097         is not anchored to end of word, it should be adequate.
25098
25099         maint.mk: avoid side-effect in latest syntax-check
25100         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25101         to run commands via $(shell...), and hence to incur cost only when
25102         the new rule is actually run.
25103
25104         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25105         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25106         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25107         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25108         (gl_assured_headers_, az_, AZ_): Define.
25109         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25110
25111 2010-04-26  Jim Meyering  <jim@meyering.net>
25112             Bruno Haible  <bruno@clisp.org>
25113
25114         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25115         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25116         Prompted by an exchange with Gilles Espinasse.
25117
25118 2010-04-26  Jim Meyering  <meyering@redhat.com>
25119
25120         git-version-gen: aesthetic tweak
25121         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25122         so that the command remains on a single line.
25123
25124 2010-04-26  Eric Blake  <eblake@redhat.com>
25125
25126         git-version-gen: allow use on EBCDIC hosts
25127         * build-aux/git-version-gen (dirty): Use literal rather than tying
25128         ourselves to ascii.
25129         Reported by Steve Goetze.
25130
25131 2010-04-25  Bruno Haible  <bruno@clisp.org>
25132
25133         netdb: Add support for GNULIB_POSIXCHECK.
25134         * lib/netdb.in.h: Include warn-on-use.h.
25135         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25136         functions are used when GNULIB_POSIXCHECK is defined and the
25137         getaddrinfo module is not in use.
25138         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25139         freeaddrinfo, gai_strerror, getnameinfo are declared.
25140         * modules/netdb (Depends-on): Add warn-on-use.
25141         (Makefile.am): Include warn-on-use.h in netdb.h.
25142
25143 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25144
25145         build: avoid "make check" failure without .git/ directory
25146         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25147         there is no .git/ directory.
25148
25149 2010-04-25  Bruno Haible  <bruno@clisp.org>
25150
25151         ptsname: Fix misuse of ttyname_r.
25152         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25153         of errno.
25154
25155 2010-04-25  Bruno Haible  <bruno@clisp.org>
25156
25157         ttyname_r: Make it work on Solaris 10.
25158         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25159         if the system function has the POSIX declaration. Test whether the
25160         function fails if the buffer is less than 128 bytes large.
25161         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25162         system's ttyname_r function. Provide a reasonably large buffer.
25163         * modules/ttyname_r (Depends-on): Add extensions.
25164         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25165
25166 2010-04-25  Bruno Haible  <bruno@clisp.org>
25167
25168         Use the 'extensions' module for some more functions on Solaris.
25169         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25170         module.
25171         * doc/posix-functions/ctime_r.texi: Likewise.
25172         * doc/posix-functions/getgrgid_r.texi: Likewise.
25173         * doc/posix-functions/getgrnam_r.texi: Likewise.
25174         * doc/posix-functions/getpwnam_r.texi: Likewise.
25175         * doc/posix-functions/getpwuid_r.texi: Likewise.
25176         * doc/posix-functions/readdir_r.texi: Likewise.
25177         * doc/posix-functions/sigwait.texi: Likewise.
25178         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25179         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25180
25181 2010-04-25  Bruno Haible  <bruno@clisp.org>
25182
25183         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25184         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25185         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25186         * lib/ttyname_r.c: Include <limits.h>.
25187         (ttyname_r): Define using the system's ttyname_r function, if it exists
25188         and not on Solaris.
25189         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25190         set.
25191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25192         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25193         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25194         Reported by Simon Josefsson.
25195
25196 2010-04-25  Bruno Haible  <bruno@clisp.org>
25197
25198         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25199         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25200         * doc/posix-functions/ctime_r.texi: Likewise.
25201         * doc/posix-functions/getgrgid_r.texi: Likewise.
25202         * doc/posix-functions/getgrnam_r.texi: Likewise.
25203         * doc/posix-functions/getlogin_r.texi: Likewise.
25204         * doc/posix-functions/getpwnam_r.texi: Likewise.
25205         * doc/posix-functions/getpwuid_r.texi: Likewise.
25206         * doc/posix-functions/readdir_r.texi: Likewise.
25207         * doc/posix-functions/sigwait.texi: Likewise.
25208         * doc/posix-functions/ttyname_r.texi: Likewise.
25209         Reported by Simon Josefsson.
25210
25211 2010-04-25  Bruno Haible  <bruno@clisp.org>
25212
25213         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25214         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25215         also to --create-testdir.
25216         (func_acceptable): Don't consider the status of *-tests modules here.
25217         (func_modules_transitive_closure): Consider it here, before including a
25218         test module.
25219         (func_import, func_create_testdir): Set inc_all_direct_tests,
25220         inc_all_indirect_tests.
25221         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25222         --create-testdir and --create-megatestdir.
25223
25224 2010-04-25  Bruno Haible  <bruno@clisp.org>
25225
25226         gnulib-tool: Add --without-*-tests options.
25227         * gnulib-tool (func_usage): Document the --without-*-tests options.
25228         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25229         excl_unportable_tests): New variables.
25230         Fail if they are specified with --import or --update.
25231         (func_acceptable): Respect the excl_*_tests variables.
25232         (func_import): Set the excl_*_tests variables to empty.
25233
25234 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25235             Bruno Haible  <bruno@clisp.org>
25236
25237         Work around a MacOS X 10.4 bug with openpty.
25238         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25239         * tests/test-openpty.c (main): Close the master side explicitly.
25240
25241 2010-04-25  Bruno Haible  <bruno@clisp.org>
25242
25243         strnlen: Fix a C++ test error on MacOS X and Solaris.
25244         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25245         the function is not declared.
25246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25247         Simon Josefsson.
25248
25249 2010-04-24  Bruno Haible  <bruno@clisp.org>
25250
25251         Avoid a gcc warning.
25252         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25253         of correct type for %08lx directive.
25254         Reported by Eric Blake.
25255
25256 2010-04-24  Bruno Haible  <bruno@clisp.org>
25257
25258         vasnprintf: Correct errno value in case of out-of-memory.
25259         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25260         or sprintf. Use the errno value from SNPRINTF or sprintf.
25261         Reported by Ian Beckwith <ianb@erislabs.net>.
25262
25263 2010-04-24  Bruno Haible  <bruno@clisp.org>
25264
25265         ansi-c++-opt: Find correct compiler when cross-compiling.
25266         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25267         AC_CHECK_PROGS.
25268         Reported by Simon Josefsson.
25269
25270 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25271
25272         vc-list-files: Add support for subversion
25273         * build-aux/vc-list-files: Use "svn list" to generate the list of
25274         files controlled by subversion.
25275
25276 2010-04-23  Jim Meyering  <meyering@redhat.com>
25277
25278         vc-list-files tests: convert to use init.sh
25279         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25280         path_prepend_.
25281         Use Exit, not exit.
25282         Use skip_ rather than open coding it.
25283         Remove trap set-up and compare definitions.
25284         * tests/test-vc-list-files-git.sh: Likewise.
25285         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25286
25287 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25288
25289         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25290         backup files.
25291
25292 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25293
25294         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25295
25296 2010-04-20  Eric Blake  <eblake@redhat.com>
25297
25298         tests: be robust to ignored SIGPIPE
25299         * tests/test-select-in.sh: Consume all output.
25300         * tests/test-lseek.sh: Check correct exit status, while avoiding
25301         EPIPE.
25302
25303 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25304             Bruno Haible  <bruno@clisp.org>
25305
25306         visibility: Don't use -fvisibility if it leads to a warning.
25307         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25308         yes, don't pretend that visibility works if it leads to a warning.
25309         Reported by Mike Gran <spk121@yahoo.com>.
25310
25311 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25312
25313         * build-aux/bootstrap: Use "git -h" for testing for supported options
25314         instead of "git --help".  The short-form option only shows a summary,
25315         and doesn't layout the full man page.  Grep for the full option name
25316         in the summary, too.
25317
25318 2010-04-19  Bruno Haible  <bruno@clisp.org>
25319
25320         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25322         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25323         mention of RELOCATABLE_STRIP.
25324         Reported by Sylvain Beucler <beuc@beuc.net>.
25325
25326 2010-04-19  Bruno Haible  <bruno@clisp.org>
25327
25328         * lib/diffseq.h: Fix typo in comment.
25329         Reported by Eric Blake.
25330
25331 2010-04-19  Bruno Haible  <bruno@clisp.org>
25332
25333         ioctl: Move autoconf macro to a .m4 file.
25334         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25335         * modules/ioctl (Files): Add it.
25336         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25337         Reported by Ian Beckwith <ianb@erislabs.net>.
25338
25339 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25340             Bruno Haible  <bruno@clisp.org>
25341
25342         diffseq: Accommodate use-case with abstract arrays.
25343         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25344         is not defined.
25345         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25346         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25347
25348 2010-04-18  Bruno Haible  <bruno@clisp.org>
25349
25350         * doc/posix-headers/stdbool.texi: More precise wording.
25351
25352 2010-04-17  Jim Meyering  <meyering@redhat.com>
25353
25354         maint.mk: use gnu-style indentation in an embedded perl script
25355         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25356         Rename variable: s/two/last_two_bytes/
25357
25358 2010-04-16  Eric Blake  <eblake@redhat.com>
25359
25360         test-stdbool: skip test that fails with Solaris CC
25361         * tests/test-stdbool.c (f): Skip test that causes compilation
25362         error under buggy C++ compiler.
25363         * lib/stdbool.in.h: Document the limitation.
25364         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25365
25366         setenv: allow compilation with C++
25367         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25368         register keyword.
25369
25370         stdint: allow test to pass with C++
25371         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25372
25373         getopt: allow compilation with C++
25374         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25375         struct.
25376         * lib/getopt.c (_getopt_internal_r): Use correct type.
25377         Reported by Dagobert Michelson, via Joel E. Denny.
25378
25379 2010-04-16  Bruno Haible  <bruno@clisp.org>
25380
25381         Override netdb.h always.
25382         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25383         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25384         Reported by Ludovic Courtès <ludo@gnu.org>.
25385
25386 2010-04-15  Bruno Haible  <bruno@clisp.org>
25387
25388         openpty: Fix mistake from 2010-03-21.
25389         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25390         Reported by Simon Josefsson.
25391
25392 2010-04-15  Eric Blake  <eblake@redhat.com>
25393
25394         test-forkpty: fix expected signature
25395         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25396         Reported by Simon Josefsson.
25397
25398 2010-04-15  Jim Meyering  <meyering@redhat.com>
25399
25400         maint.mk: texinfo_suffix_re_: correct the default regexp
25401         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25402
25403         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25404         make it configurable via texinfo_suffix_re_.
25405
25406 2010-04-14  Eric Blake  <eblake@redhat.com>
25407
25408         strtok_r: relax license to LGPLv2+
25409         * modules/strtok_r (License): Relax license.
25410         Reported by Matthias Bolte.
25411
25412 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25413
25414         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25415         version 1.4.4 by default instead of requiring the libgcrypt
25416         version used during build.  This makes it possible to use the
25417         application with older but still binary compatible libgcrypt
25418         versions.
25419
25420 2010-04-13  Eric Blake  <eblake@redhat.com>
25421
25422         getopt-gnu: match recent glibc fixes and posix ruling
25423         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25424         '+' handling, when requesting extensions.
25425         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25426         'W;' handling.
25427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25428         * doc/posix-functions/getopt.texi (getopt): Document this.
25429         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25430         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25431         Likewise.
25432
25433         getopt: merge bug fixes from glibc
25434         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25435         diagnostics.  Honor '+:' correctly.  Reject ';'.
25436
25437         getopt-posix: detect MacOS bug
25438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25439         optind when missing a required argument.
25440         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25441         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25442         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25443         Likewise.
25444
25445         getopt-posix: avoid spurious failure on Solaris
25446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25447         an indicator that setting optind=1 is sufficient for reset.
25448
25449         getopt-posix: avoid spurious failure on FreeBSD
25450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25451         in POSIX mode, since the m4 test uses it.
25452
25453         gnulib-tool: silence warning on BSD sh
25454         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25455
25456 2010-04-13  Jim Meyering  <meyering@redhat.com>
25457
25458         doc: users.txt: GNU patch now uses gnulib
25459         * users.txt: Add patch.
25460
25461 2010-04-12  Jim Meyering  <meyering@redhat.com>
25462
25463         maint.mk: generate more concise timing data for syntax-check rules
25464         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25465         " done" from each line that reports a syntax-check test duration.
25466
25467 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25468
25469         git-version-gen: use "git update-index..." rather than "git status"
25470         * build-aux/git-version-gen: Use git update-index --refresh, not
25471         "git status".  With some versions of git, "git status" would fail
25472         to update the index and result in an unwarranted "-dirty" suffix.
25473
25474 2010-04-11  Jim Meyering  <meyering@redhat.com>
25475
25476         openat: correct formatting (no semantic change)
25477         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25478         Suggested by Bruno Haible.
25479
25480 2010-04-11  Bruno Haible  <bruno@clisp.org>
25481
25482         Stricter declaration checking in testdirs.
25483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25484         If for_tests is true, augment AM_CPPFLAGS to define
25485         GNULIB_STRICT_CHECKING.
25486         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25487         GNULIB_STRICT_CHECKING is defined, verify that the function is
25488         declared.
25489
25490 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25491             Bruno Haible  <bruno@clisp.org>
25492
25493         libunistring: Improve configure output.
25494         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25495         Don't say "consider installing GNU libunistring" when checking again
25496         with libiconv.
25497
25498 2010-04-11  Bruno Haible  <bruno@clisp.org>
25499
25500         libunistring: Correct value of $LTLIBUNISTRING.
25501         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25502         correct the value of $LTLIBUNISTRING.
25503
25504 2010-04-11  Bruno Haible  <bruno@clisp.org>
25505
25506         havelib: Add static libraries to LIBS in the right order.
25507         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25508         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25509
25510 2010-04-11  Bruno Haible  <bruno@clisp.org>
25511
25512         libunistring: Detect libunistring also when it depends on libiconv.
25513         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25514         the second AC_LIB_HAVE_LINKFLAGS invocation.
25515
25516 2010-04-11  James Youngman  <jay@gnu.org>
25517
25518         close-stream: declare local scalars to be "const"
25519         * lib/close-stream.c (close_stream): Make boolean variables const
25520         to document the fact that we set but do not change them.
25521
25522 2010-04-11  Bruno Haible  <bruno@clisp.org>
25523
25524         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25525
25526 2010-04-11  Jim Meyering  <meyering@redhat.com>
25527
25528         maint.mk: don't include dist-check.mk
25529         * top/maint.mk: Remove bogus include directive.
25530
25531         maint.mk: improve empty-line-at-EOF check
25532         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25533         solution, rather than tail+Perl-based one.  The latter would read
25534         a few kilobytes from the end of each file, and did not handle empty
25535         files properly.
25536
25537         maint.mk: print the elapsed time for each syntax-check rule
25538         * top/maint.mk (sc_m_rules_): Save start time in a file.
25539         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25540         (local-check): Interpose the .z rules
25541
25542 2010-04-11  Jim Meyering  <meyering@redhat.com>
25543
25544         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25545         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25546         empty file with one that ends in an empty line.
25547
25548 2010-04-10  Bruno Haible  <bruno@clisp.org>
25549
25550         mkdir: Make it work on mingw64.
25551         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25552         * lib/mkdir.c: Update comment.
25553         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25554
25555 2010-04-10  Bruno Haible  <bruno@clisp.org>
25556
25557         Don't override improved macro from newer autoconf.
25558         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25559         autoconf >= 2.62.
25560         Reported by Joel E. Denny <jdenny@clemson.edu>.
25561
25562 2010-04-10  Jim Meyering  <meyering@redhat.com>
25563
25564         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25565         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25566
25567         maint.mk: correct a diagnostic
25568         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25569         in diagnostic; now use $prohibit.
25570
25571 2010-04-10  Bruno Haible  <address@hidden>
25572
25573         fchownat: Fix a C++ test error on Solaris 8.
25574         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25575         the function does not exist.
25576
25577 2010-04-10  Bruno Haible  <bruno@clisp.org>
25578
25579         vasnprintf: Add more tests.
25580         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25581         (test_function): Test converting an invalid wide string.
25582
25583         vasnprintf: Correct handling of unconvertible wide string arguments.
25584         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25585         VASNPRINTF.
25586         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25587         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25588         smaller than the expected maximum need for the directive. Set errno to
25589         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25590         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25592         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25593         * modules/vasnprintf (Files): Add m4/printf.m4.
25594         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25595
25596 2010-04-10  Bruno Haible  <bruno@clisp.org>
25597
25598         vasnprintf: Fix crash in %ls directive.
25599         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25600         string is passed as argument to %ls, with no precision and no width.
25601         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25602
25603 2010-04-10  Bruno Haible  <bruno@clisp.org>
25604
25605         vasnprintf: Fix multiple test failures on mingw.
25606         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25607         _snprintf, or snwprintf, not _snwprintf.
25608
25609 2010-04-10  Bruno Haible  <bruno@clisp.org>
25610
25611         write: Fix a C++ test error on mingw.
25612         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25613
25614 2010-04-10  Bruno Haible  <bruno@clisp.org>
25615
25616         vasnprintf test: Reduce code duplication.
25617         * tests/test-vasnprintf.c (test_function): New function, extracted from
25618         test_vasnprintf.
25619         (test_vasnprintf, test_asnprintf): Invoke it.
25620
25621 2010-04-10  Bruno Haible  <bruno@clisp.org>
25622
25623         strnlen: Fix warning in C++ mode on MacOS X.
25624         * lib/string.in.h (strnlen): Use the modern idiom.
25625         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25626         defining strnlen as a macro already in <config.h>.
25627         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25628         REPLACE_STRNLEN.
25629         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25630         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25631
25632 2010-04-08  James Youngman  <jay@gnu.org>
25633
25634         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25635         the example.
25636
25637 2010-04-09  Jim Meyering  <meyering@redhat.com>
25638
25639         maint.mk: print better diagnostic when there is no $(_hv_file)
25640         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25641         announce that when $(_hv_file) (aka help-version) does not exist.
25642
25643         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25644         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25645         not try to interpret its random input bytes.  Jarno Rajahalme reported
25646         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25647         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25648         (mktempd_): Likewise, just in case.
25649
25650         ftruncate: add two years to projected module removal date: 2012
25651         * m4/ftruncate.m4: Adjust comments.
25652
25653         ftruncate: mark module as obsolete; even MinGW provides it, now
25654         * modules/ftruncate (Status): Obsolete.
25655         (Notice): Say that.
25656         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25657         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25658
25659 2010-04-08  Bruno Haible  <bruno@clisp.org>
25660
25661         Fix side effects from tests-related modules.
25662         * modules/dprintf-posix (Comment): New section.
25663         * modules/fprintf-posix (Comment): Likewise.
25664         * modules/obstack-printf-posix (Comment): Likewise.
25665         * modules/printf-posix (Comment): Likewise.
25666         * modules/snprintf-posix (Comment): Likewise.
25667         * modules/sprintf-posix (Comment): Likewise.
25668         * modules/vasnprintf-posix (Comment): Likewise.
25669         * modules/vasprintf-posix (Comment): Likewise.
25670         * modules/vdprintf-posix (Comment): Likewise.
25671         * modules/vfprintf-posix (Comment): Likewise.
25672         * modules/vprintf-posix (Comment): Likewise.
25673         * modules/vsnprintf-posix (Comment): Likewise.
25674         * modules/vsprintf-posix (Comment): Likewise.
25675         * modules/xprintf-posix (Comment): Likewise.
25676         * modules/xvasprintf-posix (Comment): Likewise.
25677         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25678         * modules/floorf-tests (Depends-on): Likewise.
25679         * modules/round-tests (Depends-on): Likewise.
25680         * modules/roundf-tests (Depends-on): Likewise.
25681         * modules/trunc-tests (Depends-on): Likewise.
25682         * modules/truncf-tests (Depends-on): Likewise.
25683         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25684         'fprintf-posix' module is not present.
25685         * tests/test-floorf2.c (check): Likewise.
25686         * tests/test-trunc2.c (check): Likewise.
25687         * tests/test-truncf2.c (check): Likewise.
25688         * tests/test-round2.c (equal): Likewise.
25689         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25690
25691 2010-04-07  Karl Berry  <karl@gnu.org>
25692
25693         * config/srclist.txt,
25694         * config/srclistvars.sh,
25695         * config/srclist-update: doc fixes.
25696
25697 2010-04-07  Jim Meyering  <meyering@redhat.com>
25698
25699         maint.mk: add a PATH crosschecking syntax-check rule
25700         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25701         Useful if you use a test like the one in help-version (coreutils,
25702         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25703         printed by prog --version.
25704
25705 2010-04-06  Bruno Haible  <bruno@clisp.org>
25706
25707         Fix link error on mingw.
25708         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25709         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25710
25711 2010-04-06  Bruno Haible  <bruno@clisp.org>
25712
25713         Assume rmdir exists.
25714         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25715
25716 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25717
25718         doc: update users.txt
25719         * users.txt: Add gcal.
25720
25721 2010-04-06  Jim Meyering  <meyering@redhat.com>
25722
25723         init.sh: simply unset TMPDIR rather than risking env -i
25724         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25725         although it probably works fine on all Unix-based systems, some
25726         systems (Cygwin?) cannot tolerate a totally cleared environment.
25727         Suggestion from Eric Blake.
25728
25729 2010-04-06  Jim Meyering  <meyering@redhat.com>
25730
25731         init.sh: portability fix: use env's POSIX-specified -i option not -u
25732         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25733         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25734
25735 2010-04-05  Bruno Haible  <bruno@clisp.org>
25736
25737         btowc: Work around Cygwin 1.7.2 bug.
25738         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25739         does not map NUL to 0.
25740         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25741
25742 2010-04-05  Bruno Haible  <bruno@clisp.org>
25743
25744         Make the multithread modules work on Cygwin 1.7.2.
25745         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25746         imported symbols can be declared weak, so that it returns "no" on
25747         Cygwin 1.7.2.
25748
25749 2010-04-05  Bruno Haible  <bruno@clisp.org>
25750
25751         Use the module 'strncat'.
25752         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25753
25754         Tests for module 'strncat'.
25755         * modules/strncat-tests: New file.
25756         * tests/test-strncat.c: New file.
25757
25758         New module 'strncat'.
25759         * lib/string.in.h (strncat): New declaration.
25760         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25761         * m4/strncat.m4: New file, based on m4/memchr.m4.
25762         * modules/strncat: New file.
25763         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25764         is declared.
25765         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25766         REPLACE_STRNCAT.
25767         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25768         REPLACE_STRNCAT.
25769         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25770         module.
25771         * tests/test-string-c++.cc: Check signature of strncat.
25772
25773 2010-04-05  Jim Meyering  <meyering@redhat.com>
25774
25775         xstrtoumax-tests: convert to use init.sh
25776         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25777         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25778         Use Exit, not exit.
25779         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25780
25781         xstrtoimax-tests: convert to use init.sh
25782         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25783         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25784         Use Exit, not exit.
25785         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25786
25787 2010-04-05  Bruno Haible  <bruno@clisp.org>
25788
25789         sys_socket: Avoid #define replacements in C++ mode.
25790         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25791         warning to the function if possible, rather than #defining the symbol
25792         to a dysfunctional alias.
25793
25794 2010-04-05  Bruno Haible  <bruno@clisp.org>
25795
25796         fseeko: Fix C++ test error on mingw.
25797         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25798         gl_FUNC_FSEEKO.
25799         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25800         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25801         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25802         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25803
25804 2010-04-05  Bruno Haible  <bruno@clisp.org>
25805
25806         duplocale: Improve test output.
25807         * tests/test-duplocale.c (main): Print reason for skipped test.
25808
25809 2010-04-05  Bruno Haible  <bruno@clisp.org>
25810
25811         Assume rmdir exists.
25812         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25813         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25814
25815 2010-04-05  Bruno Haible  <bruno@clisp.org>
25816
25817         Fix link error on Solaris 8 with cc.
25818         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25819
25820 2010-04-05  Bruno Haible  <bruno@clisp.org>
25821
25822         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25823         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25824
25825 2010-04-05  Bruno Haible  <bruno@clisp.org>
25826
25827         vasprintf: Update documentation.
25828         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25829
25830 2010-04-05  Bruno Haible  <bruno@clisp.org>
25831
25832         ptsname: Improve test.
25833         * tests/test-ptsname.c (main): Also try the various master names of BSD
25834         systems.
25835
25836 2010-04-05  Bruno Haible  <bruno@clisp.org>
25837
25838         memchr: Avoid a possible C++ test error.
25839         * lib/string.in.h (memchr): Provide declaration if function is missing.
25840         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25841         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25843         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25844
25845 2010-04-05  Bruno Haible  <bruno@clisp.org>
25846
25847         strtok_r: Improve idiom.
25848         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25849         AC_LIBOBJ is used.
25850
25851 2010-04-05  Bruno Haible  <bruno@clisp.org>
25852
25853         strdup: Improve idiom.
25854         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25855         AC_LIBOBJ is used.
25856         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25857         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25858         when AC_LIBOBJ is used.
25859
25860 2010-04-05  Bruno Haible  <bruno@clisp.org>
25861
25862         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25863         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25864         don't set REPLACE_MBSINIT to 1.
25865         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25866         don't set REPLACE_MBRTOWC to 1.
25867         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25868         exist, don't set REPLACE_MBSRTOWCS to 1.
25869         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25870         exist, don't set REPLACE_MBSNRTOWCS to 1.
25871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25872         don't set REPLACE_WCRTOMB to 1.
25873         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25874         exist, don't set REPLACE_WCSRTOMBS to 1.
25875         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25876         exist, don't set REPLACE_WCSNRTOMBS to 1.
25877
25878 2010-04-05  Bruno Haible  <bruno@clisp.org>
25879
25880         ldexpl: Improve idiom.
25881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25882         make sure to set HAVE_DECL_LDEXPL to 0.
25883
25884 2010-04-05  Jim Meyering  <meyering@redhat.com>
25885
25886         xstrtol-tests: convert to use init.sh
25887         * modules/xstrtol-tests (Files): Add tests/init.sh.
25888         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25889         Use Exit, not exit.
25890         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25891
25892         atexit-tests: convert to use init.sh
25893         * modules/atexit-tests (Files): Add tests/init.sh.
25894         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25895         Use Exit, not exit.
25896         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25897
25898         init.sh: fix typo
25899         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25900
25901         init.sh: make it easier for a test script to write to the tty, ...
25902         when using automake's parallel-tests mode.
25903         * tests/init.sh (stderr_fileno_): Define overridable variable.
25904         (warn_): New function, to use it.
25905         (fail_, skip_, framework_failure_): Use warn_.
25906
25907 2010-04-04  Bruno Haible  <bruno@clisp.org>
25908
25909         btowc: Avoid warning.
25910         * lib/btowc.c: Include <stdlib.h>.
25911         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25912
25913 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25914             Bruno Haible  <bruno@clisp.org>
25915
25916         wchar: Port to NetBSD 1.5.
25917         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25918         * lib/wctype.in.h (WEOF): Likewise.
25919
25920 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25921             Bruno Haible  <bruno@clisp.org>
25922
25923         Port extended stdio to NetBSD 1.5.
25924         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25925         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25926         older.
25927
25928 2010-04-04  Bruno Haible  <bruno@clisp.org>
25929
25930         string: Remove unused substitution.
25931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25932         HAVE_DECL_STRERROR.
25933         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25934
25935 2010-04-04  Bruno Haible  <bruno@clisp.org>
25936
25937         strtod: Avoid a possible C++ test error.
25938         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25939         set REPLACE_STRTOD.
25940
25941 2010-04-04  Bruno Haible  <bruno@clisp.org>
25942
25943         strerror: Update documentation.
25944         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25945
25946 2010-04-04  Bruno Haible  <bruno@clisp.org>
25947
25948         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25949         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25950         _GL_CXXALIAS_SYS_CAST.
25951
25952 2010-04-04  Bruno Haible  <bruno@clisp.org>
25953
25954         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25955         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25956         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25957         REPLACE_FREXPL to 1.
25958         * doc/posix-functions/frexpl.texi: Update documentation.
25959
25960 2010-04-04  Bruno Haible  <bruno@clisp.org>
25961
25962         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25963         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25964
25965 2010-04-04  Bruno Haible  <bruno@clisp.org>
25966
25967         Implement nanosleep for native Windows.
25968         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25969
25970 2010-04-04  Bruno Haible  <bruno@clisp.org>
25971
25972         math: Fix some C++ test errors on Solaris 8.
25973         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25974
25975 2010-04-04  Bruno Haible  <bruno@clisp.org>
25976
25977         math: Fix some C++ test errors on Cygwin.
25978         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25979         truncl): Provide declaration if the system does not have it.
25980         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25981         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25982         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25983         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25984         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25985         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25986         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25987         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25988         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25989         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25990         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25991         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25992         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25993         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25994         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25995         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25997         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25998         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25999         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26000         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26001         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26002
26003 2010-04-04  Bruno Haible  <bruno@clisp.org>
26004
26005         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26006         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26007         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26008         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26009         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26010         * m4/isinf.m4 (gl_ISINF): Likewise.
26011         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26012
26013 2010-04-04  Bruno Haible  <bruno@clisp.org>
26014
26015         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26016         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26017
26018 2010-04-04  Bruno Haible  <bruno@clisp.org>
26019
26020         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26021         * modules/tmpfile (configure.ac): Update.
26022
26023         tmpfile: Fix C++ test error on mingw.
26024         * lib/stdio.in.h (tmpfile): New declaration.
26025         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26026         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26027         * modules/tmpfile (Depends-on): Add stdio.
26028         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26029         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26030         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26031         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26032         REPLACE_TMPFILE.
26033         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26034
26035 2010-04-04  Bruno Haible  <bruno@clisp.org>
26036
26037         ioctl: Fix C++ test error on mingw.
26038         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26039         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26040         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26041
26042 2010-04-03  Bruno Haible  <bruno@clisp.org>
26043
26044         wcwidth: Fix C++ test error on mingw.
26045         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26047         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26048
26049 2010-04-03  Bruno Haible  <bruno@clisp.org>
26050
26051         nanosleep: Fix C++ test error on mingw.
26052         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26053         * lib/time.in.h (nanosleep): Use modern idiom.
26054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26055         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26056         REPLACE_NANOSLEEP to 1.
26057         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26058         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26059
26060 2010-04-03  Bruno Haible  <bruno@clisp.org>
26061
26062         strptime: Fix C++ test error on mingw.
26063         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26064         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26065         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26066         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26068         not REPLACE_STRPTIME.
26069         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26070         REPLACE_STRPTIME.
26071
26072 2010-04-03  Bruno Haible  <bruno@clisp.org>
26073
26074         timegm: Fix C++ test error on mingw.
26075         * lib/time.in.h (timegm): Use modern idiom.
26076         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26077         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26078         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26079         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26080
26081 2010-04-03  Bruno Haible  <bruno@clisp.org>
26082
26083         timegm: Assume declaration if function exists.
26084         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26085         if it exists. Don't clobber ac_cv_func_timegm.
26086
26087 2010-04-03  Bruno Haible  <bruno@clisp.org>
26088
26089         time_r: Fix C++ test error on mingw.
26090         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26091         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26092         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26093         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26094         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26095
26096 2010-04-03  Bruno Haible  <bruno@clisp.org>
26097
26098         time_r: Minor updates.
26099         * modules/time_r (Description): Mention the provided functions.
26100         * lib/time_r.c: Don't include <string.h>.
26101         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26102         * doc/posix-functions/localtime_r.texi: Likewise.
26103
26104 2010-04-03  Bruno Haible  <bruno@clisp.org>
26105
26106         time: Fix regression introduced on 2010-03-08.
26107         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26108         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26109
26110 2010-04-03  Jim Meyering  <meyering@redhat.com>
26111
26112         maint.mk: don't silently disable project-specific syntax-check rules
26113         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26114         that they need to convert their project-specific syntax-check rules
26115         to use the new _sc_search_regexp.
26116
26117 2010-04-03  Bruno Haible  <bruno@clisp.org>
26118
26119         fchdir: Fix regression introduced on 2010-03-08.
26120         * lib/unistd.in.h (fchdir): Fix declaration.
26121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26123         REPLACE_FCHDIR.
26124         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26125         REPLACE_FCHDIR.
26126
26127 2010-04-03  Bruno Haible  <bruno@clisp.org>
26128
26129         getpagesize: Fix C++ test error on mingw.
26130         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26131         system does not declare the function.
26132         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26133         declared.
26134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26135         HAVE_DECL_GETPAGESIZE.
26136         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26137
26138 2010-04-03  Bruno Haible  <bruno@clisp.org>
26139
26140         stdio: Make C++ tests work on mingw.
26141         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26142         does not declare the function.
26143
26144 2010-04-03  Bruno Haible  <bruno@clisp.org>
26145
26146         ftello: Fix C++ test error on mingw.
26147         * lib/stdio.in.h (ftello): Use modern idiom.
26148         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26149         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26150         is missing and that it needs to be replaced.
26151         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26153         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26154
26155 2010-04-03  Bruno Haible  <bruno@clisp.org>
26156
26157         fseeko: Fix C++ test error on mingw.
26158         * lib/stdio.in.h (fseeko): Use modern idiom.
26159         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26161         is missing and that it needs to be replaced.
26162         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26164         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26165
26166 2010-04-03  Bruno Haible  <bruno@clisp.org>
26167
26168         mkstemp: Fix C++ test error on mingw.
26169         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26171         function is missing and that it needs to be replaced.
26172         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26173         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26174
26175 2010-04-03  Bruno Haible  <bruno@clisp.org>
26176
26177         stpncpy: Fix C++ test error on mingw.
26178         * lib/string.in.h (stpncpy): Use modern idiom.
26179         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26180         function is missing and that it needs to be replaced.
26181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26182         REPLACE_STPNCPY.
26183         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26184
26185 2010-04-03  Bruno Haible  <bruno@clisp.org>
26186
26187         sys_stat: Fix C++ test error on mingw.
26188         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26189         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26190
26191 2010-04-03  Bruno Haible  <bruno@clisp.org>
26192
26193         pty: Update doc.
26194         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26195
26196 2010-04-03  Bruno Haible  <bruno@clisp.org>
26197
26198         unistd: Fix C++ test error on mingw.
26199         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26200
26201 2010-04-03  Bruno Haible  <bruno@clisp.org>
26202
26203         Update doc regarding mingw.
26204         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26205         * doc/glibc-functions/login_tty.texi: Likewise.
26206         * doc/glibc-functions/forkpty.texi: Likewise.
26207
26208 2010-04-03  Bruno Haible  <bruno@clisp.org>
26209
26210         stdlib: Avoid compilation failure of c-strtold on mingw.
26211         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26212
26213 2010-04-03  Bruno Haible  <bruno@clisp.org>
26214
26215         locale: Make C++ tests work on Cygwin and mingw.
26216         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26217         cannot provide the function.
26218         Reported by Simon Josefsson.
26219
26220 2010-04-03  Bruno Haible  <bruno@clisp.org>
26221
26222         localename: Port to MacOS X 10.6.
26223         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26224         memory layout of the locales in MacOS X 10.6 as well.
26225         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26226
26227 2010-04-02  Bruno Haible  <bruno@clisp.org>
26228
26229         gnulib-tool: Ensure that long-running tests are executed last.
26230         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26231         running tests after the one for the other tests.
26232
26233 2010-04-02  Bruno Haible  <bruno@clisp.org>
26234
26235         gnulib-tool: Ensure the tests in the main directory are executed first.
26236         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26237         start with the current directory.
26238
26239 2010-04-02  Bruno Haible  <bruno@clisp.org>
26240
26241         Tests for module 'havelib', moved here from GNU gettext.
26242         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26243         modifications.
26244         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26245         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26246         with modifications.
26247         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26248         modifications.
26249         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26250         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26251         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26252         with modifications.
26253         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26254         with modifications.
26255         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26256         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26257         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26258         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26259         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26260         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26261         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26262         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26263         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26264         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26265         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26266         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26267         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26268         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26269         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26270         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26271         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26272         with modifications.
26273         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26274         with modifications.
26275         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26276         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26277         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26278         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26279         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26280         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26281         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26282         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26283         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26284         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26285         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26286         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26287         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26288         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26289         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26290         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26291         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26292         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26293         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26294         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26295         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26296         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26297         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26298         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26299         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26300         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26301         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26302         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26303         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26304         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26305         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26306         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26307         * tests/havelib/rpathx/rpathx.c: New file, from
26308         gettext/autoconf-lib-link.
26309         * tests/havelib/rpathx/Makefile.am: New file, from
26310         gettext/autoconf-lib-link.
26311         * tests/havelib/rpathx/configure.ac: New file, from
26312         gettext/autoconf-lib-link with modifications.
26313         * tests/havelib/rpathy/rpathy.c: New file, from
26314         gettext/autoconf-lib-link.
26315         * tests/havelib/rpathy/Makefile.am: New file, from
26316         gettext/autoconf-lib-link.
26317         * tests/havelib/rpathy/configure.ac: New file, from
26318         gettext/autoconf-lib-link with modifications.
26319         * tests/havelib/rpathz/rpathz.c: New file, from
26320         gettext/autoconf-lib-link.
26321         * tests/havelib/rpathz/Makefile.am: New file, from
26322         gettext/autoconf-lib-link.
26323         * tests/havelib/rpathz/configure.ac: New file, from
26324         gettext/autoconf-lib-link with modifications.
26325         * tests/havelib/rpathlx/usex.c: New file, from
26326         gettext/autoconf-lib-link.
26327         * tests/havelib/rpathlx/Makefile.am: New file, from
26328         gettext/autoconf-lib-link.
26329         * tests/havelib/rpathlx/configure.ac: New file, from
26330         gettext/autoconf-lib-link with modifications.
26331         * tests/havelib/rpathly/usey.c: New file, from
26332         gettext/autoconf-lib-link.
26333         * tests/havelib/rpathly/Makefile.am: New file, from
26334         gettext/autoconf-lib-link.
26335         * tests/havelib/rpathly/configure.ac: New file, from
26336         gettext/autoconf-lib-link with modifications.
26337         * tests/havelib/rpathlz/usez.c: New file, from
26338         gettext/autoconf-lib-link.
26339         * tests/havelib/rpathlz/Makefile.am: New file, from
26340         gettext/autoconf-lib-link.
26341         * tests/havelib/rpathlz/configure.ac: New file, from
26342         gettext/autoconf-lib-link with modifications.
26343         * tests/havelib/rpathlyx/usey.c: New file, from
26344         gettext/autoconf-lib-link.
26345         * tests/havelib/rpathlyx/Makefile.am: New file, from
26346         gettext/autoconf-lib-link.
26347         * tests/havelib/rpathlyx/configure.ac: New file, from
26348         gettext/autoconf-lib-link with modifications.
26349         * tests/havelib/rpathlzyx/usez.c: New file, from
26350         gettext/autoconf-lib-link.
26351         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26352         gettext/autoconf-lib-link.
26353         * tests/havelib/rpathlzyx/configure.ac: New file, from
26354         gettext/autoconf-lib-link with modifications.
26355         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26356         with modifications.
26357
26358 2010-04-02  Bruno Haible  <bruno@clisp.org>
26359
26360         gnulib-tool: Create distributed built sources also for the tests.
26361         * gnulib-tool (func_create_testdir): Also generate distributed built
26362         sources in the tests directory.
26363
26364 2010-04-02  Bruno Haible  <bruno@clisp.org>
26365
26366         gnulib-tool: Obey user's environment variables.
26367         * gnulib-tool (func_create_testdir): When creating built sources,
26368         respect the environment variables for autoconf, automake, etc. given by
26369         the user.
26370
26371 2010-04-02  Bruno Haible  <bruno@clisp.org>
26372
26373         gnulib-tool: Provide the value of --m4-base to modules.
26374         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26375         of gl_m4_base.
26376
26377 2010-04-02  Eric Blake  <eblake@redhat.com>
26378
26379         maint.mk: fix some fallout
26380         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26381         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26382
26383 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26384
26385         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26386         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26387         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26388         (sc_cast_of_x_alloc_return_value): Likewise.
26389         (sc_cast_of_alloca_return_value): Likewise.
26390         (sc_space_tab): Likewise.
26391         (sc_prohibit_atoi_atof): Likewise.
26392         (sc_prohibit_magic_number_exit): Likewise.
26393         (sc_error_exit_success): Likewise.
26394         (sc_file_system): Likewise.
26395         (sc_prohibit_have_config_h): Likewise.
26396         (sc_require_config_h): Likewise.
26397         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26398         (sc_obsolete_symbols): Likewise.
26399         (sc_changelog): Likewise.
26400         (sc_program_name): Likewise.
26401         (sc_the_the): Likewise.
26402         (sc_trailing_blank): Likewise.
26403         (sc_two_space_separator_in_usage): Likewise.
26404         (sc_useless_cpp_parens): Likewise.
26405         (sc_GPL_version): Likewise.
26406         (sc_GFDL_version): Likewise.
26407         (sc_texinfo_acronym): Likewise.
26408         (sc_prohibit_cvs_keyword): Likewise.
26409         (sc_prohibit_stat_st_blocks): Likewise.
26410         (sc_prohibit_S_IS_definition): Likewise.
26411         (sc_redundant_const): Likewise.
26412         (sc_makefile_TAB_only_indentation): Likewise.
26413         (sc_m4_quote_check): Likewise.
26414         (sc_makefile_path_separator_check): Likewise.
26415         (sc_copyright_check): Likewise.
26416         (sc_Wundef_boolean): Likewise.
26417         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26418
26419         maint.mk: match 0 or more whitespace-before-function-call '('
26420         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26421         that have zero or two-and-more spaces between the function name
26422         and the open parenthesis.
26423         (sc_error_message_warn_fatal): Likewise.
26424         (sc_error_message_uppercase): Likewise.
26425         (sc_error_message_period): Likewise.
26426
26427 2010-03-31  Eric Blake  <eblake@redhat.com>
26428
26429         maint.mk: check for [ as well as test
26430         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26431         Based on a libvirt report by Matthias Bolte.
26432
26433         gnumakefile: don't squelch _version output
26434         * top/GNUmakefile (_version): Create one-shot dependency rather
26435         than using $(shell) when version must be regenerated.
26436         (_autoreconf): Run verbosely, by default.
26437
26438         sys_time: avoid compiler warnings
26439         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26440         unconditional, fixing regression from 2010-03-29.
26441         Reported by Simon Josefsson.
26442
26443 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26444
26445         maint.mk: s/_header_without_use/_sc_header_without_use/
26446         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26447         (sc_prohibit_assert_without_use): Use the new name.
26448         (sc_prohibit_close_stream_without_use): Likewise.
26449         (sc_prohibit_getopt_without_use): Likewise.
26450         (sc_prohibit_quotearg_without_use): Likewise.
26451         (sc_prohibit_quote_without_use): Likewise.
26452         (sc_prohibit_long_options_without_use): Likewise.
26453         (sc_prohibit_inttostr_without_use): Likewise.
26454         (sc_prohibit_ignore_value_without_use): Likewise.
26455         (sc_prohibit_error_without_use): Likewise.
26456         (sc_prohibit_xalloc_without_use): Likewise.
26457         (sc_prohibit_hash_without_use): Likewise.
26458         (sc_prohibit_hash_pjw_without_use): Likewise.
26459         (sc_prohibit_safe_read_without_use): Likewise.
26460         (sc_prohibit_argmatch_without_use): Likewise.
26461         (sc_prohibit_canonicalize_without_use): Likewise.
26462         (sc_prohibit_root_dev_ino_without_use): Likewise.
26463         (sc_prohibit_openat_without_use): Likewise.
26464         (sc_prohibit_c_ctype_without_use): Likewise.
26465         (sc_prohibit_signal_without_use): Likewise.
26466         (sc_prohibit_intprops_without_use): Likewise.
26467
26468 2010-03-30  Eric Blake  <eblake@redhat.com>
26469
26470         maint: improve module indicators
26471         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26472         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26473         columns, and avoid extra macro expansion.
26474
26475         fdopendir: work around FreeBSD bug
26476         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26477         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26478         * modules/dirent (Makefile.am): Substitute it.
26479         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26480         declaration.
26481         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26482         fix.
26483         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26484
26485 2010-03-29  Bruno Haible  <bruno@clisp.org>
26486
26487         Emit #pragma system_header after the inclusion guard, not before.
26488         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26489         guard that spans the entire file, not before. This enables an
26490         optimization in GCC's preprocessor.
26491         * lib/ctype.in.h: Likewise.
26492         * lib/dirent.in.h: Likewise.
26493         * lib/errno.in.h: Likewise.
26494         * lib/float.in.h: Likewise.
26495         * lib/getopt.in.h: Likewise.
26496         * lib/iconv.in.h: Likewise.
26497         * lib/langinfo.in.h: Likewise.
26498         * lib/locale.in.h: Likewise.
26499         * lib/math.in.h: Likewise.
26500         * lib/netdb.in.h: Likewise.
26501         * lib/netinet_in.in.h: Likewise.
26502         * lib/pty.in.h: Likewise.
26503         * lib/sched.in.h: Likewise.
26504         * lib/se-selinux.in.h: Likewise.
26505         * lib/search.in.h: Likewise.
26506         * lib/spawn.in.h: Likewise.
26507         * lib/stdarg.in.h: Likewise.
26508         * lib/stdint.in.h: Likewise.
26509         * lib/string.in.h: Likewise.
26510         * lib/strings.in.h: Likewise.
26511         * lib/sys_file.in.h: Likewise.
26512         * lib/sys_ioctl.in.h: Likewise.
26513         * lib/sys_time.in.h: Likewise.
26514         * lib/sys_times.in.h: Likewise.
26515         * lib/sys_utsname.in.h: Likewise.
26516         * lib/sys_wait.in.h: Likewise.
26517         * lib/sysexits.in.h: Likewise.
26518         * lib/wctype.in.h: Likewise.
26519
26520 2010-03-28  James Youngman  <jay@gnu.org>
26521
26522         save-cwd: don't leak a file descriptor when the caller execs.
26523         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26524         saved file descriptor.
26525         * modules/save-cwd (Depends-on): Depend on cloexec.
26526
26527 2010-03-29  Bruno Haible  <bruno@clisp.org>
26528
26529         Remove vestiges of fts-lgpl module.
26530         * lib/fts_.h: Assume GNULIB_FTS is 1.
26531         * lib/fts.c: Likewise.
26532         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26533
26534 2010-03-28  Bruno Haible  <bruno@clisp.org>
26535
26536         Fix definition of tests witness macro.
26537         * gnulib-tool (func_import): Fix definition of witness macro.
26538
26539 2010-03-28  Bruno Haible  <bruno@clisp.org>
26540
26541         Fix ioctl's protoype on glibc systems.
26542         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26543         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26544         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26545         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26546         signature. If not, arrange to replace the ioctl function.
26547         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26548         REPLACE_IOCTL.
26549         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26550         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26551         Reported by Ludovic Courtès <ludo@gnu.org>.
26552
26553 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26554
26555         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26556         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26557         made it so grep -r --include=GLOB* ... did not work.
26558
26559 2010-03-26  Jim Meyering  <meyering@redhat.com>
26560             Eric Blake  <eblake@redhat.com>
26561
26562         maint.mk: prohibit use of test's -o and -a operators
26563         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26564
26565 2010-03-28  Bruno Haible  <bruno@clisp.org>
26566
26567         Remove unused GNULIB_XYZ macro definitions.
26568         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26569         invocation.
26570
26571 2010-03-28  Bruno Haible  <bruno@clisp.org>
26572
26573         Mark privileged tests modules.
26574         * modules/idpriv-drop-tests (Status): New section.
26575         * modules/idpriv-droptemp-tests (Status): New section.
26576
26577 2010-03-28  Bruno Haible  <bruno@clisp.org>
26578
26579         Split C++ tests into separate tests modules.
26580         * modules/dirent-c++-tests: New file, extracted from
26581         modules/dirent-tests.
26582         * modules/dirent-tests: Depend on it.
26583         * modules/fcntl-h-c++-tests: New file, extracted from
26584         modules/fcntl-h-tests.
26585         * modules/fcntl-h-tests: Depend on it.
26586         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26587         * modules/glob-tests: Depend on it.
26588         * modules/iconv-h-c++-tests: New file, extracted from
26589         modules/iconv-h-tests.
26590         * modules/iconv-h-tests: Depend on it.
26591         * modules/langinfo-c++-tests: New file, extracted from
26592         modules/langinfo-tests.
26593         * modules/langinfo-tests: Depend on it.
26594         * modules/locale-c++-tests: New file, extracted from
26595         modules/locale-tests.
26596         * modules/locale-tests: Depend on it.
26597         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26598         * modules/math-tests: Depend on it.
26599         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26600         * modules/pty-tests: Depend on it.
26601         * modules/search-c++-tests: New file, extracted from
26602         modules/search-tests.
26603         * modules/search-tests: Depend on it.
26604         * modules/signal-c++-tests: New file, extracted from
26605         modules/signal-tests.
26606         * modules/signal-tests: Depend on it.
26607         * modules/spawn-c++-tests: New file, extracted from
26608         modules/spawn-tests.
26609         * modules/spawn-tests: Depend on it.
26610         * modules/stdio-c++-tests: New file, extracted from
26611         modules/stdio-tests.
26612         * modules/stdio-tests: Depend on it.
26613         * modules/stdlib-c++-tests: New file, extracted from
26614         modules/stdlib-tests.
26615         * modules/stdlib-tests: Depend on it.
26616         * modules/string-c++-tests: New file, extracted from
26617         modules/string-tests.
26618         * modules/string-tests: Depend on it.
26619         * modules/sys_ioctl-c++-tests: New file, extracted from
26620         modules/sys_ioctl-tests.
26621         * modules/sys_ioctl-tests: Depend on it.
26622         * modules/sys_select-c++-tests: New file, extracted from
26623         modules/sys_select-tests.
26624         * modules/sys_select-tests: Depend on it.
26625         * modules/sys_socket-c++-tests: New file, extracted from
26626         modules/sys_socket-tests.
26627         * modules/sys_socket-tests: Depend on it.
26628         * modules/sys_stat-c++-tests: New file, extracted from
26629         modules/sys_stat-tests.
26630         * modules/sys_stat-tests: Depend on it.
26631         * modules/sys_time-c++-tests: New file, extracted from
26632         modules/sys_time-tests.
26633         * modules/sys_time-tests: Depend on it.
26634         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26635         * modules/time-tests: Depend on it.
26636         * modules/unistd-c++-tests: New file, extracted from
26637         modules/unistd-tests.
26638         * modules/unistd-tests: Depend on it.
26639         * modules/wchar-c++-tests: New file, extracted from
26640         modules/wchar-tests.
26641         * modules/wchar-tests: Depend on it.
26642         * modules/wctype-c++-tests: New file, extracted from
26643         modules/wctype-tests.
26644         * modules/wctype-tests: Depend on it.
26645         Reported by Simon Josefsson.
26646
26647 2010-03-28  Bruno Haible  <bruno@clisp.org>
26648
26649         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26650         * gnulib-tool (func_exists_module): New function, extracted from
26651         func_verify_module.
26652         (func_verify_module): Use it.
26653         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26654         'foo' only if 'foo' exists.
26655         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26656         module.
26657
26658 2010-03-28  Bruno Haible  <bruno@clisp.org>
26659
26660         gnulib-tool: Add support for special categories of tests.
26661         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26662         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26663         (func_usage): Document them.
26664         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26665         inc_unportable_tests, inc_all_tests): New variables.
26666         (func_acceptable): Consider these variables.
26667         (func_modules_transitive_closure): Make it work when the 'Status' field
26668         consists of multiple words.
26669         (func_import): Store and restore the values of inc_cxx_tests,
26670         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26671         inc_all_tests in gnulib-comp.m4.
26672         (func_create_testdir): Set inc_all_tests to true.
26673         * doc/gnulib.texi (Extra tests modules): New section.
26674         Suggested by Jim Meyering.
26675
26676 2010-03-28  Bruno Haible  <bruno@clisp.org>
26677
26678         ansi-c++-opt: Allow turning off the C++ build by default.
26679         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26680         gl_CXX_CHOICE_DEFAULT_NO is defined.
26681         Requested by Eric Blake.
26682
26683 2010-03-28  Bruno Haible  <bruno@clisp.org>
26684
26685         unistd: Avoid #define replacements in C++ mode.
26686         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26687         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26688         setsockopt, shutdown, select): In C++, attach a warning to the function
26689         if possible, rather than #defining the symbol to a dysfunctional alias.
26690         Reported by John W. Eaton <jwe@gnu.org>.
26691
26692 2010-03-28  Bruno Haible  <bruno@clisp.org>
26693
26694         Fix link errors on mingw.
26695         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26696         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26697         $(LIBSOCKET).
26698         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26699         $(LIBSOCKET).
26700
26701 2010-03-28  Bruno Haible  <bruno@clisp.org>
26702             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26703
26704         lib-ignore: Determine different options for different compilers.
26705         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26706         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26707         Add comments.
26708         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26709         * NEWS: Mention the change.
26710
26711 2010-03-27  Bruno Haible  <bruno@clisp.org>
26712
26713         Remove unused GNULIB_XYZ macro definitions.
26714         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26715         * modules/fseek (configure.ac): Likewise.
26716         * modules/ioctl (configure.ac): Likewise.
26717         * modules/open (configure.ac): Likewise.
26718         * modules/stdlib-safer (configure.ac): Likewise.
26719
26720 2010-03-27  Bruno Haible  <bruno@clisp.org>
26721
26722         Add a remark about certain modules.
26723         * modules/malloc (Comment): New section.
26724         * modules/realloc (Comment): Likewise.
26725         * modules/sigpipe (Comment): Likewise.
26726
26727 2010-03-27  Bruno Haible  <bruno@clisp.org>
26728
26729         Resolve conflict between the two kinds of module indicators.
26730         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26731         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26732         * modules/canonicalize (configure.ac): Invoke
26733         gl_MODULE_INDICATOR_FOR_TESTS.
26734         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26735         GNULIB_XYZ.
26736         * tests/test-dirent-c++.cc: Likewise.
26737         * tests/test-dirent-safer.c: Likewise.
26738         * tests/test-dup2.c: Likewise.
26739         * tests/test-fchdir.c: Likewise.
26740         * tests/test-fcntl-h-c++.cc: Likewise.
26741         * tests/test-getopt.c: Likewise.
26742         * tests/test-getopt.h: Likewise.
26743         * tests/test-langinfo-c++.cc: Likewise.
26744         * tests/test-locale-c++.cc: Likewise.
26745         * tests/test-math-c++.cc: Likewise.
26746         * tests/test-pty-c++.cc: Likewise.
26747         * tests/test-search-c++.cc: Likewise.
26748         * tests/test-signal-c++.cc: Likewise.
26749         * tests/test-spawn-c++.cc: Likewise.
26750         * tests/test-stdio-c++.cc: Likewise.
26751         * tests/test-stdlib-c++.cc: Likewise.
26752         * tests/test-string-c++.cc: Likewise.
26753         * tests/test-sys_ioctl-c++.cc: Likewise.
26754         * tests/test-sys_select-c++.cc: Likewise.
26755         * tests/test-sys_socket-c++.cc: Likewise.
26756         * tests/test-sys_stat-c++.cc: Likewise.
26757         * tests/test-sys_time-c++.cc: Likewise.
26758         * tests/test-time-c++.cc: Likewise.
26759         * tests/test-unistd-c++.cc: Likewise.
26760         * tests/test-wchar-c++.cc: Likewise.
26761         * tests/uninorm/test-u8-nfc.c: Likewise.
26762         * tests/uninorm/test-u8-nfd.c: Likewise.
26763         * tests/uninorm/test-u8-nfkc.c: Likewise.
26764         * tests/uninorm/test-u8-nfkd.c: Likewise.
26765         * tests/uninorm/test-u16-nfc.c: Likewise.
26766         * tests/uninorm/test-u16-nfd.c: Likewise.
26767         * tests/uninorm/test-u16-nfkc.c: Likewise.
26768         * tests/uninorm/test-u16-nfkd.c: Likewise.
26769         * tests/uninorm/test-u32-nfc.c: Likewise.
26770         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26771         * tests/uninorm/test-u32-nfd.c: Likewise.
26772         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26773         * tests/uninorm/test-u32-nfkc.c: Likewise.
26774         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26775         * tests/uninorm/test-u32-nfkd.c: Likewise.
26776         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26777         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26778
26779 2010-03-27  Bruno Haible  <bruno@clisp.org>
26780
26781         Distinguish two kinds of module indicators.
26782         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26783         gl_MODULE_INDICATOR.
26784         (gl_MODULE_INDICATOR): New macro.
26785         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26786         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26787         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26788         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26789         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26790         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26791         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26792         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26793         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26794         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26795         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26796         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26799         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26800         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26801         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26802         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26803         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26804         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26805         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26806         * modules/cloexec (configure.ac): Likewise.
26807         * modules/getopt-gnu (configure.ac): Likewise.
26808         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26809         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26810         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26811         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26812
26813 2010-03-27  Bruno Haible  <bruno@clisp.org>
26814
26815         New module description field 'Comment'.
26816         * gnulib-tool: New option --extract-comment.
26817         (func_usage): Document it.
26818         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26819         (func_get_comment): New function.
26820         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26821
26822 2010-03-27  Bruno Haible  <bruno@clisp.org>
26823
26824         Addendum to 2010-02-07 commit.
26825         * gnulib-tool (func_usage): Document --extract-applicability option.
26826
26827 2010-03-27  Bruno Haible  <bruno@clisp.org>
26828
26829         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26830         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26831         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26832         rather than link errors.
26833
26834 2010-03-27  Bruno Haible  <bruno@clisp.org>
26835
26836         Avoid side effects from tests-related modules on the compilation of lib.
26837         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26838         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26839         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26840         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26841         macro.
26842         (func_import): Define a witness macro. Assign it a value that depends
26843         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26844         tests-related modules.
26845         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26846         Reported by Jim Meyering.
26847
26848 2010-03-27  Bruno Haible  <bruno@clisp.org>
26849
26850         Factorize common .m4 code.
26851         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26852         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26853         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26854         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26855         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26856         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26857         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26858         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26859         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26860         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26861         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26862         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26863         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26864         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26865         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26866         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26867         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26868         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26870         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26871         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26872         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26873         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26874         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26875         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26876         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26877         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26878         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26879         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26880         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26881         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26882         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26883
26884 2010-03-27  Bruno Haible  <bruno@clisp.org>
26885
26886         Fix a compilation error on Cygwin with g++ >= 4.3.
26887         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26888         if it is undefined or if we alias it to chmod.
26889         (lstat): Don't warn about the use of this function if it is undefined
26890         or if we alias it to stat.
26891         Reported by Simon Josefsson.
26892
26893 2010-03-27  Bruno Haible  <bruno@clisp.org>
26894
26895         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26896         * modules/getlogin (configure.ac): Update.
26897
26898         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26899         * modules/getlogin_r (configure.ac): Update.
26900
26901         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26903         * modules/inet_ntop (configure.ac): Update.
26904
26905         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26906         * modules/inet_pton (configure.ac): Update.
26907
26908         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26909         * modules/mbslen (configure.ac): Update.
26910
26911         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26912         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26913         * modules/forkpty (configure.ac): Update.
26914         * modules/openpty (configure.ac): Update.
26915
26916 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26917
26918         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26919         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26920
26921 2010-03-25  Eric Blake  <eblake@redhat.com>
26922
26923         maint: use pragma consistently across replacement headers
26924         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26925         * lib/dirent.in.h (system_header): Likewise.
26926         * lib/errno.in.h (system_header): Likewise.
26927         * lib/float.in.h (system_header): Likewise.
26928         * lib/getopt.in.h (system_header): Likewise.
26929         * lib/iconv.in.h (system_header): Likewise.
26930         * lib/inttypes.in.h (system_header): Likewise.
26931         * lib/langinfo.in.h (system_header): Likewise.
26932         * lib/locale.in.h (system_header): Likewise.
26933         * lib/math.in.h (system_header): Likewise.
26934         * lib/netdb.in.h (system_header): Likewise.
26935         * lib/netinet_in.in.h (system_header): Likewise.
26936         * lib/pty.in.h (system_header): Likewise.
26937         * lib/sched.in.h (system_header): Likewise.
26938         * lib/se-selinux.in.h (system_header): Likewise.
26939         * lib/search.in.h (system_header): Likewise.
26940         * lib/spawn.in.h (system_header): Likewise.
26941         * lib/stdarg.in.h (system_header): Likewise.
26942         * lib/stdint.in.h (system_header): Likewise.
26943         * lib/string.in.h (system_header): Likewise.
26944         * lib/strings.in.h (system_header): Likewise.
26945         * lib/sys_file.in.h (system_header): Likewise.
26946         * lib/sys_ioctl.in.h (system_header): Likewise.
26947         * lib/sys_socket.in.h (system_header): Likewise.
26948         * lib/sys_times.in.h (system_header): Likewise.
26949         * lib/sys_utsname.in.h (system_header): Likewise.
26950         * lib/sys_wait.in.h (system_header): Likewise.
26951         * lib/sysexits.in.h (system_header): Likewise.
26952         * lib/unistd.in.h (system_header): Likewise.
26953         * lib/wctype.in.h (system_header): Likewise.
26954
26955         arpa/inet: fix mingw compilation warning
26956         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26957         Reported by Matthew Bolte.
26958
26959 2010-03-25  Bruno Haible  <bruno@clisp.org>
26960
26961         Avoid collision between gnulib wrapper and libintl wrapper.
26962         * lib/printf.c (printf): Don't define if a printf wrapper is already
26963         defined in intl/printf.c.
26964         Reported by Michel Boaventura <michel@michelboaventura.com>.
26965
26966 2010-03-25  Bruno Haible  <bruno@clisp.org>
26967
26968         Use ANSI C.
26969         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26970
26971 2010-03-25  Bruno Haible  <bruno@clisp.org>
26972
26973         Minor formatting changes.
26974         * lib/acosl.c: Insert space before function argument list.
26975         * lib/argz.c: Likewise.
26976         * lib/asinl.c: Likewise.
26977         * lib/expl.c: Likewise.
26978         * lib/gen-uni-tables.c: Likewise.
26979         * lib/gettext.h: Likewise.
26980         * lib/glthread/lock.h: Likewise.
26981         * lib/tanl.c: Likewise.
26982         * lib/uniname/uniname.c: Likewise.
26983         * tests/test-idpriv-drop.c: Likewise.
26984         * tests/test-idpriv-droptemp.c: Likewise.
26985         * tests/test-lock.c: Likewise.
26986         * tests/test-tls.c: Likewise.
26987         * lib/argp-help.c: Insert space before function-like macro argument
26988         list.
26989         * lib/memcmp.c: Likewise.
26990         * tests/test-base64.c: Likewise.
26991         * lib/localename.c: Insert space before sizeof's argument list.
26992         * lib/safe-alloc.h: Likewise.
26993         * lib/file-set.h: Insert space before macro argument list.
26994         * tests/test-argp.c: Likewise.
26995         * lib/argp-namefrob.h: Insert space before function parameter list.
26996         * lib/getaddrinfo.c: Likewise.
26997         * lib/netdb.in.h: Likewise.
26998         * lib/parse-duration.h: Likewise.
26999         * lib/parse-duration.c: Likewise.
27000         * lib/poll.c: Likewise.
27001         * lib/select.c: Likewise.
27002         * lib/trim.h: Likewise.
27003         * tests/test-usleep.c: Likewise.
27004         * lib/ldexpl.c: Insert space before function parameter list and before
27005         function argument list.
27006         * lib/logl.c: Likewise.
27007         * lib/sqrtl.c: Likewise.
27008         * lib/trim.c: Likewise.
27009         * lib/cosl.c: Use GNU style indentation. Insert space before function
27010         argument list.
27011         * lib/sinl.c: Likewise.
27012         * lib/tsearch.c: Insert space after 'for'.
27013         Reported by Jim Meyering.
27014
27015 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27016
27017         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27018         config header before grepping, as it's not present before
27019         autoreconf/configure are run.  Reported by Simon Josefsson.
27020
27021 2010-03-23  Bruno Haible  <bruno@clisp.org>
27022
27023         pt_chown: Make it work with automake < 1.11.
27024         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27025         Reported by Simon Josefsson.
27026
27027 2010-03-23  Bruno Haible  <bruno@clisp.org>
27028
27029         pt_chown: Don't depend on GPLed modules.
27030         * lib/pt_chown.c: Don't include idpriv.h.
27031         (main): Don't drop privileges.
27032         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27033         Reported by Simon Josefsson.
27034
27035 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27036
27037         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27038         suggestions from karl@freefriends.org (Karl Berry).
27039
27040 2010-03-22  Eric Blake  <eblake@redhat.com>
27041
27042         gethostname: further tweaks
27043         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27044         are overriding gethostname.
27045         Suggested by Bruno Haible.
27046
27047 2010-03-21  Bruno Haible  <bruno@clisp.org>
27048
27049         Fix comments.
27050         * lib/forkpty.c (rpl_forkpty): Fix comment.
27051         * lib/openpty.c (rpl_openpty): Likewise.
27052         Reported by Eric Blake.
27053
27054 2010-03-22  Eric Blake  <eblake@redhat.com>
27055
27056         gethostname: fix build on mingw
27057         * lib/unistd.in.h (includes): Work around fact that mingw
27058         <winsock2.h> re-includes <unistd.h>, by avoiding any
27059         redeclarations if we are being included by <winsock2.h>.
27060         Reported by Matthias Bolte.
27061
27062 2010-03-21  Bruno Haible  <bruno@clisp.org>
27063
27064         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27065         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27066         modifications.
27067         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27068         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27069         provide the replacement.
27070         * modules/forkpty (Depends-on): Add openpty, login_tty.
27071         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27072         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27073         * doc/glibc-functions/forkpty.texi: More supported platforms.
27074         * config/srclist.txt: Add forkpty.c (commented).
27075
27076 2010-03-21  Bruno Haible  <bruno@clisp.org>
27077
27078         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27079         (Makefile.am): Verify that PTY_LIB is defined.
27080
27081         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27082
27083 2010-03-21  Bruno Haible  <bruno@clisp.org>
27084
27085         Tests for module 'login_tty'.
27086         * modules/login_tty-tests: New file.
27087         * tests/test-login_tty.c: New file.
27088
27089         New module 'login_tty'.
27090         * lib/login_tty.c: New file.
27091         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27092         * modules/login_tty: New file.
27093         * doc/glibc-functions/login_tty.texi: Mention the new module.
27094
27095 2010-03-21  Bruno Haible  <bruno@clisp.org>
27096
27097         login_tty: Documentation.
27098         * doc/glibc-functions/login_tty.texi: New file.
27099         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27100
27101 2010-03-21  Bruno Haible  <bruno@clisp.org>
27102
27103         pty: Consistent macro naming.
27104         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27105         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27106         * modules/pty (configure.ac): Update.
27107
27108 2010-03-21  Bruno Haible  <bruno@clisp.org>
27109
27110         Tests for openpty: Make stricter.
27111         * tests/test-openpty.c (main): Add test of canonical processing and
27112         erase.
27113         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27114
27115         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27116         * lib/openpty.c (openpty): New replacement function.
27117         * lib/pty.in.h: Include <termios.h>.
27118         (openpty): Update declaration. Add comments.
27119         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27120         is not declared, arrange to provide the replacement. Check for _getpty
27121         and posix_openpt.
27122         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27123         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27124         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27125         * modules/pty-tests (test_pty_c___LDADD): New variable.
27126         * doc/glibc-functions/openpty.texi: More supported platforms.
27127
27128 2010-03-21  Bruno Haible  <bruno@clisp.org>
27129
27130         setenv: Tweaks.
27131         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27132         the test program.
27133         * doc/posix-functions/setenv.texi: Update platforms list.
27134
27135 2010-03-21  Bruno Haible  <bruno@clisp.org>
27136
27137         New module 'unlockpt'.
27138         * lib/unlockpt.c: New file, from glibc with modifications.
27139         * m4/unlockpt.m4: New file.
27140         * modules/unlockpt: New file.
27141         * lib/stdlib.in.h (unlockpt): New declaration.
27142         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27143         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27144         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27145         HAVE_UNLOCKPT.
27146         * doc/posix-functions/unlockpt.texi: Mention the new module.
27147         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27148         * config/srclist.txt: Add unlockpt.c (commented).
27149
27150 2010-03-21  Jim Meyering  <meyering@redhat.com>
27151
27152         maint.mk: prohibit inclusion of "intprops.h" without use
27153         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27154
27155 2010-03-21  Bruno Haible  <bruno@clisp.org>
27156
27157         New module 'grantpt'.
27158         * lib/grantpt.c: New file, from glibc with modifications.
27159         * m4/grantpt.m4: New file.
27160         * modules/grantpt: New file.
27161         * lib/stdlib.in.h (grantpt): New declaration.
27162         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27163         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27164         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27165         HAVE_GRANTPT.
27166         * doc/posix-functions/grantpt.texi: Mention the new module.
27167         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27168         * config/srclist.txt: Add grantpt.c (commented).
27169
27170 2010-03-21  Bruno Haible  <bruno@clisp.org>
27171
27172         New module 'pt_chown'.
27173         * lib/pt_chown.c: New file, from glibc with modifications.
27174         * lib/pty-private.h: New file, from glibc with modifications.
27175         * modules/pt_chown: New file.
27176         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27177
27178 2010-03-21  Bruno Haible  <bruno@clisp.org>
27179
27180         Tests for module 'ptsname'.
27181         * modules/ptsname-tests: New file.
27182         * tests/test-ptsname.c: New file.
27183
27184         New module 'ptsname'.
27185         * lib/ptsname.c: New file, from glibc with modifications.
27186         * m4/ptsname.m4: New file.
27187         * modules/ptsname: New file.
27188         * lib/stdlib.in.h (ptsname): New declaration.
27189         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27190         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27191         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27192         HAVE_PTSNAME.
27193         * doc/posix-functions/ptsname.texi: Mention the new module.
27194         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27195         * config/srclist.txt: Add ptsname.c (commented).
27196
27197 2010-03-21  Bruno Haible  <bruno@clisp.org>
27198
27199         Tests for module 'ttyname_r'.
27200         * modules/ttyname_r-tests: New file.
27201         * tests/test-ttyname_r.c: New file.
27202
27203         New module 'ttyname_r'.
27204         * lib/ttyname_r.c: New file.
27205         * m4/ttyname_r.m4: New file.
27206         * modules/ttyname_r: New file.
27207         * lib/unistd.in.h (ttyname_r): New declaration.
27208         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27209         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27210         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27211         HAVE_TTYNAME_R.
27212         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27213         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27214
27215 2010-03-20  Bruno Haible  <bruno@clisp.org>
27216
27217         signal: Undefine macro definitions in C++ mode.
27218         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27219         sigfillset): Undefine macro definitions from the system header in C++
27220         mode.
27221         Reported by John W. Eaton <jwe@gnu.org>.
27222
27223 2010-03-20  Bruno Haible  <bruno@clisp.org>
27224
27225         Ensure no #include statements inside extern "C" { ... }.
27226         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27227         contain #include statements.
27228         * lib/time.in.h: Likewise.
27229
27230 2010-03-20  Bruno Haible  <bruno@clisp.org>
27231
27232         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27233         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27234         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27235         Reported by John W. Eaton <jwe@gnu.org>.
27236
27237 2010-03-20  Bruno Haible  <bruno@clisp.org>
27238
27239         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27240         Reported by Jim Meyering.
27241
27242 2010-03-20  Bruno Haible  <bruno@clisp.org>
27243
27244         pipe: Set errno upon failure.
27245         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27246         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27247         errno value in error message.
27248
27249 2010-03-20  Bruno Haible  <bruno@clisp.org>
27250             Jim Meyering  <meyering@redhat.com>
27251
27252         lchown: Avoid "unused variable" warning.
27253         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27254
27255 2010-03-20  Bruno Haible  <bruno@clisp.org>
27256
27257         Work around unlink() bug on MacOS X 10.5.6.
27258         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27259         attempting to unlink a parent directory.
27260         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27261         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27262         activate for the replacement function.
27263         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27264
27265 2010-03-20  Bruno Haible  <bruno@clisp.org>
27266
27267         Fix link errors on Solaris 8.
27268         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27269         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27270
27271 2010-03-19  Jim Meyering  <meyering@redhat.com>
27272
27273         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27274         The _LIBC implementation of build_range_exp correctly honors the
27275         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27276         However, the non-_LIBC implementation would ignore that syntax-bit
27277         flag and return REG_ERANGE unconditionally.
27278         This change makes it honor that flag.
27279         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27280         Make two pointer parameters "const".
27281         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27282         (parse_bracket_exp): Update caller.
27283
27284         regex.m4: correct the reversed range endpoint ([b-a]) test
27285         * m4/regex.m4: When requiring that [b-a] evoke failure,
27286         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27287         test pass once again for x86-based systems.
27288
27289 2010-03-19  Bruno Haible  <bruno@clisp.org>
27290
27291         scandir: Fix link error on Solaris 8.
27292         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27293         macros.
27294
27295 2010-03-19  Bruno Haible  <bruno@clisp.org>
27296
27297         getusershell: Fix documentation.
27298         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27299         module.
27300         * doc/glibc-functions/setusershell.texi: Likewise.
27301
27302         getusershell: Provide declaration, missing on Solaris 9.
27303         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27304         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27305         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27306         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27308         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27309         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27310         HAVE_GETUSERSHELL.
27311         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27312
27313 2010-03-19  Bruno Haible  <bruno@clisp.org>
27314
27315         wctype: Provide iswblank function.
27316         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27317         exists and is fine.
27318         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27319         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27320         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27321         * doc/posix-functions/iswblank.texi: Update.
27322
27323 2010-03-19  Bruno Haible  <bruno@clisp.org>
27324
27325         Tests of module 'pty' in C++ mode.
27326         * modules/pty-tests: New file.
27327         * tests/test-pty-c++.cc: New file.
27328         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27329
27330 2010-03-19  Eric Blake  <eblake@redhat.com>
27331
27332         logb: fix documentation
27333         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27334         1.5 declaration bug.
27335
27336         forkpty, openpty: prefer glibc's const-safe prototype
27337         * lib/forkpty.c (rpl_forkpty): New file.
27338         * lib/openpty.c (rpl_openpty): Likewise.
27339         * modules/forkpty (Files): Distribute it.
27340         * modules/openpty (Files): Likewise.
27341         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27342         check...
27343         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27344         replacement for for non-const BSD signature.
27345         * modules/pty (Makefile.am): Substitute witnesses.
27346         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27347         * tests/test-forkpty.c: Update signature check.
27348         * tests/test-openpty.c: Likewise.
27349         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27350         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27351
27352         forkpty, openpty: split functions into new modules
27353         * modules/pty (Makefile.am): Substitute new witnesses.
27354         (Libraries): Move library detection...
27355         * modules/forkpty: ...into new module.
27356         * modules/openpty: Another new module.
27357         * modules/pty-tests: Rename and split...
27358         * modules/forkpty-tests: ...to this...
27359         * modules/openpty-tests: ...and this.
27360         * tests/test-pty.c: Rename and split...
27361         * tests/test-forkpty.c: ...to this...
27362         * tests/test-openpty.c: ...and this.
27363         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27364         (gl_PTY): Split library searching...
27365         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27366         (gl_FORKPTY, gl_OPENPTY): New macros.
27367         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27368         * NEWS: Mention the split.
27369         * MODULES.html.sh (Misc): Document the modules.
27370         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27371         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27372
27373         pty: improve replacement header
27374         * lib/pty.in.h: New file.
27375         * modules/pty (Files): Ship it.
27376         (Makefile.am): Always build replacement.
27377         * m4/pty.m4: Rename...
27378         * m4/pty_h.m4: ...to this.
27379         (gl_PTY): Modernize setting of witness macros; update check of
27380         forkpty to take proper advantage of cache.
27381         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27382
27383         getopt: avoid compiler warning
27384         * lib/getopt.c (attribute_hidden): Remove unused macro.
27385
27386 2010-03-18  Bruno Haible  <bruno@clisp.org>
27387
27388         Fix link errors on Solaris 8.
27389         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27390         * modules/search-tests (test_search_c___LDADD): Likewise.
27391         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27392         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27393         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27394         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27395         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27396         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27397         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27398
27399 2010-03-18  Bruno Haible  <bruno@clisp.org>
27400
27401         Fix bug introduced on 2010-03-14.
27402         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27403         (gl_SPAWN_H): Require it.
27404         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27405         Reported by Simon Josefsson.
27406
27407 2010-03-18  Bruno Haible  <bruno@clisp.org>
27408
27409         Fix typo introduced on 2009-12-31.
27410         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27411         posix_spawn_file_actions_adddup2.
27412
27413 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27414         and Eric Blake  <eblake@redhat.com>
27415
27416         test-vc-list-files-git: make more robust
27417         * tests/test-vc-list-files-git.sh: Unset problematic environment
27418         variables.  Chain commands together.
27419
27420 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27421
27422         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27423         `AC_CHECK_DECL' invocation.
27424
27425 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27426
27427         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27428         appears before executable statements. Suggested by Petr Sumbera
27429         <Petr.Sumbera@Sun.COM>.
27430
27431 2010-03-14  Bruno Haible  <bruno@clisp.org>
27432
27433         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27434         portability problems. Instead use a simpler test.
27435         (main): Check that invalid arguments are rejected only on Linux.
27436
27437 2010-03-14  Bruno Haible  <bruno@clisp.org>
27438
27439         Fix bug introduced on 2009-12-31.
27440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27441         gl_PREREQ_SYS_H_WINSOCK2 always.
27442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27443         SYS_SOCKET_H variable.
27444         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27445         Update comments.
27446         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27448         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27450         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27451
27452 2010-03-14  Bruno Haible  <bruno@clisp.org>
27453
27454         Fix values returned by sinl, cosl.
27455         * lib/trigl.h: Add specification comments.
27456         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27457         that combines the values from the precomputed table with the values of
27458         the Chebyshev polynomials.
27459
27460 2010-03-14  Bruno Haible  <bruno@clisp.org>
27461
27462         Fix compilation error when modules 'posix_spawn[p]' are not used.
27463         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27465
27466 2010-03-14  Bruno Haible  <bruno@clisp.org>
27467
27468         Fix compilation error on mingw when module 'time_r' is not used.
27469         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27470         is 1.
27471         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27472         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27473         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27474         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27475
27476 2010-03-14  Bruno Haible  <bruno@clisp.org>
27477
27478         Fix compilation error with Sun C.
27479         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27480         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27481         instead of GCC specific ULONG_LONG_MAX.
27482         * lib/xstrtoll.c: Likewise.
27483         * lib/xstrtoull.c: Likewise.
27484
27485 2010-03-13  Bruno Haible  <bruno@clisp.org>
27486
27487         Allow the user to disable C++ code and tests.
27488         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27489         (gl_PROG_ANSI_CXX): Require it.
27490
27491 2010-03-13  Bruno Haible  <bruno@clisp.org>
27492
27493         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27494         cases.
27495
27496 2010-03-13  Bruno Haible  <bruno@clisp.org>
27497
27498         Test that gnulib does not break the standard C++ headers.
27499         * tests/test-locale-c++2.cc: New file.
27500         * modules/locale-tests (Files): Add it.
27501         (Makefile.am): Compile it for test-locale-c++.
27502         * tests/test-math-c++2.cc: New file.
27503         * modules/math-tests (Files): Add it.
27504         (Makefile.am): Compile it for test-math-c++.
27505         * tests/test-signal-c++2.cc: New file.
27506         * modules/signal-tests (Files): Add it.
27507         (Makefile.am): Compile it for test-signal-c++.
27508         * tests/test-stdio-c++2.cc: New file.
27509         * modules/stdio-tests (Files): Add it.
27510         (Makefile.am): Compile it for test-stdio-c++.
27511         * tests/test-stdlib-c++2.cc: New file.
27512         * modules/stdlib-tests (Files): Add it.
27513         (Makefile.am): Compile it for test-stdlib-c++.
27514         * tests/test-string-c++2.cc: New file.
27515         * modules/string-tests (Files): Add it.
27516         (Makefile.am): Compile it for test-string-c++.
27517         * tests/test-time-c++2.cc: New file.
27518         * modules/time-tests (Files): Add it.
27519         (Makefile.am): Compile it for test-time-c++.
27520         Reported by John W. Eaton <jwe@gnu.org>.
27521
27522 2010-03-13  Bruno Haible  <bruno@clisp.org>
27523
27524         * gnulib-tool (func_usage): Clarify which options are available for
27525         --create-testdir and --create-megatestdir.
27526
27527 2010-03-13  Bruno Haible  <bruno@clisp.org>
27528
27529         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27530         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27531         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27532         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27533         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27534         when appropriate.
27535         Reported by Jim Meyering.
27536
27537 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27538
27539         * gnulib-tool (func_import): Explain origin of code.
27540
27541 2010-03-12  Bruno Haible  <bruno@clisp.org>
27542
27543         Fix problem with automake's definition of CXXLINK.
27544         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27545         Reported by Simon Josefsson and Ludovic Courtès.
27546
27547 2010-03-12  Bruno Haible  <bruno@clisp.org>
27548
27549         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27550         stable releases.
27551
27552 2010-03-11  Bruno Haible  <bruno@clisp.org>
27553
27554         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27555         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27556         whether the system provides one variant or multiple variants of the
27557         function.
27558         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27559         C++ compilers.
27560         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27561         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27562         Reported by Jim Meyering.
27563
27564 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27565
27566         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27567
27568 2010-03-08  Bruno Haible  <bruno@clisp.org>
27569
27570         gnulib-tool: Add support for --libtool in --create-testdir.
27571         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27572         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27573
27574 2010-03-08  Eric Blake  <eblake@redhat.com>
27575
27576         gnulib-tool.texi: mention possibility of git submodule
27577         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27578         submodules.
27579         * doc/.gitignore: Ignore another generated file.
27580
27581 2010-03-08  Karl Berry  <karl@gnu.org>
27582
27583         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27584         of committing gnulib files while skipping others.
27585
27586 2010-03-07  Bruno Haible  <bruno@clisp.org>
27587
27588         Tests of module 'wctype' in C++ mode.
27589         * tests/test-wctype-c++.cc: New file.
27590         * modules/wctype-tests (Files): Add it and tests/signature.h.
27591         (Depends-on): Add ansi-c++-opt.
27592         (Makefile.am): Arrange to compile and run test-wctype-c++.
27593
27594         Tests of module 'wchar' in C++ mode.
27595         * tests/test-wchar-c++.cc: New file.
27596         * modules/wchar-tests (Files): Add it and tests/signature.h.
27597         (Depends-on): Add ansi-c++-opt.
27598         (Makefile.am): Arrange to compile and run test-wchar-c++.
27599         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27600         gl_MODULE_INDICATOR.
27601
27602         Tests of module 'unistd' in C++ mode.
27603         * tests/test-unistd-c++.cc: New file.
27604         * modules/unistd-tests (Files): Add it and tests/signature.h.
27605         (Depends-on): Add ansi-c++-opt.
27606         (Makefile.am): Arrange to compile and run test-unistd-c++.
27607         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27608         gl_MODULE_INDICATOR.
27609
27610         Tests of module 'time' in C++ mode.
27611         * tests/test-time-c++.cc: New file.
27612         * modules/time-tests (Files): Add it and tests/signature.h.
27613         (Depends-on): Add ansi-c++-opt.
27614         (Makefile.am): Arrange to compile and run test-time-c++.
27615         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27616
27617         Tests of module 'sys_time' in C++ mode.
27618         * tests/test-sys_time-c++.cc: New file.
27619         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27620         (Depends-on): Add ansi-c++-opt.
27621         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27622         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27623         gl_MODULE_INDICATOR.
27624
27625         Tests of module 'sys_stat' in C++ mode.
27626         * tests/test-sys_stat-c++.cc: New file.
27627         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27628         (Depends-on): Add ansi-c++-opt.
27629         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27630         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27631         gl_MODULE_INDICATOR.
27632
27633         Tests of module 'sys_socket' in C++ mode.
27634         * tests/test-sys_socket-c++.cc: New file.
27635         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27636         (Depends-on): Add ansi-c++-opt.
27637         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27638         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27639         gl_MODULE_INDICATOR.
27640
27641         Tests of module 'sys_select' in C++ mode.
27642         * tests/test-sys_select-c++.cc: New file.
27643         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27644         (Depends-on): Add ansi-c++-opt.
27645         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27646         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27647         gl_MODULE_INDICATOR.
27648
27649         Tests of module 'sys_ioctl' in C++ mode.
27650         * tests/test-sys_ioctl-c++.cc: New file.
27651         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27652         (Depends-on): Add ansi-c++-opt.
27653         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27655         gl_MODULE_INDICATOR.
27656
27657         Tests of module 'string' in C++ mode.
27658         * tests/test-string-c++.cc: New file.
27659         * modules/string-tests (Files): Add it and tests/signature.h.
27660         (Depends-on): Add ansi-c++-opt.
27661         (Makefile.am): Arrange to compile and run test-string-c++.
27662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27663         gl_MODULE_INDICATOR.
27664
27665         Tests of module 'stdlib' in C++ mode.
27666         * tests/test-stdlib-c++.cc: New file.
27667         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27668         (Depends-on): Add ansi-c++-opt.
27669         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27670         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27671         gl_MODULE_INDICATOR.
27672
27673         Tests of module 'stdio' in C++ mode.
27674         * tests/test-stdio-c++.cc: New file.
27675         * modules/stdio-tests (Files): Add it and tests/signature.h.
27676         (Depends-on): Add ansi-c++-opt.
27677         (Makefile.am): Arrange to compile and run test-stdio-c++.
27678         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27679         gl_MODULE_INDICATOR.
27680
27681         Tests of module 'spawn' in C++ mode.
27682         * tests/test-spawn-c++.cc: New file.
27683         * modules/spawn-tests (Files): Add it and tests/signature.h.
27684         (Depends-on): Add ansi-c++-opt.
27685         (Makefile.am): Arrange to compile and run test-spawn-c++.
27686         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27687         gl_MODULE_INDICATOR.
27688
27689         Tests of module 'signal' in C++ mode.
27690         * tests/test-signal-c++.cc: New file.
27691         * modules/signal-tests (Files): Add it and tests/signature.h.
27692         (Depends-on): Add ansi-c++-opt.
27693         (Makefile.am): Arrange to compile and run test-signal-c++.
27694         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27695         gl_MODULE_INDICATOR.
27696
27697         Tests of module 'search' in C++ mode.
27698         * tests/test-search-c++.cc: New file.
27699         * modules/search-tests (Files): Add it and tests/signature.h.
27700         (Depends-on): Add ansi-c++-opt.
27701         (Makefile.am): Arrange to compile and run test-search-c++.
27702         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27703         gl_MODULE_INDICATOR.
27704
27705         Tests of module 'math' in C++ mode.
27706         * tests/test-math-c++.cc: New file.
27707         * modules/math-tests (Files): Add it and tests/signature.h.
27708         (Depends-on): Add ansi-c++-opt.
27709         (Makefile.am): Arrange to compile and run test-math-c++.
27710         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27711
27712         Tests of module 'locale' in C++ mode.
27713         * tests/test-locale-c++.cc: New file.
27714         * modules/locale-tests (Files): Add it and tests/signature.h.
27715         (Depends-on): Add ansi-c++-opt.
27716         (Makefile.am): Arrange to compile and run test-locale-c++.
27717         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27718         gl_MODULE_INDICATOR.
27719
27720         Tests of module 'langinfo' in C++ mode.
27721         * tests/test-langinfo-c++.cc: New file.
27722         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27723         (Depends-on): Add ansi-c++-opt.
27724         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27725         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27726         gl_MODULE_INDICATOR.
27727
27728         Tests of module 'iconv-h' in C++ mode.
27729         * tests/test-iconv-h-c++.cc: New file.
27730         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27731         (Depends-on): Add ansi-c++-opt.
27732         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27733
27734         Tests of module 'glob' in C++ mode.
27735         * tests/test-glob-c++.cc: New file.
27736         * modules/glob-tests (Files): Add it.
27737         (Depends-on): Add ansi-c++-opt.
27738         (Makefile.am): Arrange to compile and run test-glob-c++.
27739
27740         Tests of module 'fcntl-h' in C++ mode.
27741         * tests/test-fcntl-h-c++.cc: New file.
27742         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27743         (Depends-on): Add ansi-c++-opt.
27744         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27745         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27746         gl_MODULE_INDICATOR.
27747
27748         Tests of module 'dirent' in C++ mode.
27749         * tests/test-dirent-c++.cc: New file.
27750         * modules/dirent-tests (Files): Add it and tests/signature.h.
27751         (Depends-on): Add ansi-c++-opt.
27752         (Makefile.am): Arrange to compile and run test-dirent-c++.
27753         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27754         gl_MODULE_INDICATOR.
27755
27756         New module 'ansi-c++-opt'.
27757         * modules/ansi-c++-opt: New file.
27758         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27759
27760         Document C++ namespace mode.
27761         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27762
27763         wctype: Avoid #define replacements in C++ mode.
27764         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27765         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27766         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27767         In C++, define a namespaced alias symbol.
27768         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27769         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27770         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27771         rule.
27772
27773         wchar: Avoid #define replacements in C++ mode.
27774         * lib/wchar.in.h: Include c++defs.h.
27775         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27776         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27777         symbol.
27778         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27779         * modules/wchar (Depends-on): Add c++defs.
27780         (Makefile.am): Update wchar.h rule.
27781
27782         unistd: Avoid #define replacements in C++ mode.
27783         * lib/unistd.in.h: Include c++defs.h.
27784         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27785         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27786         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27787         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27788         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27789         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27790         symbol.
27791         (environ): Update.
27792         * modules/unistd (Depends-on): Add c++defs.
27793         (Makefile.am): Update unistd.h rule.
27794
27795         time: Avoid #define replacements in C++ mode.
27796         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27797         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27798         define a namespaced alias symbol.
27799         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27800         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27801         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27802         * modules/time (Depends-on): Add c++defs, warn-on-use.
27803         (Makefile.am): Update time.h rule.
27804         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27805         * modules/nanosleep (configure.ac): Likewise.
27806         * modules/strptime (configure.ac): Likewise.
27807         * modules/timegm (configure.ac): Likewise.
27808
27809         sys_time: Avoid #define replacements in C++ mode.
27810         * lib/sys_time.in.h: Include c++defs.h.
27811         (gettimeofday): In C++, define a namespaced alias symbol.
27812         * modules/sys_time (Depends-on): Add c++defs.
27813         (Makefile.am): Update sys/time.h rule.
27814
27815         sys_stat: Avoid #define replacements in C++ mode.
27816         * lib/sys_stat.in.h: Include c++defs.h.
27817         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27818         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27819         namespaced alias symbol.
27820         In C++, define a namespaced alias symbol.
27821         * modules/sys_stat (Depends-on): Add c++defs.
27822         (Makefile.am): Update sys/stat.h rule.
27823
27824         sys_socket: Avoid #define replacements in C++ mode.
27825         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27826         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27827         definitions also when the system has a <sys/socket.h>.
27828         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27829         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27830         In C++, define a namespaced alias symbol.
27831         * modules/sys_socket (Depends-on): Add c++defs.
27832         (Makefile.am): Update sys/socket.h rule.
27833
27834         sys_select: Avoid #define replacements in C++ mode.
27835         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27836         definitions also when the system has a <sys/select.h>.
27837         (select): In C++, define a namespaced alias symbol.
27838         * modules/sys_select (Depends-on): Add c++defs.
27839         (Makefile.am): Update sys/select.h rule.
27840
27841         sys_ioctl: Avoid #define replacements in C++ mode.
27842         * lib/sys_ioctl.in.h: Include c++defs.h.
27843         (ioctl): In C++, define a namespaced alias symbol.
27844         * modules/sys_ioctl (Depends-on): Add c++defs.
27845         (Makefile.am): Update sys/ioctl.h rule.
27846
27847         string: Avoid #define replacements in C++ mode.
27848         * lib/string.in.h: Include c++defs.h.
27849         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27850         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27851         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27852         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27853         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27854         * modules/string (Depends-on): Add c++defs.
27855         (Makefile.am): Update string.h rule.
27856
27857         stdlib: Avoid #define replacements in C++ mode.
27858         * lib/stdlib.in.h: Include c++defs.h.
27859         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27860         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27861         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27862         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27863         symbol.
27864         * modules/stdlib (Depends-on): Add c++defs.
27865         (Makefile.am): Update stdlib.h rule.
27866
27867         stdio: Avoid #define replacements in C++ mode.
27868         * lib/stdio.in.h: Include c++defs.h.
27869         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27870         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27871         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27872         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27873         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27874         namespaced alias symbol.
27875         * modules/stdio (Depends-on): Add c++defs.
27876         (Makefile.am): Update stdio.h rule.
27877
27878         spawn: Avoid #define replacements in C++ mode.
27879         * lib/spawn.in.h: Include c++defs.h.
27880         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27881         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27882         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27883         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27884         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27885         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27886         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27887         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27888         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27889         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27890         In C++, define a namespaced alias symbol.
27891         * modules/spawn (Depends-on): Add c++defs.
27892         (Makefile.am): Update spawn.h rule.
27893
27894         signal: Avoid #define replacements in C++ mode.
27895         * lib/signal.in.h: Include c++defs.h.
27896         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27897         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27898         namespaced alias symbol.
27899         * modules/signal (Depends-on): Add c++defs.
27900         (Makefile.am): Update signal.h rule.
27901
27902         search: Avoid #define replacements in C++ mode.
27903         * lib/search.in.h: Include c++defs.h.
27904         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27905         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27906         symbol.
27907         * modules/search (Depends-on): Add c++defs.
27908         (Makefile.am): Update search.h rule.
27909
27910         math: Avoid #define replacements in C++ mode.
27911         * lib/math.in.h: Include c++defs.h.
27912         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27913         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27914         trunc, truncl): In C++, define a namespaced alias symbol.
27915         * modules/math (Depends-on): Add c++defs.
27916         (Makefile.am): Update math.h rule.
27917
27918         locale: Avoid #define replacements in C++ mode.
27919         * lib/locale.in.h: Include c++defs.h.
27920         (duplocale): In C++, define a namespaced alias symbol.
27921         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27922         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27923         * modules/locale (Depends-on): Add c++defs.
27924         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27925
27926         langinfo: Avoid #define replacements in C++ mode.
27927         * lib/langinfo.in.h: Include c++defs.h.
27928         (nl_langinfo): In C++, define a namespaced alias symbol.
27929         * modules/langinfo (Depends-on): Add c++defs.
27930         (Makefile.am): Update langinfo.h rule.
27931
27932         iconv-h: Avoid #define replacements in C++ mode.
27933         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27934         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27935         symbol.
27936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27937         whenever iconv is present.
27938         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27939         (Makefile.am): Update iconv.h rule.
27940
27941         glob: Avoid #define replacements in C++ mode.
27942         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27943         (_gl_glob_errfunc_fn): New type.
27944         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27945         symbol.
27946         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27947         (Makefile.am): Update glob.h rule.
27948
27949         fcntl-h: Avoid #define replacements in C++ mode.
27950         * lib/fcntl.in.h: Include c++defs.h.
27951         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27952         * modules/fcntl-h (Depends-on): Add c++defs.
27953         (Makefile.am): Update fcntl.h rule.
27954
27955         dirent: Avoid #define replacements in C++ mode.
27956         * lib/dirent.in.h: Include c++defs.h.
27957         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27958         namespaced alias symbol.
27959         (dirfd): Update declaration.
27960         * modules/dirent (Depends-on): Add c++defs.
27961         (Makefile.am): Update dirent.h rule.
27962
27963         ctype: Make it usable in C++ code.
27964         * lib/ctype.in.h: Include c++defs.h.
27965         (isblank): Declare as extern "C".
27966         * modules/ctype (Depends-on): Add c++defs.
27967         (Makefile.am): Update ctype.h rule.
27968
27969         New module 'c++defs'.
27970         * modules/c++defs: New file.
27971         * build-aux/c++defs.h: New file.
27972         Reported by John W. Eaton <jwe@gnu.org>.
27973
27974 2010-03-07  Bruno Haible  <bruno@clisp.org>
27975
27976         logb: Provide missing declaration for Cygwin.
27977         * lib/math.in.h (logb): New declaration.
27978         * m4/logb.m4: New file.
27979         * modules/logb (Files): Add m4/logb.m4.
27980         (Depends-on): Add math.
27981         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27982         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27984         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27985         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27986
27987 2010-03-07  Bruno Haible  <bruno@clisp.org>
27988
27989         Fix test-cond link error.
27990         * tests/test-cond.c: Include <stdio.h>.
27991
27992 2010-03-07  Bruno Haible  <bruno@clisp.org>
27993
27994         Fix test-dirent-safer link error.
27995         * modules/dirent-safer-tests (Makefile.am): Define
27996         test_dirent_safer_LDADD.
27997
27998 2010-03-07  Bruno Haible  <bruno@clisp.org>
27999
28000         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28001         among default module list.
28002
28003 2010-03-07  Bruno Haible  <bruno@clisp.org>
28004
28005         Fix link error on platforms with GNU libiconv.
28006         * modules/unistr/u8-strcoll-tests (Makefile): Define
28007         test_u8_strcoll_LDADD.
28008         * modules/unistr/u16-strcoll-tests (Makefile): Define
28009         test_u16_strcoll_LDADD.
28010         * modules/unistr/u32-strcoll-tests (Makefile): Define
28011         test_u32_strcoll_LDADD.
28012
28013 2010-03-07  Bruno Haible  <bruno@clisp.org>
28014
28015         Use POSIX declarations for socket functions.
28016         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28017         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28018         rpl_sendto): Change declaration to match POSIX.
28019         * lib/connect.c (rpl_connect): Likewise.
28020         * lib/accept.c (rpl_accept): Likewise.
28021         * lib/bind.c (rpl_bind): Likewise.
28022         * lib/getpeername.c (rpl_getpeername): Likewise.
28023         * lib/getsockname.c (rpl_getsockname): Likewise.
28024         * lib/recv.c (rpl_recv): Likewise.
28025         * lib/send.c (rpl_send): Likewise.
28026         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28027         * lib/sendto.c (rpl_sendto): Likewise.
28028
28029 2010-03-06  Bruno Haible  <bruno@clisp.org>
28030
28031         Clarify access, euidaccess, faccessat.
28032         * doc/posix-functions/faccessat.texi: Mention security problem under
28033         "Other problems", not "Portability problems".
28034         * doc/posix-functions/access.texi: Likewise. Mention a related security
28035         problem.
28036         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28037         * lib/euidaccess.c: Add comments about platforms.
28038         * lib/unistd.in.h (access, euidaccess): Add warnings.
28039
28040 2010-03-07  Bruno Haible  <bruno@clisp.org>
28041
28042         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28043         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28044         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28045         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28046         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28047         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28048         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28049         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28050         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28051         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28052         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28053         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28054         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28055         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28056         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28057         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28058         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28059         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28060         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28061         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28062         Likewise.
28063         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28064         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28065         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28066         Likewise.
28067         * tests/test-spawn.c (main): Make it work when
28068         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28069
28070 2010-03-07  Bruno Haible  <bruno@clisp.org>
28071
28072         Fix incorrect Makefile.am generation in German locale.
28073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28074         Execute sed command with character range in C locale.
28075
28076 2010-03-06  Bruno Haible  <bruno@clisp.org>
28077
28078         Tests for module 'iconv-h'.
28079         * modules/iconv-h-tests: New file.
28080         * tests/test-iconv-h.c: New file.
28081
28082         New module 'iconv-h'.
28083         * modules/iconv-h: New file.
28084         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28085         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28086         (configure.ac): Remove gl_ICONV_H.
28087         (Makefile.am): Remove rule for iconv.h.
28088
28089 2010-03-06  Bruno Haible  <bruno@clisp.org>
28090
28091         More consistent naming of *.m4 files.
28092         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28093         * modules/wctype (Files): Update.
28094
28095         More consistent naming of *.m4 files.
28096         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28097         * modules/wchar (Files): Update.
28098
28099 2010-03-06  Jim Meyering  <meyering@redhat.com>
28100
28101         euidaccess: relax license to LGPLv2+
28102         * modules/euidaccess (License): Relax to LGPLv2+.
28103
28104 2010-03-06  Bruno Haible  <bruno@clisp.org>
28105
28106         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28107         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28108         (Makefile.am): Augment lib_SOURCES instead.
28109
28110 2010-03-04  Jim Meyering  <meyering@redhat.com>
28111
28112         utime: remove obsolete module
28113         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28114         unnecessary for years, and has been marked as obsolete for 10 months.
28115         * modules/utime: Remove file.
28116         * lib/utime.c: Remove file.
28117         * m4/utime.m4: Remove file.
28118         * m4/utimes-null.m4: Remove file.
28119         * doc/posix-functions/utime.texi (utime): Remove reference to
28120         the module.  Move the sole "fixed by gnulib" item into the
28121         "problems not fixed by Gnulib" list.
28122         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28123
28124 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28125
28126         * modules/exit (License): Relax license to LGPLv2+.
28127         (Status): Mark as obsolete.
28128         * NEWS: Mention deprecated 'exit' module.
28129         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28130         of now obsolete 'exit'.
28131
28132 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28133
28134         fts-lgpl: remove unused module
28135         * modules/fts-lgpl: Remove.
28136         * MODULES.html.sh (func_all_modules): Adjust.
28137         * check-module (find_included_lib_files): Adjust.
28138         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28139
28140 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28141
28142         copy-acl: enhance Solaris ACL error handling
28143         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28144         * lib/set-mode-acl.c (qset_acl): Likewise.
28145
28146 2010-03-02  Bruno Haible  <bruno@clisp.org>
28147
28148         spawn: Don't override the system defined values on FreeBSD 8.
28149         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28150         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28151         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28152         if HAVE_POSIX_SPAWN is 1.
28153         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28154
28155 2010-03-01  Bruno Haible  <bruno@clisp.org>
28156
28157         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28158         regarding Automake.
28159
28160 2010-02-25  Bruno Haible  <bruno@clisp.org>
28161
28162         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28163         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28164         setting, not afterwards.
28165         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28166
28167 2010-02-24  Eric Blake  <eblake@redhat.com>
28168
28169         bootstrap, git-version-gen: use timestamp
28170         * build-aux/git-version-gen (scriptversion): Force UTC.
28171         * build-aux/bootstrap (scriptversion): New variable.
28172
28173         bootstrap: allow older git
28174         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28175         older than 1.6.4.  Requested by the libvirt project.
28176
28177 2010-02-23  Eric Blake  <eblake@redhat.com>
28178
28179         warn-on-use: work with old autoconf
28180         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28181         AS_VAR semantics of autoconf 2.60.
28182         Reported by Bruno Haible.
28183
28184         bootstrap: improve some comments
28185         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28186         clarification comments.
28187
28188         gettimeofday: provide correct function
28189         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28190         when replacement is declared, otherwise provide gettimeofday.
28191         Reported by Michael Goffioul.
28192
28193 2010-02-23  Jim Meyering  <meyering@redhat.com>
28194
28195         lib-ignore: relax license to "unlimited", not LGPLv2+
28196         * modules/lib-ignore (License): Relax to "unlimited".
28197
28198 2010-02-23  Jim Meyering  <meyering@redhat.com>
28199
28200         lib-ignore: relax license to LGPLv2+
28201         * modules/lib-ignore (License): Relax to LGPLv2+.
28202
28203 2010-02-22  Eric Blake  <eblake@redhat.com>
28204
28205         lseek: avoid bash 3.2 broken pipe bug
28206         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28207         warning from bash 3.2.
28208         Reported by Ben Pfaff, with analysis from Bruno Haible.
28209
28210         bootstrap: support non-FSF copyright holder
28211         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28212         bootstrap.conf override of COPYRIGHT_HOLDER.
28213         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28214
28215         bootstrap: interoperate with gettext 0.14.1
28216         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28217
28218         bootstrap: allow for alternate submodule location
28219         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28220         hardcoding submodule location.
28221         (gnulib_mk): Allow direct use of Makefile.am.
28222
28223         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28224         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28225         rather than reconfiguring where the submodule points.
28226
28227         gettimeofday: restore support for platforms that lack function
28228         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28229         replacement if function is missing.
28230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28231         * modules/sys_time (Makefile.am): Substitute it.
28232         * lib/sys_time.in.h (gettimeofday): Check it.
28233         Reported by Michael Goffioul.
28234
28235 2010-02-21  Bruno Haible  <bruno@clisp.org>
28236
28237         * lib/stdio.in.h (obstack_printf): Fix typo.
28238
28239 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28240
28241         vc-list-files: use bzr ls's -R option
28242         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28243         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28244
28245 2010-02-21  Jim Meyering  <meyering@redhat.com>
28246
28247         init.sh: fix EXEEXT shims to work also for names like test-prog
28248         * tests/init.sh: Re-exec a better shell, when needed.
28249         If the current shell lacks support for posix $(...), an init.sh-using
28250         test will now try to find a shell that supports that.  If EXEEXT is
28251         nonempty, we also require support for hyphen-in-alias-name and shell
28252         substitutions like ${var#glob}.  Failure to find such a shell results
28253         in a skipped test.
28254
28255 2010-02-21  Bruno Haible  <bruno@clisp.org>
28256
28257         Really work around around "broken pipe" error message from bash 3.2.
28258         * gnulib-tool (func_reset_sigpipe): Remove function.
28259         (echo): In bash 3.2, define to a function that uses printf.
28260         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28261
28262 2010-02-20  Bruno Haible  <bruno@clisp.org>
28263
28264         Restore support for automake 1.9.6 with autoconf 2.61.
28265         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28266         Reported by James Youngman <jay@gnu.org>.
28267
28268 2010-02-20  Bruno Haible  <bruno@clisp.org>
28269
28270         Improve *printf warning condition.
28271         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28272         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28273         and the function is overridden due to SIGPIPE emulation.
28274
28275 2010-02-20  Bruno Haible  <bruno@clisp.org>
28276
28277         * lib/stdio.in.h: Tweak comments.
28278
28279 2010-02-19  Bruno Haible  <bruno@clisp.org>
28280
28281         Make it easier to find modules. New gnulib-tool option '--find'.
28282         * gnulib-tool: New option --find.
28283         (func_usage): Document it.
28284         (func_sanitize_modulelist): New function, extracted from
28285         func_all_modules.
28286         (func_all_modules): Invoke it.
28287         * doc/gnulib-tool.texi (Which modules?): New node.
28288
28289 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28290
28291         * lib/sys_select.in.h: Provide select replacement even if
28292         sys/select.h exists on a system, for Interix.
28293
28294 2010-02-18  Jim Meyering  <meyering@redhat.com>
28295
28296         init.sh: don't use $(...) just yet
28297         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28298         to accommodate e.g., Solaris' /bin/sh.
28299
28300 2010-02-17  Bruno Haible  <bruno@clisp.org>
28301
28302         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28303         Reported by Ludovic Courtès <ludo@gnu.org>.
28304
28305 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28306
28307         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28308         linking with -lintl.
28309
28310 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28311
28312         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28313         if not provided by the system's netdb.h.  Reported by
28314         ludo@gnu.org (Ludovic Courtès).
28315
28316 2010-02-15  Jim Meyering  <meyering@redhat.com>
28317
28318         init.sh: improve portability and efficiency
28319         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28320         "dummy" in a for loop.
28321         Use '!', not '^' to select the complement of a character set used
28322         in a "case" statement.
28323         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28324         Suggestions from Eric Blake.
28325
28326         init.sh: automatically accommodate programs with the .exe suffix
28327         Automatically arrange for an invocation of "prog" to execute the
28328         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28329         may use the simpler "prog", yet still work when built on a system
28330         that requires specifying the added suffix.
28331         Do this by constructing a function named "prog" that invokes
28332         "prog.exe" for each .exe file in selected directories.
28333         * tests/init.sh (find_exe_basenames_): New function.
28334         (create_exe_shim_functions_): New function.
28335         (path_prepend_): Use it.
28336
28337         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28338         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28339         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28340
28341 2010-02-14  Jim Meyering  <meyering@redhat.com>
28342
28343         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28344         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28345         (sc_prohibit_hash_pjw_without_use): New rule.
28346
28347         maint.mk: allow the default upload destination dir to be overridden
28348         * top/maint.mk (upload_dest_dir_): Define with a default that
28349         preserves the status quo.
28350         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28351         Reported by Peter Simons.
28352
28353         maint.mk: prohibit inclusion of "hash.h" without_use
28354         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28355
28356 2010-02-10  Jim Meyering  <meyering@redhat.com>
28357
28358         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28359         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28360
28361 2010-02-09  Eric Blake  <ebb9@byu.net>
28362         and Bruno Haible  <bruno@clisp.org>
28363
28364         obstack-printf-posix: ensure declaration
28365         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28366         extracted from gl_FUNC_OBSTACK_PRINTF.
28367         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28368         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28369         Likewise.
28370         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28371         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28372         0.
28373
28374 2010-02-08  Bruno Haible  <bruno@clisp.org>
28375
28376         gnulib-tool: Fix typo in 2010-02-07 commit.
28377         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28378         Reported by Eric Blake.
28379
28380 2010-02-07  Bruno Haible  <bruno@clisp.org>
28381
28382         gnulib-tool: Fix up caching patches.
28383         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28384         option --no-cache. Use associative arrays when supported by the shell.
28385         (sed_comments): New variable.
28386         (modcache): Renamed from do_cache.
28387         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28388         abbreviate unnecessarily.
28389         (have_associative): New variable.
28390         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28391         way also for ksh and zsh.
28392         (func_init_sed_convert_to_cache_statements): New function, extracted
28393         from func_cache_lookup_module. Add support for associative arrays.
28394         Don't set the c_MODULE_cached variable here. Ignore all lines before
28395         the first field header. Remove only the final newline, not all trailing
28396         newlines. Support empty fields correctly. Limit the use of 'eval' to
28397         assignments.
28398         (func_get_description, func_get_status, func_get_notice,
28399         func_get_applicability, func_get_filelist, func_get_dependencies,
28400         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28401         func_get_automake_snippet, func_get_include_directive,
28402         func_get_link_directive, func_get_license, func_get_maintainer):
28403         Update documentation. List the unoptimized code first. Add support for
28404         associative arrays. Limit the use of 'eval' to assignments.
28405         (func_get_applicability): Undo stylistic pessimisations.
28406         (func_get_automake_snippet, func_get_include_directive): Reduce code
28407         duplication.
28408         (func_modules_transitive_closure, func_modules_add_dummy,
28409         func_modules_notice, func_modules_to_filelist, func_add_file,
28410         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28411         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28412         func_create_testdir, func_create_megatestdir): Update documentation.
28413
28414 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28415
28416         * gnulib-tool (func_cache_lookup_module): Store the module name
28417         belonging to the cache variable; error out if two different
28418         module names map to the same cache variable name.
28419
28420 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28421
28422         gnulib-tool: Make caching optional.
28423         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28424         Update matching short versions of --no-changelog.
28425         (func_usage): Update.
28426         (sed_extract_cache_prog): Renamed from ...
28427         (sed_extract_prog): ... this; revert to old extraction script.
28428         (func_get_description, func_get_status)
28429         (func_get_notice, func_get_applicability, func_get_filelist)
28430         (func_get_dependencies, func_get_autoconf_early_snippet)
28431         (func_get_autoconf_snippet, func_get_automake_snippet)
28432         (func_get_include_directive, func_get_link_directive)
28433         (func_get_license, func_get_maintainer): If $do_cache is false,
28434         use old, non-caching extraction scripts.
28435         Suggestion by Bruno Haible.
28436
28437 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28438
28439         gnulib-tool: cache module metainformation.
28440         * gnulib-tool (sed_extract_prog): Match newline before each
28441         header, and rewrite header to a shell variable suffix.
28442         (func_cache_var, func_cache_lookup_module): New functions,
28443         to turn a module name into a cache variable prefix, and to
28444         look up and cache module metainformation.
28445         (func_get_description, func_get_status)
28446         (func_get_notice, func_get_applicability, func_get_filelist)
28447         (func_get_dependencies, func_get_autoconf_early_snippet)
28448         (func_get_autoconf_snippet, func_get_automake_snippet)
28449         (func_get_include_directive, func_get_link_directive)
28450         (func_get_license, func_get_maintainer): Use
28451         func_cache_lookup_module.
28452
28453 2010-02-07  Bruno Haible  <bruno@clisp.org>
28454
28455         fnctl: Fix missing dependency.
28456         * modules/fcntl (Depends-on): Add getdtablesize.
28457         Reported by John W. Eaton <jwe@gnu.org>.
28458
28459 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28460
28461         Argp: fix recognition of short alias options.
28462
28463         * lib/argp-parse.c (convert_options): Fix improper use of
28464         `|' between character values.
28465         * tests/test-argp.c (group1_option): New alias option
28466         --read (-r).
28467         (group1_parser): Special handling for 'r'.
28468         (test15): New test case.
28469         (test_fun): Add test15.
28470         * tests/test-argp-2.sh: Update expected --help and --usage
28471         outputs.
28472
28473 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28474
28475         * tests/test-argp.c: Fix indentation.
28476
28477 2010-02-04  Eric Blake  <ebb9@byu.net>
28478
28479         gettimeofday: expose type of second argument
28480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28481         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28482         * tests/test-gettimeofday.c: Use it to silence warning.
28483         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28484         the issue.
28485
28486 2010-02-03  Jim Meyering  <meyering@redhat.com>
28487
28488         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28489         * lib/regcomp.c (TYPE_SIGNED): Define.
28490         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28491
28492         regcomp.c: avoid a new -Wshadow warning
28493         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28494
28495 2010-02-01  Jim Meyering  <meyering@redhat.com>
28496
28497         removing useless parentheses in cpp #define directives
28498         For motivation, see commit c0221df4, "define STREQ(a,b)
28499         consistently, removing useless parentheses"
28500         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28501         * lib/mountlist.c (MNT_IGNORE): Likewise.
28502         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28503
28504 2010-02-01  Eric Blake  <ebb9@byu.net>
28505
28506         sys_time: use link-warning
28507         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28508         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28509         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28510         * modules/sys_time (Depends-on): Add warn-on-use.
28511         (Makefile.am): Always build replacement.
28512         (configure.ac): Update substitutions.
28513         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28514         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28515         bother with SYS_TIME_H.
28516         * modules/gettimeofday (configure.ac): Declare indicator.
28517         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28518         in use.
28519
28520         closein-tests: silence compiler warning
28521         * tests/test-closein.c (main): Ignore fread result.
28522         * modules/closein-tests (Depends-on): Add ignore-value.
28523
28524         tests: silence warning about system return
28525         * tests/test-areadlink-with-size.c (main): Ignore system result.
28526         * tests/test-areadlink.c (main): Likewise.
28527         * tests/test-areadlinkat-with-size.c (main): Likewise.
28528         * tests/test-areadlinkat.c (main): Likewise.
28529         * tests/test-canonicalize-lgpl.c (main): Likewise.
28530         * tests/test-canonicalize.c (main): Likewise.
28531         * tests/test-chown.c (main): Likewise.
28532         * tests/test-fchownat.c (main): Likewise.
28533         * tests/test-fdutimensat.c (main): Likewise.
28534         * tests/test-fstatat.c (main): Likewise.
28535         * tests/test-futimens.c (main): Likewise.
28536         * tests/test-lchown.c (main): Likewise.
28537         * tests/test-link.c (main): Likewise.
28538         * tests/test-linkat.c (main): Likewise.
28539         * tests/test-lstat.c (main): Likewise.
28540         * tests/test-mkdir.c (main): Likewise.
28541         * tests/test-mkdirat.c (main): Likewise.
28542         * tests/test-mkfifo.c (main): Likewise.
28543         * tests/test-mkfifoat.c (main): Likewise.
28544         * tests/test-mknod.c (main): Likewise.
28545         * tests/test-readlink.c (main): Likewise.
28546         * tests/test-remove.c (main): Likewise.
28547         * tests/test-rename.c (main): Likewise.
28548         * tests/test-renameat.c (main): Likewise.
28549         * tests/test-rmdir.c (main): Likewise.
28550         * tests/test-symlink.c (main): Likewise.
28551         * tests/test-symlinkat.c (main): Likewise.
28552         * tests/test-unlink.c (main): Likewise.
28553         * tests/test-unlinkat.c (main): Likewise.
28554         * tests/test-utimens.c (main): Likewise.
28555         * tests/test-utimensat.c (main): Likewise.
28556         * modules/areadlink-tests (Depends-on): Add ignore-value.
28557         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28558         * modules/areadlinkat-tests (Depends-on): Likewise.
28559         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28560         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28561         * modules/canonicalize-tests (Depends-on): Likewise.
28562         * modules/chown-tests (Depends-on): Likewise.
28563         * modules/fdutimensat-tests (Depends-on): Likewise.
28564         * modules/futimens-tests (Depends-on): Likewise.
28565         * modules/lchown-tests (Depends-on): Likewise.
28566         * modules/link-tests (Depends-on): Likewise.
28567         * modules/linkat-tests (Depends-on): Likewise.
28568         * modules/lstat-tests (Depends-on): Likewise.
28569         * modules/mkdir-tests (Depends-on): Likewise.
28570         * modules/mkfifo-tests (Depends-on): Likewise.
28571         * modules/mkfifoat-tests (Depends-on): Likewise.
28572         * modules/mknod-tests (Depends-on): Likewise.
28573         * modules/openat-tests (Depends-on): Likewise.
28574         * modules/readlink-tests (Depends-on): Likewise.
28575         * modules/remove-tests (Depends-on): Likewise.
28576         * modules/rename-tests (Depends-on): Likewise.
28577         * modules/renameat-tests (Depends-on): Likewise.
28578         * modules/rmdir-tests (Depends-on): Likewise.
28579         * modules/symlink-tests (Depends-on): Likewise.
28580         * modules/symlinkat-tests (Depends-on): Likewise.
28581         * modules/unlink-tests (Depends-on): Likewise.
28582         * modules/utimens-tests (Depends-on): Likewise.
28583         * modules/utimensat-tests (Depends-on): Likewise.
28584
28585 2010-01-31  Bruno Haible  <bruno@clisp.org>
28586
28587         Perform the same test for many <math.h> functions.
28588         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28589         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28590         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28591         of gl_MATHFUNC.
28592         * modules/acos (configure.ac): Likewise.
28593         * modules/asin (configure.ac): Likewise.
28594         * modules/atan (configure.ac): Likewise.
28595         * modules/atan2 (configure.ac): Likewise.
28596         * modules/cbrt (configure.ac): Likewise.
28597         * modules/copysign (configure.ac): Likewise.
28598         * modules/cos (configure.ac): Likewise.
28599         * modules/cosh (configure.ac): Likewise.
28600         * modules/erf (configure.ac): Likewise.
28601         * modules/erfc (configure.ac): Likewise.
28602         * modules/exp (configure.ac): Likewise.
28603         * modules/fmod (configure.ac): Likewise.
28604         * modules/hypot (configure.ac): Likewise.
28605         * modules/j0 (configure.ac): Likewise.
28606         * modules/j1 (configure.ac): Likewise.
28607         * modules/jn (configure.ac): Likewise.
28608         * modules/lgamma (configure.ac): Likewise.
28609         * modules/log (configure.ac): Likewise.
28610         * modules/log10 (configure.ac): Likewise.
28611         * modules/log1p (configure.ac): Likewise.
28612         * modules/pow (configure.ac): Likewise.
28613         * modules/remainder (configure.ac): Likewise.
28614         * modules/sin (configure.ac): Likewise.
28615         * modules/sinh (configure.ac): Likewise.
28616         * modules/tan (configure.ac): Likewise.
28617         * modules/tanh (configure.ac): Likewise.
28618         * modules/y0 (configure.ac): Likewise.
28619         * modules/y1 (configure.ac): Likewise.
28620         * modules/yn (configure.ac): Likewise.
28621         Suggested by Paolo Bonzini.
28622
28623 2010-01-31  Bruno Haible  <bruno@clisp.org>
28624
28625         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28626
28627 2010-01-31  Bruno Haible  <bruno@clisp.org>
28628
28629         Work around getdelim() bug on FreeBSD 8.0.
28630         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28631         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28632         not work.
28633         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28634         is 1.
28635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28636         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28637         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28638         a non-zero size.
28639         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28640
28641 2010-01-31  Bruno Haible  <bruno@clisp.org>
28642
28643         Work around getline() bug on FreeBSD 8.0.
28644         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28645         and a non-zero size.
28646         * tests/test-getline.c (main): Likewise.
28647         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28648         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28649
28650 2010-01-28  Eric Blake  <ebb9@byu.net>
28651
28652         regex: fix build failure
28653         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28654         platforms.
28655
28656 2010-01-28  Jim Meyering  <meyering@redhat.com>
28657
28658         regex: do not ignore memory allocation failure
28659         * lib/regex_internal.c (create_cd_newstate): Detect
28660         re_node_set_init_copy failure.   Extracted from glibc commit
28661         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28662
28663         regex: sync more white-space changes from libc
28664         * lib/regex_internal.c: White-space only changes.
28665         * lib/regexec.c: Likewise.
28666
28667         regex: add many uses of __attribute_warn_unused_result__
28668         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28669         * lib/regexec.c: Likewise.
28670         Extracted from a messy glibc commit.
28671
28672         regcomp.c: spelling and merge-artifact from glibc
28673         * lib/regcomp.c: Merge remainder of glibc's
28674         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28675
28676         regcomp.c: sync white-space changes from glibc
28677         * lib/regcomp.c: Merge to accommodate white space
28678         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28679
28680         regcomp.c: do not ignore internal return values
28681         * lib/regcomp.c: Do not ignore internal return values.
28682         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28683         but without its white-space changes and spelling fixes.
28684
28685         regex_internal.h: define __attribute_warn_unused_result__
28686         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28687
28688         maint: add a syntax-check rule to check for vulnerable Makefile.in
28689         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28690
28691 2010-01-27  Jim Meyering  <meyering@redhat.com>
28692
28693         ncftpput-ftp: clean up spaces
28694         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28695         Remove trailing blanks.
28696
28697 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28698
28699         * build-aux/git-version-gen: Fix copyright statement.
28700         * build-aux/gnupload: Likewise.
28701         * tests/test-arcfour.c: Likewise.
28702         * tests/test-arctwo.c: Likewise.
28703         * tests/test-count-one-bits.c: Likewise.
28704         * tests/test-crc.c: Likewise.
28705         * tests/test-des.c: Likewise.
28706         * tests/test-gc-arcfour.c: Likewise.
28707         * tests/test-gc-arctwo.c: Likewise.
28708         * tests/test-gc-des.c: Likewise.
28709         * tests/test-gc-hmac-md5.c: Likewise.
28710         * tests/test-gc-hmac-sha1.c: Likewise.
28711         * tests/test-gc-md2.c: Likewise.
28712         * tests/test-gc-md4.c: Likewise.
28713         * tests/test-gc-md5.c: Likewise.
28714         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28715         * tests/test-gc-rijndael.c: Likewise.
28716         * tests/test-gc-sha1.c: Likewise.
28717         * tests/test-gc.c: Likewise.
28718         * tests/test-gethostname.c: Likewise.
28719         * tests/test-gettimeofday.c: Likewise.
28720         * tests/test-hash.c: Likewise.
28721         * tests/test-hmac-md5.c: Likewise.
28722         * tests/test-hmac-sha1.c: Likewise.
28723         * tests/test-md2.c: Likewise.
28724         * tests/test-md4.c: Likewise.
28725         * tests/test-md5.c: Likewise.
28726         * tests/test-memchr.c: Likewise.
28727         * tests/test-memchr2.c: Likewise.
28728         * tests/test-memcmp.c: Likewise.
28729         * tests/test-memmem.c: Likewise.
28730         * tests/test-memrchr.c: Likewise.
28731         * tests/test-rawmemchr.c: Likewise.
28732         * tests/test-read-file.c: Likewise.
28733         * tests/test-rijndael.c: Likewise.
28734         * tests/test-sockets.c: Likewise.
28735         * tests/test-strchrnul.c: Likewise.
28736         * tests/test-strstr.c: Likewise.
28737         * tests/test-strtod.c: Likewise.
28738         * build-aux/ncftpput-ftp: Likewise.
28739
28740 2010-01-26  Eric Blake  <ebb9@byu.net>
28741
28742         ignore-value: update recommended header name
28743         * modules/ignore-value (Include): Only use <> for headers that
28744         exist in glibc.
28745
28746 2010-01-26  Jim Meyering  <meyering@redhat.com>
28747
28748         test-userspec.c: avoid compiler warnings
28749         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28750         and "initialization discards qualifiers..." warnings.
28751         Put the first "uid" in its own scope, and make char* members "const".
28752
28753 2010-01-25  Bruno Haible  <bruno@clisp.org>
28754
28755         gnulib-tool: Make warning diagnostics consistent.
28756         * gnulib-tool (func_warning): New function.
28757         Use it everywhere where gnulib-tool produces output to stderr and it is
28758         not a fatal error.
28759
28760 2010-01-25  Bruno Haible  <bruno@clisp.org>
28761
28762         Fix test dependencies.
28763         * modules/xstrtol-tests (Depends-on): Add inttypes.
28764         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28765
28766 2010-01-25 Pádraig Brady <P@draigBrady.com>
28767
28768         syntax-check: detect incorrect boolean macro values in config.h
28769         * modules/maintainer-makefile (configure.ac): Parameterize the location
28770         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28771         The logic is from Eric Blake and the location indicated by Jim Meyering.
28772         Note the more natural CONFIG_HEADER name is prohibited by automake
28773         for backwards compatibility reasons.
28774         * top/maint.mk (sc_Wundef_boolean): New rule.
28775
28776 2010-01-25  Jim Meyering  <meyering@redhat.com>
28777
28778         bootstrap: detect MacOS 10.6's shasum, too
28779         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28780         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28781
28782 2010-01-23  Jim Meyering  <meyering@redhat.com>
28783
28784         xstrtoll: new module
28785         * modules/xstrtoll: New file.
28786         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28787         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28788         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28789         ./configure fails if you use this module and lack "long long".
28790         * modules/xstrtoll-tests: New module.
28791         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28792         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28793         new init.sh-based test framework.
28794
28795 2010-01-24  Bruno Haible  <bruno@clisp.org>
28796
28797         Tests for module 'yn'.
28798         * modules/yn-tests: New file.
28799         * tests/test-yn.c: New file.
28800
28801         Tests for module 'y1'.
28802         * modules/y1-tests: New file.
28803         * tests/test-y1.c: New file.
28804
28805         Tests for module 'y0'.
28806         * modules/y0-tests: New file.
28807         * tests/test-y0.c: New file.
28808
28809         Tests for module 'tanh'.
28810         * modules/tanh-tests: New file.
28811         * tests/test-tanh.c: New file.
28812
28813         Tests for module 'tan'.
28814         * modules/tan-tests: New file.
28815         * tests/test-tan.c: New file.
28816
28817         Tests for module 'sqrt'.
28818         * modules/sqrt-tests: New file.
28819         * tests/test-sqrt.c: New file.
28820
28821         Tests for module 'sinh'.
28822         * modules/sinh-tests: New file.
28823         * tests/test-sinh.c: New file.
28824
28825         Tests for module 'sin'.
28826         * modules/sin-tests: New file.
28827         * tests/test-sin.c: New file.
28828
28829         Tests for module 'rint'.
28830         * modules/rint-tests: New file.
28831         * tests/test-rint.c: New file.
28832
28833         Tests for module 'remainder'.
28834         * modules/remainder-tests: New file.
28835         * tests/test-remainder.c: New file.
28836
28837         Tests for module 'pow'.
28838         * modules/pow-tests: New file.
28839         * tests/test-pow.c: New file.
28840
28841         Tests for module 'nextafter'.
28842         * modules/nextafter-tests: New file.
28843         * tests/test-nextafter.c: New file.
28844
28845         Tests for module 'modf'.
28846         * modules/modf-tests: New file.
28847         * tests/test-modf.c: New file.
28848
28849         Tests for module 'logb'.
28850         * modules/logb-tests: New file.
28851         * tests/test-logb.c: New file.
28852
28853         Tests for module 'log1p'.
28854         * modules/log1p-tests: New file.
28855         * tests/test-log1p.c: New file.
28856
28857         Tests for module 'log10'.
28858         * modules/log10-tests: New file.
28859         * tests/test-log10.c: New file.
28860
28861         Tests for module 'log'.
28862         * modules/log-tests: New file.
28863         * tests/test-log.c: New file.
28864
28865         Tests for module 'lgamma'.
28866         * modules/lgamma-tests: New file.
28867         * tests/test-lgamma.c: New file.
28868
28869         Tests for module 'ldexp'.
28870         * modules/ldexp-tests: New file.
28871         * tests/test-ldexp.c: New file.
28872
28873         Tests for module 'jn'.
28874         * modules/jn-tests: New file.
28875         * tests/test-jn.c: New file.
28876
28877         Tests for module 'j1'.
28878         * modules/j1-tests: New file.
28879         * tests/test-j1.c: New file.
28880
28881         Tests for module 'j0'.
28882         * modules/j0-tests: New file.
28883         * tests/test-j0.c: New file.
28884
28885         Tests for module 'hypot'.
28886         * modules/hypot-tests: New file.
28887         * tests/test-hypot.c: New file.
28888
28889         Tests for module 'fmod'.
28890         * modules/fmod-tests: New file.
28891         * tests/test-fmod.c: New file.
28892
28893         Tests for module 'fabs'.
28894         * modules/fabs-tests: New file.
28895         * tests/test-fabs.c: New file.
28896
28897         Tests for module 'exp'.
28898         * modules/exp-tests: New file.
28899         * tests/test-exp.c: New file.
28900
28901         Tests for module 'erfc'.
28902         * modules/erfc-tests: New file.
28903         * tests/test-erfc.c: New file.
28904
28905         Tests for module 'erf'.
28906         * modules/erf-tests: New file.
28907         * tests/test-erf.c: New file.
28908
28909         Tests for module 'cosh'.
28910         * modules/cosh-tests: New file.
28911         * tests/test-cosh.c: New file.
28912
28913         Tests for module 'cos'.
28914         * modules/cos-tests: New file.
28915         * tests/test-cos.c: New file.
28916
28917         Tests for module 'copysign'.
28918         * modules/copysign-tests: New file.
28919         * tests/test-copysign.c: New file.
28920
28921         Tests for module 'cbrt'.
28922         * modules/cbrt-tests: New file.
28923         * tests/test-cbrt.c: New file.
28924
28925         Tests for module 'atan2'.
28926         * modules/atan2-tests: New file.
28927         * tests/test-atan2.c: New file.
28928
28929         Tests for module 'atan'.
28930         * modules/atan-tests: New file.
28931         * tests/test-atan.c: New file.
28932
28933         Tests for module 'asin'.
28934         * modules/asin-tests: New file.
28935         * tests/test-asin.c: New file.
28936
28937         Tests for module 'acos'.
28938         * modules/acos-tests: New file.
28939         * tests/test-acos.c: New file.
28940
28941 2010-01-24  Bruno Haible  <bruno@clisp.org>
28942
28943         Fix tests for common <math.h> functions.
28944         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28945         code snippet that references the function pointer, rather than merely
28946         calling the function. Substitute the FUNC_LIBM variable.
28947         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28948         * modules/acos (configure.ac): Likewise.
28949         * modules/asin (configure.ac): Likewise.
28950         * modules/atan (configure.ac): Likewise.
28951         * modules/atan2 (configure.ac): Likewise.
28952         * modules/cbrt (configure.ac): Likewise.
28953         * modules/copysign (configure.ac): Likewise.
28954         * modules/cos (configure.ac): Likewise.
28955         * modules/cosh (configure.ac): Likewise.
28956         * modules/erf (configure.ac): Likewise.
28957         * modules/erfc (configure.ac): Likewise.
28958         * modules/exp (configure.ac): Likewise.
28959         * modules/fabs (configure.ac): Likewise.
28960         * modules/fmod (configure.ac): Likewise.
28961         * modules/hypot (configure.ac): Likewise.
28962         * modules/j0 (configure.ac): Likewise.
28963         * modules/j1 (configure.ac): Likewise.
28964         * modules/jn (configure.ac): Likewise.
28965         * modules/ldexp (configure.ac): Likewise.
28966         * modules/lgamma (configure.ac): Likewise.
28967         * modules/log (configure.ac): Likewise.
28968         * modules/log10 (configure.ac): Likewise.
28969         * modules/log1p (configure.ac): Likewise.
28970         * modules/logb (configure.ac): Likewise.
28971         * modules/modf (configure.ac): Likewise.
28972         * modules/nextafter (configure.ac): Likewise.
28973         * modules/pow (configure.ac): Likewise.
28974         * modules/remainder (configure.ac): Likewise.
28975         * modules/rint (configure.ac): Likewise.
28976         * modules/sin (configure.ac): Likewise.
28977         * modules/sinh (configure.ac): Likewise.
28978         * modules/tan (configure.ac): Likewise.
28979         * modules/tanh (configure.ac): Likewise.
28980         * modules/y0 (configure.ac): Likewise.
28981         * modules/y1 (configure.ac): Likewise.
28982         * modules/yn (configure.ac): Likewise.
28983
28984 2010-01-24  Bruno Haible  <bruno@clisp.org>
28985
28986         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28987         * tests/test-acosl.c (x): New variable.
28988         (main): Store argument in x and fetch it from x.
28989         * tests/test-asinl.c (x): New variable.
28990         (main): Store argument in x and fetch it from x.
28991         * tests/test-atanl.c (x): New variable.
28992         (main): Store argument in x and fetch it from x.
28993         * tests/test-cosl.c (x): New variable.
28994         (main): Store argument in x and fetch it from x.
28995         * tests/test-expl.c (x): New variable.
28996         (main): Store argument in x and fetch it from x.
28997         * tests/test-logl.c (x): New variable.
28998         (main): Store argument in x and fetch it from x.
28999         * tests/test-sinl.c (x): New variable.
29000         (main): Store argument in x and fetch it from x.
29001         * tests/test-sqrtl.c (x): New variable.
29002         (main): Store argument in x and fetch it from x.
29003         * tests/test-tanl.c (x): New variable.
29004         (main): Store argument in x and fetch it from x.
29005
29006 2010-01-24  Bruno Haible  <bruno@clisp.org>
29007
29008         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29009         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29010         assignments to the initial TESTS_ENVIRONMENT.
29011         * doc/gnulib.texi (Unit test modules): Document it.
29012         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29013         TESTS_ENVIRONMENT.
29014         * modules/btowc-tests (Makefile.am): Likewise.
29015         * modules/c-stack-tests (Makefile.am): Likewise.
29016         * modules/c-strcase-tests (Makefile.am): Likewise.
29017         * modules/copy-file-tests (Makefile.am): Likewise.
29018         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29019         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29020         * modules/mbrtowc-tests (Makefile.am): Likewise.
29021         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29022         * modules/mbscasestr-tests (Makefile.am): Likewise.
29023         * modules/mbschr-tests (Makefile.am): Likewise.
29024         * modules/mbscspn-tests (Makefile.am): Likewise.
29025         * modules/mbsinit-tests (Makefile.am): Likewise.
29026         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29027         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29028         * modules/mbspbrk-tests (Makefile.am): Likewise.
29029         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29030         * modules/mbsrchr-tests (Makefile.am): Likewise.
29031         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29032         * modules/mbsspn-tests (Makefile.am): Likewise.
29033         * modules/mbsstr-tests (Makefile.am): Likewise.
29034         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29035         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29036         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29037         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29038         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29039         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29040         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29041         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29042         * modules/wcrtomb-tests (Makefile.am): Likewise.
29043         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29044         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29045         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29046         assignments from TESTS_ENVIRONMENT.
29047         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29048         augmentation.
29049         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29050         * modules/atexit-tests (Makefile.am): Likewise.
29051         * modules/binary-io-tests (Makefile.am): Likewise.
29052         * modules/closein-tests (Makefile.am): Likewise.
29053         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29054         * modules/exclude-tests (Makefile.am): Likewise.
29055         * modules/fflush-tests (Makefile.am): Likewise.
29056         * modules/fpending-tests (Makefile.am): Likewise.
29057         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29058         * modules/freadahead-tests (Makefile.am): Likewise.
29059         * modules/freadptr-tests (Makefile.am): Likewise.
29060         * modules/freadseek-tests (Makefile.am): Likewise.
29061         * modules/fseek-tests (Makefile.am): Likewise.
29062         * modules/fseeko-tests (Makefile.am): Likewise.
29063         * modules/ftell-tests (Makefile.am): Likewise.
29064         * modules/ftello-tests (Makefile.am): Likewise.
29065         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29066         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29067         * modules/lseek-tests (Makefile.am): Likewise.
29068         * modules/parse-duration-tests (Makefile.am): Likewise.
29069         * modules/perror-tests (Makefile.am): Likewise.
29070         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29071         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29072         * modules/pipe-tests (Makefile.am): Likewise.
29073         * modules/pread-tests (Makefile.am): Likewise.
29074         * modules/printf-posix-tests (Makefile.am): Likewise.
29075         * modules/select-tests (Makefile.am): Likewise.
29076         * modules/sigpipe-tests (Makefile.am): Likewise.
29077         * modules/tsearch-tests (Makefile.am): Likewise.
29078         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29079         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29080         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29081         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29082         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29083         * modules/version-etc-tests (Makefile.am): Likewise.
29084         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29085         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29086         * modules/xalloc-die-tests (Makefile.am): Likewise.
29087         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29088         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29089         * modules/xstrtol-tests (Makefile.am): Likewise.
29090         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29091         * modules/yesno-tests (Makefile.am): Likewise.
29092         Suggested by Jim Meyering.
29093
29094 2010-01-24  Bruno Haible  <bruno@clisp.org>
29095
29096         More documentation.
29097         * doc/gnulib.texi (Writing modules): New chapter.
29098         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29099         the new chapter.
29100
29101 2010-01-24  Jim Meyering  <meyering@redhat.com>
29102
29103         maint.mk: do not prepend "./" after filtering
29104         * top/maint.mk (_prepend_srcdir_prefix): New variable
29105         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29106         "./" when $(srcdir) is ".".
29107
29108         define STREQ(a,b) consistently, removing useless parentheses
29109         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29110         since the only risk is that "a" or "b" contains an unparenthesized
29111         comma, but if either did that, STREQ would have 3 or more arguments.
29112         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29113         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29114         * lib/hash-triple.c (STREQ): Likewise.
29115         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29116         * lib/getugroups.c (STREQ): Likewise.
29117
29118 2010-01-23  Jim Meyering  <meyering@redhat.com>
29119
29120         maint.mk: fix syntax-check in a non-srcdir build directory
29121         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29122         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29123
29124 2010-01-22  Jim Meyering  <meyering@redhat.com>
29125
29126         userspec: add unit tests
29127         * tests/test-userspec.c: New file.
29128         * modules/userspec-tests: Likewise.
29129
29130 2010-01-21  Jim Meyering  <meyering@redhat.com>
29131
29132         maint.mk: handle source file names containing "." robustly
29133         * top/maint.mk (_dot_escaped_srcdir): Define.
29134         (VC_LIST): Use it in LHS of sed substitution.
29135
29136 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29137
29138         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29139         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29140         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29141         from a non-srcdir build.
29142
29143 2010-01-20  Eric Blake  <ebb9@byu.net>
29144
29145         warn-on-use: use instead of link-warning
29146         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29147         * modules/unistd (Depends-on, Makefile.am): Likewise.
29148         * modules/arpa_inet (Depends-on): Replace link-warning with
29149         warn-on-use.
29150         (Makefile.am): Update rules accordingly.
29151         * modules/ctype (Depends-on, Makefile.am): Likewise.
29152         * modules/dirent (Depends-on, Makefile.am): Likewise.
29153         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29154         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29155         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29156         * modules/locale (Depends-on, Makefile.am): Likewise.
29157         * modules/math (Depends-on, Makefile.am): Likewise.
29158         * modules/search (Depends-on, Makefile.am): Likewise.
29159         * modules/signal (Depends-on, Makefile.am): Likewise.
29160         * modules/spawn (Depends-on, Makefile.am): Likewise.
29161         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29162         * modules/string (Depends-on, Makefile.am): Likewise.
29163         * modules/strings (Depends-on, Makefile.am): Likewise.
29164         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29165         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29166         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29167         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29168         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29169         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29170         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29171         * modules/wchar (Depends-on, Makefile.am): Likewise.
29172         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29173         should be poisoned.
29174         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29175         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29176         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29177         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29178         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29179         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29180         * m4/math_h.m4 (gl_MATH_H): Likewise.
29181         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29182         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29183         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29184         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29185         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29186         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29187         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29188         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29191         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29194         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29195         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29196         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29197         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29198         GL_LINK_WARNING.
29199         * lib/ctype.in.h: Likewise.
29200         * lib/dirent.in.h: Likewise.
29201         * lib/fcntl.in.h: Likewise.
29202         * lib/inttypes.in.h: Likewise.
29203         * lib/langinfo.in.h: Likewise.
29204         * lib/locale.in.h: Likewise.
29205         * lib/math.in.h: Likewise.
29206         * lib/search.in.h: Likewise.
29207         * lib/signal.in.h: Likewise.
29208         * lib/spawn.in.h: Likewise.
29209         * lib/stdio.in.h: Likewise.
29210         * lib/stdlib.in.h: Likewise.
29211         * lib/string.in.h: Likewise.
29212         * lib/strings.in.h: Likewise.
29213         * lib/sys_file.in.h: Likewise.
29214         * lib/sys_ioctl.in.h: Likewise.
29215         * lib/sys_select.in.h: Likewise.
29216         * lib/sys_socket.in.h: Likewise.
29217         * lib/sys_stat.in.h: Likewise.
29218         * lib/sys_times.in.h: Likewise.
29219         * lib/sys_utsname.in.h: Likewise.
29220         * lib/unistd.in.h: Likewise.
29221         * lib/wchar.in.h: Likewise.
29222
29223 2010-01-20  Bruno Haible  <bruno@clisp.org>
29224
29225         Avoid duplicate -lm.
29226         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29227         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29229         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29230         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29231         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29232         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29233         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29234         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29235         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29236         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29237         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29238         Reported by Paolo Bonzini.
29239
29240 2010-01-19  Bruno Haible  <bruno@clisp.org>
29241
29242         langinfo, nl_langinfo: Relicense under LGPLv2+.
29243         * modules/langinfo (License): Change to LGPLv2+.
29244         * modules/nl_langinfo (License): Likewise.
29245         Patch by David Lutterkort <lutter@redhat.com>.
29246
29247 2010-01-19  Bruno Haible  <bruno@clisp.org>
29248
29249         Avoid compilation error with cc on OSF/1 5.1.
29250         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29251         statement, not before.
29252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29253
29254 2010-01-18  Bruno Haible  <bruno@clisp.org>
29255
29256         Avoid a link error due to the __printf__ symbol.
29257         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29258         and 2.6.x.
29259         (__format__, __printf__): Remove definitions.
29260         * lib/argp-fmtstream.h: Likewise.
29261         * lib/argp.h: Likewise.
29262         * lib/error.h: Likewise.
29263         * lib/vasnprintf.h: Likewise.
29264         * lib/xprintf.h: Likewise.
29265         * lib/xvasprintf.h: Likewise.
29266         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29267
29268 2010-01-18  Bruno Haible  <bruno@clisp.org>
29269
29270         Tests for module 'tanl'.
29271         * modules/tanl-tests: New file.
29272         * tests/test-tanl.c: New file.
29273
29274         Tests for module 'sqrtl'.
29275         * modules/sqrtl-tests: New file.
29276         * tests/test-sqrtl.c: New file.
29277
29278         Tests for module 'sinl'.
29279         * modules/sinl-tests: New file.
29280         * tests/test-sinl.c: New file.
29281
29282         Tests for module 'logl'.
29283         * modules/logl-tests: New file.
29284         * tests/test-logl.c: New file.
29285
29286         Tests for module 'expl'.
29287         * modules/expl-tests: New file.
29288         * tests/test-expl.c: New file.
29289
29290         Tests for module 'cosl'.
29291         * modules/cosl-tests: New file.
29292         * tests/test-cosl.c: New file.
29293
29294         Tests for module 'atanl'.
29295         * modules/atanl-tests: New file.
29296         * tests/test-atanl.c: New file.
29297
29298         Tests for module 'asinl'.
29299         * modules/asinl-tests: New file.
29300         * tests/test-asinl.c: New file.
29301
29302         Tests for module 'acosl'.
29303         * modules/acosl-tests: New file.
29304         * tests/test-acosl.c: New file.
29305
29306         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29307         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29308         tanl): Use the standard gnulib idiom.
29309         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29310         * lib/sinl.c: Likewise.
29311         * lib/tanl.c: Don't include trigl.c.
29312         (kernel_tanl): Make static.
29313         * lib/sincosl.c: Include trigl.h first.
29314         * lib/trigl.c: Likewise.
29315         * m4/acosl.m4: New file.
29316         * m4/asinl.m4: New file.
29317         * m4/atanl.m4: New file.
29318         * m4/cosl.m4: New file.
29319         * m4/expl.m4: New file.
29320         * m4/logl.m4: New file.
29321         * m4/sinl.m4: New file.
29322         * m4/sqrtl.m4: New file.
29323         * m4/tanl.m4: New file.
29324         * m4/mathl.m4: Remove file.
29325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29326         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29327         Don't initialize GNULIB_MATHL.
29328         * modules/acosl: New file.
29329         * modules/asinl: New file.
29330         * modules/atanl: New file.
29331         * modules/cosl: New file.
29332         * modules/expl: New file.
29333         * modules/logl: New file.
29334         * modules/sinl: New file.
29335         * modules/sqrtl: New file.
29336         * modules/tanl: New file.
29337         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29338         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29339         substitute GNULIB_MATHL.
29340         * modules/mathl: Rewritten.
29341         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29342         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29343         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29344         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29345         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29346         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29347         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29348         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29349         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29350
29351 2010-01-18  Bruno Haible  <bruno@clisp.org>
29352
29353         sqrt: Make gl_FUNC_SQRT requirable.
29354         * m4/sqrt.m4: New file.
29355         * modules/sqrt (Files): Add it.
29356         (configure.ac): Invoke gl_FUNC_SQRT.
29357
29358 2010-01-18  Bruno Haible  <bruno@clisp.org>
29359
29360         New modules for common <math.h> functions.
29361         * m4/mathfunc.m4: New file.
29362         * modules/acos: New file.
29363         * modules/asin: New file.
29364         * modules/atan: New file.
29365         * modules/atan2: New file.
29366         * modules/cbrt: New file.
29367         * modules/copysign: New file.
29368         * modules/cos: New file.
29369         * modules/cosh: New file.
29370         * modules/erf: New file.
29371         * modules/erfc: New file.
29372         * modules/exp: New file.
29373         * modules/fabs: New file.
29374         * modules/fmod: New file.
29375         * modules/hypot: New file.
29376         * modules/j0: New file.
29377         * modules/j1: New file.
29378         * modules/jn: New file.
29379         * modules/ldexp: New file.
29380         * modules/lgamma: New file.
29381         * modules/log: New file.
29382         * modules/log10: New file.
29383         * modules/log1p: New file.
29384         * modules/logb: New file.
29385         * modules/modf: New file.
29386         * modules/nextafter: New file.
29387         * modules/pow: New file.
29388         * modules/remainder: New file.
29389         * modules/rint: New file.
29390         * modules/sin: New file.
29391         * modules/sinh: New file.
29392         * modules/sqrt: New file.
29393         * modules/tan: New file.
29394         * modules/tanh: New file.
29395         * modules/y0: New file.
29396         * modules/y1: New file.
29397         * modules/yn: New file.
29398         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29399         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29400         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29401         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29402         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29403         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29404         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29405         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29406         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29407         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29408         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29409         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29410         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29411         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29412         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29413         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29414         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29415         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29416         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29417         * doc/posix-functions/log.texi: Mention the 'log' module.
29418         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29419         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29420         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29421         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29422         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29423         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29424         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29425         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29426         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29427         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29428         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29429         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29430         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29431         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29432         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29433         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29434
29435 2010-01-18  Jim Meyering  <meyering@redhat.com>
29436
29437         ignore-value: relax license to LGPLv2+
29438         * modules/ignore-value (License): Relax to LGPLv2+.
29439
29440         getdate: don't leak when TZ contains two or more '"'s
29441         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29442         double quote in TZ after the first one.
29443
29444         readtokens: do not leak internal token_lengths buffer
29445         * lib/readtokens.c (readtokens): Free the local, lengths,
29446         when the supplied "token_lengths" parameter is NULL.
29447
29448 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29449
29450         Fix a couple of missing LIBTHREAD link failures on AIX.
29451         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29452         $(LIBTHREAD).
29453         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29454
29455         Link test-poll against INET_PTON_LIB.
29456         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29457         for inet_pton on Solaris 10.
29458
29459 2010-01-17  Bruno Haible  <bruno@clisp.org>
29460
29461         unistdio/*-sprintf: Fix typo in module description.
29462         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29463         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29464         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29465         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29466         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29467         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29468         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29470
29471 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29472
29473         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29474         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29475         variables in shell case patterns, for AIX and HP-UX ksh.
29476
29477         Split large sed scripts, for HP-UX sed.
29478         * modules/stdio: Split sed scripts around 50 sed commands,
29479         to avoid HP-UX limit of 99 commands, in the near future.
29480         * modules/string: Likewise.
29481         * modules/unistd: Likewise.
29482
29483         gnulib-tool: avoid writing in the current directory.
29484         * gnulib-tool (func_emit_lib_Makefile_am)
29485         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29486         not in the current directory, so concurrent gnulib-tool
29487         instances do not interfere.
29488
29489 2010-01-16  Jim Meyering  <meyering@redhat.com>
29490
29491         doc: update users.txt
29492         * users.txt: Add grep.
29493         (diffutils, gzip): Update URLs.
29494
29495 2010-01-12  Bruno Haible  <bruno@clisp.org>
29496
29497         posix_spawn: Avoid test failure on Cygwin.
29498         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29499         characters.
29500         Reported by Simon Josefsson.
29501
29502 2010-01-12  Bruno Haible  <bruno@clisp.org>
29503
29504         * tests/test-cond.c (main): When skipping the test, show the reason.
29505
29506 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29507
29508         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29509
29510 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29511
29512         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29513         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29514
29515 2010-01-12  Eric Blake  <ebb9@byu.net>
29516
29517         build: guarantee AS_VAR_IF
29518         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29519         (gl_AS_VAR_IF): Move...
29520         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29521         Reported by Simon Josefsson.
29522
29523 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29524
29525         * lib/stdio.in.h: Fix typo.
29526
29527 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29528
29529         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29530         libgpg-error.
29531
29532 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29533
29534         * tests/test-xalloc-die.sh: Use $EXEEXT.
29535
29536 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29537             Bruno Haible  <bruno@clisp.org>
29538
29539         getlogin, getlogin_r: Avoid test failure.
29540         * tests/test-getlogin.c: Include <stdio.h>.
29541         (main): Skip the test when the function fails because stdin is not a
29542         tty.
29543         * tests/test-getlogin_r.c: Include <stdio.h>.
29544         (main): Skip the test when the function fails because stdin is not a
29545         tty.
29546
29547 2010-01-11  Eric Blake  <ebb9@byu.net>
29548
29549         tests: avoid more large file warnings
29550         * tests/test-fflush.c: Avoid warning about ftell use.
29551         * tests/test-fseek.c: Avoid warning about fseek use.
29552
29553 2010-01-10  Bruno Haible  <bruno@clisp.org>
29554
29555         nproc: Work better on Linux when /proc and /sys are not mounted.
29556         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29557         as lower bound when, on glibc/Linux systems,
29558         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29559         Suggested by Pádraig Brady <P@draigbrady.com>.
29560         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29561
29562         nproc: Refactor.
29563         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29564         extracted from num_processors.
29565         (num_processors): Call it.
29566
29567 2010-01-11  Jim Meyering  <meyering@redhat.com>
29568
29569         utimecmp: avoid new warning from upcoming gcc-4.5.0
29570         * lib/utimecmp.c (BILLION): Define using #define rather than an
29571         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29572
29573 2010-01-11  Eric Blake  <ebb9@byu.net>
29574
29575         math: add portability warnings for classification macros
29576         * modules/math (Depends-on): Add warn-on-use.
29577         (Makefile.am): Provide new substitutions.
29578         * m4/math_h.m4 (gl_MATH_H): Require inline.
29579         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29580         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29581         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29582         implement warnings.
29583
29584         unistd: warn on use of environ without module
29585         * modules/unistd (Depends-on): Add warn-on-use.
29586         (Makefile.am): Provide new substitutions.
29587         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29588         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29589
29590         stdio: warn on suspicious uses
29591         * modules/stdio (Depends-on): Add warn-on-use.
29592         (Makefile.am): Provide new substitutions.
29593         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29594         fseeko.
29595         * lib/stdio.in.h (gets): Always warn on use.
29596         (fseek, ftell): Adjust when warnings are issued, and honor
29597         _GL_NO_LARGE_FILES as a way to silence the warning.
29598         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29599         any warning about large file offsets.
29600         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29601         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29602         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29603         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29604         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29605         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29606         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29607         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29608
29609         warn-on-use: new module
29610         * modules/warn-on-use: New file.
29611         * build-aux/warn-on-use.h: Likewise.
29612         * m4/warn-on-use.m4: Likewise.
29613         * MODULES.html.sh (Support for building): Mention it.
29614
29615 2010-01-10  Bruno Haible  <bruno@clisp.org>
29616
29617         Tests for module 'unistr/u32-strdup'.
29618         * modules/unistr/u32-strdup-tests: New file.
29619         * tests/unistr/test-u32-strdup.c: New file.
29620
29621         Tests for module 'unistr/u16-strdup'.
29622         * modules/unistr/u16-strdup-tests: New file.
29623         * tests/unistr/test-u16-strdup.c: New file.
29624
29625         Tests for module 'unistr/u8-strdup'.
29626         * modules/unistr/u8-strdup-tests: New file.
29627         * tests/unistr/test-u8-strdup.c: New file.
29628         * tests/unistr/test-strdup.h: New file.
29629
29630         Tests for module 'unistr/u32-strncmp'.
29631         * modules/unistr/u32-strncmp-tests: New file.
29632         * tests/unistr/test-u32-strncmp.c: New file.
29633
29634         Tests for module 'unistr/u16-strncmp'.
29635         * modules/unistr/u16-strncmp-tests: New file.
29636         * tests/unistr/test-u16-strncmp.c: New file.
29637
29638         Tests for module 'unistr/u8-strncmp'.
29639         * modules/unistr/u8-strncmp-tests: New file.
29640         * tests/unistr/test-u8-strncmp.c: New file.
29641         * tests/unistr/test-strncmp.h: New file.
29642
29643         Tests for module 'unistr/u32-strcoll'.
29644         * modules/unistr/u32-strcoll-tests: New file.
29645         * tests/unistr/test-u32-strcoll.c: New file.
29646
29647         Tests for module 'unistr/u16-strcoll'.
29648         * modules/unistr/u16-strcoll-tests: New file.
29649         * tests/unistr/test-u16-strcoll.c: New file.
29650
29651         Tests for module 'unistr/u8-strcoll'.
29652         * modules/unistr/u8-strcoll-tests: New file.
29653         * tests/unistr/test-u8-strcoll.c: New file.
29654
29655         Tests for module 'unistr/u32-strcmp'.
29656         * modules/unistr/u32-strcmp-tests: New file.
29657         * tests/unistr/test-u32-strcmp.c: New file.
29658         * tests/unistr/test-u32-strcmp.h: New file.
29659
29660         Tests for module 'unistr/u16-strcmp'.
29661         * modules/unistr/u16-strcmp-tests: New file.
29662         * tests/unistr/test-u16-strcmp.c: New file.
29663         * tests/unistr/test-u16-strcmp.h: New file.
29664
29665         Tests for module 'unistr/u8-strcmp'.
29666         * modules/unistr/u8-strcmp-tests: New file.
29667         * tests/unistr/test-u8-strcmp.c: New file.
29668         * tests/unistr/test-u8-strcmp.h: New file.
29669         * tests/unistr/test-strcmp.h: New file.
29670
29671         Tests for module 'unistr/u32-strncat'.
29672         * modules/unistr/u32-strncat-tests: New file.
29673         * tests/unistr/test-u32-strncat.c: New file.
29674
29675         Tests for module 'unistr/u16-strncat'.
29676         * modules/unistr/u16-strncat-tests: New file.
29677         * tests/unistr/test-u16-strncat.c: New file.
29678
29679         Tests for module 'unistr/u8-strncat'.
29680         * modules/unistr/u8-strncat-tests: New file.
29681         * tests/unistr/test-u8-strncat.c: New file.
29682         * tests/unistr/test-strncat.h: New file.
29683
29684         Tests for module 'unistr/u32-strcat'.
29685         * modules/unistr/u32-strcat-tests: New file.
29686         * tests/unistr/test-u32-strcat.c: New file.
29687
29688         Tests for module 'unistr/u16-strcat'.
29689         * modules/unistr/u16-strcat-tests: New file.
29690         * tests/unistr/test-u16-strcat.c: New file.
29691
29692         Tests for module 'unistr/u8-strcat'.
29693         * modules/unistr/u8-strcat-tests: New file.
29694         * tests/unistr/test-u8-strcat.c: New file.
29695         * tests/unistr/test-strcat.h: New file.
29696
29697         Tests for module 'unistr/u32-stpncpy'.
29698         * modules/unistr/u32-stpncpy-tests: New file.
29699         * tests/unistr/test-u32-stpncpy.c: New file.
29700
29701         Tests for module 'unistr/u16-stpncpy'.
29702         * modules/unistr/u16-stpncpy-tests: New file.
29703         * tests/unistr/test-u16-stpncpy.c: New file.
29704
29705         Tests for module 'unistr/u8-stpncpy'.
29706         * modules/unistr/u8-stpncpy-tests: New file.
29707         * tests/unistr/test-u8-stpncpy.c: New file.
29708         * tests/unistr/test-stpncpy.h: New file.
29709
29710         Tests for module 'unistr/u32-strncpy'.
29711         * modules/unistr/u32-strncpy-tests: New file.
29712         * tests/unistr/test-u32-strncpy.c: New file.
29713
29714         Tests for module 'unistr/u16-strncpy'.
29715         * modules/unistr/u16-strncpy-tests: New file.
29716         * tests/unistr/test-u16-strncpy.c: New file.
29717
29718         Tests for module 'unistr/u8-strncpy'.
29719         * modules/unistr/u8-strncpy-tests: New file.
29720         * tests/unistr/test-u8-strncpy.c: New file.
29721         * tests/unistr/test-strncpy.h: New file.
29722
29723         Tests for module 'unistr/u32-stpcpy'.
29724         * modules/unistr/u32-stpcpy-tests: New file.
29725         * tests/unistr/test-u32-stpcpy.c: New file.
29726
29727         Tests for module 'unistr/u16-stpcpy'.
29728         * modules/unistr/u16-stpcpy-tests: New file.
29729         * tests/unistr/test-u16-stpcpy.c: New file.
29730
29731         Tests for module 'unistr/u8-stpcpy'.
29732         * modules/unistr/u8-stpcpy-tests: New file.
29733         * tests/unistr/test-u8-stpcpy.c: New file.
29734         * tests/unistr/test-stpcpy.h: New file.
29735
29736         Tests for module 'unistr/u32-strcpy'.
29737         * modules/unistr/u32-strcpy-tests: New file.
29738         * tests/unistr/test-u32-strcpy.c: New file.
29739
29740         Tests for module 'unistr/u16-strcpy'.
29741         * modules/unistr/u16-strcpy-tests: New file.
29742         * tests/unistr/test-u16-strcpy.c: New file.
29743
29744         Tests for module 'unistr/u8-strcpy'.
29745         * modules/unistr/u8-strcpy-tests: New file.
29746         * tests/unistr/test-u8-strcpy.c: New file.
29747         * tests/unistr/test-strcpy.h: New file.
29748
29749         Tests for module 'unistr/u32-strnlen'.
29750         * modules/unistr/u32-strnlen-tests: New file.
29751         * tests/unistr/test-u32-strnlen.c: New file.
29752
29753         Tests for module 'unistr/u16-strnlen'.
29754         * modules/unistr/u16-strnlen-tests: New file.
29755         * tests/unistr/test-u16-strnlen.c: New file.
29756
29757         Tests for module 'unistr/u8-strnlen'.
29758         * modules/unistr/u8-strnlen-tests: New file.
29759         * tests/unistr/test-u8-strnlen.c: New file.
29760         * tests/unistr/test-strnlen.h: New file.
29761
29762         Tests for module 'unistr/u32-strlen'.
29763         * modules/unistr/u32-strlen-tests: New file.
29764         * tests/unistr/test-u32-strlen.c: New file.
29765
29766         Tests for module 'unistr/u16-strlen'.
29767         * modules/unistr/u16-strlen-tests: New file.
29768         * tests/unistr/test-u16-strlen.c: New file.
29769
29770         Tests for module 'unistr/u8-strlen'.
29771         * modules/unistr/u8-strlen-tests: New file.
29772         * tests/unistr/test-u8-strlen.c: New file.
29773
29774         Tests for module 'unistr/u32-prev'.
29775         * modules/unistr/u32-prev-tests: New file.
29776         * tests/unistr/test-u32-prev.c: New file.
29777
29778         Tests for module 'unistr/u16-prev'.
29779         * modules/unistr/u16-prev-tests: New file.
29780         * tests/unistr/test-u16-prev.c: New file.
29781
29782         Tests for module 'unistr/u8-prev'.
29783         * modules/unistr/u8-prev-tests: New file.
29784         * tests/unistr/test-u8-prev.c: New file.
29785
29786         Tests for module 'unistr/u32-next'.
29787         * modules/unistr/u32-next-tests: New file.
29788         * tests/unistr/test-u32-next.c: New file.
29789
29790         Tests for module 'unistr/u16-next'.
29791         * modules/unistr/u16-next-tests: New file.
29792         * tests/unistr/test-u16-next.c: New file.
29793
29794         Tests for module 'unistr/u8-next'.
29795         * modules/unistr/u8-next-tests: New file.
29796         * tests/unistr/test-u8-next.c: New file.
29797
29798         Tests for module 'unistr/u32-strmbtouc'.
29799         * modules/unistr/u32-strmbtouc-tests: New file.
29800         * tests/unistr/test-u32-strmbtouc.c: New file.
29801
29802         Tests for module 'unistr/u16-strmbtouc'.
29803         * modules/unistr/u16-strmbtouc-tests: New file.
29804         * tests/unistr/test-u16-strmbtouc.c: New file.
29805
29806         Tests for module 'unistr/u8-strmbtouc'.
29807         * modules/unistr/u8-strmbtouc-tests: New file.
29808         * tests/unistr/test-u8-strmbtouc.c: New file.
29809
29810         Tests for module 'unistr/u32-strmblen'.
29811         * modules/unistr/u32-strmblen-tests: New file.
29812         * tests/unistr/test-u32-strmblen.c: New file.
29813
29814         Tests for module 'unistr/u16-strmblen'.
29815         * modules/unistr/u16-strmblen-tests: New file.
29816         * tests/unistr/test-u16-strmblen.c: New file.
29817
29818         Tests for module 'unistr/u8-strmblen'.
29819         * modules/unistr/u8-strmblen-tests: New file.
29820         * tests/unistr/test-u8-strmblen.c: New file.
29821
29822         Tests for module 'unistr/u32-cpy-alloc'.
29823         * modules/unistr/u32-cpy-alloc-tests: New file.
29824         * tests/unistr/test-u32-cpy-alloc.c: New file.
29825
29826         Tests for module 'unistr/u16-cpy-alloc'.
29827         * modules/unistr/u16-cpy-alloc-tests: New file.
29828         * tests/unistr/test-u16-cpy-alloc.c: New file.
29829
29830         Tests for module 'unistr/u8-cpy-alloc'.
29831         * modules/unistr/u8-cpy-alloc-tests: New file.
29832         * tests/unistr/test-u8-cpy-alloc.c: New file.
29833         * tests/unistr/test-cpy-alloc.h: New file.
29834
29835         Tests for module 'unistr/u32-mbsnlen'.
29836         * modules/unistr/u32-mbsnlen-tests: New file.
29837         * tests/unistr/test-u32-mbsnlen.c: New file.
29838
29839         Tests for module 'unistr/u16-mbsnlen'.
29840         * modules/unistr/u16-mbsnlen-tests: New file.
29841         * tests/unistr/test-u16-mbsnlen.c: New file.
29842
29843         Tests for module 'unistr/u8-mbsnlen'.
29844         * modules/unistr/u8-mbsnlen-tests: New file.
29845         * tests/unistr/test-u8-mbsnlen.c: New file.
29846
29847         Tests for module 'unistr/u32-chr'.
29848         * modules/unistr/u32-chr-tests: New file.
29849         * tests/unistr/test-u32-chr.c: New file.
29850
29851         Tests for module 'unistr/u16-chr'.
29852         * modules/unistr/u16-chr-tests: New file.
29853         * tests/unistr/test-u16-chr.c: New file.
29854
29855         Tests for module 'unistr/u8-chr'.
29856         * modules/unistr/u8-chr-tests: New file.
29857         * tests/unistr/test-u8-chr.c: New file.
29858         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29859
29860         Tests for module 'unistr/u32-cmp2'.
29861         * modules/unistr/u32-cmp2-tests: New file.
29862         * tests/unistr/test-u32-cmp2.c: New file.
29863
29864         Tests for module 'unistr/u16-cmp2'.
29865         * modules/unistr/u16-cmp2-tests: New file.
29866         * tests/unistr/test-u16-cmp2.c: New file.
29867
29868         Tests for module 'unistr/u8-cmp2'.
29869         * modules/unistr/u8-cmp2-tests: New file.
29870         * tests/unistr/test-u8-cmp2.c: New file.
29871         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29872
29873         Tests for module 'unistr/u32-cmp'.
29874         * modules/unistr/u32-cmp-tests: New file.
29875         * tests/unistr/test-u32-cmp.c: New file.
29876
29877         Tests for module 'unistr/u16-cmp'.
29878         * modules/unistr/u16-cmp-tests: New file.
29879         * tests/unistr/test-u16-cmp.c: New file.
29880
29881         Tests for module 'unistr/u8-cmp'.
29882         * modules/unistr/u8-cmp-tests: New file.
29883         * tests/unistr/test-u8-cmp.c: New file.
29884         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29885
29886         Tests for module 'unistr/u32-set'.
29887         * modules/unistr/u32-set-tests: New file.
29888         * tests/unistr/test-u32-set.c: New file.
29889
29890         Tests for module 'unistr/u16-set'.
29891         * modules/unistr/u16-set-tests: New file.
29892         * tests/unistr/test-u16-set.c: New file.
29893
29894         Tests for module 'unistr/u8-set'.
29895         * modules/unistr/u8-set-tests: New file.
29896         * tests/unistr/test-u8-set.c: New file.
29897         * tests/unistr/test-set.h: New file.
29898
29899         Tests for module 'unistr/u32-move'.
29900         * modules/unistr/u32-move-tests: New file.
29901         * tests/unistr/test-u32-move.c: New file.
29902
29903         Tests for module 'unistr/u16-move'.
29904         * modules/unistr/u16-move-tests: New file.
29905         * tests/unistr/test-u16-move.c: New file.
29906
29907         Tests for module 'unistr/u8-move'.
29908         * modules/unistr/u8-move-tests: New file.
29909         * tests/unistr/test-u8-move.c: New file.
29910         * tests/unistr/test-move.h: New file.
29911
29912         Tests for module 'unistr/u32-cpy'.
29913         * modules/unistr/u32-cpy-tests: New file.
29914         * tests/unistr/test-u32-cpy.c: New file.
29915
29916         Tests for module 'unistr/u16-cpy'.
29917         * modules/unistr/u16-cpy-tests: New file.
29918         * tests/unistr/test-u16-cpy.c: New file.
29919
29920         Tests for module 'unistr/u8-cpy'.
29921         * modules/unistr/u8-cpy-tests: New file.
29922         * tests/unistr/test-u8-cpy.c: New file.
29923         * tests/unistr/test-cpy.h: New file.
29924
29925 2010-01-09  Bruno Haible  <bruno@clisp.org>
29926
29927         Tests for module 'unistr/u32-uctomb'.
29928         * modules/unistr/u32-uctomb-tests: New file.
29929         * tests/unistr/test-u32-uctomb.c: New file.
29930
29931         Tests for module 'unistr/u16-uctomb'.
29932         * modules/unistr/u16-uctomb-tests: New file.
29933         * tests/unistr/test-u16-uctomb.c: New file.
29934
29935         Tests for module 'unistr/u8-uctomb'.
29936         * modules/unistr/u8-uctomb-tests: New file.
29937         * tests/unistr/test-u8-uctomb.c: New file.
29938
29939         Tests for module 'unistr/u32-mbtoucr'.
29940         * modules/unistr/u32-mbtoucr-tests: New file.
29941         * tests/unistr/test-u32-mbtoucr.c: New file.
29942
29943         Tests for module 'unistr/u16-mbtoucr'.
29944         * modules/unistr/u16-mbtoucr-tests: New file.
29945         * tests/unistr/test-u16-mbtoucr.c: New file.
29946
29947         Tests for module 'unistr/u8-mbtoucr'.
29948         * modules/unistr/u8-mbtoucr-tests: New file.
29949         * tests/unistr/test-u8-mbtoucr.c: New file.
29950
29951         Tests for module 'unistr/u32-mbtouc'.
29952         * modules/unistr/u32-mbtouc-tests: New file.
29953         * tests/unistr/test-u32-mbtouc.c: New file.
29954
29955         Tests for module 'unistr/u16-mbtouc'.
29956         * modules/unistr/u16-mbtouc-tests: New file.
29957         * tests/unistr/test-u16-mbtouc.c: New file.
29958
29959         Tests for module 'unistr/u8-mbtouc'.
29960         * modules/unistr/u8-mbtouc-tests: New file.
29961         * tests/unistr/test-u8-mbtouc.c: New file.
29962
29963         Tests for module 'unistr/u32-mbtouc-unsafe'.
29964         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29965         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29966         * tests/unistr/test-u32-mbtouc.h: New file.
29967
29968         Tests for module 'unistr/u16-mbtouc-unsafe'.
29969         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29970         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29971         * tests/unistr/test-u16-mbtouc.h: New file.
29972
29973         Tests for module 'unistr/u8-mbtouc-unsafe'.
29974         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29975         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29976         * tests/unistr/test-u8-mbtouc.h: New file.
29977
29978         Tests for module 'unistr/u32-mblen'.
29979         * modules/unistr/u32-mblen-tests: New file.
29980         * tests/unistr/test-u32-mblen.c: New file.
29981
29982         Tests for module 'unistr/u16-mblen'.
29983         * modules/unistr/u16-mblen-tests: New file.
29984         * tests/unistr/test-u16-mblen.c: New file.
29985
29986         Tests for module 'unistr/u8-mblen'.
29987         * modules/unistr/u8-mblen-tests: New file.
29988         * tests/unistr/test-u8-mblen.c: New file.
29989
29990         Tests for module 'unistr/u32-to-u16'.
29991         * modules/unistr/u32-to-u16-tests: New file.
29992         * tests/unistr/test-u32-to-u16.c: New file.
29993
29994         Tests for module 'unistr/u32-to-u8'.
29995         * modules/unistr/u32-to-u8-tests: New file.
29996         * tests/unistr/test-u32-to-u8.c: New file.
29997
29998         Tests for module 'unistr/u16-to-u32'.
29999         * modules/unistr/u16-to-u32-tests: New file.
30000         * tests/unistr/test-u16-to-u32.c: New file.
30001
30002         Tests for module 'unistr/u16-to-u8'.
30003         * modules/unistr/u16-to-u8-tests: New file.
30004         * tests/unistr/test-u16-to-u8.c: New file.
30005
30006         Tests for module 'unistr/u8-to-u32'.
30007         * modules/unistr/u8-to-u32-tests: New file.
30008         * tests/unistr/test-u8-to-u32.c: New file.
30009
30010         Tests for module 'unistr/u8-to-u16'.
30011         * modules/unistr/u8-to-u16-tests: New file.
30012         * tests/unistr/test-u8-to-u16.c: New file.
30013
30014         Tests for module 'unistr/u32-check'.
30015         * modules/unistr/u32-check-tests: New file.
30016         * tests/unistr/test-u32-check.c: New file.
30017
30018         Tests for module 'unistr/u16-check'.
30019         * modules/unistr/u16-check-tests: New file.
30020         * tests/unistr/test-u16-check.c: New file.
30021
30022         Tests for module 'unistr/u8-check'.
30023         * modules/unistr/u8-check-tests: New file.
30024         * tests/unistr/test-u8-check.c: New file.
30025
30026         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30027         (category_equals): New function.
30028         (main): Add more tests.
30029         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30030
30031         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30032
30033 2010-01-10  Bruno Haible  <bruno@clisp.org>
30034
30035         unistr/u*-strcoll: Try harder to distinguish different strings.
30036         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30037         compare s1 and s2 to see if they are different.
30038
30039 2010-01-10  Bruno Haible  <bruno@clisp.org>
30040
30041         unistr/u*-stpncpy: Fix the return value.
30042         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30043         description of the return value consistent with stpncpy in glibc.
30044         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30045         written non-NUL unit.
30046
30047 2010-01-10  Bruno Haible  <bruno@clisp.org>
30048
30049         unistr/u*-next: Add missing dependencies.
30050         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30051         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30052         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30053
30054 2010-01-10  Bruno Haible  <bruno@clisp.org>
30055
30056         unistr/u8-mbsnlen: Fix return value for incomplete character.
30057         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30058         u8_mblen.
30059         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30060         Remove unistr/u8-mblen.
30061         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30062         u16_mblen.
30063         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30064         Remove unistr/u16-mblen.
30065
30066 2010-01-10  Bruno Haible  <bruno@clisp.org>
30067
30068         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30069         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30070         Reported by Brian Gough <bjg@gnu.org> and
30071         Chris Clayton <chris2553@googlemail.com> via
30072         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30073
30074 2010-01-09  Bruno Haible  <bruno@clisp.org>
30075
30076         unistr/u16-to-u32: Reject invalid input.
30077         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30078         u16_mbtouc.
30079         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30080         Remove unistr/u16-mbtouc.
30081
30082         unistr/u16-to-u8: Reject invalid input.
30083         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30084         u16_mbtouc.
30085         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30086         Remove unistr/u16-mbtouc.
30087
30088         unistr/u8-to-u32: Reject invalid input.
30089         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30090         u8_mbtouc.
30091         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30092         Remove unistr/u8-mbtouc.
30093
30094         unistr/u8-to-u16: Reject invalid input.
30095         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30096         u8_mbtouc.
30097         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30098         Remove unistr/u8-mbtouc.
30099
30100 2010-01-09  Bruno Haible  <bruno@clisp.org>
30101
30102         Tests for module 'getlogin'.
30103         * modules/getlogin-tests: New file.
30104         * tests/test-getlogin.c: New file.
30105
30106         New module 'getlogin'.
30107         * lib/unistd.in.h (getlogin): New declaration.
30108         * lib/getlogin.c: New file.
30109         * m4/getlogin.m4: New file.
30110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30111         HAVE_GETLOGIN.
30112         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30113         HAVE_GETLOGIN.
30114         * modules/getlogin: New file.
30115         * doc/posix-functions/getlogin.texi: Mention the new module.
30116         Reported by John W. Eaton <jwe@gnu.org>.
30117
30118 2010-01-09  Bruno Haible  <bruno@clisp.org>
30119
30120         getlogin_r: Support for native Windows.
30121         * lib/getlogin_r.c: Include <windows.h>
30122         (getlogin_r): Implement for native Windows.
30123         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30124         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30125         via John W. Eaton <jwe@gnu.org>.
30126
30127 2010-01-09  Bruno Haible  <bruno@clisp.org>
30128
30129         getlogin_r: Small fixes.
30130         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30131         succeeds.
30132         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30133         before testing whether getlogin_r is declared. No need to set
30134         HAVE_DECL_GETLOGIN_R to 1.
30135         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30136
30137 2010-01-09  Bruno Haible  <bruno@clisp.org>
30138
30139         * lib/unistd.in.h (getlogin_r): Add comment.
30140
30141 2010-01-09  Bruno Haible  <bruno@clisp.org>
30142
30143         Tests for module 'getlogin_r'.
30144         * modules/getlogin_r-tests: New file.
30145         * tests/test-getlogin_r.c: New file.
30146
30147 2010-01-09  Jim Meyering  <meyering@redhat.com>
30148
30149         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30150         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30151         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30152
30153 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30154
30155         * lib/dup2.c (rpl_dup2): Improve comment.
30156
30157 2010-01-08  Eric Blake  <ebb9@byu.net>
30158
30159         maint.mk: allow packages to add makefile @@ exceptions
30160         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30161         (sc_makefile_check): Rename...
30162         (sc_makefile_at_at_check): ...to this, and use hook.
30163
30164         dup2: work around mingw bug
30165         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30166         Reported by Simon Josefsson.
30167
30168 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30169
30170         glob: Fix C++ compilation.
30171         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30172         C++.
30173
30174 2010-01-07  Bruno Haible  <bruno@clisp.org>
30175
30176         Fix indentation of wctype.in.h, broken since 2007-01-06.
30177         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30178
30179 2010-01-07  Bruno Haible  <bruno@clisp.org>
30180
30181         mbslen: Avoid collision with system function.
30182         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30183         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30184         * m4/mbslen.m4: New file.
30185         * modules/mbslen (Files): Add it.
30186         (configure.ac): Invoke gl_MBSLEN.
30187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30188         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30189         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30190         via Ian Beckwith <ianb@erislabs.net>.
30191
30192 2010-01-07  Bruno Haible  <bruno@clisp.org>
30193
30194         dirent: Document the last fix.
30195         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30196
30197 2010-01-07  Bruno Haible  <bruno@clisp.org>
30198
30199         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30200         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30201         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30202         va_list are defined.
30203         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30204         Reported by Eric Blake.
30205
30206 2010-01-07  Bruno Haible  <bruno@clisp.org>
30207
30208         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30209         * modules/xlist (Depends-on): Add 'list',
30210         * modules/xoset (Depends-on): Add 'oset'.
30211         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30212
30213 2010-01-07  Bruno Haible  <bruno@clisp.org>
30214
30215         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30216         * doc/posix-functions/strncasecmp.texi: Likewise.
30217
30218 2010-01-07  Bruno Haible  <bruno@clisp.org>
30219
30220         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30221
30222 2010-01-07  John W. Eaton  <jwe@octave.org>
30223
30224         wctype: allow C++ use
30225         * lib/wctype.in.h: Add extern "C" block for C++.
30226
30227 2010-01-06  Eric Blake  <ebb9@byu.net>
30228
30229         maint.mk: detect incorrect GFDL usage
30230         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30231
30232 2010-01-06  Jim Meyering  <meyering@redhat.com>
30233         and Eric Blake  <ebb9@byu.net>
30234
30235         maint.mk: ignore multi-line copyright in NEWS
30236         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30237
30238 2010-01-06  Eric Blake  <ebb9@byu.net>
30239
30240         select: add missing dependency
30241         * modules/select-tests (Depends-on): Move sockets dependency...
30242         * modules/select (Depends-on): ...here.
30243         Reported by Ian Beckwith.
30244
30245         doc: regenerate INSTALL
30246         * doc/INSTALL: Reflect recent autoconf update.
30247         * doc/INSTALL.ISO: Likewise.
30248         * doc/INSTALL.UTF-8: Likewise.
30249
30250         pread: fix compilation on glibc
30251         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30252         Reported by Ralf Wildenhues.
30253
30254         dirent: fix test failure
30255         * lib/dirent.in.h (includes): Guarantee ino_t.
30256         Reported by Ralf Wildenhues.
30257
30258 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30259
30260         linkat, renameat: avoid bad free
30261         * lib/at-func2.c (at_func2): Fix typo.
30262         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30263
30264 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30265
30266         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30267         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30268         to avoid failure of symlink test later.
30269
30270 2010-01-06  Eric Blake  <ebb9@byu.net>
30271
30272         stdio, unistd: guarantee ssize_t
30273         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30274         2008 are exposed when needed.
30275         * lib/stdio.in.h (includes): Likewise.
30276         Reported by Ralf Wildenhues.
30277
30278 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30279
30280         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30281         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30282         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30283
30284 2010-01-06  Jim Meyering  <meyering@redhat.com>
30285
30286         readtokens: this module *does* require xalloc.h
30287         It uses only functions that were omitted by the old syntax-check rule.
30288         * lib/readtokens.c: Include "xalloc.h" once again.
30289         * modules/readtokens (Depends-on): Add xalloc.
30290         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30291
30292 2010-01-05  Eric Blake  <ebb9@byu.net>
30293
30294         maint: support 'make announcement' from a VPATH build
30295         * top/maint.mk (announcement): Look for correct NEWS file.
30296
30297 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30298
30299         utimens (fdutimens): ignore a negative FD, per contract
30300         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30301         when we have a valid file descriptor.  Otherwise, using a brand
30302         new glibc (with just-patched futimens that now fails with EBADF)
30303         would cause this function to fail with ENOSYS.
30304         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30305         See also http://bugzilla.redhat.com/552320.
30306
30307 2010-01-05  Eric Blake  <ebb9@byu.net>
30308
30309         strcase: document what it provides
30310         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30311         gnulib module.
30312         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30313         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30314
30315 2010-01-05  Jim Meyering  <meyering@redhat.com>
30316
30317         maint: remove useless inclusions of "xalloc.h"
30318         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30319         * lib/readtokens.c: Likewise.
30320         * lib/same.c: Likewise.
30321         * modules/getloadavg (Depends-on): Remove xalloc.
30322         * modules/readtokens: Likewise.
30323         * modules/same: Likewise.
30324
30325         maint.mk: include 4 more function names in alloca.h-checking regexp
30326         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30327         regexp.  Before, we would give a false-positive (saying alloca.h
30328         is included unnecessarily) when the only uses involved omitted symbols.
30329
30330         xalloc.h: use consistent formatting
30331         * lib/xalloc.h: Move declarations to start in the first column.
30332
30333 2010-01-05  Eric Blake  <ebb9@byu.net>
30334
30335         mkdir: avoid xalloc
30336         * lib/mkdir.c (includes): Drop unused header.
30337         Reported by John W. Eaton.
30338
30339 2010-01-04  Jim Meyering  <meyering@redhat.com>
30340
30341         nl_langinfo: avoid configure-time syntax error
30342         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30343         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30344         the empty string.  Don't let that provoke a shell syntax error.
30345
30346         regcomp, regexec, fnmatch: avoid array bounds read error
30347         * lib/regcomp.c (build_equiv_class): From glibc:
30348         Use only the low 24 bits of a findidx return value as an index
30349         into the weights array.  Patch by Ulrich Drepper:
30350         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30351         * lib/regexec.c (check_node_accept_bytes): Likewise.
30352         * lib/fnmatch_loop.c (FCT): Likewise.
30353
30354         regcomp: skip collseq lookup when there are no rules
30355         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30356         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30357
30358         regcomp: recognize ill-formed { } expressions
30359         * lib/regcomp.c (parse_dup_op): From glibc:
30360         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30361
30362         regcomp: fix typo in comment
30363         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30364         s/satisfy/satisfies/.
30365
30366         regcomp: sync from glibc: remove dead store
30367         * lib/regcomp.c (duplicate_node_closure): Remove useless
30368         search_duplicated_node call and dead store.
30369
30370         regcomp: sync from glibc; always use nl_langinfo
30371         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30372         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30373         * modules/regex (Depends-on): Add nl_langinfo.
30374
30375 2010-01-04  Eric Blake  <ebb9@byu.net>
30376
30377         fdopendir: fix configure test
30378         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30379
30380 2010-01-01  Bruno Haible  <bruno@clisp.org>
30381
30382         wchar: Remove unused configure check.
30383         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30384
30385 2010-01-01  Eric Blake  <ebb9@byu.net>
30386
30387         headers: make check of system header explicit
30388         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30389         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30390         ourselves.
30391         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30393         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30394         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30395         internals.
30396         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30397         missing.
30398         Suggested by Bruno Haible.
30399
30400 2010-01-01  Jim Meyering  <meyering@redhat.com>
30401
30402         ChangeLog: tweak to eliminate unnecessary copyright line
30403         * ChangeLog: Remove a copyright line that was mistakenly updated
30404         by today's update-copyright run.  Reported by Eric Blake.
30405
30406         test-update-copyright: don't let envvar setting cause test failure
30407         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30408
30409 2010-01-01  Bruno Haible  <bruno@clisp.org>
30410
30411         localename: Avoid gcc warning.
30412         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30413         function if it is not used.
30414
30415 2010-01-01  Jim Meyering  <meyering@redhat.com>
30416
30417         update nearly all FSF copyright year lists to include 2010
30418         Use the same procedure as for 2009, outlined in
30419         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30420
30421         version-etc: set COPYRIGHT_YEAR to 2010
30422         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30423
30424 2009-12-31  Eric Blake  <ebb9@byu.net>
30425
30426         doc: correct availability of cygwin 1.5.x getopt
30427         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30428         variables.
30429         * doc/posix-functions/opterr.texi (opterr): Likewise.
30430         * doc/posix-functions/optind.texi (optind): Likewise.
30431         * doc/posix-functions/optopt.texi (optopt): Likewise.
30432         * doc/posix-functions/tzname.texi (tzname): Likewise.
30433
30434         openat: update maintainer
30435         * modules/openat (Maintainer): Add myself.
30436
30437         utimens: avoid shadowing warning
30438         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30439         buffers into one, to avoid shadowing, as well as avoiding a
30440         redundant stat.
30441         Reported by Jim Meyering.
30442
30443         test-dup2: avoid compiler warning
30444         * tests/test-dup2.c (is_inheritable): Only define if used.
30445
30446 2010-01-01  Bruno Haible  <bruno@clisp.org>
30447
30448         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30449         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30450         defined, use wctomb instead of wcrtomb.
30451
30452 2010-01-01  Bruno Haible  <bruno@clisp.org>
30453
30454         iconv: Reject native Solaris iconv.
30455         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30456         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30457
30458 2009-12-31  Bruno Haible  <bruno@clisp.org>
30459
30460         * tests/test-signal.c (main): Remove test of 'SIG'.
30461
30462 2009-12-31  Bruno Haible  <bruno@clisp.org>
30463
30464         spawn: Fix incomplete fix.
30465         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30466         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30467         warnings for GNULIB_POSIXCHECK again.
30468         Reported by Eric Blake.
30469
30470 2009-12-31  Bruno Haible  <bruno@clisp.org>
30471
30472         Avoid namespace pollution on glibc systems.
30473         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30474         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30475         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30476         glibc systems.
30477
30478 2009-12-31  Bruno Haible  <bruno@clisp.org>
30479
30480         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30481         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30482         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30483         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30484         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30485         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30486         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30487
30488 2009-12-31  Bruno Haible  <bruno@clisp.org>
30489
30490         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30491         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30492         afterwards.
30493
30494 2009-12-31  Bruno Haible  <bruno@clisp.org>
30495
30496         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30497         SYS_UTSNAME_H.
30498
30499 2009-12-31  Bruno Haible  <bruno@clisp.org>
30500
30501         spawn: Fix misapplied patch.
30502         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30503         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30504         warnings for GNULIB_POSIXCHECK.
30505
30506 2009-12-31  Bruno Haible  <bruno@clisp.org>
30507
30508         times: Update after sys_times changed.
30509         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30510         * modules/times (Files): Add it.
30511         (configure.ac): Invoke gl_FUNC_TIMES.
30512
30513 2009-12-31  Bruno Haible  <bruno@clisp.org>
30514
30515         Use AC_C_INLINE where necessary.
30516         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30517         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30519         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30520         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30521         * m4/mbiter.m4 (gl_MBITER): Likewise.
30522         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30523         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30524         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30525         * modules/u64 (configure.ac): Likewise.
30526
30527 2009-12-31  Bruno Haible  <bruno@clisp.org>
30528
30529         Use AC_C_INLINE instead of module 'inline' where possible.
30530         * modules/inline (Description): Clarify purpose.
30531         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30532         * modules/count-one-bits (Depends-on): Remove inline.
30533         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30534         * modules/openat (Depends-on): Remove inline.
30535         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30536         instead of depending on module 'inline'.
30537         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30538         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30539         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30540         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30541         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30542         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30543         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30544         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30545         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30546         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30547         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30548         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30549         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30550         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30551         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30552         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30553         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30554         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30555         Likewise.
30556         * modules/unictype/property-ascii-hex-digit (Depends-on,
30557         configure.ac): Likewise.
30558         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30559         configure.ac): Likewise.
30560         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30561         configure.ac): Likewise.
30562         * modules/unictype/property-bidi-block-separator (Depends-on,
30563         configure.ac): Likewise.
30564         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30565         configure.ac): Likewise.
30566         * modules/unictype/property-bidi-common-separator (Depends-on,
30567         configure.ac): Likewise.
30568         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30569         Likewise.
30570         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30571         configure.ac): Likewise.
30572         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30573         configure.ac): Likewise.
30574         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30575         configure.ac): Likewise.
30576         * modules/unictype/property-bidi-european-digit (Depends-on,
30577         configure.ac): Likewise.
30578         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30579         configure.ac): Likewise.
30580         * modules/unictype/property-bidi-left-to-right (Depends-on,
30581         configure.ac): Likewise.
30582         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30583         configure.ac): Likewise.
30584         * modules/unictype/property-bidi-other-neutral (Depends-on,
30585         configure.ac): Likewise.
30586         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30587         Likewise.
30588         * modules/unictype/property-bidi-segment-separator (Depends-on,
30589         configure.ac): Likewise.
30590         * modules/unictype/property-bidi-whitespace (Depends-on,
30591         configure.ac): Likewise.
30592         * modules/unictype/property-combining (Depends-on, configure.ac):
30593         Likewise.
30594         * modules/unictype/property-composite (Depends-on, configure.ac):
30595         Likewise.
30596         * modules/unictype/property-currency-symbol (Depends-on,
30597         configure.ac): Likewise.
30598         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30599         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30600         Likewise.
30601         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30602         configure.ac): Likewise.
30603         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30604         Likewise.
30605         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30606         Likewise.
30607         * modules/unictype/property-extender (Depends-on, configure.ac):
30608         Likewise.
30609         * modules/unictype/property-format-control (Depends-on, configure.ac):
30610         Likewise.
30611         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30612         Likewise.
30613         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30614         Likewise.
30615         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30616         Likewise.
30617         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30618         Likewise.
30619         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30620         Likewise.
30621         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30622         Likewise.
30623         * modules/unictype/property-id-start (Depends-on, configure.ac):
30624         Likewise.
30625         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30626         Likewise.
30627         * modules/unictype/property-ids-binary-operator (Depends-on,
30628         configure.ac): Likewise.
30629         * modules/unictype/property-ids-trinary-operator (Depends-on,
30630         configure.ac): Likewise.
30631         * modules/unictype/property-ignorable-control (Depends-on,
30632         configure.ac): Likewise.
30633         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30634         Likewise.
30635         * modules/unictype/property-join-control (Depends-on, configure.ac):
30636         Likewise.
30637         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30638         Likewise.
30639         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30640         Likewise.
30641         * modules/unictype/property-logical-order-exception (Depends-on,
30642         configure.ac): Likewise.
30643         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30644         Likewise.
30645         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30646         * modules/unictype/property-non-break (Depends-on, configure.ac):
30647         Likewise.
30648         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30649         Likewise.
30650         * modules/unictype/property-numeric (Depends-on, configure.ac):
30651         Likewise.
30652         * modules/unictype/property-other-alphabetic (Depends-on,
30653         configure.ac): Likewise.
30654         * modules/unictype/property-other-default-ignorable-code-point
30655         (Depends-on, configure.ac): Likewise.
30656         * modules/unictype/property-other-grapheme-extend (Depends-on,
30657         configure.ac): Likewise.
30658         * modules/unictype/property-other-id-continue (Depends-on,
30659         configure.ac): Likewise.
30660         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30661         Likewise.
30662         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30663         Likewise.
30664         * modules/unictype/property-other-math (Depends-on, configure.ac):
30665         Likewise.
30666         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30667         Likewise.
30668         * modules/unictype/property-paired-punctuation (Depends-on,
30669         configure.ac): Likewise.
30670         * modules/unictype/property-paragraph-separator (Depends-on,
30671         configure.ac): Likewise.
30672         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30673         Likewise.
30674         * modules/unictype/property-pattern-white-space (Depends-on,
30675         configure.ac): Likewise.
30676         * modules/unictype/property-private-use (Depends-on, configure.ac):
30677         Likewise.
30678         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30679         Likewise.
30680         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30681         Likewise.
30682         * modules/unictype/property-radical (Depends-on, configure.ac):
30683         Likewise.
30684         * modules/unictype/property-sentence-terminal (Depends-on,
30685         configure.ac): Likewise.
30686         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30687         Likewise.
30688         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30689         * modules/unictype/property-terminal-punctuation (Depends-on,
30690         configure.ac): Likewise.
30691         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30692         Likewise.
30693         * modules/unictype/property-unassigned-code-value (Depends-on,
30694         configure.ac): Likewise.
30695         * modules/unictype/property-unified-ideograph (Depends-on,
30696         configure.ac): Likewise.
30697         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30698         Likewise.
30699         * modules/unictype/property-variation-selector (Depends-on,
30700         configure.ac): Likewise.
30701         * modules/unictype/property-white-space (Depends-on, configure.ac):
30702         Likewise.
30703         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30704         Likewise.
30705         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30706         Likewise.
30707         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30708         Likewise.
30709         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30710         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30711         Likewise.
30712
30713 2009-12-31  Bruno Haible  <bruno@clisp.org>
30714
30715         Remove unnecessary AC_C_INLINE invocation.
30716         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30717         since 2009-08-21.
30718
30719 2009-12-31  Jim Meyering  <meyering@redhat.com>
30720
30721         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30722         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30723         With this change, we can all remove the gpg_key_ID = ... definition
30724         from our respective cfg.mk files.
30725
30726         maint.mk: create announcement template in ~/, not in /tmp
30727         * top/maint.mk (emit_upload_commands): Adjust.
30728         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30729         Remove temporary file, .ci-msg.
30730
30731 2009-12-31  Eric Blake  <ebb9@byu.net>
30732
30733         link-warning: always build headers with link warnings
30734         * modules/arpa_inet (Makefile.am): Always build replacement
30735         header.
30736         * modules/ctype (Makefile.am): Likewise.
30737         * modules/dirent (Makefile.am): Likewise.
30738         * modules/inttypes (Makefile.am): Likewise.
30739         * modules/langinfo (Makefile.am): Likewise.
30740         * modules/locale (Makefile.am): Likewise.
30741         * modules/spawn (Makefile.am): Likewise.
30742         * modules/sys_file (Makefile.am): Likewise.
30743         * modules/sys_ioctl (Makefile.am): Likewise.
30744         * modules/sys_select (Makefile.am): Likewise.
30745         * modules/sys_socket (Makefile.am): Likewise.
30746         * modules/sys_times (Makefile.am): Likewise.
30747         * modules/sys_utsname (Makefile.am): Likewise.
30748         * modules/sys_wait (Makefile.am): Likewise.
30749         * modules/wchar (Makefile.am): Likewise.
30750         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30751         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30752         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30753         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30754         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30755         Likewise.
30756         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30757         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30758         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30759         Likewise.
30760         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30761         Likewise.
30762         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30763         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30764         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30766         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30767         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30768         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30769         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30770         (gl_WCHAR_H_DEFAULTS): Likewise.
30771
30772 2009-12-31  Eric Blake  <ebb9@byu.net>
30773
30774         signal, spawn: use link warnings
30775         * lib/signal.in.h (sigset_t): Make unconditional.
30776         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30777         (sigpending, sigprocmask, sigaction): Add link warnings.
30778         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30779         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30780         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30781         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30782         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30783         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30784         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30785         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30786         (posix_spawn_file_actions_destroy)
30787         (posix_spawn_file_actions_addopen)
30788         (posix_spawn_file_actions_addclose)
30789         (posix_spawn_file_actions_adddup2): Likewise.
30790         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30791         * tests/test-signal.c (main): Enhance test.
30792
30793         spawn: improve wrapper support
30794         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30795         (gl_SPAWN_H_DEFAULTS): New defaults.
30796         * modules/spawn (Makefile.am): Substitute them.
30797         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30798         Only declare if missing or broken.
30799
30800         sys_times, sys_utsname: use include_next
30801         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30802         header.
30803         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30804         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30805         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30806         * modules/sys_times (Depends-on): Add include_next.
30807         (Makefile.am): Substitute additional values.
30808         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30809         * lib/sys_times.in.h (includes): Include native header, if
30810         available.
30811         * lib/sys_utsname.in.h (includes): Likewise.
30812         * tests/test-sys_times.c (main): Enhance test.
30813
30814         fdutimensat: revert prior patch
30815         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30816         utimens.h.
30817         Reported by Bruno Haible.
30818
30819 2009-12-30  Eric Blake  <ebb9@byu.net>
30820
30821         sys_wait: drop link-warning dependency
30822         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30823         link-warning efforts.
30824         * lib/sys_wait.in.h: Likewise.
30825
30826         fdutimensat: remove bogus dependency
30827         * modules/fdutimensat (Depends-on): Drop inline.
30828
30829         unistd: fix typo
30830         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30831
30832 2009-12-30  Bruno Haible  <bruno@clisp.org>
30833
30834         Fix compilation error with Solaris cc.
30835         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30836         * lib/unicase/u16-is-invariant.c: Likewise.
30837         * lib/unicase/u32-is-invariant.c: Likewise.
30838         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30839
30840 2009-12-30  Bruno Haible  <bruno@clisp.org>
30841
30842         Fix test crash.
30843         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30844         locales.
30845         Reported by Simon Josefsson <simon@josefsson.org>.
30846
30847 2009-12-30  Bruno Haible  <bruno@clisp.org>
30848
30849         Fix compilation error on most platforms.
30850         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30851         Reported by Simon Josefsson <simon@josefsson.org>
30852         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30853
30854 2009-12-30  Eric Blake  <ebb9@byu.net>
30855
30856         futimens, utimensat: work around ntfs-3g bug
30857         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30858         a ctime bug is present, and expand workaround to cover ntfs-3g.
30859         * lib/utimens.c (fdutimens, lutimens): Likewise.
30860         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30861         (validate_timespec): Adjust return value.
30862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30863         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30864         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30865
30866 2009-12-29  Eric Blake  <ebb9@byu.net>
30867
30868         link-warning: make usage consistent
30869         * modules/ctype (Depends-on): Add link-warning.
30870         (Makefile.am): Update rules accordingly.
30871         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30872         * modules/locale (Depends-on, Makefile.am): Likewise.
30873         * modules/sys_file (Makefile.am): Likewise.
30874         * modules/getopt-posix (Makefile.am): Delete unused link warning
30875         efforts.
30876         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30877         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30878         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30879         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30880
30881         stdio: remove unused variables
30882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30883         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30884         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30885
30886         tests: test more substitute headers
30887         * modules/ctype-tests: New file.
30888         * modules/dirent-tests: Likewise.
30889         * modules/spawn-tests: Likewise.
30890         * modules/sys_file-tests: Likewise.
30891         * modules/sys_ioctl-tests: Likewise.
30892         * modules/sys_wait-tests: Likewise.
30893         * tests/test-ctype.c: Likewise.
30894         * tests/test-dirent.c: Likewise.
30895         * tests/test-spawn.c: Likewise.
30896         * tests/test-sys_file.c: Likewise.
30897         * tests/test-sys_ioctl.c: Likewise.
30898         * tests/test-sys_wait.c: Likewise.
30899         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30900         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30901         whether or not flock is in use.
30902
30903         tests: remove License section from module
30904         * modules/arpa_inet-tests: Remove unneeded section.
30905         * modules/byteswap-tests: Likewise.
30906         * modules/ceilf-tests: Likewise.
30907         * modules/ceill-tests: Likewise.
30908         * modules/crypto/des-tests: Likewise.
30909         * modules/crypto/gc-arcfour-tests: Likewise.
30910         * modules/crypto/gc-arctwo-tests: Likewise.
30911         * modules/crypto/gc-des-tests: Likewise.
30912         * modules/crypto/gc-hmac-md5-tests: Likewise.
30913         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30914         * modules/crypto/gc-md2-tests: Likewise.
30915         * modules/crypto/gc-md4-tests: Likewise.
30916         * modules/crypto/gc-md5-tests: Likewise.
30917         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30918         * modules/crypto/gc-rijndael-tests: Likewise.
30919         * modules/crypto/gc-sha1-tests: Likewise.
30920         * modules/crypto/gc-tests: Likewise.
30921         * modules/crypto/md2-tests: Likewise.
30922         * modules/crypto/md4-tests: Likewise.
30923         * modules/fcntl-h-tests: Likewise.
30924         * modules/floorf-tests: Likewise.
30925         * modules/floorl-tests: Likewise.
30926         * modules/frexp-nolibm-tests: Likewise.
30927         * modules/frexp-tests: Likewise.
30928         * modules/frexpl-nolibm-tests: Likewise.
30929         * modules/frexpl-tests: Likewise.
30930         * modules/getaddrinfo-tests: Likewise.
30931         * modules/inttypes-tests: Likewise.
30932         * modules/isfinite-tests: Likewise.
30933         * modules/isinf-tests: Likewise.
30934         * modules/ldexpl-tests: Likewise.
30935         * modules/locale-tests: Likewise.
30936         * modules/math-tests: Likewise.
30937         * modules/netdb-tests: Likewise.
30938         * modules/netinet_in-tests: Likewise.
30939         * modules/printf-frexp-tests: Likewise.
30940         * modules/printf-frexpl-tests: Likewise.
30941         * modules/priv-set-tests: Likewise.
30942         * modules/random_r-tests: Likewise.
30943         * modules/round-tests: Likewise.
30944         * modules/roundf-tests: Likewise.
30945         * modules/roundl-tests: Likewise.
30946         * modules/search-tests: Likewise.
30947         * modules/select-tests: Likewise.
30948         * modules/signal-tests: Likewise.
30949         * modules/stdbool-tests: Likewise.
30950         * modules/stddef-tests: Likewise.
30951         * modules/stdint-tests: Likewise.
30952         * modules/stdio-tests: Likewise.
30953         * modules/stdlib-tests: Likewise.
30954         * modules/string-tests: Likewise.
30955         * modules/strings-tests: Likewise.
30956         * modules/sys_select-tests: Likewise.
30957         * modules/sys_socket-tests: Likewise.
30958         * modules/sys_stat-tests: Likewise.
30959         * modules/sys_time-tests: Likewise.
30960         * modules/sys_utsname-tests: Likewise.
30961         * modules/sysexits-tests: Likewise.
30962         * modules/time-tests: Likewise.
30963         * modules/trunc-tests: Likewise.
30964         * modules/truncf-tests: Likewise.
30965         * modules/truncl-tests: Likewise.
30966         * modules/tsearch-tests: Likewise.
30967         * modules/unistd-tests: Likewise.
30968         * modules/wchar-tests: Likewise.
30969         * modules/wctype-tests: Likewise.
30970
30971         tests: fix license on several tests
30972         * tests/test-des.c: Update to GPLv3+.
30973         * tests/test-flock.c: Likewise.
30974         * tests/test-fsync.c: Likewise.
30975         * tests/test-futimens.h: Likewise.
30976         * tests/test-gc-arcfour.c: Likewise.
30977         * tests/test-gc-arctwo.c: Likewise.
30978         * tests/test-gc-des.c: Likewise.
30979         * tests/test-gc-hmac-md5.c: Likewise.
30980         * tests/test-gc-hmac-sha1.c: Likewise.
30981         * tests/test-gc-md2.c: Likewise.
30982         * tests/test-gc-md4.c: Likewise.
30983         * tests/test-gc-md5.c: Likewise.
30984         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30985         * tests/test-gc-rijndael.c: Likewise.
30986         * tests/test-gc-sha1.c: Likewise.
30987         * tests/test-gc.c: Likewise.
30988         * tests/test-getcwd.c: Likewise.
30989         * tests/test-link.c: Likewise.
30990         * tests/test-link.h: Likewise.
30991         * tests/test-lutimens.h: Likewise.
30992         * tests/test-md2.c: Likewise.
30993         * tests/test-md4.c: Likewise.
30994         * tests/test-mkdir.h: Likewise.
30995         * tests/test-rename.c: Likewise.
30996         * tests/test-rename.h: Likewise.
30997         * tests/test-safe-alloc.c: Likewise.
30998         * tests/test-utimens-common.h: Likewise.
30999         * tests/test-utimens.h: Likewise.
31000
31001         maint: sync license texts
31002         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31003         * doc/gpl-3.0.texi: Revert copyright year update.
31004         * doc/lgpl-3.0.texi: Likewise.
31005
31006 2009-12-29  Jim Meyering  <meyering@redhat.com>
31007
31008         update nearly all FSF copyright year lists to include 2009
31009         The files named by the following are exempted:
31010             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31011               test -f "$dst" && { echo "$dst"; continue; }
31012               test -d "$dst" || continue
31013               echo "$dst"/$(basename "$src")
31014             done > exempt
31015             git ls-files tests/unictype >> exempt
31016         In the remaining files, convert to all-interval notation if
31017         - there is already at least one year interval like 2000-2003
31018         - the file is maintained by me
31019         - the file is in lib/uni*/, where that style already prevails
31020         Otherwise, use update-copyright's default.
31021
31022 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31023         and Eric Blake  <ebb9@byu.net>
31024
31025         tests: don't require debug system() to pass
31026         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31027         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31028         * tests/test-unlink.h (test_unlink_func): Likewise.
31029         * tests/test-fstatat.c (main): ...into callers.
31030         * tests/test-lstat.c (main): Likewise.
31031         * tests/test-rmdir.c (main): Likewise.
31032         * tests/test-unlink.c (main): Likewise.
31033         * tests/test-unlinkat.c (main): Likewise.
31034         * tests/test-areadlink-with-size.c (main): Don't require a
31035         debug-only system call to pass, aiding cross-testing to mingw.
31036         * tests/test-areadlink.c (main): Likewise.
31037         * tests/test-areadlinkat-with-size.c (main): Likewise.
31038         * tests/test-areadlinkat.c (main): Likewise.
31039         * tests/test-canonicalize-lgpl.c (main): Likewise.
31040         * tests/test-canonicalize.c (main): Likewise.
31041         * tests/test-chown.c (main): Likewise.
31042         * tests/test-fchownat.c (main): Likewise.
31043         * tests/test-lchown.c (main): Likewise.
31044         * tests/test-fdutimensat.c (main): Likewise.
31045         * tests/test-futimens.c (main): Likewise.
31046         * tests/test-link.c (main): Likewise.
31047         * tests/test-linkat.c (main): Likewise.
31048         * tests/test-mkdir.c (main): Likewise.
31049         * tests/test-mkdirat.c (main): Likewise.
31050         * tests/test-mkfifo.c (main): Likewise.
31051         * tests/test-mkfifoat.c (main): Likewise.
31052         * tests/test-mknod.c (main): Likewise.
31053         * tests/test-readlink.c (main): Likewise.
31054         * tests/test-remove.c (main): Likewise.
31055         * tests/test-rename.c (main): Likewise.
31056         * tests/test-renameat.c (main): Likewise.
31057         * tests/test-symlink.c (main): Likewise.
31058         * tests/test-symlinkat.c (main): Likewise.
31059         * tests/test-utimens.c (main): Likewise.
31060         * tests/test-utimensat.c (main): Likewise.
31061
31062 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31063
31064         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31065         on $(UNUSED_PARAMETER_H) to avoid build failure.
31066
31067 2009-12-28  Jim Meyering  <meyering@redhat.com>
31068
31069         update-copyright: you may specify a max. line length other than 72
31070         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31071
31072         maint: use consistent FSF copyright line syntax
31073         * lib/posixtm.c: Add missing comma in FSF copyright line.
31074         * lib/posixtm.h: Likewise.
31075         * lib/getugroups.c: Add missing ", Inc.".
31076
31077         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31078         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31079         FSF copyright line.  Remove trailing blanks.
31080
31081 2009-12-28  Eric Blake  <ebb9@byu.net>
31082
31083         test-dup2: reduce dependencies
31084         * modules/cloexec (Configure.ac): Set witness.
31085         * modules/dup2-tests (Depends-on): Drop cloexec.
31086         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31087         not present.
31088         Suggested by Bruno Haible.
31089
31090 2009-12-26  Bruno Haible  <bruno@clisp.org>
31091
31092         Remove an unneeded dependency.
31093         * modules/fseterr (Depends-on): Remove dup2.
31094
31095 2009-12-26  Eric Blake  <ebb9@byu.net>
31096
31097         tests: use macros.h in more places
31098         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31099         (ASSERT_STREAM): Provide default of stderr.
31100         * tests/test-dirent-safer.c: Include macros.h, using alternate
31101         stream for assertions.
31102         * tests/test-dup-safer.c: Likewise.
31103         * tests/test-freopen-safer.c: Likewise.
31104         * tests/test-getopt.c: Likewise.
31105         * tests/test-openat-safer.c: Likewise.
31106         * tests/test-pipe.c: Likewise.
31107         * tests/test-popen-safer.c: Likewise.
31108         * modules/dirent-safer-tests (Files): Include macros.h.
31109         * modules/unistd-safer-tests (Files): Likewise.
31110         * modules/freopen-safer-tests (Files): Likewise.
31111         * modules/getopt-posix-tests (Files): Likewise.
31112         * modules/openat-safer-tests (Files): Likewise.
31113         * modules/pipe-tests (Files): Likewise.
31114
31115 2009-12-26  Bruno Haible  <bruno@clisp.org>
31116
31117         javacomp: Portability fix.
31118         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31119         that it also works on Solaris.
31120
31121 2009-12-26  Bruno Haible  <bruno@clisp.org>
31122
31123         localename: Fix storage allocation of gl_locale_name_thread's result.
31124         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31125         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31126         all platforms that have 'uselocale'.
31127         (gl_locale_name_thread_unsafe): New function, extracted from
31128         gl_locale_name_thread.
31129         (gl_locale_name_thread): Call struniq on all platforms that have
31130         'uselocale'.
31131         * tests/test-localename.c (test_locale_name_thread): Check that the
31132         resulting strings are permanently allocated.
31133         * modules/localename-tests (Depends-on): Add strdup.
31134
31135 2009-12-26  Bruno Haible  <bruno@clisp.org>
31136
31137         * tests/test-localename.c (categories): Fill in the strings.
31138
31139 2009-12-26  Jim Meyering  <meyering@redhat.com>
31140
31141         isdir: complete the removal of m4/isdir.m4
31142         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31143
31144         isdir: clean up, since at least grep still uses it
31145         * lib/isdir.c: Include "isdir.h".
31146         (S_ISDIR): Remove now-unneeded definition.
31147         * modules/isdir (Files): Add lib/isdir.h.
31148         * lib/isdir.h: New file, with declaration.
31149         * m4/isdir.m4: Remove file -- unneeded.
31150
31151 2009-12-25  Bruno Haible  <bruno@clisp.org>
31152
31153         selinux-h: Make generated .h files standalone.
31154         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31155         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31156         * lib/se-selinux.in.h: Likewise.
31157         * modules/selinux-h (Depends-on): Add unused-parameter.
31158         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31159         selinux/selinux.h and selinux/context.h.
31160         Suggested by Eric Blake.
31161
31162 2009-12-25  Bruno Haible  <bruno@clisp.org>
31163
31164         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31165         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31166         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31167         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31168         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31169
31170 2009-12-24  Bruno Haible  <bruno@clisp.org>
31171
31172         openat: Fix warning.
31173         * lib/openat-proc.c: Include <unistd.h>.
31174
31175 2009-12-24  Bruno Haible  <bruno@clisp.org>
31176
31177         New module 'unused-parameter'.
31178         * build-aux/unused-parameter.h: New file, extracted from earlier
31179         gnulib-common.m4.
31180         * modules/unused-parameter: New file.
31181         * lib/unistr.h: Include unused-parameter.h.
31182         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31183         _GL_UNUSED.
31184         * modules/unistr/base (Depends-on): Add unused-parameter.
31185
31186 2009-12-24  Bruno Haible  <bruno@clisp.org>
31187
31188         Add missing dependencies to 'extensions' module.
31189         * m4/extensions.m4: Add comment.
31190         * modules/accept4 (Depends-on): Add extensions.
31191         * modules/dup3 (Depends-on): Likewise.
31192         * modules/fcntl (Depends-on): Likewise.
31193         * modules/futimens (Depends-on): Likewise.
31194         * modules/mknod (Depends-on): Likewise.
31195         * modules/pipe2 (Depends-on): Likewise.
31196         * modules/stat-time (Depends-on): Likewise.
31197         * modules/strcasestr-simple (Depends-on): Likewise.
31198         * modules/strsignal (Depends-on): Likewise.
31199         * modules/utimensat (Depends-on): Likewise.
31200         * modules/localcharset (Depends-on): Likewise. Needed because of
31201         gl_FCNTL_O_FLAGS.
31202         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31203         AC_TYPE_MBSTATE_T.
31204         * modules/wcsnrtombs (Depends-on): Likewise.
31205         * modules/wcsrtombs (Depends-on): Likewise.
31206
31207 2009-12-24  Bruno Haible  <bruno@clisp.org>
31208
31209         binary-io: Avoid gcc warning due to SET_BINARY.
31210         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31211         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31212
31213 2009-12-24  Bruno Haible  <bruno@clisp.org>
31214
31215         Avoid future namespace pollution on glibc systems.
31216         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31217         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31218         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31219         glibc systems.
31220
31221 2009-12-24  Bruno Haible  <bruno@clisp.org>
31222
31223         Refactor common macros used in tests.
31224         * tests/macros.h: New file.
31225         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31226         and/or <stdlib.h>, if appropriate.
31227         (ASSERT, SIZEOF): Remove macros.
31228         * tests/test-areadlink-with-size.c: Likewise.
31229         * tests/test-areadlinkat.c: Likewise.
31230         * tests/test-areadlinkat-with-size.c: Likewise.
31231         * tests/test-argmatch.c: Likewise.
31232         * tests/test-argv-iter.c: Likewise.
31233         * tests/test-array-mergesort.c: Likewise.
31234         * tests/test-array_list.c: Likewise.
31235         * tests/test-array_oset.c: Likewise.
31236         * tests/test-avltree_list.c: Likewise.
31237         * tests/test-avltree_oset.c: Likewise.
31238         * tests/test-avltreehash_list.c: Likewise.
31239         * tests/test-base64.c: Likewise.
31240         * tests/test-binary-io.c: Likewise.
31241         * tests/test-bitrotate.c: Likewise.
31242         * tests/test-btowc.c: Likewise.
31243         * tests/test-byteswap.c: Likewise.
31244         * tests/test-c-ctype.c: Likewise.
31245         * tests/test-c-stack.c: Likewise.
31246         * tests/test-c-strcasecmp.c: Likewise.
31247         * tests/test-c-strcasestr.c: Likewise.
31248         * tests/test-c-strncasecmp.c: Likewise.
31249         * tests/test-c-strstr.c: Likewise.
31250         * tests/test-canonicalize-lgpl.c: Likewise.
31251         * tests/test-canonicalize.c: Likewise.
31252         * tests/test-carray_list.c: Likewise.
31253         * tests/test-ceilf1.c: Likewise.
31254         * tests/test-ceilf2.c: Likewise.
31255         * tests/test-ceill.c: Likewise.
31256         * tests/test-chown.c: Likewise.
31257         * tests/test-cloexec.c: Likewise.
31258         * tests/test-copy-acl.c: Likewise.
31259         * tests/test-copy-file.c: Likewise.
31260         * tests/test-count-one-bits.c: Likewise.
31261         * tests/test-dprintf-posix.c: Likewise.
31262         * tests/test-dup2.c: Likewise.
31263         * tests/test-dup3.c: Likewise.
31264         * tests/test-duplocale.c: Likewise.
31265         * tests/test-fbufmode.c: Likewise.
31266         * tests/test-fchdir.c: Likewise.
31267         * tests/test-fchownat.c: Likewise.
31268         * tests/test-fcntl-safer.c: Likewise.
31269         * tests/test-fcntl.c: Likewise.
31270         * tests/test-fdopendir.c: Likewise.
31271         * tests/test-fdutimensat.c: Likewise.
31272         * tests/test-fflush2.c: Likewise.
31273         * tests/test-file-has-acl.c: Likewise.
31274         * tests/test-filevercmp.c: Likewise.
31275         * tests/test-flock.c: Likewise.
31276         * tests/test-floorf1.c: Likewise.
31277         * tests/test-floorf2.c: Likewise.
31278         * tests/test-floorl.c: Likewise.
31279         * tests/test-fnmatch.c: Likewise.
31280         * tests/test-fopen.h: Likewise.
31281         * tests/test-fpending.c: Likewise.
31282         * tests/test-fprintf-posix.c: Likewise.
31283         * tests/test-fpurge.c: Likewise.
31284         * tests/test-freadable.c: Likewise.
31285         * tests/test-freadahead.c: Likewise.
31286         * tests/test-freading.c: Likewise.
31287         * tests/test-freadptr.c: Likewise.
31288         * tests/test-freadptr2.c: Likewise.
31289         * tests/test-freadseek.c: Likewise.
31290         * tests/test-freopen.c: Likewise.
31291         * tests/test-frexp.c: Likewise.
31292         * tests/test-frexpl.c: Likewise.
31293         * tests/test-fseek.c: Likewise.
31294         * tests/test-fseeko.c: Likewise.
31295         * tests/test-fstatat.c: Likewise.
31296         * tests/test-fstrcmp.c: Likewise.
31297         * tests/test-fsync.c: Likewise.
31298         * tests/test-ftell.c: Likewise.
31299         * tests/test-ftello.c: Likewise.
31300         * tests/test-func.c: Likewise.
31301         * tests/test-futimens.c: Likewise.
31302         * tests/test-fwritable.c: Likewise.
31303         * tests/test-fwriting.c: Likewise.
31304         * tests/test-getcwd.c: Likewise.
31305         * tests/test-getdate.c: Likewise.
31306         * tests/test-getdelim.c: Likewise.
31307         * tests/test-getdtablesize.c: Likewise.
31308         * tests/test-getgroups.c: Likewise.
31309         * tests/test-getline.c: Likewise.
31310         * tests/test-getndelim2.c: Likewise.
31311         * tests/test-glob.c: Likewise.
31312         * tests/test-hash.c: Likewise.
31313         * tests/test-i-ring.c: Likewise.
31314         * tests/test-iconv-utf.c: Likewise.
31315         * tests/test-iconv.c: Likewise.
31316         * tests/test-idpriv-drop.c: Likewise.
31317         * tests/test-idpriv-droptemp.c: Likewise.
31318         * tests/test-inet_ntop.c: Likewise.
31319         * tests/test-inet_pton.c: Likewise.
31320         * tests/test-isblank.c: Likewise.
31321         * tests/test-isfinite.c: Likewise.
31322         * tests/test-isinf.c: Likewise.
31323         * tests/test-isnan.c: Likewise.
31324         * tests/test-isnand.h: Likewise.
31325         * tests/test-isnanf.h: Likewise.
31326         * tests/test-isnanl.h: Likewise.
31327         * tests/test-lchown.c: Likewise.
31328         * tests/test-ldexpl.c: Likewise.
31329         * tests/test-link.c: Likewise.
31330         * tests/test-linkat.c: Likewise.
31331         * tests/test-linked_list.c: Likewise.
31332         * tests/test-linkedhash_list.c: Likewise.
31333         * tests/test-localename.c: Likewise.
31334         * tests/test-lseek.c: Likewise.
31335         * tests/test-lstat.c: Likewise.
31336         * tests/test-mbmemcasecmp.c: Likewise.
31337         * tests/test-mbmemcasecoll.c: Likewise.
31338         * tests/test-mbrtowc.c: Likewise.
31339         * tests/test-mbscasecmp.c: Likewise.
31340         * tests/test-mbscasestr1.c: Likewise.
31341         * tests/test-mbscasestr2.c: Likewise.
31342         * tests/test-mbscasestr3.c: Likewise.
31343         * tests/test-mbscasestr4.c: Likewise.
31344         * tests/test-mbschr.c: Likewise.
31345         * tests/test-mbscspn.c: Likewise.
31346         * tests/test-mbsinit.c: Likewise.
31347         * tests/test-mbsncasecmp.c: Likewise.
31348         * tests/test-mbsnrtowcs.c: Likewise.
31349         * tests/test-mbspbrk.c: Likewise.
31350         * tests/test-mbspcasecmp.c: Likewise.
31351         * tests/test-mbsrchr.c: Likewise.
31352         * tests/test-mbsrtowcs.c: Likewise.
31353         * tests/test-mbsspn.c: Likewise.
31354         * tests/test-mbsstr1.c: Likewise.
31355         * tests/test-mbsstr2.c: Likewise.
31356         * tests/test-mbsstr3.c: Likewise.
31357         * tests/test-memchr.c: Likewise.
31358         * tests/test-memchr2.c: Likewise.
31359         * tests/test-memcmp.c: Likewise.
31360         * tests/test-memmem.c: Likewise.
31361         * tests/test-memrchr.c: Likewise.
31362         * tests/test-mkdir.c: Likewise.
31363         * tests/test-mkdirat.c: Likewise.
31364         * tests/test-mkfifo.c: Likewise.
31365         * tests/test-mkfifoat.c: Likewise.
31366         * tests/test-mknod.c: Likewise.
31367         * tests/test-nanosleep.c: Likewise.
31368         * tests/test-nl_langinfo.c: Likewise.
31369         * tests/test-obstack-printf.c: Likewise.
31370         * tests/test-open.c: Likewise.
31371         * tests/test-openat.c: Likewise.
31372         * tests/test-pipe-filter-gi1.c: Likewise.
31373         * tests/test-pipe-filter-gi2-main.c: Likewise.
31374         * tests/test-pipe-filter-ii1.c: Likewise.
31375         * tests/test-pipe-filter-ii2-main.c: Likewise.
31376         * tests/test-pipe2.c: Likewise.
31377         * tests/test-popen.h: Likewise.
31378         * tests/test-posixtm.c: Likewise.
31379         * tests/test-pread.c: Likewise.
31380         * tests/test-printf-frexp.c: Likewise.
31381         * tests/test-printf-frexpl.c: Likewise.
31382         * tests/test-printf-posix.c: Likewise.
31383         * tests/test-priv-set.c: Likewise.
31384         * tests/test-quotearg.c: Likewise.
31385         * tests/test-random_r.c: Likewise.
31386         * tests/test-rawmemchr.c: Likewise.
31387         * tests/test-rbtree_list.c: Likewise.
31388         * tests/test-rbtree_oset.c: Likewise.
31389         * tests/test-rbtreehash_list.c: Likewise.
31390         * tests/test-readlink.c: Likewise.
31391         * tests/test-remove.c: Likewise.
31392         * tests/test-rename.c: Likewise.
31393         * tests/test-renameat.c: Likewise.
31394         * tests/test-rmdir.c: Likewise.
31395         * tests/test-round1.c: Likewise.
31396         * tests/test-roundf1.c: Likewise.
31397         * tests/test-roundl.c: Likewise.
31398         * tests/test-safe-alloc.c: Likewise.
31399         * tests/test-sameacls.c: Likewise.
31400         * tests/test-set-mode-acl.c: Likewise.
31401         * tests/test-setenv.c: Likewise.
31402         * tests/test-sigaction.c: Likewise.
31403         * tests/test-signbit.c: Likewise.
31404         * tests/test-sleep.c: Likewise.
31405         * tests/test-snprintf-posix.c: Likewise.
31406         * tests/test-snprintf.c: Likewise.
31407         * tests/test-sprintf-posix.c: Likewise.
31408         * tests/test-stat-time.c: Likewise.
31409         * tests/test-stat.c: Likewise.
31410         * tests/test-strcasestr.c: Likewise.
31411         * tests/test-strchrnul.c: Likewise.
31412         * tests/test-strerror.c: Likewise.
31413         * tests/test-striconv.c: Likewise.
31414         * tests/test-striconveh.c: Likewise.
31415         * tests/test-striconveha.c: Likewise.
31416         * tests/test-strsignal.c: Likewise.
31417         * tests/test-strstr.c: Likewise.
31418         * tests/test-strtod.c: Likewise.
31419         * tests/test-strverscmp.c: Likewise.
31420         * tests/test-symlink.c: Likewise.
31421         * tests/test-symlinkat.c: Likewise.
31422         * tests/test-trunc1.c: Likewise.
31423         * tests/test-trunc2.c: Likewise.
31424         * tests/test-truncf1.c: Likewise.
31425         * tests/test-truncf2.c: Likewise.
31426         * tests/test-truncl.c: Likewise.
31427         * tests/test-uname.c: Likewise.
31428         * tests/test-unlink.c: Likewise.
31429         * tests/test-unlinkat.c: Likewise.
31430         * tests/test-unsetenv.c: Likewise.
31431         * tests/test-usleep.c: Likewise.
31432         * tests/test-utimens.c: Likewise.
31433         * tests/test-utimensat.c: Likewise.
31434         * tests/test-vasnprintf-posix.c: Likewise.
31435         * tests/test-vasnprintf-posix2.c: Likewise.
31436         * tests/test-vasnprintf.c: Likewise.
31437         * tests/test-vasprintf-posix.c: Likewise.
31438         * tests/test-vasprintf.c: Likewise.
31439         * tests/test-vdprintf-posix.c: Likewise.
31440         * tests/test-vfprintf-posix.c: Likewise.
31441         * tests/test-vprintf-posix.c: Likewise.
31442         * tests/test-vsnprintf-posix.c: Likewise.
31443         * tests/test-vsnprintf.c: Likewise.
31444         * tests/test-vsprintf-posix.c: Likewise.
31445         * tests/test-wcrtomb.c: Likewise.
31446         * tests/test-wcsnrtombs.c: Likewise.
31447         * tests/test-wcsrtombs.c: Likewise.
31448         * tests/test-wctype.c: Likewise.
31449         * tests/test-wcwidth.c: Likewise.
31450         * tests/test-xfprintf-posix.c: Likewise.
31451         * tests/test-xmemdup0.c: Likewise.
31452         * tests/test-xprintf-posix.c: Likewise.
31453         * tests/test-xvasprintf.c: Likewise.
31454         * tests/unicase/test-locale-language.c: Likewise.
31455         * tests/unicase/test-mapping-part1.h: Likewise.
31456         * tests/unicase/test-predicate-part1.h: Likewise.
31457         * tests/unicase/test-u8-casecmp.c: Likewise.
31458         * tests/unicase/test-u8-casecoll.c: Likewise.
31459         * tests/unicase/test-u8-casefold.c: Likewise.
31460         * tests/unicase/test-u8-is-cased.c: Likewise.
31461         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31462         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31463         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31464         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31465         * tests/unicase/test-u8-tolower.c: Likewise.
31466         * tests/unicase/test-u8-totitle.c: Likewise.
31467         * tests/unicase/test-u8-toupper.c: Likewise.
31468         * tests/unicase/test-u16-casecmp.c: Likewise.
31469         * tests/unicase/test-u16-casecoll.c: Likewise.
31470         * tests/unicase/test-u16-casefold.c: Likewise.
31471         * tests/unicase/test-u16-is-cased.c: Likewise.
31472         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31473         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31474         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31475         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31476         * tests/unicase/test-u16-tolower.c: Likewise.
31477         * tests/unicase/test-u16-totitle.c: Likewise.
31478         * tests/unicase/test-u16-toupper.c: Likewise.
31479         * tests/unicase/test-u32-casecmp.c: Likewise.
31480         * tests/unicase/test-u32-casecoll.c: Likewise.
31481         * tests/unicase/test-u32-casefold.c: Likewise.
31482         * tests/unicase/test-u32-is-cased.c: Likewise.
31483         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31484         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31485         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31486         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31487         * tests/unicase/test-u32-tolower.c: Likewise.
31488         * tests/unicase/test-u32-totitle.c: Likewise.
31489         * tests/unicase/test-u32-toupper.c: Likewise.
31490         * tests/unicase/test-ulc-casecmp.c: Likewise.
31491         * tests/unicase/test-ulc-casecoll.c: Likewise.
31492         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31493         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31494         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31495         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31496         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31497         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31498         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31499         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31500         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31501         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31502         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31503         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31504         * tests/unictype/test-bidi_byname.c: Likewise.
31505         * tests/unictype/test-bidi_name.c: Likewise.
31506         * tests/unictype/test-bidi_of.c: Likewise.
31507         * tests/unictype/test-bidi_test.c: Likewise.
31508         * tests/unictype/test-block_list.c: Likewise.
31509         * tests/unictype/test-block_of.c: Likewise.
31510         * tests/unictype/test-block_test.c: Likewise.
31511         * tests/unictype/test-categ_and.c: Likewise.
31512         * tests/unictype/test-categ_and_not.c: Likewise.
31513         * tests/unictype/test-categ_byname.c: Likewise.
31514         * tests/unictype/test-categ_name.c: Likewise.
31515         * tests/unictype/test-categ_none.c: Likewise.
31516         * tests/unictype/test-categ_of.c: Likewise.
31517         * tests/unictype/test-categ_or.c: Likewise.
31518         * tests/unictype/test-categ_test_withtable.c: Likewise.
31519         * tests/unictype/test-combining.c: Likewise.
31520         * tests/unictype/test-decdigit.c: Likewise.
31521         * tests/unictype/test-digit.c: Likewise.
31522         * tests/unictype/test-mirror.c: Likewise.
31523         * tests/unictype/test-numeric.c: Likewise.
31524         * tests/unictype/test-pr_byname.c: Likewise.
31525         * tests/unictype/test-pr_test.c: Likewise.
31526         * tests/unictype/test-predicate-part1.h: Likewise.
31527         * tests/unictype/test-scripts.c: Likewise.
31528         * tests/unictype/test-sy_c_ident.c: Likewise.
31529         * tests/unictype/test-sy_java_ident.c: Likewise.
31530         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31531         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31532         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31533         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31534         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31535         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31536         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31537         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31538         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31539         * tests/uninorm/test-compat-decomposition.c: Likewise.
31540         * tests/uninorm/test-composition.c: Likewise.
31541         * tests/uninorm/test-decomposing-form.c: Likewise.
31542         * tests/uninorm/test-decomposition.c: Likewise.
31543         * tests/uninorm/test-u8-nfc.c: Likewise.
31544         * tests/uninorm/test-u8-nfd.c: Likewise.
31545         * tests/uninorm/test-u8-nfkc.c: Likewise.
31546         * tests/uninorm/test-u8-nfkd.c: Likewise.
31547         * tests/uninorm/test-u8-normcmp.c: Likewise.
31548         * tests/uninorm/test-u8-normcoll.c: Likewise.
31549         * tests/uninorm/test-u16-nfc.c: Likewise.
31550         * tests/uninorm/test-u16-nfd.c: Likewise.
31551         * tests/uninorm/test-u16-nfkc.c: Likewise.
31552         * tests/uninorm/test-u16-nfkd.c: Likewise.
31553         * tests/uninorm/test-u16-normcmp.c: Likewise.
31554         * tests/uninorm/test-u16-normcoll.c: Likewise.
31555         * tests/uninorm/test-u32-nfc.c: Likewise.
31556         * tests/uninorm/test-u32-nfd.c: Likewise.
31557         * tests/uninorm/test-u32-nfkc.c: Likewise.
31558         * tests/uninorm/test-u32-nfkd.c: Likewise.
31559         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31560         * tests/uninorm/test-u32-normcmp.c: Likewise.
31561         * tests/uninorm/test-u32-normcoll.c: Likewise.
31562         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31563         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31564         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31565         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31566         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31567         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31568         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31569         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31570         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31571         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31572         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31573         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31574         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31575         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31576         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31577         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31578         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31579         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31580         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31581         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31582         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31583         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31584         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31585         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31586         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31587         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31588         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31589         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31590         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31591         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31592         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31593         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31594         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31595         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31596         * tests/uniwidth/test-u8-width.c: Likewise.
31597         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31598         * tests/uniwidth/test-u16-width.c: Likewise.
31599         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31600         * tests/uniwidth/test-u32-width.c: Likewise.
31601         * tests/uniwidth/test-uc_width.c: Likewise.
31602         * tests/uniwidth/test-uc_width2.c: Likewise.
31603         * modules/acl-tests (Files): Add tests/macros.h.
31604         * modules/areadlink-tests (Files): Likewise.
31605         * modules/areadlink-with-size-tests (Files): Likewise.
31606         * modules/areadlinkat-tests (Files): Likewise.
31607         * modules/areadlinkat-with-size-tests (Files): Likewise.
31608         * modules/argmatch-tests (Files): Likewise.
31609         * modules/argv-iter-tests (Files): Likewise.
31610         * modules/array-list-tests (Files): Likewise.
31611         * modules/array-mergesort-tests (Files): Likewise.
31612         * modules/array-oset-tests (Files): Likewise.
31613         * modules/avltree-list-tests (Files): Likewise.
31614         * modules/avltree-oset-tests (Files): Likewise.
31615         * modules/avltreehash-list-tests (Files): Likewise.
31616         * modules/base64-tests (Files): Likewise.
31617         * modules/binary-io-tests (Files): Likewise.
31618         * modules/bitrotate-tests (Files): Likewise.
31619         * modules/btowc-tests (Files): Likewise.
31620         * modules/byteswap-tests (Files): Likewise.
31621         * modules/c-ctype-tests (Files): Likewise.
31622         * modules/c-stack-tests (Files): Likewise.
31623         * modules/c-strcase-tests (Files): Likewise.
31624         * modules/c-strcasestr-tests (Files): Likewise.
31625         * modules/c-strstr-tests (Files): Likewise.
31626         * modules/canonicalize-lgpl-tests (Files): Likewise.
31627         * modules/canonicalize-tests (Files): Likewise.
31628         * modules/carray-list-tests (Files): Likewise.
31629         * modules/ceilf-tests (Files): Likewise.
31630         * modules/ceill-tests (Files): Likewise.
31631         * modules/chown-tests (Files): Likewise.
31632         * modules/cloexec-tests (Files): Likewise.
31633         * modules/copy-file-tests (Files): Likewise.
31634         * modules/count-one-bits-tests (Files): Likewise.
31635         * modules/dprintf-posix-tests (Files): Likewise.
31636         * modules/dup2-tests (Files): Likewise.
31637         * modules/dup3-tests (Files): Likewise.
31638         * modules/duplocale-tests (Files): Likewise.
31639         * modules/fbufmode-tests (Files): Likewise.
31640         * modules/fchdir-tests (Files): Likewise.
31641         * modules/fcntl-safer-tests (Files): Likewise.
31642         * modules/fcntl-tests (Files): Likewise.
31643         * modules/fdopendir-tests (Files): Likewise.
31644         * modules/fdutimensat-tests (Files): Likewise.
31645         * modules/fflush-tests (Files): Likewise.
31646         * modules/filevercmp-tests (Files): Likewise.
31647         * modules/flock-tests (Files): Likewise.
31648         * modules/floorf-tests (Files): Likewise.
31649         * modules/floorl-tests (Files): Likewise.
31650         * modules/fnmatch-tests (Files): Likewise.
31651         * modules/fopen-safer-tests (Files): Likewise.
31652         * modules/fopen-tests (Files): Likewise.
31653         * modules/fpending-tests (Files): Likewise.
31654         * modules/fprintf-posix-tests (Files): Likewise.
31655         * modules/fpurge-tests (Files): Likewise.
31656         * modules/freadable-tests (Files): Likewise.
31657         * modules/freadahead-tests (Files): Likewise.
31658         * modules/freading-tests (Files): Likewise.
31659         * modules/freadptr-tests (Files): Likewise.
31660         * modules/freadseek-tests (Files): Likewise.
31661         * modules/freopen-tests (Files): Likewise.
31662         * modules/frexp-nolibm-tests (Files): Likewise.
31663         * modules/frexp-tests (Files): Likewise.
31664         * modules/frexpl-nolibm-tests (Files): Likewise.
31665         * modules/frexpl-tests (Files): Likewise.
31666         * modules/fseek-tests (Files): Likewise.
31667         * modules/fseeko-tests (Files): Likewise.
31668         * modules/fstrcmp-tests (Files): Likewise.
31669         * modules/fsync-tests (Files): Likewise.
31670         * modules/ftell-tests (Files): Likewise.
31671         * modules/ftello-tests (Files): Likewise.
31672         * modules/func-tests (Files): Likewise.
31673         * modules/futimens-tests (Files): Likewise.
31674         * modules/fwritable-tests (Files): Likewise.
31675         * modules/fwriting-tests (Files): Likewise.
31676         * modules/getcwd-tests (Files): Likewise.
31677         * modules/getdate-tests (Files): Likewise.
31678         * modules/getdelim-tests (Files): Likewise.
31679         * modules/getdtablesize-tests (Files): Likewise.
31680         * modules/getgroups-tests (Files): Likewise.
31681         * modules/getline-tests (Files): Likewise.
31682         * modules/getndelim2-tests (Files): Likewise.
31683         * modules/glob-tests (Files): Likewise.
31684         * modules/hash-tests (Files): Likewise.
31685         * modules/i-ring-tests (Files): Likewise.
31686         * modules/iconv-tests (Files): Likewise.
31687         * modules/iconv_open-utf-tests (Files): Likewise.
31688         * modules/idpriv-drop-tests (Files): Likewise.
31689         * modules/idpriv-droptemp-tests (Files): Likewise.
31690         * modules/inet_ntop-tests (Files): Likewise.
31691         * modules/inet_pton-tests (Files): Likewise.
31692         * modules/isblank-tests (Files): Likewise.
31693         * modules/isfinite-tests (Files): Likewise.
31694         * modules/isinf-tests (Files): Likewise.
31695         * modules/isnan-tests (Files): Likewise.
31696         * modules/isnand-nolibm-tests (Files): Likewise.
31697         * modules/isnand-tests (Files): Likewise.
31698         * modules/isnanf-nolibm-tests (Files): Likewise.
31699         * modules/isnanf-tests (Files): Likewise.
31700         * modules/isnanl-nolibm-tests (Files): Likewise.
31701         * modules/isnanl-tests (Files): Likewise.
31702         * modules/lchown-tests (Files): Likewise.
31703         * modules/ldexpl-tests (Files): Likewise.
31704         * modules/link-tests (Files): Likewise.
31705         * modules/linkat-tests (Files): Likewise.
31706         * modules/linked-list-tests (Files): Likewise.
31707         * modules/linkedhash-list-tests (Files): Likewise.
31708         * modules/localename-tests (Files): Likewise.
31709         * modules/lseek-tests (Files): Likewise.
31710         * modules/lstat-tests (Files): Likewise.
31711         * modules/mbmemcasecmp-tests (Files): Likewise.
31712         * modules/mbmemcasecoll-tests (Files): Likewise.
31713         * modules/mbrtowc-tests (Files): Likewise.
31714         * modules/mbscasecmp-tests (Files): Likewise.
31715         * modules/mbscasestr-tests (Files): Likewise.
31716         * modules/mbschr-tests (Files): Likewise.
31717         * modules/mbscspn-tests (Files): Likewise.
31718         * modules/mbsinit-tests (Files): Likewise.
31719         * modules/mbsncasecmp-tests (Files): Likewise.
31720         * modules/mbsnrtowcs-tests (Files): Likewise.
31721         * modules/mbspbrk-tests (Files): Likewise.
31722         * modules/mbspcasecmp-tests (Files): Likewise.
31723         * modules/mbsrchr-tests (Files): Likewise.
31724         * modules/mbsrtowcs-tests (Files): Likewise.
31725         * modules/mbsspn-tests (Files): Likewise.
31726         * modules/mbsstr-tests (Files): Likewise.
31727         * modules/memchr-tests (Files): Likewise.
31728         * modules/memchr2-tests (Files): Likewise.
31729         * modules/memcmp-tests (Files): Likewise.
31730         * modules/memmem-tests (Files): Likewise.
31731         * modules/memrchr-tests (Files): Likewise.
31732         * modules/mkdir-tests (Files): Likewise.
31733         * modules/mkfifo-tests (Files): Likewise.
31734         * modules/mkfifoat-tests (Files): Likewise.
31735         * modules/mknod-tests (Files): Likewise.
31736         * modules/nanosleep-tests (Files): Likewise.
31737         * modules/nl_langinfo-tests (Files): Likewise.
31738         * modules/obstack-printf-tests (Files): Likewise.
31739         * modules/open-tests (Files): Likewise.
31740         * modules/openat-tests (Files): Likewise.
31741         * modules/pipe-filter-gi-tests (Files): Likewise.
31742         * modules/pipe-filter-ii-tests (Files): Likewise.
31743         * modules/pipe2-tests (Files): Likewise.
31744         * modules/popen-safer-tests (Files): Likewise.
31745         * modules/popen-tests (Files): Likewise.
31746         * modules/posixtm-tests (Files): Likewise.
31747         * modules/pread-tests (Files): Likewise.
31748         * modules/printf-frexp-tests (Files): Likewise.
31749         * modules/printf-frexpl-tests (Files): Likewise.
31750         * modules/printf-posix-tests (Files): Likewise.
31751         * modules/priv-set-tests (Files): Likewise.
31752         * modules/quotearg-tests (Files): Likewise.
31753         * modules/random_r-tests (Files): Likewise.
31754         * modules/rawmemchr-tests (Files): Likewise.
31755         * modules/rbtree-list-tests (Files): Likewise.
31756         * modules/rbtree-oset-tests (Files): Likewise.
31757         * modules/rbtreehash-list-tests (Files): Likewise.
31758         * modules/readlink-tests (Files): Likewise.
31759         * modules/remove-tests (Files): Likewise.
31760         * modules/rename-tests (Files): Likewise.
31761         * modules/renameat-tests (Files): Likewise.
31762         * modules/rmdir-tests (Files): Likewise.
31763         * modules/round-tests (Files): Likewise.
31764         * modules/roundf-tests (Files): Likewise.
31765         * modules/roundl-tests (Files): Likewise.
31766         * modules/safe-alloc-tests (Files): Likewise.
31767         * modules/setenv-tests (Files): Likewise.
31768         * modules/sigaction-tests (Files): Likewise.
31769         * modules/signbit-tests (Files): Likewise.
31770         * modules/sleep-tests (Files): Likewise.
31771         * modules/snprintf-posix-tests (Files): Likewise.
31772         * modules/snprintf-tests (Files): Likewise.
31773         * modules/sprintf-posix-tests (Files): Likewise.
31774         * modules/stat-tests (Files): Likewise.
31775         * modules/stat-time-tests (Files): Likewise.
31776         * modules/strcasestr-tests (Files): Likewise.
31777         * modules/strchrnul-tests (Files): Likewise.
31778         * modules/strerror-tests (Files): Likewise.
31779         * modules/striconv-tests (Files): Likewise.
31780         * modules/striconveh-tests (Files): Likewise.
31781         * modules/striconveha-tests (Files): Likewise.
31782         * modules/strsignal-tests (Files): Likewise.
31783         * modules/strstr-tests (Files): Likewise.
31784         * modules/strtod-tests (Files): Likewise.
31785         * modules/strverscmp-tests (Files): Likewise.
31786         * modules/symlink-tests (Files): Likewise.
31787         * modules/symlinkat-tests (Files): Likewise.
31788         * modules/trunc-tests (Files): Likewise.
31789         * modules/truncf-tests (Files): Likewise.
31790         * modules/truncl-tests (Files): Likewise.
31791         * modules/uname-tests (Files): Likewise.
31792         * modules/unicase/cased-tests (Files): Likewise.
31793         * modules/unicase/ignorable-tests (Files): Likewise.
31794         * modules/unicase/locale-language-tests (Files): Likewise.
31795         * modules/unicase/tolower-tests (Files): Likewise.
31796         * modules/unicase/totitle-tests (Files): Likewise.
31797         * modules/unicase/toupper-tests (Files): Likewise.
31798         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31799         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31800         * modules/unicase/u8-casefold-tests (Files): Likewise.
31801         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31802         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31803         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31804         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31805         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31806         * modules/unicase/u8-tolower-tests (Files): Likewise.
31807         * modules/unicase/u8-totitle-tests (Files): Likewise.
31808         * modules/unicase/u8-toupper-tests (Files): Likewise.
31809         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31810         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31811         * modules/unicase/u16-casefold-tests (Files): Likewise.
31812         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31813         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31814         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31815         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31816         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31817         * modules/unicase/u16-tolower-tests (Files): Likewise.
31818         * modules/unicase/u16-totitle-tests (Files): Likewise.
31819         * modules/unicase/u16-toupper-tests (Files): Likewise.
31820         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31821         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31822         * modules/unicase/u32-casefold-tests (Files): Likewise.
31823         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31824         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31825         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31826         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31827         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31828         * modules/unicase/u32-tolower-tests (Files): Likewise.
31829         * modules/unicase/u32-totitle-tests (Files): Likewise.
31830         * modules/unicase/u32-toupper-tests (Files): Likewise.
31831         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31832         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31833         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31834         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31835         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31836         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31837         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31838         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31839         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31840         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31841         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31842         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31843         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31844         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31845         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31846         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31847         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31848         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31849         * modules/unictype/block-list-tests (Files): Likewise.
31850         * modules/unictype/block-of-tests (Files): Likewise.
31851         * modules/unictype/block-test-tests (Files): Likewise.
31852         * modules/unictype/category-C-tests (Files): Likewise.
31853         * modules/unictype/category-Cc-tests (Files): Likewise.
31854         * modules/unictype/category-Cf-tests (Files): Likewise.
31855         * modules/unictype/category-Cn-tests (Files): Likewise.
31856         * modules/unictype/category-Co-tests (Files): Likewise.
31857         * modules/unictype/category-Cs-tests (Files): Likewise.
31858         * modules/unictype/category-L-tests (Files): Likewise.
31859         * modules/unictype/category-Ll-tests (Files): Likewise.
31860         * modules/unictype/category-Lm-tests (Files): Likewise.
31861         * modules/unictype/category-Lo-tests (Files): Likewise.
31862         * modules/unictype/category-Lt-tests (Files): Likewise.
31863         * modules/unictype/category-Lu-tests (Files): Likewise.
31864         * modules/unictype/category-M-tests (Files): Likewise.
31865         * modules/unictype/category-Mc-tests (Files): Likewise.
31866         * modules/unictype/category-Me-tests (Files): Likewise.
31867         * modules/unictype/category-Mn-tests (Files): Likewise.
31868         * modules/unictype/category-N-tests (Files): Likewise.
31869         * modules/unictype/category-Nd-tests (Files): Likewise.
31870         * modules/unictype/category-Nl-tests (Files): Likewise.
31871         * modules/unictype/category-No-tests (Files): Likewise.
31872         * modules/unictype/category-P-tests (Files): Likewise.
31873         * modules/unictype/category-Pc-tests (Files): Likewise.
31874         * modules/unictype/category-Pd-tests (Files): Likewise.
31875         * modules/unictype/category-Pe-tests (Files): Likewise.
31876         * modules/unictype/category-Pf-tests (Files): Likewise.
31877         * modules/unictype/category-Pi-tests (Files): Likewise.
31878         * modules/unictype/category-Po-tests (Files): Likewise.
31879         * modules/unictype/category-Ps-tests (Files): Likewise.
31880         * modules/unictype/category-S-tests (Files): Likewise.
31881         * modules/unictype/category-Sc-tests (Files): Likewise.
31882         * modules/unictype/category-Sk-tests (Files): Likewise.
31883         * modules/unictype/category-Sm-tests (Files): Likewise.
31884         * modules/unictype/category-So-tests (Files): Likewise.
31885         * modules/unictype/category-Z-tests (Files): Likewise.
31886         * modules/unictype/category-Zl-tests (Files): Likewise.
31887         * modules/unictype/category-Zp-tests (Files): Likewise.
31888         * modules/unictype/category-Zs-tests (Files): Likewise.
31889         * modules/unictype/category-and-not-tests (Files): Likewise.
31890         * modules/unictype/category-and-tests (Files): Likewise.
31891         * modules/unictype/category-byname-tests (Files): Likewise.
31892         * modules/unictype/category-name-tests (Files): Likewise.
31893         * modules/unictype/category-none-tests (Files): Likewise.
31894         * modules/unictype/category-of-tests (Files): Likewise.
31895         * modules/unictype/category-or-tests (Files): Likewise.
31896         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31897         * modules/unictype/combining-class-tests (Files): Likewise.
31898         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31899         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31900         * modules/unictype/ctype-blank-tests (Files): Likewise.
31901         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31902         * modules/unictype/ctype-digit-tests (Files): Likewise.
31903         * modules/unictype/ctype-graph-tests (Files): Likewise.
31904         * modules/unictype/ctype-lower-tests (Files): Likewise.
31905         * modules/unictype/ctype-print-tests (Files): Likewise.
31906         * modules/unictype/ctype-punct-tests (Files): Likewise.
31907         * modules/unictype/ctype-space-tests (Files): Likewise.
31908         * modules/unictype/ctype-upper-tests (Files): Likewise.
31909         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31910         * modules/unictype/decimal-digit-tests (Files): Likewise.
31911         * modules/unictype/digit-tests (Files): Likewise.
31912         * modules/unictype/mirror-tests (Files): Likewise.
31913         * modules/unictype/numeric-tests (Files): Likewise.
31914         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31915         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31916         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31917         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31918         Likewise.
31919         * modules/unictype/property-bidi-block-separator-tests (Files):
31920         Likewise.
31921         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31922         Likewise.
31923         * modules/unictype/property-bidi-common-separator-tests (Files):
31924         Likewise.
31925         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31926         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31927         Likewise.
31928         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31929         Likewise.
31930         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31931         Likewise.
31932         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31933         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31934         Likewise.
31935         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31936         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31937         Likewise.
31938         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31939         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31940         * modules/unictype/property-bidi-segment-separator-tests (Files):
31941         Likewise.
31942         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31943         * modules/unictype/property-byname-tests (Files): Likewise.
31944         * modules/unictype/property-combining-tests (Files): Likewise.
31945         * modules/unictype/property-composite-tests (Files): Likewise.
31946         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31947         * modules/unictype/property-dash-tests (Files): Likewise.
31948         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31949         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31950         Likewise.
31951         * modules/unictype/property-deprecated-tests (Files): Likewise.
31952         * modules/unictype/property-diacritic-tests (Files): Likewise.
31953         * modules/unictype/property-extender-tests (Files): Likewise.
31954         * modules/unictype/property-format-control-tests (Files): Likewise.
31955         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31956         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31957         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31958         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31959         * modules/unictype/property-hyphen-tests (Files): Likewise.
31960         * modules/unictype/property-id-continue-tests (Files): Likewise.
31961         * modules/unictype/property-id-start-tests (Files): Likewise.
31962         * modules/unictype/property-ideographic-tests (Files): Likewise.
31963         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31964         * modules/unictype/property-ids-trinary-operator-tests (Files):
31965         Likewise.
31966         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31967         * modules/unictype/property-iso-control-tests (Files): Likewise.
31968         * modules/unictype/property-join-control-tests (Files): Likewise.
31969         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31970         * modules/unictype/property-line-separator-tests (Files): Likewise.
31971         * modules/unictype/property-logical-order-exception-tests (Files):
31972         Likewise.
31973         * modules/unictype/property-lowercase-tests (Files): Likewise.
31974         * modules/unictype/property-math-tests (Files): Likewise.
31975         * modules/unictype/property-non-break-tests (Files): Likewise.
31976         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31977         * modules/unictype/property-numeric-tests (Files): Likewise.
31978         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31979         * modules/unictype/property-other-default-ignorable-code-point-tests
31980         (Files): Likewise.
31981         * modules/unictype/property-other-grapheme-extend-tests (Files):
31982         Likewise.
31983         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31984         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31985         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31986         * modules/unictype/property-other-math-tests (Files): Likewise.
31987         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31988         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31989         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31990         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31991         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31992         * modules/unictype/property-private-use-tests (Files): Likewise.
31993         * modules/unictype/property-punctuation-tests (Files): Likewise.
31994         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31995         * modules/unictype/property-radical-tests (Files): Likewise.
31996         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31997         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31998         * modules/unictype/property-space-tests (Files): Likewise.
31999         * modules/unictype/property-terminal-punctuation-tests (Files):
32000         Likewise.
32001         * modules/unictype/property-test-tests (Files): Likewise.
32002         * modules/unictype/property-titlecase-tests (Files): Likewise.
32003         * modules/unictype/property-unassigned-code-value-tests (Files):
32004         Likewise.
32005         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32006         * modules/unictype/property-uppercase-tests (Files): Likewise.
32007         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32008         * modules/unictype/property-white-space-tests (Files): Likewise.
32009         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32010         * modules/unictype/property-xid-start-tests (Files): Likewise.
32011         * modules/unictype/property-zero-width-tests (Files): Likewise.
32012         * modules/unictype/scripts-tests (Files): Likewise.
32013         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32014         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32015         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32016         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32017         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32018         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32019         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32020         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32021         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32022         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32023         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32024         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32025         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32026         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32027         * modules/uninorm/composition-tests (Files): Likewise.
32028         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32029         * modules/uninorm/decomposition-tests (Files): Likewise.
32030         * modules/uninorm/filter-tests (Files): Likewise.
32031         * modules/uninorm/nfc-tests (Files): Likewise.
32032         * modules/uninorm/nfd-tests (Files): Likewise.
32033         * modules/uninorm/nfkc-tests (Files): Likewise.
32034         * modules/uninorm/nfkd-tests (Files): Likewise.
32035         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32036         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32037         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32038         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32039         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32040         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32041         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32042         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32043         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32044         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32045         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32046         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32047         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32048         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32049         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32050         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32051         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32052         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32053         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32054         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32055         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32056         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32057         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32058         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32059         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32060         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32061         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32062         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32063         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32064         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32065         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32066         * modules/uniwidth/u8-width-tests (Files): Likewise.
32067         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32068         * modules/uniwidth/u16-width-tests (Files): Likewise.
32069         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32070         * modules/uniwidth/u32-width-tests (Files): Likewise.
32071         * modules/uniwidth/width-tests (Files): Likewise.
32072         * modules/unlink-tests (Files): Likewise.
32073         * modules/unsetenv-tests (Files): Likewise.
32074         * modules/usleep-tests (Files): Likewise.
32075         * modules/utimens-tests (Files): Likewise.
32076         * modules/utimensat-tests (Files): Likewise.
32077         * modules/vasnprintf-posix-tests (Files): Likewise.
32078         * modules/vasnprintf-tests (Files): Likewise.
32079         * modules/vasprintf-posix-tests (Files): Likewise.
32080         * modules/vasprintf-tests (Files): Likewise.
32081         * modules/vdprintf-posix-tests (Files): Likewise.
32082         * modules/vfprintf-posix-tests (Files): Likewise.
32083         * modules/vprintf-posix-tests (Files): Likewise.
32084         * modules/vsnprintf-posix-tests (Files): Likewise.
32085         * modules/vsnprintf-tests (Files): Likewise.
32086         * modules/vsprintf-posix-tests (Files): Likewise.
32087         * modules/wcrtomb-tests (Files): Likewise.
32088         * modules/wcsnrtombs-tests (Files): Likewise.
32089         * modules/wcsrtombs-tests (Files): Likewise.
32090         * modules/wctype-tests (Files): Likewise.
32091         * modules/wcwidth-tests (Files): Likewise.
32092         * modules/xmemdup0-tests (Files): Likewise.
32093         * modules/xprintf-posix-tests (Files): Likewise.
32094         * modules/xvasprintf-tests (Files): Likewise.
32095
32096 2009-12-24  Eric Blake  <ebb9@byu.net>
32097
32098         test-nanosleep: fix typo
32099         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32100         patch.
32101         Reported by Bruno Haible.
32102
32103 2009-12-24  Bruno Haible  <bruno@clisp.org>
32104
32105         Reduce namespace pollution on glibc systems.
32106         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32107         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32108         systems.
32109         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32110         <getopt.h> on glibc systems.
32111         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32112         systems.
32113         * lib/fcntl.c: Include <unistd.h> here instead.
32114
32115 2009-12-24  Bruno Haible  <bruno@clisp.org>
32116
32117         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32118
32119 2009-12-24  Eric Blake  <ebb9@byu.net>
32120
32121         tests: add signature checks
32122         * tests/signature.h (SIGNATURE_CHECK): New file.
32123         * modules/atexit-tests (Files): Use it.
32124         * modules/btowc-tests (Files): Likewise.
32125         * modules/canonicalize-lgpl-tests (Files): Likewise.
32126         * modules/ceilf-tests (Files): Likewise.
32127         * modules/ceill-tests (Files): Likewise.
32128         * modules/chown-tests (Files): Likewise.
32129         * modules/dprintf-posix-tests (Files): Likewise.
32130         * modules/dup2-tests (Files): Likewise.
32131         * modules/dup3-tests (Files): Likewise.
32132         * modules/duplocale-tests (Files): Likewise.
32133         * modules/fchdir-tests (Files): Likewise.
32134         * modules/fcntl-tests (Files): Likewise.
32135         * modules/fdopendir-tests (Files): Likewise.
32136         * modules/fflush-tests (Files): Likewise.
32137         * modules/flock-tests (Files): Likewise.
32138         * modules/floorf-tests (Files): Likewise.
32139         * modules/floorl-tests (Files): Likewise.
32140         * modules/fnmatch-tests (Files): Likewise.
32141         * modules/fopen-tests (Files): Likewise.
32142         * modules/fprintf-posix-tests (Files): Likewise.
32143         * modules/freopen-tests (Files): Likewise.
32144         * modules/frexp-nolibm-tests (Files): Likewise.
32145         * modules/frexp-tests (Files): Likewise.
32146         * modules/frexpl-nolibm-tests (Files): Likewise.
32147         * modules/frexpl-tests (Files): Likewise.
32148         * modules/fseek-tests (Files): Likewise.
32149         * modules/fseeko-tests (Files): Likewise.
32150         * modules/fsync-tests (Files): Likewise.
32151         * modules/ftell-tests (Files): Likewise.
32152         * modules/ftello-tests (Files): Likewise.
32153         * modules/futimens-tests (Files): Likewise.
32154         * modules/getaddrinfo-tests (Files): Likewise.
32155         * modules/getcwd-tests (Files): Likewise.
32156         * modules/getdelim-tests (Files): Likewise.
32157         * modules/getdtablesize-tests (Files): Likewise.
32158         * modules/getgroups-tests (Files): Likewise.
32159         * modules/gethostname-tests (Files): Likewise.
32160         * modules/getline-tests (Files): Likewise.
32161         * modules/getopt-posix-tests (Files): Likewise.
32162         * modules/gettimeofday-tests (Files): Likewise.
32163         * modules/glob-tests (Files): Likewise.
32164         * modules/iconv-tests (Files): Likewise.
32165         * modules/inet_ntop-tests (Files): Likewise.
32166         * modules/inet_pton-tests (Files): Likewise.
32167         * modules/isblank-tests (Files): Likewise.
32168         * modules/lchown-tests (Files): Likewise.
32169         * modules/ldexpl-tests (Files): Likewise.
32170         * modules/link-tests (Files): Likewise.
32171         * modules/linkat-tests (Files): Likewise.
32172         * modules/lseek-tests (Files): Likewise.
32173         * modules/lstat-tests (Files): Likewise.
32174         * modules/mbrtowc-tests (Files): Likewise.
32175         * modules/mbsinit-tests (Files): Likewise.
32176         * modules/mbsnrtowcs-tests (Files): Likewise.
32177         * modules/mbsrtowcs-tests (Files): Likewise.
32178         * modules/memchr-tests (Files): Likewise.
32179         * modules/memcmp-tests (Files): Likewise.
32180         * modules/memmem-tests (Files): Likewise.
32181         * modules/memrchr-tests (Files): Likewise.
32182         * modules/mkdir-tests (Files): Likewise.
32183         * modules/mkfifo-tests (Files): Likewise.
32184         * modules/mkfifoat-tests (Files): Likewise.
32185         * modules/mknod-tests (Files): Likewise.
32186         * modules/nanosleep-tests (Files): Likewise.
32187         * modules/nl_langinfo-tests (Files): Likewise.
32188         * modules/obstack-printf-tests (Files): Likewise.
32189         * modules/open-tests (Files): Likewise.
32190         * modules/openat-tests (Files): Likewise.
32191         * modules/perror-tests (Files): Likewise.
32192         * modules/pipe2-tests (Files): Likewise.
32193         * modules/poll-tests (Files): Likewise.
32194         * modules/popen-tests (Files): Likewise.
32195         * modules/posix_spawn-tests (Files): Likewise.
32196         * modules/posix_spawnp-tests (Files): Likewise.
32197         * modules/pread-tests (Files): Likewise.
32198         * modules/printf-posix-tests (Files): Likewise.
32199         * modules/pty-tests (Files): Likewise.
32200         * modules/random_r-tests (Files): Likewise.
32201         * modules/rawmemchr-tests (Files): Likewise.
32202         * modules/readlink-tests (Files): Likewise.
32203         * modules/remove-tests (Files): Likewise.
32204         * modules/rename-tests (Files): Likewise.
32205         * modules/renameat-tests (Files): Likewise.
32206         * modules/rmdir-tests (Files): Likewise.
32207         * modules/round-tests (Files): Likewise.
32208         * modules/roundf-tests (Files): Likewise.
32209         * modules/roundl-tests (Files): Likewise.
32210         * modules/select-tests (Files): Likewise.
32211         * modules/setenv-tests (Files): Likewise.
32212         * modules/sigaction-tests (Files): Likewise.
32213         * modules/sleep-tests (Files): Likewise.
32214         * modules/snprintf-posix-tests (Files): Likewise.
32215         * modules/snprintf-tests (Files): Likewise.
32216         * modules/sprintf-posix-tests (Files): Likewise.
32217         * modules/stat-tests (Files): Likewise.
32218         * modules/strcasestr-tests (Files): Likewise.
32219         * modules/strchrnul-tests (Files): Likewise.
32220         * modules/strerror-tests (Files): Likewise.
32221         * modules/strsignal-tests (Files): Likewise.
32222         * modules/strstr-tests (Files): Likewise.
32223         * modules/strtod-tests (Files): Likewise.
32224         * modules/strverscmp-tests (Files): Likewise.
32225         * modules/symlink-tests (Files): Likewise.
32226         * modules/symlinkat-tests (Files): Likewise.
32227         * modules/times-tests (Files): Likewise.
32228         * modules/trunc-tests (Files): Likewise.
32229         * modules/truncf-tests (Files): Likewise.
32230         * modules/truncl-tests (Files): Likewise.
32231         * modules/tsearch-tests (Files): Likewise.
32232         * modules/uname-tests (Files): Likewise.
32233         * modules/unlink-tests (Files): Likewise.
32234         * modules/unsetenv-tests (Files): Likewise.
32235         * modules/usleep-tests (Files): Likewise.
32236         * modules/utimensat-tests (Files): Likewise.
32237         * modules/vasprintf-tests (Files): Likewise.
32238         * modules/vdprintf-posix-tests (Files): Likewise.
32239         * modules/vfprintf-posix-tests (Files): Likewise.
32240         * modules/vprintf-posix-tests (Files): Likewise.
32241         * modules/vsnprintf-posix-tests (Files): Likewise.
32242         * modules/vsnprintf-tests (Files): Likewise.
32243         * modules/vsprintf-posix-tests (Files): Likewise.
32244         * modules/wcrtomb-tests (Files): Likewise.
32245         * modules/wcsnrtombs-tests (Files): Likewise.
32246         * modules/wcsrtombs-tests (Files): Likewise.
32247         * modules/wcwidth-tests (Files): Likewise.
32248         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32249         * tests/test-isinf.c (isinf): Likewise.
32250         * tests/test-isnan.c (isnan): Likewise.
32251         * tests/test-signbit.c (signbit): Likewise.
32252         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32253         declaration, either as macro or with correct signature.
32254         (select): Ensure function under test is declared with correct
32255         signature in correct header.
32256         * tests/test-atexit.c (atexit): Likewise.
32257         * tests/test-btowc.c (btowc): Likewise.
32258         * tests/test-canonicalize-lgpl.c (realpath)
32259         (canonicalize_file_name): Likewise.
32260         * tests/test-ceilf1.c (ceilf): Likewise.
32261         * tests/test-ceill.c (ceill): Likewise.
32262         * tests/test-chown.c (chown): Likewise.
32263         * tests/test-dprintf-posix.c (dprintf): Likewise.
32264         * tests/test-dup2.c (dup2): Likewise.
32265         * tests/test-dup3.c (dup3): Likewise.
32266         * tests/test-duplocale.c (duplocale): Likewise.
32267         * tests/test-fchdir.c (fchdir): Likewise.
32268         * tests/test-fchownat.c (fchownat): Likewise.
32269         * tests/test-fcntl.c (fcntl): Likewise.
32270         * tests/test-fdopendir.c (fdopendir): Likewise.
32271         * tests/test-fflush.c (fflush): Likewise.
32272         * tests/test-flock.c (flock): Likewise.
32273         * tests/test-floorf1.c (floorf): Likewise.
32274         * tests/test-floorl.c (floorl): Likewise.
32275         * tests/test-fnmatch.c (fnmatch): Likewise.
32276         * tests/test-fopen.c (fopen): Likewise.
32277         * tests/test-fprintf-posix.c (fprintf): Likewise.
32278         * tests/test-freopen.c (freopen): Likewise.
32279         * tests/test-frexp.c (frexp): Likewise.
32280         * tests/test-frexpl.c (frexpl): Likewise.
32281         * tests/test-fseek.c (fseek): Likewise.
32282         * tests/test-fseeko.c (fseeko): Likewise.
32283         * tests/test-fstatat.c (fstatat): Likewise.
32284         * tests/test-fsync.c (fsync): Likewise.
32285         * tests/test-ftell.c (ftell): Likewise.
32286         * tests/test-ftello.c (ftello): Likewise.
32287         * tests/test-futimens.c (futimens): Likewise.
32288         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32289         (gai_strerror): Likewise.
32290         * tests/test-getcwd.c (getcwd): Likewise.
32291         * tests/test-getdelim.c (getdelim): Likewise.
32292         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32293         * tests/test-getgroups.c (getgroups): Likewise.
32294         * tests/test-gethostname.c (gethostname): Likewise.
32295         * tests/test-getline.c (getline): Likewise.
32296         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32297         Likewise.
32298         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32299         * tests/test-glob.c (glob, globfree): Likewise.
32300         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32301         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32302         * tests/test-inet_pton.c (inet_pton): Likewise.
32303         * tests/test-isblank.c (isblank): Likewise.
32304         * tests/test-lchown.c (lchown): Likewise.
32305         * tests/test-ldexpl.c (ldexpl): Likewise.
32306         * tests/test-link.c (link): Likewise.
32307         * tests/test-linkat.c (linkat): Likewise.
32308         * tests/test-lseek.c (lseek): Likewise.
32309         * tests/test-lstat.c (lstat): Likewise.
32310         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32311         * tests/test-mbsinit.c (mbsinit): Likewise.
32312         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32313         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32314         * tests/test-memchr.c (memchr): Likewise.
32315         * tests/test-memcmp.c (memcmp): Likewise.
32316         * tests/test-memmem.c (memmem): Likewise.
32317         * tests/test-memrchr.c (memrchr): Likewise.
32318         * tests/test-mkdir.c (mkdir): Likewise.
32319         * tests/test-mkdirat.c (mkdirat): Likewise.
32320         * tests/test-mkfifo.c (mkfifo): Likewise.
32321         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32322         * tests/test-mknod.c (mknod): Likewise.
32323         * tests/test-nanosleep.c (nanosleep): Likewise.
32324         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32325         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32326         Likewise.
32327         * tests/test-open.c (open): Likewise.
32328         * tests/test-openat.c (openat): Likewise.
32329         * tests/test-perror.c (perror): Likewise.
32330         * tests/test-pipe2.c (pipe2): Likewise.
32331         * tests/test-poll.c (poll): Likewise.
32332         * tests/test-popen.c (popen, pclose): Likewise.
32333         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32334         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32335         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32336         (posix_spawn_file_actions_destroy)
32337         (posix_spawn_file_actions_addclose)
32338         (posix_spawn_file_actions_addopen)
32339         (posix_spawn_file_actions_adddup2): Likewise.
32340         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32341         * tests/test-pread.c (pread): Likewise.
32342         * tests/test-printf-posix.c (printf): Likewise.
32343         * tests/test-pty.c (openpty, forkpty): Likewise.
32344         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32345         (random_r): Likewise.
32346         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32347         * tests/test-readlink.c (readlink): Likewise.
32348         * tests/test-remove.c (remove): Likewise.
32349         * tests/test-rename.c (rename): Likewise.
32350         * tests/test-renameat.c (renameat): Likewise.
32351         * tests/test-rmdir.c (rmdir): Likewise.
32352         * tests/test-round1.c (round): Likewise.
32353         * tests/test-roundf1.c (roundf): Likewise.
32354         * tests/test-roundl.c (roundl): Likewise.
32355         * tests/test-setenv.c (setenv): Likewise.
32356         * tests/test-sigaction.c (sigaction): Likewise.
32357         * tests/test-sleep.c (sleep): Likewise.
32358         * tests/test-snprintf.c (snprintf): Likewise.
32359         * tests/test-sprintf-posix.c (sprintf): Likewise.
32360         * tests/test-stat.c (stat): Likewise.
32361         * tests/test-stpncpy.c (stpncpy): Likewise.
32362         * tests/test-strcasestr.c (strcasestr): Likewise.
32363         * tests/test-strchrnul.c (strchrnul): Likewise.
32364         * tests/test-strerror.c (strerror): Likewise.
32365         * tests/test-strsignal.c (strsignal): Likewise.
32366         * tests/test-strstr.c (strstr): Likewise.
32367         * tests/test-strtod.c (strtod): Likewise.
32368         * tests/test-strverscmp.c (strverscmp): Likewise.
32369         * tests/test-symlink.c (symlink): Likewise.
32370         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32371         * tests/test-times.c (times): Likewise.
32372         * tests/test-trunc1.c (trunc): Likewise.
32373         * tests/test-truncf1.c (truncf): Likewise.
32374         * tests/test-truncl.c (truncl): Likewise.
32375         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32376         Likewise.
32377         * tests/test-uname.c (uname): Likewise.
32378         * tests/test-unlink.c (unlink): Likewise.
32379         * tests/test-unlinkat.c (unlinkat): Likewise.
32380         * tests/test-unsetenv.c (unsetenv): Likewise.
32381         * tests/test-usleep.c (usleep): Likewise.
32382         * tests/test-utimensat.c (utimensat): Likewise.
32383         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32384         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32385         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32386         * tests/test-vprintf-posix.c (vprintf): Likewise.
32387         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32388         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32389         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32390         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32391         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32392         * tests/test-wcwidth.c (wcwidth): Likewise.
32393
32394         build: pull in conditional headers during GNULIB_POSIXCHECK
32395         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32396         definitions from any conditionally-included headers.
32397         * lib/stdlib.in.h (includes): Likewise.
32398         * lib/unistd.in.h (includes): Likewise.
32399
32400 2009-12-24  Bruno Haible  <bruno@clisp.org>
32401
32402         * tests/test-argv-iter.c: Include header file being tested immediately
32403         after config.h.
32404         * tests/test-base64.c: Likewise.
32405         * tests/test-flock.c: Likewise.
32406         * tests/test-fsync.c: Likewise.
32407         * tests/test-getdate.c: Likewise.
32408         * tests/test-getndelim2.c: Likewise.
32409         * tests/test-isfinite.c: Likewise.
32410         * tests/test-isinf.c: Likewise.
32411         * tests/test-strerror.c: Likewise.
32412         * tests/test-strsignal.c: Likewise.
32413
32414 2009-12-23  Eric Blake  <ebb9@byu.net>
32415
32416         unistd: work around cygwin bug
32417         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32418         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32419         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32420
32421 2009-12-23  Bruno Haible  <bruno@clisp.org>
32422
32423         localename: More tests.
32424         * tests/test-localename.c (SIZEOF): New macro.
32425         (categories): New variable.
32426         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32427         test_locale_name_default): Add test w.r.t. thread locale.
32428         (test_locale_name_thread): New function.
32429         (main): Invoke it.
32430
32431         localename: Make aware of thread locale.
32432         * lib/localename.h (gl_locale_name_thread): New declaration.
32433         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32434         behaviour with respect to thread locale.
32435         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32436         <langinfo.h>, glthread/lock.h.
32437         (SIZE_BITS): New macro.
32438         (string_hash): New function.
32439         (struct hash_node): New type.
32440         (HASH_TABLE_SIZE): New macro.
32441         (struniq_hash_table, struniq_lock): New variables.
32442         (struniq): New function.
32443         (gl_locale_name_thread): New function.
32444         (gl_locale_name): Invoke it.
32445         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32446         * modules/localename (Depends-on): Add lock.
32447         Reported by Mike Gran <spk121@yahoo.com>.
32448
32449 2009-12-23  Eric Blake  <ebb9@byu.net>
32450
32451         va-args: new module
32452         * modules/va-args: New file.
32453         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32454         * MODULES.html.sh (Core language properties): Mention it.
32455
32456         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32457         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32458         named alias for __attribute__((__unused__)).
32459         * lib/chown.c: Update client.
32460         * lib/fchmodat.c: Likewise.
32461         * lib/fts.c: Likewise.
32462         * lib/getdate.y: Likewise.
32463         * lib/getgroups.c: Likewise.
32464         * lib/getopt.c: Likewise.
32465         * lib/getugroups.c: Likewise.
32466         * lib/mkdir.c: Likewise.
32467         * lib/mkfifo.c: Likewise.
32468         * lib/mkfifoat.c: Likewise.
32469         * lib/mknod.c: Likewise.
32470         * lib/mknodat.c: Likewise.
32471         * lib/readlink.c: Likewise.
32472         * lib/se-context.in.h: Likewise.
32473         * lib/se-selinux.in.h: Likewise.
32474         * lib/sockets.c: Likewise.
32475         * lib/symlink.c: Likewise.
32476         * lib/symlinkat.c: Likewise.
32477         * lib/unicodeio.c: Likewise.
32478         * lib/unistr.h: Likewise.
32479         * tests/test-areadlink.c: Likewise.
32480         * tests/test-areadlinkat.c: Likewise.
32481         * tests/test-filenamecat.c: Likewise.
32482         * tests/test-fseeko.c: Likewise.
32483         * tests/test-ftello.c: Likewise.
32484         * tests/test-getdate.c: Likewise.
32485         * tests/test-getgroups.c: Likewise.
32486         * tests/test-gethostname.c: Likewise.
32487         * tests/test-quotearg.c: Likewise.
32488         * tests/test-version-etc.c: Likewise.
32489         * tests/test-xalloc-die.c: Likewise.
32490         * tests/test-xfprintf-posix.c: Likewise.
32491         * tests/test-xprintf-posix.c: Likewise.
32492         * tests/test-xvasprintf.c: Likewise.
32493
32494         tests: avoid compiler warnings
32495         * tests/test-fcntl.c (main): Delete unused parameters.
32496         * tests/test-freopen-safer.c (main): Likewise.
32497         * tests/test-xalloc-die.c (main): Mark unused parameters.
32498         * tests/test-fseeko.c (main): Likewise.
32499         * tests/test-ftello.c (main): Likewise.
32500         * tests/test-nanosleep.c (main): Avoid declaration warning.
32501         * tests/test-sleep.c (main): Likewise.
32502         * tests/test-unsetenv.c (main): Silence warning about string
32503         literal.
32504         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32505
32506 2009-12-23  Bruno Haible  <bruno@clisp.org>
32507
32508         * tests/test-localename.c (test_locale_name): New function, extracted
32509         from main. Also test mixed situations.
32510         (test_locale_name_posix, test_locale_name_environ,
32511         test_locale_name_default): New functions.
32512         (main): Invoke them all.
32513         * modules/localename-tests (configure.ac): Test for newlocale.
32514
32515 2009-12-23  Bruno Haible  <bruno@clisp.org>
32516
32517         unistd: Ensure getcwd gets declared before being overridden.
32518         * lib/unistd.in.h: Conditionally include <io.h>.
32519
32520 2009-12-22  Bruno Haible  <bruno@clisp.org>
32521
32522         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32523         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32524         (gl_WCHAR_H): Invoke it.
32525         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32526         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32527         Reported by Karl Berry <karl@freefriends.org>.
32528
32529 2009-12-22  Eric Blake  <ebb9@byu.net>
32530
32531         math, unistd: avoid redundant includes
32532         * lib/math.in.h (isnan): No need to re-include <math.h>.
32533         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32534
32535         getsubopt: work around cygwin bug
32536         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32537         avoid conflicting with system getsubopt.
32538         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32539         bug.
32540
32541         getopt: synchronize from glibc
32542         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32543         parameter order.  Adjust all callers.
32544         (_getopt_internal_r, main): Adjust quoting in error messages.
32545         Drop considerations for outdated POSIX 1003.2 error message.
32546         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32547         callers.
32548         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32549
32550         test-getopt: test stderr behavior
32551         * modules/getopt-posix-tests (Depends-on): Add dup2.
32552         * tests/test-getopt.c (ASSERT): Avoid stderr.
32553         (main): Move stderr to a temporary file.
32554         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32555         Instead, add parameter to inform caller if output occurred.
32556         (test_getopt): Adjust all existing tests to expect silence, and
32557         add new tests of leading ":".
32558         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32559         glibc shortcomings with leading "-:" or "+:" in optstring.
32560         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32561         Likewise.
32562         * doc/posix-functions/getopt.texi (getopt): Likewise.
32563
32564         test-getopt: enhance test
32565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32566         supports optind=0.
32567         * tests/test-getopt.c (OPTIND_MIN): Move...
32568         * tests/test-getopt.h (OPTIND_MIN): ...here.
32569         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32570         Require that optind=0 works, since modern BSD supports it in
32571         addition to optreset, and since coreutils expects it.
32572         (test_getopt_long_only): New test.
32573         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32574         glibc shortcomings with 'W;', and enforcement of optind=0.
32575         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32576         Likewise.
32577
32578 2009-12-21  Bruno Haible  <bruno@clisp.org>
32579
32580         localename: Improvements for MacOS X and Cygwin.
32581         * lib/localename.h (gl_locale_name_environ): New declaration.
32582         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32583         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32584         (gl_locale_name_posix): Invoke it.
32585         (gl_locale_name_default): Add comments. Use Windows native API also on
32586         Cygwin.
32587
32588 2009-12-21  Bruno Haible  <bruno@clisp.org>
32589
32590         Update list of Win32 locale ids.
32591         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32592         (LANG_SAMI): Renamed from LANG_SAAMI.
32593         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32594         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32595         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32596         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32597         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32598         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32599         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32600         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32601         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32602         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32603         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32604         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32605         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32606         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32607         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32608         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32609         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32610         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32611         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32612         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32613         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32614         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32615         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32616         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32617         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32618         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32619         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32620         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32621         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32622         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32623         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32624         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32625         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32626         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32627         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32628         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32629         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32630         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32631         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32632         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32633         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32634         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32635         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32636         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32637         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32638         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32639         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32640         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32641         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32642         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32643         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32644         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32645         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32646         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32647         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32648         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32649         Add more languages and countries for Sami, Sorbian. Add more countries
32650         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32651         for Pashto. Change country for Syriac, Tswana.
32652
32653 2009-12-21  Eric Blake  <ebb9@byu.net>
32654
32655         test-utimens: avoid spurious failure
32656         * tests/test-chown.h (nap): Factor...
32657         * tests/nap.h: ...into new file.
32658         * tests/test-lchown.h (nap): Avoid duplication.
32659         * tests/test-utimens-common.h (nap): Use shared implementation,
32660         necessary on file systems with 1-second resolution.
32661         * modules/chown-tests (Files): Include new file.
32662         * modules/fdutimensat-tests (Files): Likewise.
32663         * modules/futimens-tests (Files): Likewise.
32664         * modules/lchown-tests (Files): Likewise.
32665         * modules/openat-tests (Files): Likewise.
32666         * modules/utimens-tests (Files): Likewise.
32667         * modules/utimensat-tests (Files): Likewise.
32668
32669 2009-12-19  Eric Blake  <ebb9@byu.net>
32670
32671         futimens, utimensat: work around Linux bug
32672         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32673         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32674         * lib/utimensat.c (rpl_utimensat): Work around it.
32675         * lib/futimens.c (rpl_futimens): Adjust comment.
32676
32677         utimens: work around Linux ctime bug
32678         * lib/utimens.c (detect_ctime_bug): New helper function.
32679         (update_timespec): Differentiate between workaround needed for
32680         this bug vs. what is needed for systems that lack utimensat.
32681         (fdutimens, lutimens): Work around bug.
32682
32683         utimens: check for ctime update
32684         * tests/test-utimens-common.h (check_ctime): Define.
32685         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32686         * tests/test-futimens.h (test_futimens): Likewise.
32687         * tests/test-lutimens.h (test_lutimens): Likewise.
32688         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32689         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32690
32691 2009-12-19  Bruno Haible  <bruno@clisp.org>
32692
32693         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32694         * tests/test-dprintf-posix2.sh: New file.
32695         * tests/test-dprintf-posix2.c: New file.
32696         * modules/dprintf-posix-tests (Files): Add them.
32697         (configure.ac): Check for getrlimit and setrlimit.
32698         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32699
32700 2009-12-19  Bruno Haible  <bruno@clisp.org>
32701
32702         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32703         * tests/test-fprintf-posix3.sh: New file.
32704         * tests/test-fprintf-posix3.c: New file.
32705         * modules/fprintf-posix-tests (Files): Add them.
32706         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32707
32708 2009-12-19  Eric Blake  <ebb9@byu.net>
32709
32710         dirfd: fix prototype
32711         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32712         * lib/dirfd.c (dirfd): Likewise.
32713
32714         canonicalize: reduce memory usage
32715         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32716         allocation to size.
32717         Reported by Solar Designer <solar@openwall.com>.
32718
32719 2009-12-19  Bruno Haible  <bruno@clisp.org>
32720
32721         New module attribute 'Applicability'.
32722         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32723         * gnulib-tool: New option --extract-applicability.
32724         (func_usage): Document it.
32725         (sed_extract_prog): Recognize it.
32726         (func_get_applicability): New function.
32727         (func_import): Generalize handling of 'link-warning' module.
32728         * modules/link-warning (Applicability): New section.
32729         * modules/arg-nonnull (Applicability): New section.
32730         Repoted by Simon Josefsson <simon@josefsson.org>.
32731
32732 2009-12-19  Bruno Haible  <bruno@clisp.org>
32733
32734         fflush: tweak
32735         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32736         * lib/fseeko.c (rpl_fseeko): Likewise.
32737
32738 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32739
32740         * lib/gl_list.h: Fix typo in comment.
32741
32742 2009-12-16  Eric Blake  <ebb9@byu.net>
32743
32744         fcntl: use to simplify other modules
32745         * modules/cloexec (Depends-on): Add fcntl.
32746         * modules/fchdir (Depends-on): Likewise.
32747         * modules/fd-safer-flag (Depends-on): Likewise.
32748         * modules/unistd-safer (Depends-on): Likewise.
32749         * modules/dup3 (configure.ac): Set module indicator.
32750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32751         missing.
32752         * lib/fchdir.c (_gl_register_dup): Fix comment.
32753         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32754         * lib/dup-safer.c (dup_safer): Likewise.
32755         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32756         * lib/dup3.c (dup3): Likewise.
32757         * tests/test-fchdir.c (main): Enhance test.
32758         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32759
32760         fcntl: port portions of fcntl to mingw
32761         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32762         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32763         replacement for mingw.
32764         * modules/fcntl (Description): Update.
32765         (Depends-on): Add dup2.
32766         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32767         * modules/fcntl-h (Makefile.am): Substitute it.
32768         * lib/fcntl.in.h (fcntl): Update declaration.
32769         (F_DUPFD, F_GETFD): New macros, when needed.
32770         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32771         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32772         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32773         we now guarantee.
32774
32775         fcntl: work around cygwin bug in F_DUPFD
32776         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32777         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32778         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32779         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32780         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32781
32782         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32783         * modules/fcntl (Files): List new files.
32784         (configure.ac): Run a test.
32785         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32786         * lib/fcntl.c (rpl_fcntl): Likewise.
32787         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32788         (gl_FCNTL_H): Always replace fcntl.h.
32789         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32790         * lib/fcntl.in.h (fcntl): Declare replacement.
32791         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32792         needed, plus a witness.
32793         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32794         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32795         * tests/test-fcntl.c: New file.
32796         * modules/fcntl-tests: Likewise.
32797
32798         binary-io: avoid potential compilation warning
32799         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32800         directives.
32801
32802         fflush: avoid compilation error on NetBSD
32803         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32804         between off_t and fpos_t, since the latter is sometimes a struct.
32805         * lib/fseeko.c (rpl_fseeko): Likewise.
32806         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32807
32808 2009-12-15  Eric Blake  <ebb9@byu.net>
32809
32810         fcntl-h, stdio, sys_ioctl: fix declarations
32811         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32812         function must not take arguments.
32813         * lib/sys_ioctl.in.h (ioctl): Likewise.
32814         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32815         (open): Add a link warning.
32816
32817 2009-12-15  Jim Meyering  <meyering@redhat.com>
32818
32819         areadlink, areadlink-with-size: relax license to LGPLv2+
32820         * modules/areadlink (License): Relax to LGPLv2+.
32821         * modules/areadlink-with-size (License): Likewise.
32822
32823 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32824             Bruno Haible  <bruno@clisp.org>
32825
32826         *printf: Fix memory leak.
32827         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32828         * lib/vfprintf.c (vfprintf): Likewise.
32829         * lib/dprintf.c (dprintf): Likewise.
32830         * lib/vdprintf.c (vdprintf): Likewise.
32831
32832 2009-12-14  Eric Blake  <ebb9@byu.net>
32833
32834         accept4: adjust module dependencies
32835         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32836
32837         utimens: one more try at avoiding compiler warning
32838         * lib/utimens.c (lutimens): Lower scope of result.
32839
32840 2009-12-13  Bruno Haible  <bruno@clisp.org>
32841
32842         Move the malloc checking from module 'list' to new module 'xlist'.
32843         * modules/xlist: New file.
32844         * lib/gl_xlist.h: New file.
32845         * lib/gl_xlist.c: New file.
32846         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32847         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32848         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32849         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32850         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32851         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32852         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32853         gl_sortedlist_nx_add): New declarations.
32854         (struct gl_list_implementation): Rename and change methods accordingly.
32855         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32856         (gl_list_nx_create): Renamed from gl_list_create.
32857         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32858         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32859         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32860         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32861         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32862         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32863         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32864         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32865         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32866         gl_list_create_empty.
32867         (gl_list_nx_create): Renamed from gl_list_create.
32868         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32869         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32870         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32871         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32872         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32873         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32874         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32875         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32876         * lib/gl_array_list.c: Don't include xalloc.h.
32877         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32878         NULL upon out-of-memory.
32879         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32880         out-of-memory.
32881         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32882         Change return type to 'int'.
32883         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32884         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32885         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32886         upon out-of-memory.
32887         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32888         upon out-of-memory.
32889         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32890         upon out-of-memory.
32891         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32892         upon out-of-memory.
32893         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32894         out-of-memory.
32895         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32896         Update.
32897         (gl_array_list_implementation): Update.
32898         * lib/gl_carray_list.c: Don't include xalloc.h.
32899         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32900         Return NULL upon out-of-memory.
32901         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32902         out-of-memory.
32903         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32904         Change return type to 'int'.
32905         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32906         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32907         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32908         upon out-of-memory.
32909         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32910         upon out-of-memory.
32911         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32912         out-of-memory.
32913         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32914         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32915         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32916         Update.
32917         (gl_carray_list_implementation): Update.
32918         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32919         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32920         gl_linked_create_empty. Return NULL upon out-of-memory.
32921         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32922         out-of-memory.
32923         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32924         Change return type to 'int'. Return -1 upon out-of-memory.
32925         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32926         out-of-memory.
32927         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32928         upon out-of-memory.
32929         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32930         upon out-of-memory.
32931         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32932         NULL upon out-of-memory.
32933         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32934         upon out-of-memory.
32935         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32936         out-of-memory.
32937         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32938         Update.
32939         * lib/gl_linked_list.c: Don't include xalloc.h.
32940         (gl_linked_list_implementation): Update.
32941         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32942         (add_to_bucket): Change return type to 'int'.
32943         (gl_linkedhash_list_implementation): Update.
32944         * lib/gl_anytree_list1.h (free_subtree): New function.
32945         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32946         gl_tree_create_empty. Return NULL upon out-of-memory.
32947         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32948         Change return type to 'int'. Return -1 upon out-of-memory.
32949         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32950         out-of-memory.
32951         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32952         (gl_tree_remove_node): New function, moved here from
32953         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32954         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32955         Update.
32956         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32957         malloc, not xmalloc. Return NULL upon out-of-memory.
32958         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32959         out-of-memory.
32960         (gl_tree_remove_node_from_tree): New function, extracted from
32961         gl_tree_remove_node.
32962         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32963         upon out-of-memory.
32964         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32965         out-of-memory.
32966         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32967         upon out-of-memory.
32968         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32969         upon out-of-memory.
32970         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32971         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32972         not xmalloc. Return NULL upon out-of-memory.
32973         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32974         out-of-memory.
32975         (gl_tree_remove_node_from_tree): New function, extracted from
32976         gl_tree_remove_node.
32977         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32978         upon out-of-memory.
32979         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32980         out-of-memory.
32981         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32982         upon out-of-memory.
32983         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32984         upon out-of-memory.
32985         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32986         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32987         gl_anytree_list1.h before gl_anyavltree_list2.h.
32988         (gl_avltree_list_implementation): Update.
32989         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32990         gl_anytree_list1.h before gl_anyavltree_list2.h.
32991         (gl_rbtree_list_implementation): Update.
32992         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32993         Change return type to 'int'. Return -1 upon out-of-memory. Use
32994         __builtin_expect.
32995         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32996         (gl_avltreehash_list_implementation): Update.
32997         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32998         (gl_rbtreehash_list_implementation): Update.
32999         * modules/array-list (Depends-on): Remove xalloc.
33000         * modules/carray-list (Depends-on): Likewise.
33001         * modules/linked-list (Depends-on): Likewise.
33002         * modules/linkedhash-list (Depends-on): Likewise.
33003         * modules/avltree-list (Depends-on): Likewise.
33004         * modules/rbtree-list (Depends-on): Likewise.
33005         * modules/avltreehash-list (Depends-on): Likewise.
33006         * modules/rbtreehash-list (Depends-on): Likewise.
33007
33008         * modules/xsublist: New file.
33009         * lib/gl_xsublist.h: New file.
33010         * lib/gl_xsublist.c: New file.
33011         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33012         (gl_sublist_nx_create): New declaration.
33013         * lib/gl_sublist.c: Don't include xalloc.h.
33014         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33015         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33016         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33017         Change return type to 'int'. Return -1 upon out-of-memory.
33018         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33019         upon out-of-memory.
33020         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33021         NULL upon out-of-memory.
33022         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33023         upon out-of-memory.
33024         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33025         NULL upon out-of-memory.
33026         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33027         NULL upon out-of-memory.
33028         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33029         upon out-of-memory.
33030         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33031         (gl_sublist_list_implementation): Update.
33032         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33033         upon out-of-memory.
33034         * modules/sublist (Depends-on): Remove xalloc.
33035
33036         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33037         * tests/test-carray_list.c: Likewise.
33038         * tests/test-linked_list.c: Likewise.
33039         * tests/test-linkedhash_list.c: Likewise.
33040         * tests/test-avltree_list.c: Likewise.
33041         * tests/test-rbtree_list.c: Likewise.
33042         * tests/test-avltreehash_list.c: Likewise.
33043         * tests/test-rbtreehash_list.c: Likewise.
33044         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33045         * modules/carray-list-tests (Makefile.am): Likewise.
33046         * modules/linked-list-tests (Makefile.am): Likewise.
33047         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33048         * modules/avltree-list-tests (Makefile.am): Likewise.
33049         * modules/rbtree-list-tests (Makefile.am): Likewise.
33050         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33051         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33052
33053         * NEWS: Mention the changes.
33054
33055         * lib/clean-temp.c: Include gl_xlist.h.
33056         * modules/clean-temp (Depends-on): Add xlist.
33057
33058         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33059         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33060
33061         * tests/test-array_oset.c: Include gl_xlist.h.
33062         * modules/array-oset-tests (Depends-on): Add xlist.
33063
33064         Reported by José E. Marchesi <jemarch@gnu.org>.
33065
33066 2009-12-13  Bruno Haible  <bruno@clisp.org>
33067
33068         Move the malloc checking from module 'oset' to new module 'xoset'.
33069         * modules/xoset: New file.
33070         * lib/gl_xoset.h: New file.
33071         * lib/gl_xoset.c: New file.
33072         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33073         declarations.
33074         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33075         (struct gl_oset_implementation): Rename and change methods accordingly.
33076         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33077         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33078         'int'. Mark as __warn_unused_result__.
33079         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33080         gl_oset_create_empty.
33081         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33082         'int'.
33083         * lib/gl_array_oset.c: Don't include xalloc.h.
33084         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33085         malloc, not xmalloc.
33086         (grow): Change return type to 'int'. Don't call xalloc_die.
33087         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33088         to 'int'.
33089         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33090         'int'.
33091         (gl_array_oset_implementation): Update.
33092         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33093         gl_tree_create_empty.
33094         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33095         'int'.
33096         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33097         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33098         xmalloc.
33099         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33100         not xmalloc.
33101         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33102         xmalloc.
33103         (gl_avltree_oset_implementation): Update.
33104         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33105         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33106         xmalloc.
33107         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33108         not xmalloc.
33109         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33110         xmalloc.
33111         (gl_rbtree_oset_implementation): Update.
33112         * modules/array-oset (Depends-on): Remove xalloc.
33113         * modules/avltree-oset (Depends-on): Likewise.
33114         * modules/rbtree-oset (Depends-on): Likewise.
33115         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33116         * tests/test-avltree_oset.c: Likewise.
33117         * tests/test-rbtree_oset.c: Likewise.
33118         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33119         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33120         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33121         * NEWS: Mention the change.
33122
33123 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33124
33125         maint.mk: allow a project to override release-prep commands
33126         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33127         commands into a new rule.
33128         (release-prep): New rule.
33129         (release-prep-hook): New overridable variable.
33130
33131 2009-12-13  Bruno Haible  <bruno@clisp.org>
33132
33133         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33134
33135 2009-12-13  Jim Meyering  <meyering@redhat.com>
33136
33137         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33138         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33139
33140 2009-12-12  Bruno Haible  <bruno@clisp.org>
33141
33142         duplocale: Tweak.
33143         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33144
33145 2009-12-12  Karl Berry  <karl@gnu.org>
33146
33147         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33148
33149 2009-12-12  Bruno Haible  <bruno@clisp.org>
33150
33151         * m4/po.m4: Undo incorrect untabification.
33152
33153 2009-12-12  Bruno Haible  <bruno@clisp.org>
33154
33155         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33156         * modules/c-strtod (Depends-on): Add locale.
33157         * modules/c-strtold (Depends-on): Likewise.
33158
33159 2009-12-12  Bruno Haible  <bruno@clisp.org>
33160
33161         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33162
33163 2009-12-11  Eric Blake  <ebb9@byu.net>
33164
33165         setenv: relax requirement in light of POSIX ruling
33166         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33167         not NULL.
33168         * tests/test-setenv.c (main): Relax test.
33169         * tests/test-unsetenv.c (main): Likewise.
33170         * doc/posix-functions/setenv.texi (setenv): Document this.
33171         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33172
33173 2009-12-11  Bruno Haible  <bruno@clisp.org>
33174
33175         New module 'fd-safer-flag'.
33176         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33177         * lib/dup-safer.c (dup_safer_flag): Remove function.
33178         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33179         * lib/fd-safer.c (fd_safer_flag): Remove function.
33180         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33181         * modules/cloexec (configure.ac): Drop indicator macro.
33182         * modules/fd-safer-flag: New file.
33183         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33184         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33185         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33186
33187 2009-12-11  Bruno Haible  <bruno@clisp.org>
33188
33189         Tests for module 'nl_langinfo'.
33190         * modules/nl_langinfo-tests: New file.
33191         * tests/test-nl_langinfo.sh: New file.
33192         * tests/test-nl_langinfo.c: New file.
33193
33194         New module 'nl_langinfo'.
33195         * lib/nl_langinfo.c: New file.
33196         * m4/nl_langinfo.m4: New file.
33197         * modules/nl_langinfo: New file.
33198         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33199
33200 2009-12-11  Bruno Haible  <bruno@clisp.org>
33201
33202         Tests for module 'langinfo'.
33203         * modules/langinfo-tests: New file.
33204         * tests/test-langinfo.c: New file.
33205
33206         New module 'langinfo'.
33207         * lib/langinfo.in.h: New file.
33208         * m4/langinfo_h.m4: New file.
33209         * modules/langinfo: New file.
33210         * doc/posix-headers/langinfo.texi: Mention the new module.
33211
33212 2009-12-11  Bruno Haible  <bruno@clisp.org>
33213
33214         * lib/config.charset: Untabify.
33215
33216 2009-12-11  Bruno Haible  <bruno@clisp.org>
33217
33218         * modules/unistd-safer (configure.ac): Drop indicator macro.
33219
33220 2009-12-11  Bruno Haible  <bruno@clisp.org>
33221
33222         Move pipe2-safer code to its own file.
33223         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33224         * lib/pipe-safer.c (pipe2_safer): Remove function.
33225         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33226         (Makefile.am): Add it to lib_SOURCES.
33227
33228 2009-12-10  Bruno Haible  <bruno@clisp.org>
33229
33230         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33231
33232 2009-12-10  Bruno Haible  <bruno@clisp.org>
33233
33234         Declare which arguments expect non-NULL values, for GCC and clang.
33235         * build-aux/arg-nonnull.h: New file.
33236         * modules/arg-nonnull: New file.
33237         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33238         (inet_ntop, inet_pton): Use it.
33239         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33240         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33241         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33242         (open, openat): Use it.
33243         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33244         (fnmatch): Use it.
33245         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33246         (getopt, getopt_long, getopt_long_only): Use it.
33247         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33248         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33249         Use it.
33250         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33251         (iconv_open): Use it.
33252         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33253         (strtoimax, strtoumax): Use it.
33254         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33255         (duplocale): Use it.
33256         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33257         (frexp, frexpl): Use it.
33258         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33259         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33260         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33261         (tsearch, tfind, tdelete, twalk): Use it.
33262         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33263         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33264         sigpending): Use it.
33265         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33266         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33267         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33268         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33269         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33270         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33271         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33272         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33273         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33274         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33275         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33276         Use it.
33277         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33278         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33279         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33280         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33281         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33282         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33283         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33284         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33285         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33286         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33287         strtoull, unsetenv): Use it.
33288         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33289         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33290         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33291         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33292         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33293         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33294         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33295         (strcasecmp, strncasecmp): Use it.
33296         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33297         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33298         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33299         rpl_setsockopt): Use it.
33300         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33301         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33302         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33303         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33304         (gettimeofday): Use it.
33305         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33306         (times): Use it.
33307         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33308         (uname): Use it.
33309         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33310         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33311         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33312         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33313         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33314         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33315         unlinkat, write): Use it.
33316         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33317         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33318         * lib/argv-iter.h: Include arg-nonnull.h.
33319         (_ATTRIBUTE_NONNULL_): Remove macro.
33320         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33321         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33322         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33323         optimization.
33324         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33325         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33326         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33327         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33328         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33329         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33330         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33331         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33332         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33333         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33334         * modules/dirent (Depends-on): Add arg-nonnull.
33335         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33336         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33337         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33338         * modules/fnmatch (Depends-on): Add arg-nonnull.
33339         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33340         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33341         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33342         * modules/glob (Depends-on): Add arg-nonnull.
33343         (Makefile.am): Insert arg-nonnull.h into glob.h.
33344         * modules/iconv_open (Depends-on): Add arg-nonnull.
33345         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33346         * modules/inttypes (Depends-on): Add arg-nonnull.
33347         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33348         * modules/locale (Depends-on): Add arg-nonnull.
33349         (Makefile.am): Insert arg-nonnull.h into locale.h.
33350         * modules/math (Depends-on): Add arg-nonnull.
33351         (Makefile.am): Insert arg-nonnull.h into math.h.
33352         * modules/netdb (Depends-on): Add arg-nonnull.
33353         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33354         * modules/search (Depends-on): Add arg-nonnull.
33355         (Makefile.am): Insert arg-nonnull.h into search.h.
33356         * modules/signal (Depends-on): Add arg-nonnull.
33357         (Makefile.am): Insert arg-nonnull.h into signal.h.
33358         * modules/spawn (Depends-on): Add arg-nonnull.
33359         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33360         * modules/stdio (Depends-on): Add arg-nonnull.
33361         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33362         * modules/stdlib (Depends-on): Add arg-nonnull.
33363         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33364         * modules/string (Depends-on): Add arg-nonnull.
33365         (Makefile.am): Insert arg-nonnull.h into string.h.
33366         * modules/strings (Depends-on): Add arg-nonnull.
33367         (Makefile.am): Insert arg-nonnull.h into strings.h.
33368         * modules/sys_socket (Depends-on): Add arg-nonnull.
33369         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33370         * modules/sys_stat (Depends-on): Add arg-nonnull.
33371         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33372         * modules/sys_time (Depends-on): Add arg-nonnull.
33373         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33374         * modules/sys_times (Depends-on): Add arg-nonnull.
33375         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33376         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33377         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33378         * modules/time (Depends-on): Add arg-nonnull.
33379         (Makefile.am): Insert arg-nonnull.h into time.h.
33380         * modules/unistd (Depends-on): Add arg-nonnull.
33381         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33382         * modules/wchar (Depends-on): Add arg-nonnull.
33383         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33384         * modules/argv-iter (Depends-on): Add arg-nonnull.
33385         * tests/test-canonicalize.c (null_ptr): New function.
33386         (main): Use it.
33387         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33388         (main): Use it.
33389         * tests/test-memmem.c (null_ptr): New function.
33390         (main): Use it.
33391         Reported by Jim Meyering.
33392
33393 2009-12-10  Bruno Haible  <bruno@clisp.org>
33394
33395         Use spaces for indentation, not tabs.
33396         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33397         * m4/*.m4: Untabify.
33398         * build-aux/*.h: Untabify.
33399         * tests/**/*.[hc]: Untabify.
33400         * README: New section "Indent with spaces, not TABs", based on
33401         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33402         * NEWS: Mention the change.
33403
33404 2009-12-10  Bruno Haible  <bruno@clisp.org>
33405
33406         pty test: Fix link error.
33407         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33408         test_pty_LDADD.
33409
33410 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33411
33412         * modules/pty: New file.
33413         * modules/pty-tests: New file.
33414         * m4/pty.m4: New file.
33415         * tests/test-pty.c: New file.
33416         * doc/glibc-headers/pty.texi: Modified.
33417         * doc/glibc-functions/forkpty.texi: Modified.
33418         * doc/glibc-functions/openpty.texi: Modified.
33419
33420 2009-12-10  Bruno Haible  <bruno@clisp.org>
33421
33422         Avoid syntax error in C++ mode.
33423         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33424
33425 2009-12-10  Bruno Haible  <bruno@clisp.org>
33426
33427         Use sed with option -e.
33428         * gnulib-tool (func_version, func_emit_copyright_notice,
33429         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33430         option -e to sed.
33431         * modules/link-warning (Makefile.am): Likewise.
33432
33433 2009-12-10  Jim Meyering  <meyering@redhat.com>
33434
33435         mgetgroups: do not write bytes beyond end of malloc'd buffer
33436         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33437         username, we call getgroups with a one-element-shorter buffer,
33438         but still told it the length was original, max_n_groups.
33439
33440 2009-12-09  Eric Blake  <ebb9@byu.net>
33441
33442         cloexec: relax license
33443         * modules/cloexec (Maintainer): Add myself.
33444         (License): Use LGPL, not GPL.
33445
33446         link-warning: optimize generation
33447         * modules/link-warning (Makefile.am): Reduce process usage.
33448
33449 2009-12-09  Bruno Haible  <bruno@clisp.org>
33450
33451         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33452         workaround was added on 2009-11-17.
33453
33454 2009-12-09  Jim Meyering  <meyering@redhat.com>
33455             Bruno Haible  <bruno@clisp.org>
33456
33457         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33458         * modules/link-warning (Makefile.am): Make the comment-removing sed
33459         command more robust in the face of bootstrap-prepended comment lines.
33460
33461 2009-12-09  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33464         most one group.
33465
33466 2009-12-09  Simon Josefsson <simon@josefsson.org>
33467             Bruno Haible  <bruno@clisp.org>
33468
33469         * build-aux/link-warning.h: Add copyright notice.
33470         * modules/link-warning (Makefile.am): Generate link-warning.h from
33471         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33472         * NEWS: Mention change in link-warning module.
33473         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33474         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33475         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33476         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33477         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33478         * modules/math (Makefile.am): Add dependency to math.h.
33479         * modules/search (Makefile.am): Add dependency to search.h.
33480         * modules/signal (Makefile.am): Add dependency to signal.h.
33481         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33482         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33483         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33484         * modules/string (Makefile.am): Add dependency to string.h.
33485         * modules/strings (Makefile.am): Add dependency to strings.h.
33486         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33487         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33488         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33489         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33490         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33491         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33492         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33493         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33494         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33495
33496 2009-12-09  Bruno Haible  <bruno@clisp.org>
33497
33498         fchdir: Optimize away rpl_fstat when possible.
33499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33500         REPLACE_OPEN_DIRECTORY.
33501         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33502
33503 2009-12-09  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/fchdir.c: Update comment.
33506
33507 2009-12-09  Bruno Haible  <bruno@clisp.org>
33508
33509         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33510
33511 2009-12-08  Eric Blake  <ebb9@byu.net>
33512
33513         fchdir: avoid memory leak on re-registration.
33514         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33515
33516 2009-12-08  Jim Meyering  <meyering@redhat.com>
33517
33518         init.sh: avoid Solaris 10 /bin/sh portability problem
33519         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33520         sourced script:
33521           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33522           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33523           bar
33524         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33525         and two tests used that idiom.
33526         * tests/init.sh: Update suggested usage comments.
33527         (path_prepend_): New function, to be used in place
33528         of the --src-path=DIR option.
33529         (setup_): Move PATH-prepending code into path_prepend_.
33530         * tests/test-pread.sh: Adapt to new usage.
33531         * tests/test-xalloc-die.sh: Likewise.
33532
33533 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33534
33535         * doc/gnulib.texi (Glibc pty.h): Add.
33536         * doc/glibc-functions/forkpty.texi: Add.
33537         * doc/glibc-functions/openpty.texi: Add.
33538         Suggested by Bruno Haible.
33539
33540 2009-12-08  Eric Blake  <ebb9@byu.net>
33541
33542         fchdir: fix logic bugs
33543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33544         * tests/test-fchdir.c (main): Enhance test.
33545         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33546         is in use.
33547
33548         dup2: fix logic bugs
33549         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33550         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33551         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33552         exists.
33553         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33554
33555 2009-12-07  Eric Blake  <ebb9@byu.net>
33556
33557         unlink: fix m4 detection
33558         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33559
33560         unistd-safer: add unit test
33561         * modules/unistd-safer-tests: New file.
33562         * tests/test-dup-safer.c: Likewise.
33563         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33564         * tests/test-dup2.c (setmode): Likewise.
33565         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33566
33567         cloexec: preserve text vs. binary across dup_cloexec
33568         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33569         mode.
33570         * modules/dup2-tests (Depends-on): Add binary-io.
33571         * modules/cloexec-tests (Depends-on): Likewise.
33572         * tests/test-dup2.c (setmode, is_mode): New helpers.
33573         (main): Add tests that translation mode is preserved.
33574         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33575         Reported by Bruno Haible.
33576
33577         mgetgroups: reduce duplicate listings
33578         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33579         resulting array.
33580         * tests/test-chown.h (test_chown): Simplify client.
33581         * tests/test-lchown.h (test_lchown): Likewise.
33582
33583 2009-12-06  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33586         value.
33587
33588 2009-12-06  Bruno Haible  <bruno@clisp.org>
33589
33590         * lib/progname.c: Include stdio.h, stdlib.h.
33591         (set_program_name): Reject a NULL argument.
33592
33593 2009-12-05  Eric Blake  <ebb9@byu.net>
33594
33595         pipe2-safer: new module
33596         * modules/pipe2-safer: New file.
33597         * lib/unistd-safer.h (pipe2_safer): New prototype.
33598         * lib/unistd--.h (pipe2): New wrapper.
33599         * lib/pipe-safer.c (pipe2_safer): New function.
33600         * modules/pipe (Depends-on): Add pipe2-safer.
33601         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33602
33603         stdlib-safer: preserve cloexec flag for mkostemp[s]
33604         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33605         fd_safer_flag.
33606
33607         unistd-safer: allow preservation of cloexec status via flag
33608         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33609         prototypes.
33610         * lib/dup-safer.c (dup_safer_flag): New function.
33611         * lib/fd-safer.c (fd_safer_flag): Likewise.
33612         * modules/cloexec (configure.ac): Set witness.
33613
33614         test-dup2: enhance test
33615         * modules/dup2-tests (Depends-on): Add cloexec.
33616         * tests/test-dup2.c (main): Enhance test.
33617
33618         cloexec: add dup_cloexec
33619         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33620         header and comments.
33621         * lib/cloexec.c (set_cloexec_flag): Add comments.
33622         (dup_cloexec): New function, with mingw implementation borrowed
33623         from...
33624         * lib/w32spawn.h (dup_noinherit): ...here.
33625         * modules/execute (Depends-on): Add cloexec.
33626         * modules/pipe (Depends-on): Likewise.
33627         * modules/cloexec (Depends-on): Add dup2.
33628         * modules/cloexec-tests (Files): New file.
33629         * tests/test-cloexec.c: Likewise.
33630
33631         test-xalloc-die: fix test for mingw
33632         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33633         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33634         directory and .exe suffix off argv[0] output.
33635
33636         test-fseeko: fix test for mingw
33637         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33638         than undefining fseek, so test will pass on mingw.
33639
33640 2009-12-05  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/progname.h (set_program_name): Clarify specification.
33643         * lib/progname.c (set_program_name): Likewise.
33644         Reported by Jim Meyering.
33645
33646 2009-12-05  Jim Meyering  <meyering@redhat.com>
33647
33648         maint.mk: backslash-escape parens in default regexp
33649         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33650         backslash-escape the literal parentheses.
33651
33652         maint.mk: news-date-check: use grep -E
33653         * top/maint.mk (today): Define a Make variable, not a...
33654         (news-date-check): ...shell variable.
33655         (news-date-regexp): Use the Make variable.
33656         Use grep's -E option.  Change the failing diagnostic to mention
33657         the variable, $(news-date-regexp).
33658
33659 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33660
33661         maintainer-makefile: allow customization of NEWS entry format
33662         * top/maint.mk (news-date-regexp): New overridable variable.
33663         (news-date-check): Use it.
33664
33665 2009-12-04  Eric Blake  <ebb9@byu.net>
33666
33667         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33668         * lib/mgetgroups.h (xgetgroups): New prototype.
33669         * lib/mgetgroups.c (xgetgroups): New wrapper.
33670         (mgetgroups): Handle ENOSYS.
33671         * modules/mgetgroups (Depends-on): Add realloc.
33672         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33673
33674         mgetgroups: avoid argument promotion issues with -1
33675         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33676         for invalid gid_t.
33677         * tests/test-chown.h (getegid, test_chown): Likewise.
33678         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33679
33680 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33681
33682         exclude: Fix header file problems.
33683         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33684
33685 2009-12-01  Jim Meyering  <meyering@redhat.com>
33686
33687         fts: fts_open: do not let an empty string cause immediate failure
33688         This is required in support of GNU rm, for which the command
33689         "rm A '' B" must process and remove both A and B, in spite of
33690         the empty string argument.
33691         * lib/fts.c (fts_open): Do not let the presence of an empty string
33692         cause fts_open to fail immediately.  Most fts-using tools must be
33693         able to process all arguments, in order, and can be expected to
33694         diagnose such arguments themselves.
33695
33696 2009-11-30  Eric Blake  <ebb9@byu.net>
33697
33698         utimens: fix compilation error
33699         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33700         Declare variable at right scope.
33701
33702 2009-11-29  Jim Meyering  <meyering@redhat.com>
33703
33704         bootstrap: handle perl-5.11's changed --version output
33705         * build-aux/bootstrap (get_version): Handle perl separately,
33706         since perl-5.11's --version output is different.
33707
33708 2009-11-28  Jim Meyering  <meyering@redhat.com>
33709
33710         userspec: depend on the inttostr module, too
33711         * modules/userspec (Depends-on): Add inttostr.
33712
33713         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33714         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33715         number of MAXUID when it evaluates to (uid_t) -1.
33716         Likewise for group ID.  Reported by Matt McCutchen in
33717         <http://savannah.gnu.org/bugs/?28113>
33718
33719         userspec: reformat to use spaces, not TABs
33720         * lib/userspec.c: Expand TABs to spaces.
33721         Add Emacs' "indent-tabs-mode: nil" hint.
33722
33723 2009-11-27  Eric Blake  <ebb9@byu.net>
33724
33725         getopt-gnu: flush out another BSD bug
33726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33727         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33728         flush out BSD bug.
33729         * tests/test-getopt.h (test_getopt): End lists with NULL.
33730         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33731         (test_getopt_long_posix): Enhance test.
33732         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33733         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33734         getopt-gnu.
33735         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33736         Likewise.
33737
33738 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33739
33740         * modules/idpriv-droptemp-tests (Notice): Fix text.
33741
33742 2009-11-27  Jim Meyering  <meyering@redhat.com>
33743
33744         test-xalloc-die: avoid spurious failure due to libtool argv difference
33745         In a libtool-enabled project, this test would fail due to a difference
33746         in the emitted program name, e.g.,
33747         -test-xalloc-die: memory exhausted
33748         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33749         Use program to avoid that.
33750         * modules/xalloc-die-tests (Depends-on): Add progname.
33751         * tests/test-xalloc-die.c: Include progname.h".
33752         (program_name): Remove decl.
33753         (main): Call set_program_name.
33754         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33755
33756 2009-11-26  Richard Jones  <rjones@redhat.com>
33757
33758         w32sock: leave win32 error in place.
33759         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33760
33761 2009-11-26  Eric Blake  <ebb9@byu.net>
33762
33763         init.sh: suggest to use skip_ and fail_ functions in comments
33764         * tests/init.sh: Add a sentence.
33765
33766 2009-11-25  Bruno Haible  <bruno@clisp.org>
33767
33768         init.sh: add documentation in comments
33769         * tests/init.sh: Add some developer and user documentation.
33770
33771 2009-11-26  Jim Meyering  <meyering@redhat.com>
33772
33773         init.sh: accommodate even those who specify bogus srcdir manually
33774         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33775         configure-time tests to be sanitized, so that there is no need to
33776         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33777         (with no double quotes) suffices.  However, since tests may be
33778         invoked manually, and since you may explicitly set srcdir to the
33779         name of a directory containing spaces, do quote its uses here.
33780         * tests/test-pread.sh: Likewise.
33781         Suggested by Bruno Haible.
33782
33783         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33784         * tests/test-pread.sh: Write no data into the pipe, because
33785         test-pread actually reads none.  This avoids a diagnostic,
33786         "bash: echo: write error: Broken pipe", that arises in the unusual
33787         event something is ignoring SIGPIPE, and might be interpreted
33788         as some sort of failure.  Reported by Bruno Haible.
33789
33790 2009-11-25  Jim Meyering  <meyering@redhat.com>
33791
33792         test-pread: cover failure with ESPIPE and EINVAL
33793         * tests/test-pread.c (main): Test for failure, too.
33794         * tests/test-pread.sh: Invoke with stdin on a pipe.
33795         Suggested by Eric Blake.
33796
33797         pread: improvement and fix
33798         * modules/pread (Depends-on): Depend on lseek, for portability to
33799         e.g., mingw.  Suggested by Eric Blake.
33800         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33801
33802         unistd.in.h: correct declaration of pread
33803         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33804         Reported by Richard W.M. Jones.
33805
33806         test-pread.sh: distribute the test script
33807         * modules/pread-tests (Files): Include test-pread.sh.
33808
33809         test-pread.sh: clean up
33810         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33811         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33812         That is unnecessary, since it's always ".".
33813         Suggestion from Eric Blake.
33814
33815         test-pread.sh: make executable
33816         * tests/test-pread.sh: Set executable bit.
33817         Reported by Eric Blake.
33818
33819         correct typo in test-pread.sh
33820         * tests/test-pread.sh: Add #! line.
33821
33822         test pread
33823         * tests/test-pread.c: New file.
33824         * tests/test-pread.sh: Likewise.
33825         * modules/pread-tests: Likewise.
33826
33827         pread: new module
33828         * modules/pread: New file.
33829         * lib/unistd.in.h (pread): Define/declare.
33830         * lib/pread.c (pread): New file.
33831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33832         * modules/unistd (Makefile.am): Substitute witnesses.
33833         * doc/posix-functions/pread.texi (pread): Update.
33834         * MODULES.html.sh: Add pread.
33835
33836 2009-11-25  Jim Meyering  <meyering@redhat.com>
33837
33838         tests/init.sh: new file to be used via most *.sh tests
33839         * tests/init.sh: New file.
33840
33841 2009-11-25  Eric Blake  <ebb9@byu.net>
33842
33843         utimens: work around older Linux failure with symlinks
33844         * lib/utimens.c (lutimensat_works_really): New variable.
33845         (fdutimens, lutimens): Use it to manage kernels that support
33846         nanosecond times on files, but not on symlinks.
33847         Reported by OndÅ™ej Vašík.
33848
33849         utimes: fix configure grammar
33850         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33851
33852 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33853
33854         regex: Fix fastmap for multibyte character ranges.
33855         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33856         characters when a multibyte character range is included.
33857
33858 2009-11-22  Andy Wingo  <wingo@pobox.com>
33859
33860         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33861         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33862
33863 2009-11-24  Bruno Haible  <bruno@clisp.org>
33864
33865         doc: Most *_l functions exist in MacOS X 10.5.
33866         * doc/posix-functions/duplocale.texi: Update platforms list.
33867         * doc/posix-functions/freelocale.texi: Likewise.
33868         * doc/posix-functions/newlocale.texi: Likewise.
33869         * doc/posix-functions/uselocale.texi: Likewise.
33870         * doc/posix-functions/isalnum_l.texi: Likewise.
33871         * doc/posix-functions/isalpha_l.texi: Likewise.
33872         * doc/posix-functions/isblank_l.texi: Likewise.
33873         * doc/posix-functions/iscntrl_l.texi: Likewise.
33874         * doc/posix-functions/isdigit_l.texi: Likewise.
33875         * doc/posix-functions/isgraph_l.texi: Likewise.
33876         * doc/posix-functions/islower_l.texi: Likewise.
33877         * doc/posix-functions/isprint_l.texi: Likewise.
33878         * doc/posix-functions/ispunct_l.texi: Likewise.
33879         * doc/posix-functions/isspace_l.texi: Likewise.
33880         * doc/posix-functions/isupper_l.texi: Likewise.
33881         * doc/posix-functions/iswalnum_l.texi: Likewise.
33882         * doc/posix-functions/iswalpha_l.texi: Likewise.
33883         * doc/posix-functions/iswblank_l.texi: Likewise.
33884         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33885         * doc/posix-functions/iswctype_l.texi: Likewise.
33886         * doc/posix-functions/iswdigit_l.texi: Likewise.
33887         * doc/posix-functions/iswgraph_l.texi: Likewise.
33888         * doc/posix-functions/iswlower_l.texi: Likewise.
33889         * doc/posix-functions/iswprint_l.texi: Likewise.
33890         * doc/posix-functions/iswpunct_l.texi: Likewise.
33891         * doc/posix-functions/iswspace_l.texi: Likewise.
33892         * doc/posix-functions/iswupper_l.texi: Likewise.
33893         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33894         * doc/posix-functions/isxdigit_l.texi: Likewise.
33895         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33896         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33897         * doc/posix-functions/strcoll_l.texi: Likewise.
33898         * doc/posix-functions/strfmon_l.texi: Likewise.
33899         * doc/posix-functions/strftime_l.texi: Likewise.
33900         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33901         * doc/posix-functions/strxfrm_l.texi: Likewise.
33902         * doc/posix-functions/tolower_l.texi: Likewise.
33903         * doc/posix-functions/toupper_l.texi: Likewise.
33904         * doc/posix-functions/towctrans_l.texi: Likewise.
33905         * doc/posix-functions/towlower_l.texi: Likewise.
33906         * doc/posix-functions/towupper_l.texi: Likewise.
33907         * doc/posix-functions/wcscoll_l.texi: Likewise.
33908         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33909         * doc/posix-functions/wctrans_l.texi: Likewise.
33910         * doc/posix-functions/wctype_l.texi: Likewise.
33911         * doc/glibc-functions/strptime_l.texi: Likewise.
33912         * doc/glibc-functions/strtod_l.texi: Likewise.
33913         * doc/glibc-functions/strtof_l.texi: Likewise.
33914         * doc/glibc-functions/strtol_l.texi: Likewise.
33915         * doc/glibc-functions/strtold_l.texi: Likewise.
33916         * doc/glibc-functions/strtoll_l.texi: Likewise.
33917         * doc/glibc-functions/strtoul_l.texi: Likewise.
33918         * doc/glibc-functions/strtoull_l.texi: Likewise.
33919         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33920         * doc/glibc-functions/wcstod_l.texi: Likewise.
33921         * doc/glibc-functions/wcstof_l.texi: Likewise.
33922         * doc/glibc-functions/wcstol_l.texi: Likewise.
33923         * doc/glibc-functions/wcstold_l.texi: Likewise.
33924         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33925         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33926         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33927
33928 2009-11-24  Bruno Haible  <bruno@clisp.org>
33929
33930         duplocale: Fix logic bug.
33931         * lib/duplocale.c: Don't include <langinfo.h>.
33932         (_NL_LOCALE_NAME): Remove macro.
33933         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33934         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33935
33936 2009-11-23  Jim Meyering  <meyering@redhat.com>
33937
33938         test-update-copyright: don't hard-code /usr/bin/perl
33939         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33940         perl to print the current year.  Gilles Espinasse reported that
33941         the replaced use of perl was hard-coded as /usr/bin/perl.
33942
33943 2009-11-23  Bruno Haible  <bruno@clisp.org>
33944
33945         duplocale: Add support for glibc 2.3.x.
33946         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33947
33948 2009-11-22  Bruno Haible  <bruno@clisp.org>
33949
33950         vasnprintf: Tiny optimization.
33951         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33952         MacOS X.
33953
33954 2009-11-22  Bruno Haible  <bruno@clisp.org>
33955
33956         Tests for module 'duplocale'.
33957         * modules/duplocale-tests: New file.
33958         * tests/test-duplocale.c: New file.
33959
33960         New module 'duplocale'.
33961         * m4/duplocale.m4: New file.
33962         * lib/locale.in.h (duplocale): New declaration.
33963         * lib/duplocale.c: New file.
33964         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33965         gl_LOCALE_H_DEFAULTS): New macros.
33966         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33967         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33968         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33969         REPLACE_DUPLOCALE.
33970         * modules/duplocale: New file.
33971         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33972
33973 2009-11-22  Bruno Haible  <bruno@clisp.org>
33974
33975         * modules/locale-tests (configure.ac): Test for newlocale function.
33976         * tests/test-locale.c: When the system has extended locale functions,
33977         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33978
33979         locale: Make locale_t available when possible.
33980         * lib/locale.in.h: Include <xlocale.h> when it exists.
33981         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33982         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33983         * modules/locale (Depends-on): Add extensions.
33984         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33985         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33986
33987 2009-11-22  Bruno Haible  <bruno@clisp.org>
33988
33989         Add comments.
33990         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33991         invocation.
33992         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33993         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33994         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33995
33996 2009-11-22  Bruno Haible  <bruno@clisp.org>
33997
33998         error: account for the possibility of freopen (stdout).
33999         * lib/error.c: Include <unistd.h>.
34000         (flush_stdout): New function, extracted from error and error_at_line.
34001         Determine stdout's fd dynamically.
34002         (error, error_at_line): Invoke flush_stdout.
34003         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34004         * modules/error (Depends-on): Add unistd.
34005
34006 2009-11-22  Bruno Haible  <bruno@clisp.org>
34007
34008         diffseq: Add comment.
34009         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34010
34011 2009-11-22  Jim Meyering  <meyering@redhat.com>
34012
34013         c-stack: avoid defining an unused static function
34014         * lib/c-stack.c (find_stack_direction): Do not define this function
34015         when it will not be used.
34016
34017         diffseq: avoid spurious gcc warnings
34018         * lib/diffseq.h (IF_LINT2): Define.
34019         (compareseq): Use it to initialize two members of "part".
34020         This avoids two used-uninitialized warnings.
34021
34022 2009-11-21  Jim Meyering  <meyering@redhat.com>
34023
34024         c-stack: avoid "ignoring return value of `write'" warning
34025         * lib/c-stack.c: Include "ignore-value.h".
34026         (die): Explicitly ignore each write return value.
34027         * modules/c-stack (Depends-on): Add ignore-value.
34028
34029 2009-11-21  Bruno Haible  <bruno@clisp.org>
34030
34031         diffseq: reduce scope of variable 'best'.
34032         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34033         variable, earlier used for two different purposes.
34034
34035 2009-11-21  Jim Meyering  <meyering@redhat.com>
34036
34037         diffseq: remove useless assignment to "best"
34038         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34039         assignment.  At that point "best" is already guaranteed to be zero.
34040
34041 2009-11-20  Eric Blake  <ebb9@byu.net>
34042
34043         build: mention ftp redirector in release announcements
34044         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34045         values that used to come from cfg.mk; mention FTP redirect URL.
34046         * build-aux/announce-gen: Mention the mirror list.
34047         Suggested by Karl Berry.
34048
34049         nanosleep: improve port to mingw
34050         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34052         LIB_NANOSLEEP, but only when needed.
34053         * modules/select (Link): Document LIBSOCKET.
34054         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34055         enough.
34056
34057         nanosleep: work around cygwin bug
34058         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34059         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34060         bug.
34061         (getnow): Delete, not needed.
34062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34063         LIB_CLOCK_GETTIME.
34064         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34065         clock-time, gettime.
34066         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34067         bug.
34068         * modules/nanosleep-tests: New test.
34069         * tests/test-nanosleep.c: New file.
34070
34071         sleep: work around cygwin bug
34072         * lib/sleep.c (rpl_sleep): Work around the bug.
34073         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34074         (gl_PREREQ_SLEEP): Delete unused macro.
34075         * modules/sleep (Depends-on): Add verify.
34076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34077         * modules/unistd (Makefile.am): Substitute witness.
34078         * lib/unistd.in.h (sleep): Update prototype.
34079         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34080         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34081         * modules/sleep-tests (Depends-on): Check for alarm.
34082
34083 2009-11-20  Jim Meyering  <meyering@redhat.com>
34084
34085         maint.mk: improve sc_prohibit_magic_number_exit
34086         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34087         so it does not match uses like System.exit(1).
34088         Add comments showing how to correct all offenders.
34089
34090 2009-11-19  Eric Blake  <ebb9@byu.net>
34091
34092         xalloc-die-tests: add missing library
34093         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34094
34095         test-xvasprintf: silence compiler warnings
34096         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34097         empty string from gcc.
34098
34099 2009-11-19  Jim Meyering  <meyering@redhat.com>
34100
34101         xfreopen: new module, from coreutils
34102         * modules/xfreopen: New module.
34103         * lib/xfreopen.c: New file.
34104         * lib/xfreopen.h: New file.
34105         * MODULES.html.sh (File stream based Input/Output"): Add it.
34106
34107 2009-11-19  Eric Blake  <ebb9@byu.net>
34108
34109         manywarnings: depend on warnings
34110         * modules/manywarnings (Depends-on): Add warnings.
34111
34112         build: avoid compiler warnings
34113         * lib/select.c (rpl_select): Delete unused variable.
34114         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34115
34116 2009-11-18  Eric Blake  <ebb9@byu.net>
34117
34118         tests: avoid false negative with --with-packager
34119         * tests/test-version-etc.sh: Discard packager information.
34120         * tests/test-argp-version-etc-1.sh: Likewise.
34121         Reported by Mike Frysinger.
34122
34123         utimens: fix regression on Solaris
34124         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34125         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34126         can only change fd timestamps via futimesat.  Instead, use an
34127         additional witness macro to avoid BSD bug.
34128         Reported by Jim Meyering.
34129
34130 2009-11-17  Eric Blake  <ebb9@byu.net>
34131
34132         usleep: use it to simplify tests
34133         * modules/stat-time-tests (Depends-on): Add usleep.
34134         (configure.ac): Drop usleep check.
34135         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34136         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34137         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34138         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34139         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34140         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34141         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34142         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34143         Likewise.
34144         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34145         * tests/test-lchown.h (nap): Likewise.
34146         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34147         * tests/test-stat-time.c (nap): Likewise.
34148         * tests/test-utimens-common.h (nap): Update comments.
34149
34150         usleep: new module
34151         * modules/usleep: New file.
34152         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34153         * lib/usleep.c (usleep): Likewise.
34154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34155         * modules/unistd (Makefile.am): Substitute witnesses.
34156         * lib/unistd.in.h (usleep): Add declaration.
34157         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34158         * MODULES.html.sh (Date and time): Likewise.
34159         * modules/usleep-tests (Depends-on): New test.
34160         * tests/test-usleep.c: New file.
34161
34162         chown: work around OpenBSD bug
34163         * lib/chown.c (rpl_chown): Work around the bug.
34164         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34165         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34166         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34167         * modules/chown (Depends-on): Add stdbool.
34168         * modules/lchown (Depends-on): Likewise.
34169         * doc/posix-functions/chown.texi (chown): Document the bug.
34170         * doc/posix-functions/lchown.texi (lchown): Likewise.
34171         * tests/test-lchown.h (test_chown): Relax test.
34172
34173         mkstemp: avoid conflict with C++ keyword template
34174         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34175         * lib/mkostemp.c (mkostemp): Likewise.
34176         * lib/mkostemps.c (mkostemps): Likewise.
34177         * lib/mkstemp.c (mkstemp): Likewise.
34178         * lib/mkstemps.c (mkstemps): Likewise.
34179
34180         xalloc-die-tests: optimize
34181         * tests/test-xalloc-die.sh: Reduce number of processes.
34182
34183 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34184
34185         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34186         patch from ludo@gnu.org (Ludovic Courtès).
34187
34188 2009-11-17  Jim Meyering  <meyering@redhat.com>
34189
34190         version-etc: use proper license string
34191         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34192         * modules/version-etc-fsf: Likewise.
34193
34194 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34195
34196         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34197         printed to stdout.  Deal with EOL differences.
34198
34199 2009-11-17  Eric Blake  <ebb9@byu.net>
34200
34201         unsetenv: work around Solaris bug
34202         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34203         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34204         Reported by Jim Meyering.
34205
34206         vasnprintf: avoid compiler warnings
34207         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34208         variables.
34209         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34210
34211 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34212
34213         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34214         settings since xalloc-die is no longer the self test,
34215         xalloc-die.sh is.
34216
34217 2009-11-17  Jim Meyering  <meyering@redhat.com>
34218
34219         test-xalloc-die.sh: make the code agree with the commit log
34220         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34221         at the end, just in case you happen to have a test-xalloc-die
34222         program in some other PATH directory.
34223
34224         test-xalloc-die.sh: fix a portability bug
34225         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34226         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34227         Otherwise, argv[0] (as often seen in diagnostics) would be too
34228         system-dependent, sometimes with, and sometimes without the leading "./".
34229
34230         version-etc-fsf: relax license to LGPLv3+
34231         * modules/version-etc-fsf (License): Relax license.
34232
34233 2009-11-16  Eric Blake  <ebb9@byu.net>
34234
34235         xalloc-die-tests: avoid printing null pointer
34236         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34237         shell script.
34238         * tests/test-xalloc-die.c (program_name): Declare.
34239         * tests/test-xalloc-die.sh (tmpfiles): New file.
34240
34241         setenv, unsetenv: work around various bugs
34242         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34243         (setenv) [HAVE_SETENV]: Work around bugs.
34244         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34245         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34246         for bugs.
34247         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34248         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34250         * modules/stdlib (Makefile.am): Update substitutions.
34251         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34252         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34253         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34254         * modules/setenv-tests: New test.
34255         * modules/unsetenv-tests: Likewise.
34256         * tests/test-setenv.c: New file.
34257         * tests/test-unsetenv.c: Likewise.
34258
34259 2009-11-16  Jim Meyering  <meyering@redhat.com>
34260
34261         version-etc: relax license to LGPLv3+
34262         * modules/version-etc (License): Relax license.
34263
34264         better AC_REQUIRE expanded-before-required-warning avoidance
34265         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34266         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34267         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34268         which is no longer needed.
34269
34270 2009-11-16  Eric Blake  <ebb9@byu.net>
34271
34272         test-freading: clean up temporary file
34273         * tests/test-freading.c (main): Remove file on success, and use
34274         ASSERT more liberally.
34275         Reported by Jim Meyering.
34276
34277 2009-11-16  Jim Meyering  <meyering@redhat.com>
34278
34279         avoid new AC_REQUIRE expanded-before-required warnings
34280         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34281         merely using it.
34282         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34283         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34284
34285 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34286
34287         * tests/test-xalloc-die.c: New file.
34288         * modules/xalloc-die-tests: New file.
34289         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34290         XFAIL_TESTS so it can be appended by modules.
34291
34292 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34293
34294         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34295         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34296
34297 2009-11-14  Eric Blake  <ebb9@byu.net>
34298
34299         fnmatch: avoid compiler warning
34300         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34301         to silence compiler warning about mismatch signedness in ?:.
34302         Reported by Robert Millan.
34303
34304         intprops: add double-inclusion guard
34305         * lib/intprops.h: Allow idempotent includes.
34306         Suggested by Bruce Korb.
34307
34308         openat: detect Solaris fchownat bug
34309         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34310         penalizing glibc chownat when only lchownat is broken.
34311         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34312         trailing slash bugs.
34313         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34314         * modules/openat-tests (Files): Include more files.
34315         (Depends-on): Add mgetgroups, sleep, stat-time.
34316         (configure.ac): Add additional checks.
34317         (Makefile.am): Build new test.
34318         * tests/test-fchownat.c: New file.
34319
34320         lchown: detect Solaris and FreeBSD bug
34321         * lib/lchown.c (rpl_lchown): Work around bug.
34322         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34324         * modules/unistd (Makefile.am): Populate it.
34325         * lib/unistd.in.h (lchown): Update declaration.
34326         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34327         * modules/lchown-tests: New file.
34328         * tests/test-lchown.h (test_lchown): Likewise.
34329         * tests/test-lchown.c (main): Likewise.
34330
34331         chown: detect Solaris and FreeBSD bug
34332         * lib/chown.c (rpl_chown): Work around bug.
34333         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34334         (gl_PREREQ_CHOWN): Delete.
34335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34336         * modules/unistd (Makefile.am): Populate it.
34337         * lib/unistd.in.h (chown): Update declaration.
34338         * lib/lchown.c (chown): Update client.
34339         * modules/lchown (Depends-on): Add lstat.
34340         * doc/posix-functions/chown.texi (chown): Document the bug.
34341         * doc/posix-functions/getgroups.texi (getgroups): Document
34342         getgroups pitfall.
34343         * modules/chown-tests: New file.
34344         * tests/test-chown.h (test_chown): Likewise.
34345         * tests/test-chown.c (main): Likewise.
34346
34347 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34348
34349         gnulib-tool: correctly detect absence of m4 directories
34350         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34351
34352 2009-11-14  Jim Meyering  <meyering@redhat.com>
34353
34354         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34355         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34356
34357 2009-11-14  John W. Eaton  <jwe@gnu.org>
34358
34359         strftime.h: wrap funtion declaration in extern "C" block
34360         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34361
34362 2009-11-13  Eric Blake  <ebb9@byu.net>
34363
34364         getgroups: avoid compiler warning
34365         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34366
34367         getgroups: work around FreeBSD bug
34368         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34369         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34370         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34371         * tests/test-getgroups.c (main): Fix buffer overrun.
34372
34373         getgroups: avoid compilation failure
34374         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34375         * modules/getgroups (Depends-on): Add stdint.
34376
34377 2009-11-13  Jim Meyering  <meyering@redhat.com>
34378
34379         test-getgroups: avoid compilation failure
34380         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34381
34382 2009-11-13  Eric Blake  <ebb9@byu.net>
34383
34384         mgetgroups: new module, taken from coreutils
34385         * modules/mgetgroups: New file.
34386         * lib/mgetgroups.h: Likewise.
34387         * lib/mgetgroups.c (mgetgroups): Likewise.
34388         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34389         * MODULES.html.sh (Users and groups): Mention it.
34390
34391         getgroups: don't expose GETGROUPS_T to user
34392         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34393         an element at a time if GETGROUPS_T is wrong size.
34394         * lib/getugroups.h (getugroups): Change signature.
34395         * lib/unistd.in.h (getgroups): Likewise.
34396         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34397         signature needs fixing.
34398         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34399         AC_TYPE_GETGROUPS.
34400         * modules/group-member (Depends-on): Add getgroups.
34401         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34402         (group_member): Rely on getgroups replacement.
34403         * lib/getugroups.c (getugroups): Use gid_t.
34404         * tests/test-getgroups.c (main): Likewise.
34405         * NEWS: Mention the signature change.
34406         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34407         problem with signature.
34408         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34409         GETGROUPS_T is still useful for setgroups.
34410
34411         getgroups, getugroups: provide stubs for mingw
34412         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34413         * lib/getugroups.c (getugroups): Likewise.
34414         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34415         function.  Modernize replacement scheme.
34416         (gl_PREREQ_GETGROUPS): Delete.
34417         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34418         * modules/getgroups (configure.ac): Declare witness.
34419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34420         * modules/unistd (Depends-on): Substitute witness.
34421         * lib/unistd.in.h (getgroups): Declare replacement.
34422
34423         getgroups: avoid calling exit
34424         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34425         drop xalloc.
34426         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34427         dependencies.
34428         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34429         exiting, in the rare case of malloc failure.
34430
34431         getgroups: fix logic error
34432         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34433         has more than 20 groups.
34434         * modules/getgroups-tests: New test.
34435         * tests/test-getgroups.c: New file.
34436
34437 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34438
34439         * tests/test-base64.c: Improve.
34440
34441 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34442
34443         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34444         Blake <ebb9@byu.net>.
34445
34446 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34447
34448         * tests/test-xvasprintf.c: Add %s%s related checks.
34449
34450 2009-11-12  Eric Blake  <ebb9@byu.net>
34451
34452         version-etc: match standards.texi style
34453         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34454         and use <> only for URLs.
34455
34456 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34457
34458         fts: do not fail on a submount during traversal
34459         * lib/fts.c (fts_build): Read the stat info again after opening
34460         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34461         Original report at http://bugzilla.redhat.com/501848.
34462
34463 2009-11-12  Jim Meyering  <meyering@redhat.com>
34464
34465         bootstrap: sync from coreutils
34466         * build-aux/bootstrap (bootstrap_epilogue): New function.
34467         Use git_modules_config in one more place.  This make bootstrap's
34468         --gnulib-srcdir option more useful for testing.
34469
34470         bootstrap: generalize autoheader check
34471         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34472         AC_CONFIG_HEADERS.
34473
34474 2009-11-11  Eric Blake  <ebb9@byu.net>
34475
34476         mkfifoat: use new modules for Solaris and BSD bugs
34477         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34478         * lib/mkfifoat.c (mknodat): Split...
34479         * lib/mknodat.c (mknodat): ...into new file.
34480         * modules/mkfifoat (Files): Ship new file.
34481         (Depends-on): Add mkfifo, mknod.
34482         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34483         (Depends-on): Add symlink.
34484         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34485         redundant with test_mkfifo.h.
34486         (do_mkfifoat, do_mknodat): New helpers.
34487
34488         mknod: new module
34489         * modules/mknod: New file.
34490         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34491         * lib/mknod.c (mknod): Likewise.
34492         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34493         defaults.
34494         * modules/sys_stat (Makefile.am): Substitute them.
34495         * lib/sys_stat.in.h (mknod): Declare replacement.
34496         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34497         Document it.
34498         * doc/posix-functions/mknod.texi (mknod): Likewise.
34499         * modules/mknod-tests: New test.
34500         * tests/test-mknod.c: Likewise.
34501
34502         mkfifo: new module
34503         * modules/mkfifo: New file.
34504         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34505         * lib/mkfifo.c (mkfifo): Likewise.
34506         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34507         defaults.
34508         * modules/sys_stat (Makefile.am): Substitute them.
34509         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34510         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34511         Document it.
34512         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34513         * modules/mkfifo-tests: New test.
34514         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34515         from test-mkfifoat.c.
34516         * tests/test-mkfifo.c: New file.
34517
34518         readlink: detect FreeBSD bug
34519         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34520         slash on symlink.
34521         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34522         * tests/test-readlink.h (test_readlink): Enhance test.
34523
34524         symlink: detect FreeBSD bug
34525         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34526         slash on symlink.
34527         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34528         * tests/test-symlink.h (test_symlink): Enhance test.
34529
34530 2009-11-10  Eric Blake  <ebb9@byu.net>
34531
34532         link: detect FreeBSD bug
34533         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34534         symlink.
34535         * doc/posix-functions/link.texi (link): Document the bug.
34536         * tests/test-link.h (test_link): Enhance test.
34537         * tests/test-linkat.c (main): Update caller.
34538
34539         unlink, remove: detect FreeBSD bug
34540         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34541         slash on symlink.
34542         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34543         * doc/posix-functions/remove.texi (remove): Likewise.
34544         * tests/test-unlink.h (test_unlink): Enhance test.
34545         * tests/test-remove.c (main): Likewise.
34546
34547 2009-11-09  Eric Blake  <ebb9@byu.net>
34548
34549         rename: detect FreeBSD bug
34550         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34551         slash on symlink.
34552         * modules/renameat-tests (Depends-on): Add filenamecat.
34553         * tests/test-rename.h (test_rename): Allow one more errno.
34554         * tests/test-renameat.c (main): Likewise.
34555         * doc/posix-functions/rename.texi (rename): Document the bug.
34556
34557         open: detect FreeBSD bug
34558         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34559         symlink.
34560         * doc/posix-functions/open.texi (open): Document the bug.
34561         * doc/posix-functions/utimes.texi (utimes): Likewise.
34562         * tests/test-open.h (test_open): Add parameters, and test symlink
34563         handling.
34564         * tests/test-open.c (main): Adjust caller.
34565         * tests/test-fcntl-safer.c (main): Likewise.
34566         * modules/open-tests (Depends-on): Add stdbool, symlink.
34567         * modules/fcntl-safer-tests (Depends-on): Likewise.
34568         * tests/test-openat.c (main): Add test-open tests.
34569
34570         stat: detect FreeBSD bug
34571         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34572         symlink.
34573         * doc/posix-functions/stat.texi (stat): Document the bug.
34574         * tests/test-stat.h (test_stat_func): Add argument.
34575         * tests/test-stat.c (main): Adjust caller.
34576         * tests/test-fstatat.c (main): Likewise.
34577         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34578         Reported by Jim Meyering.
34579
34580 2009-11-09  James Youngman  <jay@gnu.org>
34581
34582         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34583         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34584
34585 2009-11-08  Jim Meyering  <meyering@redhat.com>
34586
34587         utimens: remove invalid futimesat call
34588         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34589         It used the file descriptor of the target file as the DIR_FD
34590         parameter and NULL as the file name.  That caused failure with
34591         errno == EFAULT on FreeBSD-8.0-rc2
34592
34593 2009-11-07  Eric Blake  <ebb9@byu.net>
34594
34595         fflush, freadseek: use fseeko, not fseek
34596         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34597         (clear_ungetc_buffer): Avoid potential problems on large files.
34598         * lib/freadseek.c (freadseek): Likewise.
34599         * modules/freadseek (Depends-on): Add fseeko.
34600         * modules/fseek (configure.ac): Set a witness.
34601         * tests/test-fflush.c (main): Use fseeko.
34602         * tests/test-fpurge.c (fseek): Disable link warning.
34603         * tests/test-freadable.c (fseek): Likewise.
34604         * tests/test-freading.c (fseek): Likewise.
34605         * tests/test-fseeko.c (fseek): Likewise.
34606         * tests/test-ftell.c (fseek): Likewise.
34607         * tests/test-ftello.c (fseek): Likewise.
34608         * tests/test-fwritable.c (fseek): Likewise.
34609         * tests/test-fwriting.c (fseek): Likewise.
34610
34611 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34612
34613         * modules/memchr (Depends-on): Drop getpagesize dependency.
34614
34615 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34616
34617         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34618         Reported by Ludovic Courtès.
34619         * build-aux/pmccabe2html: Improve example usage.
34620         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34621
34622 2009-11-06  Jim Meyering  <meyering@redhat.com>
34623
34624         do-release-commit-and-tag: New module.
34625         Automate the release-commit and tag process.
34626         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34627         * modules/do-release-commit-and-tag: New file.
34628         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34629
34630 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34631
34632         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34633         because test-select.c uses inet_pton.
34634
34635 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34636
34637         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34638         GETADDRINFO_LIB.  Bump serial number.
34639         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34640         Suggested by Eric Blake <ebb9@byu.net>.
34641
34642 2009-11-05  Eric Blake  <ebb9@byu.net>
34643
34644         strtod: detect darwin bug
34645         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34646         Reported by Leo Davis.
34647
34648         freopen-safer: new module
34649         * modules/freopen-safer: New module.
34650         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34651         * lib/freopen-safer.c (freopen_safer): New file.
34652         * lib/stdio-safer.h (freopen_safer): New declaration.
34653         * lib/stdio--.h (freopen): New override.
34654         * MODULES.html.sh (File stream based Input/Output): Mention it.
34655         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34656         freopen-safer module.
34657         * doc/posix-functions/stderr.texi (stderr): Likewise.
34658         * doc/posix-functions/stdin.texi (stdin): Likewise.
34659         * doc/posix-functions/stdout.texi (stdout): Likewise.
34660         * modules/freopen-safer-tests: New test.
34661         * tests/test-reopen-safer.c: New file.
34662
34663 2009-11-05  Jim Meyering  <meyering@redhat.com>
34664
34665         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34666         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34667
34668 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34669
34670         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34671
34672 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34673
34674         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34675
34676 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34677
34678         Fix link error.
34679         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34680         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34681
34682 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34683
34684         * tests/test-func.c: Also test value of __func__.
34685
34686 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34687
34688         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34689         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34690
34691 2009-11-05  Bruno Haible  <bruno@clisp.org>
34692
34693         Fix link error.
34694         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34695         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34696         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34697
34698 2009-11-05  Bruno Haible  <bruno@clisp.org>
34699
34700         Tests for module 'inet_pton'.
34701         * modules/inet_pton-tests: New file.
34702         * tests/test-inet_pton.c: New file.
34703
34704 2009-11-05  Bruno Haible  <bruno@clisp.org>
34705
34706         Tests for module 'inet_ntop'.
34707         * modules/inet_ntop-tests: New file.
34708         * tests/test-inet_ntop.c: New file.
34709
34710 2009-11-04  Eric Blake  <ebb9@byu.net>
34711
34712         stdlib-safer: wrap all mkstemp variants
34713         * modules/mkostemp (configure.ac): Set witness.
34714         * modules/mkostemps (configure.ac): Likewise.
34715         * modules/mkstemps (configure.ac): Likewise.
34716         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34717         (mkstemps_safer): Wrap more functions.
34718         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34719         wrapping.
34720         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34721         (mkstemps_safer): Implement the wrappers.
34722
34723         mkstemps, mkostemps: new modules
34724         * modules/mkostemps: New module.
34725         * modules/mkstemps: Likewise.
34726         * lib/mkostemps.c (mkostemps): New file.
34727         * lib/mkstemps.c (mkstemps): Likewise.
34728         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34729         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34731         * modules/stdlib (Makefile.am): Substitute them.
34732         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34733         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34734         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34735         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34736         * MODULES.html.sh (File system functions): Mention them.
34737
34738         tempname: resync from glibc
34739         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34740         same values for __GT_FILE as glibc.  Abort even when assertions
34741         are disabled.
34742         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34743         match its value otherwise.  Allow idempotent inclusion.
34744         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34745         * lib/mkostemp.c (mkostemp): Likewise.
34746         * lib/mkstemp.c (mkstemp): Likewise.
34747         * lib/tmpfile.c (tmpfile): Likewise.
34748         * NEWS: Document this.
34749
34750         utimens: fix use of futimens on older Linux
34751         * lib/utimens.c (fdutimens): Use updated, rather than original,
34752         timespec to avoid bug in older Linux kernel.
34753         Reported by Simon Josefsson.
34754
34755 2009-11-04  Bruno Haible  <bruno@clisp.org>
34756
34757         Make num_processors more flexible and consistent.
34758         * lib/nproc.h (enum nproc_query): New type.
34759         (num_processors): Add a 'query' argument.
34760         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34761         (num_processors): Add a 'query' argument. Test the value of the
34762         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34763         mingw, count the number of CPUs available for the current process.
34764         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34765         Check for sched_getaffinity and sched_getaffinity_np.
34766         * modules/nproc (Depends-on): Add c-ctype, extensions.
34767         * NEWS: Mention the change.
34768
34769 2009-11-03  Bruno Haible  <bruno@clisp.org>
34770
34771         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34772
34773 2009-11-03  Jim Meyering  <meyering@redhat.com>
34774
34775         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34776         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34777         if it is defined.
34778
34779 2009-11-02  Eric Blake  <ebb9@byu.net>
34780
34781         mktime, timegm: share common declaration
34782         * lib/mktime-internal.h: New file.
34783         * lib/mktime.c: Use it rather than open-coding a declaration.
34784         * lib/timegm.c: Likewise.
34785         * modules/mktime (Files): Ship it.
34786         * modules/timegm (Files): Likewise.
34787         Suggested by Bruno Haible.
34788
34789         test-update-copyright: update test to match script changes
34790         * tests/test-update-copyright.sh: Avoid hard-coding perl
34791         location.  Don't update *.bak created by earlier runs.
34792
34793 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34794             Simon Josefsson  <simon@josefsson.org>
34795             Bruno Haible  <bruno@clisp.org>
34796
34797         Fix link error on Solaris 8.
34798         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34799         also in libnsl. Define also INET_PTON_LIB.
34800         * modules/inet_pton (Link): New section.
34801
34802 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34803             Bruno Haible  <bruno@clisp.org>
34804
34805         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34806         * modules/inet_ntop (Link): New section.
34807         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34808
34809 2009-11-02  Eric Blake  <ebb9@byu.net>
34810
34811         maint: avoid compiler warnings in m4 macros
34812         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34814
34815 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34816
34817         * m4/pmccabe2html.m4: Remove file.
34818         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34819         function.  Change maintainer.
34820         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34821         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34822         Courtès).
34823
34824 2009-10-31  Eric Blake  <ebb9@byu.net>
34825
34826         fseeko: fix m4 regression
34827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34828         regression from 2009-10-27.
34829         Reported by Ralf Wildenhues.
34830
34831 2009-10-31  Jim Meyering  <meyering@redhat.com>
34832
34833         inttostr: aesthetics and improved (compile-time) safety
34834         Define inttype_is_signed rather than inttype_is_unsigned,
34835         since the sole use is via "#if inttype_is_signed".
34836         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34837         inttype_is_unsigned.
34838         * lib/offtostr.c (inttype_is_signed): Likewise.
34839         * lib/uinttostr.c (inttype_is_signed): Likewise.
34840         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34841         * lib/inttostr.c (inttostr): Use verify to cross-check the
34842         inttype_is_signed value and the signedness of the actual type.
34843         * modules/inttostr (Depends-on): Add verify.
34844
34845 2009-10-30  Eric Blake  <ebb9@byu.net>
34846
34847         build: avoid compiler warnings
34848         * lib/fchmodat.c (lchmod): Mark unused variables.
34849         * lib/getopt.c (_getopt_initialize): Likewise.
34850         * lib/mktime.c (__mktime_internal): Provide prototype.
34851         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34852         older gcc that do not understand #pragma GCC diagnostic.
34853         * lib/uinttostr.c (inttype_is_unsigned): Define.
34854         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34855
34856 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34857
34858         stat: fix compilation on AIX
34859         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34860         only see struct stat64.
34861
34862 2009-10-30  Eric Blake  <ebb9@byu.net>
34863
34864         exclude: make more robust
34865         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34866         rather than masking a coding bug.
34867         Suggested by Bruno Haible.
34868
34869 2009-10-30  Jim Meyering  <meyering@redhat.com>
34870
34871         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34872         Rather than putting #!/usr/bin/perl on the first line,
34873         start with a variant of what's recommended by "man perlrun" that
34874         invokes the first "perl" program from your shell's search path.
34875         * build-aux/gitlog-to-changelog: Replace #!... as above.
34876         Add a "Local Variables" perl mode setting.
34877         Prompted by a patch from Ludovic Courtès.
34878         Improved by Eric Blake.
34879         * build-aux/useless-if-before-free: Likewise.
34880         * build-aux/announce-gen: Likewise.
34881         * build-aux/update-copyright: Likewise.
34882
34883 2009-10-29  Eric Blake  <ebb9@byu.net>
34884
34885         filenamecat-lgpl: adjust clients
34886         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34887         filenamecat.
34888         * modules/renameat (Depends-on): Likewise.
34889
34890         filenamecat: split into filenamecat-lgpl
34891         * modules/filenamecat-lgpl: New module.
34892         * modules/filenamecat (Files): Move library-safe files into
34893         filenamecat-lgpl.
34894         (Depends-on): Add filenamecat-lgpl.
34895         (configure.ac): Declare witness.
34896         * lib/filenamecat.h (file_name_concat): Only declare when using
34897         GPL module.
34898         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34899         Move...
34900         * lib/filenamecat-lgpl.c: ...into new file.
34901         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34902         (gl_FILE_NAME_CONCAT): Use it.
34903         * MODULES.html.sh (File system functions): Mention new module.
34904
34905         argp: avoid memory leak
34906         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34907         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34908         base_name, since the latter malloc()s and can call exit().
34909         Leak introduced 2006-07-03.
34910
34911         dirname-lgpl: adjust clients that don't need full dirname
34912         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34913         * modules/filenamecat (Depends-on): Likewise.
34914         * modules/linkat (Depends-on): Likewise.
34915         * modules/mkancesdirs (Depends-on): Likewise.
34916         * modules/mkdir (Depends-on): Likewise.
34917         * modules/openat (Depends-on): Likewise.
34918         * modules/savewd (Depends-on): Likewise.
34919         * modules/rename (Depends-on): Likewise.
34920         (License): Relax license.
34921         * modules/mkdir-tests (Depends-on): Drop progname.
34922         (Makefile.am): Delete unneeded LDADD.
34923         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34924
34925         dirname: split into dirname-lgpl
34926         * modules/dirname-lgpl: New module.
34927         * modules/dirname (Files): Move library-safe files into
34928         dirname-lgpl.
34929         (Depends-on): Add dirname-lgpl.
34930         (configure.ac): Declare witness.
34931         * modules/double-slash-root (License): Relax license.
34932         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34933         module.
34934         * lib/dirname.c (dir_len, mdir_name): Move...
34935         * lib/dirname-lgpl.c: ...into new file.
34936         * lib/basename.c (last_component, base_len): Move...
34937         * lib/basename-lgpl.c: ...into new file.
34938         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34939         (gl_DIRNAME): Use it.
34940         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34941         Mention new module.
34942         * modules/dirname-tests (Depends-on): Add progname.
34943         * tests/test-dirname.c (program_name): Delete.
34944
34945         mkdir: make safe for libraries
34946         * modules/mkdir (Depends-on): Drop xalloc.
34947         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34948         exit.
34949
34950         tests: avoid some compiler warnings
34951         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34952         literals.
34953         * tests/test-memchr.c (main): Avoid type mismatch.
34954         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34955         * tests/test-base64.c (main): Likewise.
34956         * tests/test-getdelim.c (main): Likewise.
34957         * tests/test-gethostname.c (main): Likewise.
34958         * tests/test-getline.c (main): Likewise.
34959         * tests/test-netinet_in.c (main): Likewise.
34960         * tests/test-select.c (open_server_socket, main): Likewise.
34961         * tests/test-select-stdin.c (main): Likewise.
34962         * tests/test-sockets.c (main): Likewise.
34963         * tests/test-strsignal.c (main): Likewise.
34964         * tests/test-sys_select.c (main): Likewise.
34965         * tests/test-sys_socket.c (main): Likewise.
34966         * tests/test-u64.c (main): Likewise.
34967         * tests/test-xfprintf-posix.c (main): Likewise.
34968         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34969
34970         sockets: avoid compiler warning
34971         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34972
34973         maint: detect usage(1) and other suspicious exits
34974         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34975
34976 2009-10-29  Jim Meyering  <meyering@redhat.com>
34977
34978         timespec: long-to-int truncation could make timespec_cmp malfunction
34979         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34980         a multiple of 2^32 nanoseconds as no difference.
34981
34982 2009-10-28  Jim Meyering  <meyering@redhat.com>
34983
34984         fprintftime: wrap macro code argument in "do {...} while(0)"
34985         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34986         cpy macro must be a statement that can be followed by a semicolon.
34987         Now that the else clause contains a comment and is hence longer
34988         than one line, I require curly braces.  That in turn requires
34989         that we wrap this code block in the standard do...while(0).
34990
34991         fprintftime: remove stray semicolon from previous change
34992         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34993
34994         fprintftime: avoid a warning about ignored fwrite return value
34995         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34996         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34997         that is unsafe.
34998         * modules/fprintftime (Depends-on): Add ignore-value.
34999
35000         exclude: avoid an unwarranted warning
35001         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35002
35003 2009-10-27  Eric Blake  <ebb9@byu.net>
35004
35005         fseek: avoid compilation failure when fflush is replaced
35006         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35007         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35008         module is in use.
35009         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35010         module is not in use; since REPLACE_FSEEK worked otherwise.
35011         (GNULIB_FTELLO): Likewise for ftell.
35012         Reported by Ian Beckwith and others.
35013
35014 2009-10-27  Bruno Haible  <bruno@clisp.org>
35015
35016         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35017         Reported by Jim Meyering.
35018
35019 2009-10-27  Jim Meyering  <jim@meyering.net>
35020             Bruno Haible  <bruno@clisp.org>
35021
35022         Avoid warning despite dropping the return value of fwrite.
35023         * lib/unicodeio.c: Include ignore-value.h.
35024         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35025         * modules/unicodeio (Depends-on): Add ignore-value.
35026
35027 2009-10-26  Eric Blake  <ebb9@byu.net>
35028
35029         areadlinkat: fix fallback path
35030         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35031         pointer and zero.
35032
35033 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35034
35035         Use a better IO block size for modern systems
35036         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35037         * lib/md2.c: Likewise.
35038         * lib/md4.c: Likewise.
35039         * lib/md5.c: Likewise.
35040         * lib/sha1.c: Likewise.
35041         * lib/sha256.c: Likewise.
35042         * lib/sha512.c: Likewise.
35043
35044 2009-10-22  Eric Blake  <ebb9@byu.net>
35045
35046         tests: avoid several compiler warnings
35047         * tests/test-getcwd.c (main): Avoid buffer underflow.
35048         * tests/test-getdate.c (main): String literals are not safe with
35049         putenv, so use setenv.  Declare unused argument.
35050         * modules/getdate-tests (Depends-on): Add setenv.
35051         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35052         problems with string literals in char *.
35053         * tests/test-hash.c (main): Avoid shadowing declaration.
35054         (insert_new): Treat string literals as char const *.
35055         * tests/test-getopt.h (test_getopt): Likewise.
35056         (getopt_loop): Alter types to minimize casting elsewhere.
35057         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35058         (test_getopt_long_posix): Likewise.
35059         (do_getopt_long): Add wrapper to minimize casting.
35060         * tests/test-atexit.c (clear_temp_file): Use void.
35061         * tests/test-areadlink-with-size.c (main): Declare unused
35062         arguments.
35063         * tests/test-areadlink.c (main): Likewise.
35064         * tests/test-areadlinkat-with-size.c (main): Likewise.
35065         * tests/test-areadlinkat.c (main): Likewise.
35066         * tests/test-canonicalize-lgpl.c (main): Likewise.
35067         * tests/test-canonicalize.c (main): Likewise.
35068         * tests/test-dirent-safer.c (main): Likewise.
35069         * tests/test-dirname.c (main): Likewise.
35070         * tests/test-dup2.c (main): Likewise.
35071         * tests/test-fchdir.c (main): Likewise.
35072         * tests/test-fcntl-h.c (main): Likewise.
35073         * tests/test-fcntl-safer.c (main): Likewise.
35074         * tests/test-fdopendir.c (main): Likewise.
35075         * tests/test-fdutimensat.c (main): Likewise.
35076         * tests/test-fflush.c (main): Likewise.
35077         * tests/test-filenamecat.c (main): Likewise.
35078         * tests/test-filevercmp.c (main): Likewise.
35079         * tests/test-fopen-safer.c (main): Likewise.
35080         * tests/test-fopen.c (main): Likewise.
35081         * tests/test-fpending.c (main): Likewise.
35082         * tests/test-fpurge.c (main): Likewise.
35083         * tests/test-freading.c (main): Likewise.
35084         * tests/test-fstatat.c (main): Likewise.
35085         * tests/test-fsync.c (main): Likewise.
35086         * tests/test-futimens.c (main): Likewise.
35087         * tests/test-getndelim2.c (main): Likewise.
35088         * tests/test-gettimeofday.c (main): Likewise.
35089         * tests/test-getopt.c (main): Likewise.
35090         * tests/test-i-ring.c (main): Likewise.
35091         * tests/test-inttypes.c (main): Likewise.
35092         * tests/test-link.c (main): Likewise.
35093         * tests/test-lstat.c (main): Likewise.
35094         * tests/test-math.c (main): Likewise.
35095         * tests/test-md5.c (main): Likewise.
35096         * tests/test-memchr2.c (main): Likewise.
35097         * tests/test-memrchr.c (main): Likewise.
35098         * tests/test-mkdir.c (main): Likewise.
35099         * tests/test-mkdirat.c (main): Likewise.
35100         * tests/test-mkfifoat.c (main): Likewise.
35101         * tests/test-open.c (main): Likewise.
35102         * tests/test-openat-safer.c (main): Likewise.
35103         * tests/test-openat.c (main): Likewise.
35104         * tests/test-quotearg.c (main): Likewise.
35105         * tests/test-rawmemchr.c (main): Likewise.
35106         * tests/test-readlink.c (main): Likewise.
35107         * tests/test-remove.c (main): Likewise.
35108         * tests/test-rename.c (main): Likewise.
35109         * tests/test-renameat.c (main): Likewise.
35110         * tests/test-rmdir.c (main): Likewise.
35111         * tests/test-sha1.c (main): Likewise.
35112         * tests/test-signal.c (main): Likewise.
35113         * tests/test-sigaction.c (main): Likewise.
35114         * tests/test-stat.c (main): Likewise.
35115         * tests/test-stat-time.c (main): Likewise.
35116         * tests/test-stddef.c (main): Likewise.
35117         * tests/test-stdint.c (main): Likewise.
35118         * tests/test-stdio.c (main): Likewise.
35119         * tests/test-stdlib.c (main): Likewise.
35120         * tests/test-strchrnul.c (main): Likewise.
35121         * tests/test-strerror.c (main): Likewise.
35122         * tests/test-string.c (main): Likewise.
35123         * tests/test-strtod.c (main): Likewise.
35124         * tests/test-strverscmp.c (main): Likewise.
35125         * tests/test-symlink.c (main): Likewise.
35126         * tests/test-symlinkat.c (main): Likewise.
35127         * tests/test-sys_stat.c (main): Likewise.
35128         * tests/test-sys_time.c (main): Likewise.
35129         * tests/test-time.c (main): Likewise.
35130         * tests/test-unistd.c (main): Likewise.
35131         * tests/test-unlink.c (main): Likewise.
35132         * tests/test-unlinkat.c (main): Likewise.
35133         * tests/test-utimens.c (main): Likewise.
35134         * tests/test-utimensat.c (main): Likewise.
35135         * tests/test-version-etc.c (main): Likewise.
35136         * tests/test-wchar.c (main): Likewise.
35137         * tests/test-wctype.c (main): Likewise.
35138         * tests/test-xprintf-posix.c (main): Likewise.
35139         * tests/test-posixtm.c (main): Likewise.
35140         (STREQ): Delete unused macro.
35141         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35142         shadowed variables.
35143         * tests/test-memchr.c (main): Likewise.
35144
35145 2009-10-21  Eric Blake  <ebb9@byu.net>
35146
35147         areadlinkat: avoid failure on older glibc
35148         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35149         rather than mis-comparing 0 against FUNC_RESULT of char*.
35150
35151 2009-10-21  Bruno Haible  <bruno@clisp.org>
35152
35153         * modules/stpncpy (License): Relicense under LGPLv2+.
35154         Reported by David Lutterkort <lutter@redhat.com>.
35155
35156 2009-10-20  Eric Blake  <ebb9@byu.net>
35157
35158         utimensat: work around Solaris 9 bug
35159         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35160         has trailing slash bugs.
35161         * tests/test-lutimens.h (test_lutimens): Enhance test.
35162         * tests/test-utimens.h (test_utimens): Likewise.
35163         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35164         * doc/posix-functions/utimes.texi (utimes): Likewise.
35165         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35166         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35167         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35168         * doc/posix-functions/futimens.texi (futimens): Likewise.
35169
35170         fdutimensat: new module
35171         * modules/fdutimensat: New file.
35172         * lib/fdutimensat.c (fdutimensat): Likewise.
35173         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35174         * MODULES.html.sh (File system functions): Mention module.
35175         * modules/fdutimensat-tests: New test.
35176         * tests/test-fdutimensat.c: Likewise.
35177
35178         doc: regenerate INSTALL
35179         * doc/INSTALL: Reflect recent autoconf update.
35180         * doc/INSTALL.ISO: Likewise.
35181         * doc/INSTALL.UTF-8: Likewise.
35182
35183 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35184
35185         acl: warn if ACL support is not detected
35186         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35187
35188 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35189
35190         * lib/nproc.h: Add extern "C" block for C++.
35191
35192 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35193             Bruno Haible  <bruno@clisp.org>
35194
35195         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35196         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35197         * doc/posix-functions/isalpha.texi: Likewise.
35198         * doc/posix-functions/isblank.texi: Likewise.
35199         * doc/posix-functions/iscntrl.texi: Likewise.
35200         * doc/posix-functions/isdigit.texi: Likewise.
35201         * doc/posix-functions/isgraph.texi: Likewise.
35202         * doc/posix-functions/islower.texi: Likewise.
35203         * doc/posix-functions/isprint.texi: Likewise.
35204         * doc/posix-functions/ispunct.texi: Likewise.
35205         * doc/posix-functions/isspace.texi: Likewise.
35206         * doc/posix-functions/isupper.texi: Likewise.
35207         * doc/posix-functions/isxdigit.texi: Likewise.
35208
35209 2009-10-18  Bruno Haible  <bruno@clisp.org>
35210
35211         Tests for module 'isblank'.
35212         * modules/isblank-tests: New file.
35213         * tests/test-isblank.c: New file.
35214
35215         New module 'isblank'.
35216         * lib/isblank.c: New file.
35217         * m4/isblank.m4: New file.
35218         * modules/isblank: New file.
35219         * doc/posix-functions/isblank.texi: Mention the new module.
35220
35221 2009-10-18  Bruno Haible  <bruno@clisp.org>
35222
35223         New module 'ctype'.
35224         * lib/ctype.in.h: New file.
35225         * m4/ctype.m4: New file.
35226         * modules/ctype: New file.
35227         * doc/posix-headers/ctype.texi: Mention the new module.
35228
35229 2009-10-18  Jim Meyering  <meyering@redhat.com>
35230
35231         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35232         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35233         right after its initialization, rather than farther down.
35234         Keeping these in close proximity makes it easier to ensure
35235         that each such variable is initialized.  E.g.,
35236
35237             LIB_CLOCK_GETTIME=
35238             AC_SUBST([LIB_CLOCK_GETTIME])
35239
35240         This change also increments these serial numbers.
35241         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35242         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35244
35245 2009-10-18  Bruno Haible  <bruno@clisp.org>
35246
35247         Don't let environment variables perturb build.
35248         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35249         (gl_PREREQ_GETHRXTIME): ... not here.
35250
35251 2009-10-18  Bruno Haible  <bruno@clisp.org>
35252
35253         Avoid symlink attack in localcharset module.
35254         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35255         (O_NOFOLLOW): Define fallback.
35256         (get_charset_aliases): Don't open the file if it is a symbolic link.
35257         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35258         gl_FCNTL_H.
35259         (gl_FCNTL_H): Require it.
35260         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35261         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35262         Reported by Fergal Glynn <fglynn@veracode.com>.
35263
35264 2009-10-18  Bruno Haible  <bruno@clisp.org>
35265
35266         Implement nproc for mingw.
35267         * lib/nproc.c: Include <windows.h>
35268         (num_processors): On native Windows platforms, try GetSystemInfo.
35269
35270 2009-10-18  Bruno Haible  <bruno@clisp.org>
35271
35272         Implement nproc for IRIX.
35273         * lib/nproc.c: Include <sys/sysmp.h>.
35274         (num_processors): On IRIX systems, try sysmp.
35275         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35276
35277 2009-10-18  Bruno Haible  <bruno@clisp.org>
35278
35279         Implement nproc for HP-UX.
35280         * lib/nproc.c: Include <sys/pstat.h>
35281         (num_processors): On HP-UX systems, try pstat_getdynamic.
35282         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35283         pstat_getdynamic.
35284
35285 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35286             Bruno Haible  <bruno@clisp.org>
35287
35288         Implement nproc for NetBSD, OpenBSD.
35289         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35290         (ARRAY_SIZE): New macro.
35291         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35292         * m4/nproc.m4: New file.
35293         * modules/nproc (Files): Add m4/nproc.m4.
35294         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35295         (Makefile.am): Instead, augment lib_SOURCES.
35296
35297 2009-10-18  Bruno Haible  <bruno@clisp.org>
35298
35299         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35300         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35301         sys/param.h.
35302
35303 2009-10-16  Eric Blake  <ebb9@byu.net>
35304
35305         utimensat: new module
35306         * modules/utimensat: New file.
35307         * lib/utimensat.c (utimensat): Likewise.
35308         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35309         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35310         so we can work around Linux bugs.
35311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35312         * modules/sys_stat (Makefile.am): Substitute them.
35313         * lib/sys_stat.in.h (utimensat): Declare it.
35314         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35315         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35316         * modules/utimensat-tests: New test.
35317         * tests/test-utimensat.c: Likewise.
35318
35319         utimens: let lutimens work on non-symlinks
35320         * lib/utimens.c (lutimens): Fall back to utimens rather than
35321         failing with ENOSYS, when file is not a symlink.
35322         (utimens): Reduce redirection.
35323         * tests/test-lutimens.h (test_lutimens): Update test to cover
35324         non-symlinks.
35325         * tests/test-utimens.h (test_utimens): Update test to cover
35326         symlinks.
35327         * tests/test-utimens.c (main): Update caller.
35328
35329         utimens: cache whether utimensat syscall works
35330         * lib/utimens.c (utimensat_works_really): New cache variable.
35331         (fdutimens, lutimens): Use it to avoid failing syscall.
35332
35333         test-stat-time, test-utimens: improve portability
35334         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35335         ext4 on alpha, and for cygwin.
35336         * tests/test-utimens-common.h: New file.
35337         (nap): Factor delays into single function.
35338         * tests/test-lutimens.h (test_lutimens): Use new header.
35339         * tests/test-futimens.h (test_futimens): Likewise.
35340         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35341         timestamps to occur from same machine, as was done previously for
35342         test_utimens.
35343         * modules/utimens-tests (Files): Ship new file.
35344         * modules/futimens-tests (Files): Likewise.
35345         Reported in part by Jim Meyering.
35346
35347         sys_stat: sort replacement declarations
35348         * lib/sys_stat.in.h: Sort declarations.
35349         * lib/futimens.c (futimens): Fix typo.
35350
35351 2009-10-15  Jim Meyering  <meyering@redhat.com>
35352
35353         don't let environment settings perturb build
35354         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35355         could cause a configure-time and/or build-time malfunction.
35356         Typically, a configure-time function-in-library test is performed
35357         via code like this:
35358
35359           LIB_VAR=
35360           AC_SUBST([LIB_VAR])
35361           prefix_saved_LIBS=$LIBS
35362             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35363                        [test "$ac_cv_search_FUNC" = "none required" ||
35364                         LIB_VAR=$ac_cv_search_FUNC])
35365           LIBS=$prefix_saved_LIBS
35366
35367         However, in each of the files affected by this change, the LIB_VAR=
35368         initialization was omitted.  Thus, when set in the environment, its
35369         value would propagate into generated Makefiles when FUNC is not found
35370         in LIB_NAME.
35371         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35372         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35374
35375 2009-10-14  Eric Blake  <ebb9@byu.net>
35376
35377         fchdir: avoid infinite recursion in mingw
35378         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35379         recursing.
35380
35381         test-stat-time: port to mingw
35382         * tests/test-stat-time.c (force_unlink): Return a value.
35383         (test_ctime) [W32]: Fix compilation error.
35384         (nap): Don't call usleep with too large an argument.  Use
35385         force_unlink.
35386         * doc/pastposix-functions/usleep.texi (usleep): Document the
35387         portability issue.
35388
35389 2009-10-13  Jim Meyering  <meyering@redhat.com>
35390
35391         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35392         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35393         * modules/pipe-filter-ii: Likewise.
35394         * modules/sys_socket-tests: Likewise.
35395         * modules/tsearch-tests: Likewise.
35396         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35397         (check): Depend on it.
35398
35399 2009-10-12  Eric Blake  <ebb9@byu.net>
35400
35401         utimens-tests: port to NFS file systems
35402         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35403         comparisons to avoid spurious failures from timestamp drift
35404         between NFS machines.
35405
35406 2009-10-12  Eric Blake  <ebb9@byu.net>
35407
35408         stat-time-tests: minor cleanups
35409         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35410         * tests/test-stat-time.c (nap): Separate assignment from call.
35411         Suggested by Paolo Bonzini and Bruno Haible.
35412
35413         sys_stat: guarantee struct timespec
35414         * lib/sys_stat.in.h (includes): Always include <time.h>
35415         * modules/sys_stat (Depends-on): Add time.
35416         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35417         mode_t permission values.
35418         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35419         get at subsecond timestamps.
35420
35421 2009-10-10  Eric Blake  <ebb9@byu.net>
35422
35423         futimens: new module
35424         * modules/futimens: New file.
35425         * lib/futimens.c (futimens): Likewise.
35426         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35427         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35428         we can work around Linux bugs.
35429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35430         * modules/sys_stat (Makefile.am): Substitute them.
35431         * lib/sys_stat.in.h (futimens): Declare it.
35432         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35433         * doc/posix-functions/futimens.texi (futimens): Likewise.
35434         * modules/futimens-tests: New test.
35435         * tests/test-futimens.c: Likewise.
35436
35437         utimens: introduce fdutimens
35438         * lib/utimens.h (fdutimens): New prototype.
35439         * lib/utimens.c (gl_futimens): Move guts...
35440         (fdutimens): ...to new interface.
35441         * tests/test-utimens.c (do_fdutimens): Use it.
35442
35443         utimens: add UTIME_NOW and UTIME_OMIT support
35444         * lib/utimens.c (validate_timespec, update_timespec): New helper
35445         functions.
35446         (gl_futimens, lutimens): Use them.
35447         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35448         stdbool, sys_stat.
35449         (Link): Mention resulting library dependency.
35450         * modules/utimecmp (Link): Likewise.
35451         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35452         (Makefile.am): Pick up library dependency.
35453         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35454         definition.
35455         * tests/test-sys_stat.c: Test the definitions.
35456         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35457         * NEWS: Document library dependency.
35458
35459         utimecmp: support symlink timestamps
35460         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35461         hashing when possible.  Use pathconf when available.
35462         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35463         * modules/utimecmp (Depends-on): Add lstat.
35464
35465         utimens: add lutimens interface
35466         * lib/utimens.c (lutimens): New function.
35467         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35468         * lib/utimens.h (lutimens): Declare new interface.
35469         * tests/test-utimens.c (main): Enhance test.
35470         * tests/test-lutimens.h (test_lutimens): New file.
35471         * modules/utimens-tests (Files): Distribute it.
35472         (Depends-on): Add symlink.
35473         (configure.ac): Check for usleep.
35474
35475         utimens: validate futimens usage
35476         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35477         fewer syscalls on failure later on.  Avoid compiler warning on
35478         mingw.
35479         * modules/utimens (Depends-on): Add dup2.
35480
35481         utimens: add test
35482         * modules/utimens-tests: New test.
35483         * tests/test-utimens.h: New file.
35484         * tests/test-futimens.h: Likewise.
35485         * tests/test-utimens.c: Likewise.
35486
35487         doc: mention timestamp portability issues
35488         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35489         instead.
35490         * doc/posix-functions/utime.texi (utime): Likewise.
35491         * doc/posix-functions/utimes.texi (utimes): Likewise.
35492         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35493         instead.
35494         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35495         module.
35496         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35497         Mention weakness with symlink timestamps.
35498         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35499         to utimensat/futimens instead.
35500         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35501
35502         test-dup2: enhance test
35503         * tests/test-dup2.c (main): Also check AT_FDCWD.
35504
35505         test-stat-time: avoid more spurious failures
35506         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35507         xfs; and avoid race if the two timestamps cross quantization edge.
35508
35509         relocatable: prefer 'file system' over 'filesystem'
35510         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35511         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35512         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35513         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35514         * lib/relocatable.c (compute_curr_prefix): Likewise.
35515
35516 2009-10-10  Jim Meyering  <meyering@redhat.com>
35517
35518         stat-time-tests: check for the usleep function
35519         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35520
35521 2009-10-10  Bruno Haible  <bruno@clisp.org>
35522
35523         * modules/xnanosleep: Put the Link section after the Include section.
35524
35525 2009-10-09  Eric Blake  <ebb9@byu.net>
35526
35527         dup2: work around FreeBSD 6.1 bug
35528         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35529         * doc/posix-functions/dup2.texi (dup2): Document it.
35530         Reported by Nelson H. F. Beebe and Jim Meyering.
35531
35532         test-stat-time: port to buggy NFS clients
35533         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35534         (test_ctime): Also skip test if mtime and ctime are skewed.
35535
35536         maint: prefer 'file system' over 'filesystem'
35537         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35538         * doc/posix-functions/lstat.texi (lstat): Likewise.
35539         * lib/file-has-acl.c (file_has_acl): Likewise.
35540         * lib/fwriteerror.c [TEST]: Likewise.
35541         * tests/test-areadlink.h (test_areadlink): Likewise.
35542         * tests/test-areadlinkat-with-size.c (main): Likewise.
35543         * tests/test-areadlinkat.c (main): Likewise.
35544         * tests/test-canonicalize-lgpl.c (main): Likewise.
35545         * tests/test-canonicalize.c (main): Likewise.
35546         * tests/test-fstatat.c (main): Likewise.
35547         * tests/test-linkat.c (main): Likewise.
35548         * tests/test-lstat.h (test_lstat_func): Likewise.
35549         * tests/test-mkdir.h (test_mkdir): Likewise.
35550         * tests/test-readlink.h (test_readlink): Likewise.
35551         * tests/test-remove.c (main): Likewise.
35552         * tests/test-rename.h (test_rename): Likewise.
35553         * tests/test-renameat.c (main): Likewise.
35554         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35555         * tests/test-symlink.h (test_symlink): Likewise.
35556         * tests/test-symlinkat.c (main): Likewise.
35557         * tests/test-unlink.h (test_unlink_func): Likewise.
35558         * tests/test-unlinkat.c (main): Likewise.
35559
35560         maint: make realtime library usage explicit
35561         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35562         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35563         * modules/settime (Link): Likewise.
35564         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35565
35566         test-stat-time: speed up execution
35567         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35568         warning on mingw.
35569         (nap): New helper function.
35570         (prepare_test): Use it to reduce sleep time.
35571         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35572         execution.
35573         * modules/stat-time-tests (configure.ac): Check for usleep.
35574
35575 2009-10-09  Jim Meyering  <meyering@redhat.com>
35576
35577         selinux-h: always use getfilecon wrappers
35578         * lib/getfilecon.c: New file.
35579         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35580         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35581         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35582         (fgetfilecon): Provide a stub.
35583         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35584         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35585         file unconditionally.
35586         When <selinux/selinux.h> is found, arrange to use wrappers.
35587         * modules/selinux-h (Files): Add getfilecon.c.
35588         (Makefile.am): Substitute include-next-related bits
35589         into the now-always-generated selinux/selinux.h file.
35590         * doc/glibc-functions/lgetfilecon.texi: New file.
35591         * doc/glibc-functions/fgetfilecon.texi: New file.
35592         * doc/glibc-functions/getfilecon.texi: New file.
35593         * doc/glibc-functions/getfilecon-desc.texi: New file.
35594         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35595         which to pull in the new files.
35596         * MODULES.html.sh (Misc): Add selinux-h.
35597
35598 2009-10-08  Jim Meyering  <meyering@redhat.com>
35599
35600         unistd: fix comment typo
35601         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35602
35603 2009-10-08  Eric Blake  <ebb9@byu.net>
35604
35605         areadlink: use SIZE_MAX consistently
35606         * modules/areadlink (Depends-on): Add stdint.
35607         * modules/areadlink-with-size (Depends-on): Likewise.
35608         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35609         gives NULL; drop sys/types, since unistd gives size_t; and add
35610         stdint for SIZE_MAX.
35611         (SIZE_MAX): Rely on headers.
35612         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35613         and add stdint.
35614         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35615         (SIZE_MAX): Likewise.
35616         (INITIAL_BUF_SIZE): Turn into enum.
35617         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35618
35619 2009-10-08  Jim Meyering  <meyering@redhat.com>
35620
35621         areadlinkat: avoid compilation failure
35622         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35623         Fix typo in comment.
35624
35625 2009-10-07  Eric Blake  <ebb9@byu.net>
35626
35627         areadlinkat-with-size: new module
35628         * modules/areadlinkat-with-size: New module.
35629         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35630         * lib/areadlink.h (areadlinkat): Declare it.
35631         * MODULES.html.sh (File system functions): Mention it.
35632         * modules/areadlinkat-with-size-tests: New test.
35633         * tests/test-areadlinkat-with-size.c: New file.
35634
35635         xreadlinkat: new module
35636         * modules/xreadlinkat: New module.
35637         * lib/xreadlinkat.c (xreadlinkat): New file.
35638         * lib/xreadlink.h (xreadlinkat): Declare it.
35639         * MODULES.html.sh (File system functions): Mention it.
35640
35641         areadlinkat: new module
35642         * lib/at-func.c (FUNC_FAIL): New define.
35643         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35644         * modules/areadlinkat: New module.
35645         * lib/linkat.c (areadlinkat): Move...
35646         * lib/areadlinkat.c (areadlinkat): ...to new file.
35647         * lib/areadlink.h (areadlinkat): Declare it.
35648         * modules/linkat (Depends-on): Add areadlinkat.
35649         * MODULES.html.sh (File system functions): Mention it.
35650         * modules/areadlinkat-tests: New test.
35651         * tests/test-areadlinkat.c: New file.
35652
35653         areadlink, areadlink-with-size: add tests
35654         * modules/areadlink-tests: New test.
35655         * modules/areadlink-with-size-tests: Likewise.
35656         * tests/test-areadlink.h: New file.
35657         * tests/test-areadlink.c: Likewise.
35658         * tests/test-areadlink-with-size.c: Likewise.
35659
35660         maint: minor cleanups
35661         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35662         _UNUSED_PARAMETER_ instead.
35663         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35664         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35665         * modules/linkat-tests (Files): Distribute test-link.h.
35666
35667         openat, utimens: whitespace cleanup
35668         * lib/openat.c: Prefer space throughout, rather than mix of 8
35669         spaces vs. tabs.
35670         * lib/at-func.c: Likewise.
35671         * lib/utimens.c: Likewise.
35672
35673         openat: avoid using wrong fd
35674         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35675         working directory chooses same fd.
35676         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35677
35678         mkdir, mkdirat: fix cygwin 1.5.x bug
35679         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35680         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35681         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35682         bug.
35683         (gl_PREREQ_MKDIR): Delete unused macro.
35684         * modules/mkdir (Files): Track file rename.
35685         (configure.ac): Update macro name.
35686         * modules/openat (Depends-on): Add mkdir.
35687         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35688
35689         mkdir, mkdirat: add tests
35690         * modules/mkdir-tests: New test.
35691         * tests/test-mkdir.h: New file.
35692         * tests/test-mkdir.c: Likewise.
35693         * tests/test-mkdirat.c: Likewise.
35694         * modules/openat-tests (Files): Add new files.
35695         (Makefile.am): Run new test.
35696
35697 2009-10-06  Eric Blake  <ebb9@byu.net>
35698
35699         doc: tweak *at function documentation
35700         * doc/posix-functions/faccessat.texi (faccessat): Mention
35701         known issue with replacement.
35702         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35703         * doc/posix-functions/linkat.texi (linkat): Likewise.
35704         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35705         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35706         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35707         * doc/posix-functions/renameat.texi (renameat): Likewise.
35708         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35709
35710         openat: fix GNU/Hurd bug in unlinkat
35711         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35712         broken.
35713         * doc/posix-functions/unlink.texi (unlink): Document this.
35714         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35715
35716         fdopendir: fix GNU/Hurd bug
35717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35718         allowing non-directory fds.
35719         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35720         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35721         * modules/dirent (Makefile.am): Substitute it.
35722         * lib/dirent.in.h (fdopendir): Declare replacement.
35723         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35724         * tests/test-fdopendir.c (main): Test something other than
35725         /dev/null, since on Hurd that behaves like a directory.
35726
35727         test-symlink: port to GNU/Hurd
35728         * tests/test-symlink.h (test_symlink): Relax expected errno.
35729
35730         doc: tweak more cygwin information
35731         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35732         now compatible with glibc.
35733         * doc/posix-functions/getopt.texi (getopt): Likewise.
35734
35735         getopt-gnu: add another test
35736         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35737         guarantee behavior relied on by m4.
35738         * tests/test-getopt.c (main): Use it.
35739         * modules/getopt-posix-tests (Depends-on): Add setenv.
35740         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35741
35742         getopt: fix compilation on darwin
35743         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35744         include.
35745         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35746         Reported by Ludovic Courtès.
35747
35748 2009-10-06  Bruno Haible  <bruno@clisp.org>
35749
35750         * modules/size_max (Description): Discourage its use.
35751         Reported by Simon Josefsson.
35752
35753 2009-10-06  Jim Meyering  <meyering@redhat.com>
35754
35755         linkat: avoid compilation failure
35756         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35757
35758 2009-10-05  Eric Blake  <ebb9@byu.net>
35759
35760         linkat: support Linux 2.6.17
35761         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35762         linkat on Linux, but allow cache variable override.
35763         * lib/linkat.c (rpl_linkat): Define override.
35764         * modules/linkat (Depends-on): Add symlinkat.
35765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35766         * modules/unistd (Makefile.am): Substitute it.
35767         * lib/unistd.in.h (linkat): Declare replacement.
35768         Reported by Pádraig Brady.
35769
35770         quotearg: port test to systems with C.UTF-8 locale
35771         * tests/test-quotearg.c (struct result_strings): Add another
35772         member, differentiating between C.ASCII and C.UTF-8 handling.
35773         (compare_strings): Add parameter.
35774         (main): Adjust all callers.
35775
35776         getopt: avoid clash with FreeBSD _getopt_internal
35777         * lib/getopt.in.h (_getopt_internal): Override the name.
35778         * lib/getopt_int.h (includes): Pick up any overrides.
35779         Reported by Reuben Thomas.
35780
35781         hash: allow C89 compilation
35782         * lib/hash.c (check_tuning): Move declaration before statement.
35783         Reported by Reuben Thomas.
35784
35785 2009-10-05  Karl Berry  <karl@gnu.org>
35786
35787         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35788
35789 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35790             Bruno Haible  <bruno@clisp.org>
35791
35792         * lib/uname.c (uname): Use a table-driven algorithm to compute
35793         Windows NT versions.
35794
35795 2009-10-04  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35798         program_invocation_short_name.
35799         * modules/progname (configure.ac): Test for presence of
35800         program_invocation_short_name.
35801         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35802
35803 2009-10-04  Bruno Haible  <bruno@clisp.org>
35804
35805         * lib/progname.c (set_program_name): Fix comment.
35806         Reported by Jim Meyering.
35807
35808 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35809             Bruno Haible  <bruno@clisp.org>
35810
35811         * lib/uname.c: Include <string.h>.
35812         (uname): Do only one call to GetVersionEx in the common case.
35813
35814 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35815             Bruno Haible  <bruno@clisp.org>
35816
35817         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35818         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35819         (uname): Add support for Windows CE and various non-x86 CPU types.
35820
35821 2009-10-03  Bruno Haible  <bruno@clisp.org>
35822
35823         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35824         invocation to tests/configure.ac.
35825         Reported by Ian Beckwith <ianb@erislabs.net>.
35826
35827 2009-10-02  Eric Blake  <ebb9@byu.net>
35828
35829         fchdir: avoid compiler warning
35830         * lib/fchdir.c (canonicalize_file_name)
35831         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35832
35833         test-open: support mingw errno values
35834         * tests/test-open.h (test_open): Relax test.
35835         * tests/test-fopen.h (test_fopen): Likewise.
35836         * tests/test-openat-safer.c (main): Likewise.
35837
35838         open: fix opening directory on mingw
35839         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35840
35841         test-open: on GNU/Hurd, /dev/null is a directory
35842         * tests/test-fopen.h (main): Rename...
35843         (test_fopen): ...to this.  Use a guaranteed non-directory when
35844         confirming open behavior on trailing slash.
35845         * tests/test-openat-safer.c (main): Likewise.
35846         * tests/test-open.h (main): Likewise....
35847         (test_open): ...to this.
35848         * tests/test-fopen.c (main): Adjust caller.
35849         * tests/test-fopen-safer.c (main): Likewise.
35850         * tests/test-open.c (main): Likewise.
35851         * tests/test-fcntl-safer.c (main): Likewise.
35852         Reported by Samuel Thibault.
35853
35854         rename, fchdir: don't ignore chdir failure
35855         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35856         * lib/rename.c (rpl_rename) [W32]: Likewise.
35857         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35858         an empty destination directory if source cannot be renamed,
35859         although there is still possibility for failure.
35860         * doc/posix-functions/rename.texi (rename): Document the race.
35861         Reported by Jim Meyering.
35862
35863         maint: cleanup whitespace in recent commits
35864         * lib/rename.c (rpl_rename): Remove tabs.
35865         * tests/test-link.h (test_link): Likewise.
35866         * lib/fchdir.c (get_name): Likewise.
35867         Reported by Jim Meyering.
35868
35869 2009-10-02  Ben Pfaff  <blp@gnu.org>
35870
35871         relocatable-prog-wrapper: Add missing dependency on
35872         double-slash-root.
35873         * modules/relocatable-prog-wrapper: Add dependency.
35874         Reported by Ian Beckwith <ianb@erislabs.net>.
35875
35876 2009-10-02  Eric Blake  <ebb9@byu.net>
35877
35878         renameat: fix Solaris bugs
35879         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35880         needed fixing.
35881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35882         * modules/stdio (Makefile.am): Substitute it.
35883         * lib/stdio.in.h (renameat): Declare replacement.
35884         * lib/renameat.c (rpl_renameat): Implement fix.
35885
35886         renameat: new module
35887         * modules/renameat: New file.
35888         * lib/renameat.c (renameat): Likewise.
35889         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35891         * modules/stdio (Makefile.am): Substitute them.
35892         * lib/stdio.in.h (renameat): Declare it.
35893         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35894         * doc/posix-functions/renameat.texi (renameat): Likewise.
35895         * modules/renameat-tests: New test.
35896         * tests/test-renameat.c: Likewise.
35897
35898         rename: fix mingw bugs
35899         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35900         directory overwrite bugs.
35901
35902         rename: fix another cygwin 1.5 bug
35903         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35904         checks.
35905         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35906         unnecessary cygwin workarounds.  Also work around bug with moving
35907         full directory onto an empty one.
35908         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35909
35910         rename-dest-slash: merge into rename module
35911         * modules/rename-dest-slash (Status): Mark obsolete.
35912         (Depends-on): Add rename.
35913         (Files): Let rename do it all.
35914         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35915         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35916         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35917         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35918         * lib/rename.c (rpl_rename): Update comments.
35919
35920         rename: fix cygwin 1.5.x bugs
35921         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35922         * lib/rename.c (rpl_rename): Work around them.
35923         * modules/rename (Depends-on): Add same-inode.
35924
35925         rename: fix Solaris 10 bug
35926         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35927         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35928         was the only bug.
35929
35930         rename: fix Solaris 9 bug
35931         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35932         on non-directory.  Avoid calling exit.
35933         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35934         strdup.
35935         * modules/rename-tests (Depends-on): Drop lstat.
35936         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35937         (gl_PREREQ_RENAME): Delete unused macro.
35938
35939         rename-dest-slash: fix NetBSD bug
35940         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35941         links.
35942         * modules/rename-dest-slash (Depends-on): Add same-inode.
35943
35944         rename-tests: new test, exposes several platform bugs
35945         * modules/rename-tests: New file.
35946         * tests/test-rename.h: Likewise.
35947         * tests/test-rename.c: Likewise.
35948         * doc/posix-functions/rename.texi (rename): Improve documentation,
35949         including bugs that will eventually be fixed in gnulib.
35950
35951 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35952
35953         * lib/uname.c: Include <stdlib.h>
35954         (uname): Assume version info is available.
35955
35956 2009-10-02  Jim Meyering  <meyering@redhat.com>
35957
35958         gnu-web-doc-update: correct --help output
35959         * build-aux/gnu-web-doc-update: Make --help output relevant.
35960
35961         gnu-web-doc-update: add standard options
35962         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35963
35964         gnu-web-doc-update: New module.
35965         Use this script to automatically update the on-line web documentation
35966         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35967         * modules/gnu-web-doc-update: New file, from coreutils.
35968         * build-aux/gnu-web-doc-update: New script.
35969
35970 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35971
35972         link: LoadLibrary is not needed.
35973         * lib/link.c: Use GetModuleHandle.
35974
35975 2009-10-01  Eric Blake  <ebb9@byu.net>
35976
35977         getopt: bump serial number
35978         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35979         change.
35980
35981         tests: tighten link, rmdir, and remove tests
35982         * tests/test-link.h (includes): No need to use <config.h> here.
35983         Clean up if directory hard link was created, otherwise test for
35984         trailing '.'.
35985         * tests/test-linkat.c (main): Simplify.
35986         * tests/test-remove.c (main): Enhance test for trailing '.'.
35987         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35988
35989 2009-10-01  Jim Meyering  <meyering@redhat.com>
35990
35991         maint.mk: requiring "make major" was annoying, for a "minor" release.
35992         What is intended is "stable", to contrast with alpha and beta,
35993         so require "make stable", not "make major".
35994         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35995         (get_tool_versions): Likewise.
35996         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35997
35998 2009-09-30  Ben Pfaff  <blp@gnu.org>
35999
36000         Fix broken build of replacement for Windows tmpfile().
36001         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36002         flags argument added along with the 'mkostemp' module.
36003
36004 2009-09-28  Bruno Haible  <bruno@clisp.org>
36005
36006         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36007         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36008         to 'remove_elt'.
36009         (gl_list_remove): Update.
36010         * lib/gl_list.c (gl_list_remove): Update.
36011         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36012         to 'remove_elt'.
36013         (gl_oset_remove): Update.
36014         * lib/gl_list.c (gl_oset_remove): Update.
36015         Reported by Eric Blake.
36016
36017 2009-09-28  Eric Blake  <ebb9@byu.net>
36018
36019         doc: mention yet more cygwin 1.7 status
36020         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36021         cygwin.
36022         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36023         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36024
36025         argp: fix test failure
36026         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36027         that are not upper-case.  Pass correct range to tolower.
36028
36029 2009-09-27  Jim Meyering  <meyering@redhat.com>
36030
36031         test-yesno: work around sparc-dash here-document infelicity
36032         Without this change, the literal \177 byte in a here document
36033         would make dash 0.5.5.1-3 access uninitialized memory.
36034         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36035         Instead, use a marker, "@", and filter through tr to create the desired
36036         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36037
36038 2009-09-27  Bruno Haible  <bruno@clisp.org>
36039
36040         Disable untested support for new flavours of ACLs on AIX.
36041         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36042         progress.
36043         * lib/set-mode-acl.c (qset_acl): Likewise.
36044
36045 2008-12-07  Bruno Haible  <bruno@clisp.org>
36046
36047         Add support for new flavours of ACLs on AIX. (Untested.)
36048         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36049         (file_has_acl): Add support for newer AIX.
36050         * lib/set-mode-acl.c (qset_acl): Likewise.
36051         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36052         Rainer Tammer <tammer@tammer.net>.
36053
36054 2009-09-26  Eric Blake  <ebb9@byu.net>
36055
36056         argp: fix compilation of getopt
36057         * lib/getopt.in.h (includes): Use different guard than glibc.
36058         Reported by Sergey Poznyakoff.
36059
36060         doc: mention more cygwin 1.7 status
36061         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36062         bug.
36063         * doc/posix-functions/execl.texi (execl): Likewise.
36064         * doc/posix-functions/execle.texi (execle): Likewise.
36065         * doc/posix-functions/execlp.texi (execlp): Likewise.
36066         * doc/posix-functions/execv.texi (execv): Likewise.
36067         * doc/posix-functions/execve.texi (execve): Likewise.
36068         * doc/posix-functions/execvp.texi (execvp): Likewise.
36069         * doc/glibc-functions/canonicalize_file_name.texi
36070         (canonicalize_file_name): Cygwin 1.7 now provides this.
36071         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36072         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36073         on AT_SYMLINK_NOFOLLOW.
36074
36075 2009-09-24  Eric Blake  <ebb9@byu.net>
36076
36077         test-linkat: make test more robust
36078         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36079
36080         getopt: fix inclusion guards for cygwin
36081         * modules/getopt-posix (Depends-on): Add include-next.
36082         (Makefile.am): Substitute more items in replacement header.
36083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36084         <getopt.h>.
36085         * lib/getopt.in.h (includes): Use split inclusion guard, and
36086         prefer <getopt.h> over include <unistd.h> when one is present.
36087         (option): Also override name of 'struct option'.
36088
36089         same-inode: revert prior change; it is not yet ready
36090         * NEWS: Undo mention of this change.
36091         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36092         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36093         * lib/cycle-check.c (cycle_check): Likewise.
36094         * lib/same.c (same_name): Likewise.
36095         * lib/at-func2.c (at_func2): Likewise.
36096
36097 2009-09-23  Eric Blake  <ebb9@byu.net>
36098
36099         linkat: new module
36100         * modules/linkat: New file.
36101         * lib/at-func2.c (at_func2): Likewise.
36102         * lib/linkat.c (linkat): Likewise.
36103         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36104         * lib/openat-priv.h (at_func2): Add declaration.
36105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36106         * modules/unistd (Makefile.am): Substitute them.
36107         * lib/unistd.in.h (linkat): Declare it.
36108         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36109         * doc/posix-functions/linkat.texi (linkat): Likewise.
36110         * doc/posix-functions/link.texi (link): Tweak wording.
36111         * tests/test-link.c (main): Move guts...
36112         * tests/test-link.h (test_link): ...into new file.
36113         * modules/linkat-tests: New test.
36114         * tests/test-linkat.c: Likewise.
36115         * modules/link-tests (Files): Ship new file.
36116         (Depends-on): Add stdbool.
36117
36118         dirname: add library-safe mdir_name
36119         * lib/dirname.h (mdir_name): New prototype.
36120         * lib/dirname.c (dir_name): Move guts...
36121         (mdir_name): ...to new function that avoids xalloc_die.
36122
36123         fchdir: another mingw fix
36124         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36125         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36126         on mingw (where it has not yet been ported), and make it optional
36127         elsewhere.
36128         (_gl_register_fd): Use it.
36129
36130         same-inode: make SAME_INODE tri-state, to port to mingw
36131         * NEWS: Mention this change.
36132         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36133         st_ino always being 0.
36134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36135         * lib/cycle-check.c (cycle_check): Likewise.
36136         * lib/same.c (same_name): Likewise.
36137
36138         lstat: avoid mingw compilation error
36139         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36141         lstat ourselves.
36142         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36143         was adequate.
36144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36145         the checks for lstat.
36146         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36147
36148         link: fix test failure on Solaris 9
36149         * lib/link.c (rpl_link): Don't assume link will catch bogus
36150         trailing slash on source.
36151
36152         test-symlinkat: enhance test
36153         * tests/test-readlink.c (main): Move guts...
36154         * tests/test-readlink.h (test_readlink): ...into new file.
36155         * tests/test-symlink.c (main): Move guts...
36156         * tests/test-symlink.h (test_symlink): ...into new file.
36157         * tests/test-symlinkat.c (main): Use new files for further
36158         coverage.
36159         (do_symlink, do_readlink): New helper functions.
36160         * modules/symlink-tests (Files): Ship new file.
36161         (Depends-on): Add stdbool.
36162         * modules/readlink-tests (Files): Ship new file.
36163         (Depends-on): Add stdbool.
36164         * modules/symlinkat-tests (Files): Use new files.
36165
36166 2009-09-23  Eric Blake  <ebb9@byu.net>
36167
36168         readlink: document portability issue with symlink length
36169         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36170         systems have bogus st_size on symlinks, and mention the
36171         areadlink-with-size module.
36172         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36173         * doc/posix-functions/readlink.texi (readlink): Mention the
36174         areadlink module, and ERANGE failure.
36175         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36176         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36177
36178         readlink: fix Solaris 9 bug with trailing slash
36179         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36180         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36181         * doc/posix-functions/readlink.texi (readlink): Document this.
36182         * modules/readlink-tests: New test.
36183         * tests/test-readlink.c: Likewise.
36184
36185         readlink: fix cygwin 1.5.x bug with return type
36186         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36187         * lib/unistd.in.h (readlink): Use ssize_t.
36188         * lib/readlink.c (readlink): Likewise.
36189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36190         * modules/unistd (Makefile.am): Substitute it.
36191         * lib/unistd.in.h (readlink): Declare replacement.
36192         * doc/posix-functions/readlink.texi (readlink): Document this.
36193
36194         symlink: use throughout gnulib
36195         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36196         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36197         symlink is not used.
36198         * modules/symlinkat (Depends-on): Add symlink.
36199         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36200         * modules/canonicalize-tests (Depends-on): Likewise.
36201         * modules/lstat-tests (Depends-on): Likewise.
36202         * modules/openat-tests (Depends-on): Likewise.
36203         * modules/remove-tests (Depends-on): Likewise.
36204         * modules/rmdir-tests (Depends-on): Likewise.
36205         * modules/unlink-tests (Depends-on): Likewise.
36206         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36207         * tests/test-canonicalize.c (symlink): Likewise.
36208         * tests/test-fstatat.c (symlink): Likewise.
36209         * tests/test-lstat.c (symlink): Likewise.
36210         * tests/test-remove.c (symlink): Likewise.
36211         * tests/test-rmdir.c (symlink): Likewise.
36212         * tests/test-unlink.c (symlink): Likewise.
36213         * tests/test-unlinkat.c (symlink): Likewise.
36214
36215         symlink: new module, for Solaris 9 bug
36216         * modules/symlink: New file.
36217         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36218         * lib/symlink.c: Likewise.
36219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36220         * modules/unistd (Makefile.am): Substitute them.
36221         * lib/unistd.in.h (symlink): Declare replacement.
36222         * MODULES.html.sh (File system functions): Mention it.
36223         * doc/posix-functions/symlink.texi (symlink): Likewise.
36224         * modules/symlink-tests: New test.
36225         * tests/test-symlink.c: Likewise.
36226
36227 2009-09-23  Bruno Haible  <bruno@clisp.org>
36228
36229         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36230         when needed.
36231         Test case: gnulib-tool --import --with-tests atexit inttypes.
36232         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36233
36234 2009-09-23  Bruno Haible  <bruno@clisp.org>
36235
36236         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36237         subcommand, not in a subshell.
36238
36239 2009-09-22  Eric Blake  <ebb9@byu.net>
36240
36241         unistd: sort replacement declarations
36242         * lib/unistd.in.h: Sort declarations.
36243
36244         open, openat: minor optimization
36245         * lib/open.c (open): If open succeeded, len is non-zero.
36246         * lib/openat.c (rpl_openat): Likewise.
36247
36248         link-follow: ensure correct result
36249         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36250         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36251         distinguish between possible failures.
36252
36253 2009-09-21  Eric Blake  <ebb9@byu.net>
36254
36255         fts: avoid compiler warning
36256         * lib/fts.c (dirent_inode_sort_may_be_useful)
36257         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36258
36259 2009-09-19  Bruno Haible  <bruno@clisp.org>
36260
36261         * lib/progreloc.c (canonicalize_file_name): New declaration.
36262
36263 2009-09-19  Eric Blake  <ebb9@byu.net>
36264
36265         link: fix quoting
36266         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36267
36268         openat: fix openat bugs on Solaris 9
36269         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36270         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36271         * modules/openat (Depends-on): Add open.
36272         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36273         * modules/fcntl-h (Makefile.am): Substitute it.
36274         * lib/fcntl.in.h (openat): Declare replacement.
36275         * doc/posix-functions/openat.texi (openat): Document this.
36276
36277         openat: move fstatat and unlinkat into correct files
36278         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36279         compiled.
36280         * lib/openat.c (fstatat, unlinkat): Move...
36281         * lib/fstatat.c (fstatat): ...into correct files.
36282         * lib/unlinkat.c (unlinkat): Likewise.
36283
36284         openat: fix unlinkat bugs on Solaris 9
36285         * lib/unlinkat.c (unlinkat): New file.
36286         * modules/openat (Depends-on): Add unlink.
36287         (Files): Distribute it.
36288         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36289         trailing slash behavior is broken.
36290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36291         * modules/unistd (Makefile.am): Substitute it.
36292         * lib/unistd.in.h (unlinkat): Declare replacement.
36293         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36294
36295         openat: fix fstatat bugs on Solaris 9
36296         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36297         stat.
36298         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36299
36300         test-unlinkat: enhance test, to expose Solaris 9 bug
36301         * tests/test-unlink.c (main): Factor guts...
36302         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36303         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36304         * tests/test-rmdir.c (main): Adjust caller.
36305         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36306         (unlinker): New helper function.
36307         (rmdirat): Enhance check.
36308         * modules/rmdir-tests (Depends-on): Add stdbool.
36309         * modules/unlink-tests (Depends-on): Likewise.
36310         (Files): Add test-unlink.h.
36311         * modules/openat-tests (Files): Likewise.
36312         (Depends-on): Add unlinkdir.
36313
36314         test-fstatat: new test, to expose Solaris 9 bugs
36315         * tests/test-stat.c (main): Factor guts...
36316         * tests/test-stat.h (test_stat_func): ...into new file.
36317         * tests/test-lstat.c (main): Factor guts...
36318         * tests/test-lstat.h (test_lstat_func): ...into new file.
36319         * tests/test-fstatat.c: New file.
36320         * modules/stat-tests (Files): Add test-stat.h.
36321         * modules/lstat-tests (Files): Add test-lstat.h.
36322         (Depends-on): Add stdbool.
36323         * modules/openat-tests (Depends-on): Add pathmax.
36324         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36325         (Makefile.am): Run new test.
36326
36327         remove: new module, for mingw and Solaris 9 bugs
36328         * modules/remove: New file.
36329         * lib/remove.c: Likewise.
36330         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36332         * modules/stdio (Makefile.am): Use them.
36333         * lib/stdio.in.h (remove): Declare replacement.
36334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36335         * doc/posix-functions/remove.texi (remove): Likewise.
36336         * modules/remove-tests: New test.
36337         * tests/test-remove.c: Likewise.
36338
36339         unlink: new module, for Solaris 9 bug
36340         * modules/unlink: New file.
36341         * lib/unlink.c: Likewise.
36342         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36344         * modules/unistd (Makefile.am): Use them.
36345         * lib/unistd.in.h (stat): Declare replacement.
36346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36347         * doc/posix-functions/unlink.texi (unlink): Likewise.
36348         * modules/unlink-tests: New test.
36349         * tests/test-unlink.c: Likewise.
36350
36351         lstat: fix Solaris 9 bug
36352         * lib/lstat.c (lstat): Also check for trailing slash on
36353         non-symlink, non-directories.  Use stat module to simplify logic.
36354         * doc/posix-functions/lstat.texi (lstat): Document it.
36355         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36356         (configure.ac): Check for symlink.
36357         * tests/test-lstat.c (main): Add more tests.
36358
36359         stat: add as dependency to other modules
36360         * modules/chown (Depends-on): Add stat.
36361         * modules/euidaccess (Depends-on): Likewise.
36362         * modules/fchdir (Depends-on): Likewise.
36363         * modules/isdir (Depends-on): Likewise.
36364         * modules/link (Depends-on): Likewise.
36365         * modules/lstat (Depends-on): Likewise.
36366         * modules/mkdir-p (Depends-on): Likewise.
36367         * modules/modechange (Depends-on): Likewise.
36368         * modules/open (Depends-on): Likewise.
36369         * modules/readlink (Depends-on): Likewise.
36370         * modules/same (Depends-on): Likewise.
36371
36372         stat: fix Solaris 9 bug
36373         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36374         slash.
36375         * lib/stat.c (rpl_stat): Work around it.
36376         * doc/posix-functions/stat.texi (stat): Update documentation.
36377
36378         stat: new module, for mingw bug
36379         * modules/stat: New file.
36380         * lib/stat.c: Likewise.
36381         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36382         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36383         * modules/sys_stat (Makefile.am): Use them.
36384         * lib/sys_stat.in.h (stat): Declare replacement.
36385         * lib/openat.c (fstatat): Deal with lstat and stat being function
36386         macros.
36387         * modules/openat (Depends-on): Add inline.
36388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36389         * doc/posix-functions/stat.texi (stat): Likewise.
36390         * modules/stat-tests: New test.
36391         * tests/test-stat.c: Likewise.
36392
36393 2009-09-19  Jim Meyering  <meyering@redhat.com>
36394
36395         syntax-check: detect unnecessary inclusion of canonicalize.h
36396         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36397
36398 2009-09-19  Eric Blake  <ebb9@byu.net>
36399
36400         canonicalize-lgpl: adjust clients to use correct header
36401         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36402         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36403         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36404         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36405         * lib/progreloc.c (includes): Likewise.
36406
36407 2009-09-19  Jim Meyering  <meyering@redhat.com>
36408
36409         test-posixtm.c: correct a comment
36410         * tests/test-posixtm.c: Correct first-line comment.
36411         Spotted by Eric Blake.
36412
36413 2009-09-16  Jim Meyering  <meyering@redhat.com>
36414
36415         posixtm-tests: make T const-correct; add a test case
36416         * tests/test-posixtm.c (T): Declare const.
36417         Add a test for -(2^31+1).
36418         Remove useless can-succeed-only-in-2002 test.
36419
36420         posixtm-tests: adjust the sole failing test
36421         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36422         expected output matches what mktime now produces.  Cross-checked via
36423         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36424
36425         posixtm: move #ifdef'd tests into a new module
36426         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36427         * tests/test-posixtm.c: ... this new file.
36428         * modules/posixtm-tests: New module.
36429
36430 2009-09-19  Eric Blake  <ebb9@byu.net>
36431
36432         openat: simplify use of at-func.c
36433         * lib/at-func.c (includes): Include prerequisites here, to
36434         simplify requirements on client files.
36435         * lib/openat-priv.h: Add double-inclusion guard.
36436         * lib/faccessat.c (includes): Simplify.
36437         * lib/fchmodat.c (includes): Likewise.
36438         * lib/fchownat.c (includes): Likewise.
36439         * lib/mkdirat.c (includes): Likewise.
36440         * lib/mkfifoat.c (includes): Likewise.
36441         * lib/symlinkat.c (includes): Likewise.
36442
36443         openat: allow return of fd 0
36444         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36445         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36446         unistd-safer.
36447         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36448         <fcntl.h>; this module does not leak fds.
36449         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36450         must be allowed to return 0, leaving openat_safer to add the
36451         safety.
36452         (openat_permissive): Avoid writing to just-opened fd 2 if
36453         restoring the current directory fails.
36454         * lib/openat-die.c (openat_restore_fail): Add comment.
36455         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36456         (save_cwd): Guarantee safe fd, but without use of open_safer.
36457         * tests/test-openat.c: New test.
36458         * modules/openat-tests (Files, Makefile.am): Distribute and build
36459         new file.
36460
36461         relocatable-prog-wrapper: fix build
36462         * modules/relocatable-prog-wrapper (Files): Update name of
36463         canonicalize m4 file, broken on 2009-09-17.
36464         Reported by emad hajjar <aleppos@hotmail.com>.
36465
36466 2009-09-19  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36469         * lib/safe-alloc.c: Likewise.
36470         Reported by Ian Beckwith <ianb@erislabs.net>.
36471
36472 2009-09-18  Bruno Haible  <bruno@clisp.org>
36473
36474         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36475         Reported by <erobles@sensacd.com.mx>.
36476
36477 2009-09-17  Eric Blake  <ebb9@byu.net>
36478
36479         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36480         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36481         slashes when checking if last component is missing.
36482         * tests/test-canonicalize.c (main): Test this.
36483
36484         canonicalize, canonicalize-lgpl: honor // if distinct from /
36485         * modules/canonicalize (Files): Add double-slash-root.m4.
36486         * modules/canonicalize-lgpl (Files): Likewise.
36487         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36488         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36489         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36490         fallback definition.
36491         (canonicalize_filename_mode): Use it to protect //.
36492         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36493         (__realpath): Likewise.
36494         * tests/test-canonicalize.c (main): Test this.
36495         * tests/test-canonicalize-lgpl.c (main): Likewise.
36496         * modules/canonicalize-tests (Depends-on): Add same-inode.
36497         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36498
36499         canonicalize-lgpl: fix glibc bug with trailing slash
36500         * m4/canonicalize-lgpl.m4: Move contents...
36501         * m4/canonicalize.m4: ...here.
36502         (gl_CANONICALIZE_LGPL): Factor realpath check...
36503         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36504         glibc 2.3.5 bug, fixed 2005-04-27.
36505         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36506         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36507         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36508         * modules/canonicalize-lgpl (Files): Manage file rename.
36509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36510         * modules/stdlib (Makefile.am): Substitute witness.
36511         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36512         is needed.
36513         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36514         replacement is required.
36515         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36516         * doc/glibc-functions/canonicalize_file_name.texi
36517         (canonicalize_file_name): Document this.
36518         * doc/posix-functions/realpath.texi (realpath): Likewise.
36519
36520         canonicalize-lgpl: reject non-directory with trailing slash
36521         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36522         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36523         catches failures in glibc 2.3.5.
36524         * tests/test-canonicalize.c (main): Likewise.
36525
36526         canonicalize-lgpl: use native realpath if it works
36527         * lib/canonicalize-lgpl.c (realpath): Guard with
36528         FUNC_REALPATH_WORKS.
36529         * lib/stdlib.in.h (realpath): Make declaration optional based on
36530         HAVE_REALPATH.
36531         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36532         native realpath works.
36533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36534         * modules/stdlib (Makefile.am): Substitute witness.
36535
36536         canonicalize, canonicalize-lgpl: use <stdlib.h>
36537         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36538         (Include): Mention <stdlib.h>.
36539         (configure.ac): Mention functions we provide.
36540         * modules/canonicalize (configure.ac): Likewise.
36541         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36542         realpath if canonicalize_file_name is missing.
36543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36544         * modules/stdlib (Makefile.am): Substitute witnesses.
36545         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36546         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36547         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36548         * NEWS: Document this.
36549         * doc/glibc-functions/canonicalize_file_name.texi
36550         (canonicalize_file_name): Likewise.
36551         * doc/posix-functions/realpath.texi (realpath): Likewise.
36552         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36553
36554         test-canonicalize: consolidate into single C program
36555         * tests/test-canonicalize.sh: Delete; move setup into...
36556         * tests/test-canonicalize.c (main): ...the program, making it
36557         easier to run in debugger.  Add some tests.
36558         * modules/canonicalize-tests (Files): Remove unused file.
36559         (Depends-on): Add progname.
36560         (configure.ac, Makefile.am): Simplify.
36561
36562         test-canonicalize-lgpl: consolidate into single C program
36563         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36564         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36565         easier to run in debugger.  Add some tests.
36566         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36567         (configure.ac, Makefile.am): Simplify.
36568
36569         canonicalize: avoid resolvepath
36570         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36571         unnecessary checks.
36572         * lib/canonicalize.c (includes): Simplify.
36573         (canonicalize_file_name): Drop resolvepath implementation.
36574         * modules/canonicalize (Depends-on): Drop filenamecat.
36575
36576         canonicalize: don't lose errno
36577         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36578         over calls to free.
36579
36580         canonicalize: simplify errno handling
36581         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36582         assignment.
36583
36584         canonicalize, canonicalize-lgpl: update module dependencies
36585         * modules/canonicalize (Depends-on): Add extensions, lstat,
36586         pathmax, stdlib.
36587         (Files): Drop pathmax.h.
36588         (configure.ac): Adjust macro name.
36589         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36590         lstat, stdlib, sys_stat.
36591         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36592         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36593         extensions.
36594         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36595         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36596         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36597         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36598         declaration, if available.
36599         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36600         we can rely on the readlink module.
36601         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36602         (includes): Use <unistd.h> unconditionally.
36603
36604 2009-09-17  Eric Blake  <ebb9@byu.net>
36605
36606         maint: make Include sections of modules consistent
36607         * modules/alloca: Use only header name; no need to list #include.
36608         * modules/alloca-opt: Likewise.
36609         * modules/arpa_inet: Likewise.
36610         * modules/canon-host: Likewise.
36611         * modules/configmake: Likewise.
36612         * modules/dirent: Likewise.
36613         * modules/eealloc: Likewise.
36614         * modules/environ: Likewise.
36615         * modules/fchdir: Likewise.
36616         * modules/fcntl: Likewise.
36617         * modules/fcntl-h: Likewise.
36618         * modules/gethrxtime: Likewise.
36619         * modules/gettime: Likewise.
36620         * modules/ignore-value: Likewise.
36621         * modules/inet_ntop: Likewise.
36622         * modules/inet_pton: Likewise.
36623         * modules/inttypes: Likewise.
36624         * modules/isnand-nolibm: Likewise.
36625         * modules/isnanf-nolibm: Likewise.
36626         * modules/mbchar: Likewise.
36627         * modules/mbfile: Likewise.
36628         * modules/mbiter: Likewise.
36629         * modules/mbuiter: Likewise.
36630         * modules/netdb: Likewise.
36631         * modules/netinet_in: Likewise.
36632         * modules/nproc: Likewise.
36633         * modules/pagealign_alloc: Likewise.
36634         * modules/poll: Likewise.
36635         * modules/printf-frexp: Likewise.
36636         * modules/pthread: Likewise.
36637         * modules/putenv: Likewise.
36638         * modules/random_r: Likewise.
36639         * modules/relocatable-prog: Likewise.
36640         * modules/search: Likewise.
36641         * modules/select: Likewise.
36642         * modules/selinux-h: Likewise.
36643         * modules/settime: Likewise.
36644         * modules/signal: Likewise.
36645         * modules/size_max: Likewise.
36646         * modules/socklen: Likewise.
36647         * modules/ssize_t: Likewise.
36648         * modules/stdarg: Likewise.
36649         * modules/stdbool: Likewise.
36650         * modules/stddef: Likewise.
36651         * modules/stdint: Likewise.
36652         * modules/stdio: Likewise.
36653         * modules/stdlib: Likewise.
36654         * modules/string: Likewise.
36655         * modules/strings: Likewise.
36656         * modules/sys_file: Likewise.
36657         * modules/sys_ioctl: Likewise.
36658         * modules/sys_select: Likewise.
36659         * modules/sys_socket: Likewise.
36660         * modules/sys_stat: Likewise.
36661         * modules/sys_time: Likewise.
36662         * modules/sys_times: Likewise.
36663         * modules/sys_utsname: Likewise.
36664         * modules/sys_wait: Likewise.
36665         * modules/sysexits: Likewise.
36666         * modules/time: Likewise.
36667         * modules/times: Likewise.
36668         * modules/tmpfile: Likewise.
36669         * modules/trim: Likewise.
36670         * modules/unistd: Likewise.
36671         * modules/wchar: Likewise.
36672         * modules/wctype: Likewise.
36673
36674 2009-09-17  Bruno Haible  <bruno@clisp.org>
36675
36676         Make getdate.y compile on QNX and NetBSD 5 / i386.
36677         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36678         TIME_T_FITS_IN_LONG_INT.
36679         * lib/getdate.y (long_time_t): New type.
36680         (relative_time): Change type of 'seconds' field to long_time_t.
36681         (get_date): Update types of local variables. Check against overflow
36682         during conversion from long_time_t to time_t.
36683         Reported by Matt Kraai <kraai@ftbfs.org>
36684         and Hasso Tepper <hasso@netbsd.org>.
36685
36686 2009-09-17  Bruno Haible  <bruno@clisp.org>
36687
36688         * modules/COPYING: Update copyright years.
36689         * modules/README: Likeiwse.
36690         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36691         Reported by Ian Beckwith <ianb@erislabs.net>.
36692
36693 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36694
36695         * users.txt: Update references for gnuit package.
36696
36697 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36698
36699         * m4/getdelim.m4: Fix typo in copyright line.
36700
36701 2009-09-17  Bruno Haible  <bruno@clisp.org>
36702
36703         * lib/atoll.c: Use the standard header with GPL copyright.
36704         * lib/argz.in.h: Likewise.
36705         * lib/glob.c: Likewise.
36706         * lib/glob-libc.h: Likewise.
36707         * lib/random_r.c: Likewise.
36708         * lib/siglist.h: Likewise.
36709         * lib/strsignal.c: Likewise.
36710         Reported by Ian Beckwith <ianb@erislabs.net>.
36711
36712 2009-09-17  Eric Blake  <ebb9@byu.net>
36713
36714         rmdir: ensure correct dependency order
36715         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36716
36717 2009-09-17  Bruno Haible  <bruno@clisp.org>
36718
36719         Disable assertion that fails on NetBSD 5 / i386.
36720         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36721         Reported by Sam Steingold <sds@gnu.org>
36722         and Hasso Tepper <hasso@netbsd.org>.
36723
36724 2009-09-16  Eric Blake  <ebb9@byu.net>
36725
36726         unlinkdir: port to mingw
36727         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36728         on which no one can unlink a directory.
36729
36730         stdlib: sort witness names
36731         * modules/stdlib (Makefile.am): Sort replacements.
36732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36733         * lib/stdlib.in.h: Likewise.
36734
36735         parse-duration-tests: avoid link failure
36736         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36737         LIBINTL.
36738         Reported by Tom G. Christensen.
36739
36740         openat-tests: ensure unlinkat behaves like rmdir
36741         * tests/test-rmdir.c (main): Factor guts...
36742         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36743         * modules/rmdir-tests (Files): Ship new file.
36744         * modules/openat-tests: New test.
36745         * tests/test-unlinkat.c: Likewise.
36746
36747         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36748         * modules/rmdir-errno (Status, Notice): Now obsolete.
36749
36750         rmdir: work around cygwin 1.5.x and mingw bugs
36751         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36752         * lib/rmdir.c (rmdir): Work around it.
36753         * modules/rmdir (Status, Notice): No longer obsolete.
36754         (Files): Add dos.m4.
36755         (Depends-on): Add unistd.
36756         (configure.ac): Set witnesses.
36757         (License): Relax to LGPLv2+.
36758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36759         * modules/unistd (Makefile.am): Substitute witnesses.
36760         * lib/unistd.in.h (rmdir): Declare replacement.
36761         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36762         * modules/rmdir-tests: New tests.
36763         * tests/test-rmdir.c: Likewise.
36764
36765 2009-09-15  Eric Blake  <ebb9@byu.net>
36766
36767         fchdir: improve use of replacement functions
36768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36770         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36771         REPLACE_CLOSEDIR.
36772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36773         * modules/sys_stat (Makefile.am): Substitute correct witness.
36774         * modules/dirent (Makefile.am): Likewise.
36775         * modules/unistd (Makefile.am): Likewise.
36776         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36777         * lib/unistd.in.h (dup): Likewise.
36778         * lib/sys_stat.in.h (fstat): Likewise.
36779
36780         maint: ignore gnulib-tool temp files
36781         * .gitignore: Ignore files created during gnulib-tool --test.
36782
36783 2009-09-13  Jim Meyering  <meyering@redhat.com>
36784
36785         posixtm: don't reject a time that specify "60" as the number of seconds
36786         * lib/posixtm.c (posixtime): The code to reject invalid dates
36787         would also reject a time specified with the .60 suffix.
36788         But POSIX allows that, in order to accommodate leap seconds.
36789         So don't reject it.
36790         (main): Adjust tests accordingly.
36791         * modules/posixtm (Depends-on): Add stpcpy.
36792
36793 2009-09-11  Jim Meyering  <meyering@redhat.com>
36794
36795         announce-gen: include [$release_type] in emitted Subject:
36796         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36797         e.g., [stable] in the emitted Subject: line.
36798
36799 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36800
36801         Remove obsolete macros from several modules.
36802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36803         obsolete Autoconf macros with their modern counterparts.
36804         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36805         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36807         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36808         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36809         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36811         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36812         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36813         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36814         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36815         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36816         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36817         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36818         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36819         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36820         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36821         * m4/time_r.m4 (gl_TIME_R): Likewise.
36822         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36823         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36824         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36825
36826         Fix copyright header in build-aux scripts.
36827         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36828         recommendation.
36829         * build-aux/ncftpput-ftp: Likewise.
36830         * build-aux/update-copyright: Likewise.
36831
36832 2009-09-09  Eric Blake  <ebb9@byu.net>
36833
36834         test-link: allow Linux choice of errno
36835         * tests/test-link.c (main): Relax test for alternate error.
36836
36837         strndup: fix improper m4 caching
36838         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36839         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36840         (gl_PREREQ_STRNDUP): Delete.
36841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36842         * modules/string (Makefile.am): Substitute it.
36843         * lib/string.in.h (strndup): Modernize prototype.
36844
36845         getcwd: port to mingw
36846         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36847         different from the POSIX assumptions made throughout the getcwd
36848         module; fortunately, the mingw getcwd does not need replacement.
36849         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36850         * modules/getcwd-tests: New test.
36851         * tests/test-getcwd.c: Likewise.
36852
36853         link: fix platform bugs
36854         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36855         * lib/link.c (link): Work around them.  Fix related mingw bug.
36856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36857         * modules/unistd (Makefile.am): Substitute it.
36858         * lib/unistd.in.h (link): Declare replacement.
36859         * doc/posix-functions/link.texi (link): Document this.
36860         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36861
36862         test-link: consolidate into single C program, test more cases
36863         * tests/test-link.sh: Delete.
36864         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36865         at least Cygwin and Solaris.
36866         * modules/link-tests (Files): Remove unused file.
36867         (Depends-on): Add errno, sys_stat.
36868         (Makefile.am): Simplify.
36869
36870 2009-09-08  Bruno Haible  <bruno@clisp.org>
36871
36872         Work around towlower, towupper bug on mingw.
36873         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36874         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36875         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36876         * doc/posix-functions/towupper.texi: Likewise.
36877         Reported by Eric Blake.
36878
36879 2009-09-08  Jim Meyering  <meyering@redhat.com>
36880
36881         build: don't try to run autoheader if we don't use it
36882         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36883         is not used in configure.ac.
36884
36885 2009-09-08  Eric Blake  <ebb9@byu.net>
36886
36887         euidaccess: fix compilation error
36888         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36889
36890         rawmemchr: relax license
36891         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36892         okay.
36893         Reported by Jim Meyering.
36894
36895         mkfifoat: new module
36896         * modules/mkfifoat: New file.
36897         * lib/mkfifoat.c: Likewise.
36898         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36900         * modules/sys_stat (Makefile.am): Use them.
36901         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36902         * MODULES.html.sh (File system functions): Mention module.
36903         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36904         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36905         * modules/mkfifoat-tests: New test.
36906         * tests/test-mkfifoat.c: Likewise.
36907
36908         strchrnul: relax license
36909         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36910         okay.
36911         Reported by Jim Meyering.
36912
36913 2009-09-08  Eric Blake  <ebb9@byu.net>
36914
36915         fstatat: fix compilation on Solaris
36916         * lib/fstatat.c (includes): Add fcntl.h.
36917         Reported by Pádraig Brady.
36918
36919 2009-09-07  Eric Blake  <ebb9@byu.net>
36920
36921         rename: modernize replacement
36922         * modules/rename (Depends-on): Add stdio.
36923         (configure.ac): Declare witness.
36924         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36925         stdio take care of replacement.
36926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36927         * modules/stdio (Makefile.am): Substitute them.
36928         * lib/stdio.in.h (rename): Declare replacement.
36929         * lib/rename.c (includes): Allow cross-compilation to non-windows
36930         machines.
36931         * doc/posix-functions/rename.texi (rename): Improve
36932         documentation.
36933
36934         stdio: sort witness names
36935         * modules/stdio (Makefile.am): Sort replacements.
36936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36937         * lib/stdio.in.h: Likewise.
36938
36939         getcwd: minor cleanups
36940         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36941         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36942
36943         openat: provide more convenience names
36944         * modules/faccessat (configure.ac): Add C witness.
36945         * lib/unistd.in.h (readlinkat): Fix typo.
36946         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36947         convenience wrappers.
36948         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36949         wrappers in syntax checks.
36950
36951 2009-09-06  Eric Blake  <ebb9@byu.net>
36952
36953         doc: fix comments in recent patches
36954         * lib/faccessat.c: Mention correct function.
36955         * lib/fchmodat.c: Likewise.
36956         * lib/fchownat.c: Likewise.
36957         * lib/symlinkat.c: Likewise.
36958         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36959         constants.
36960
36961         faccessat, symlinkat: continue cleanup of previous patch
36962         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36963         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36964         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36966         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36967         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36968         set.
36969
36970 2009-09-06  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36973         (fstatat): Declare if GNULIB_FSTATAT is set.
36974         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36975         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36976         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36977         * modules/fcntl-h (Files): Remove m4/openat.m4.
36978         * modules/sys_stat (Files): Remove m4/openat.m4.
36979         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36980         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36981         * modules/unistd (Files): Remove m4/openat.m4.
36982         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36983         GNULIB_OPENAT.
36984         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36985         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36987         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36988         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36989         gl_OPENAT_DEFAULTS.
36990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36991         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36992         Don't require gl_OPENAT_DEFAULTS.
36993         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36994         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36995         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36996         (gl_OPENAT_DEFAULTS): Remove macro.
36997
36998 2009-09-06  Bruno Haible  <bruno@clisp.org>
36999
37000         * modules/openat (configure.ac): Remove unneeded witness.
37001
37002 2009-09-06  Bruno Haible  <bruno@clisp.org>
37003
37004         Set errno to ENOSYS when a function is entirely unsupported.
37005         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37006         EOPNOTSUPP.
37007         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37008         * modules/chown (Depends-on): Remove errno.
37009
37010 2009-09-06  Bruno Haible  <bruno@clisp.org>
37011
37012         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37013
37014 2009-09-06  Bruno Haible  <bruno@clisp.org>
37015
37016         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37017
37018 2009-09-06  Ben Pfaff  <blp@gnu.org>
37019             Bruno Haible  <bruno@clisp.org>
37020
37021         Work around a glibc bug in strtok_r.
37022         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37023         Undefine if UNDEFINE_STRTOK_R is set.
37024         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37026         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37027         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37028         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37029         UNDEFINE_STRTOK_R.
37030         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37031
37032 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37033
37034         exclude: minor fix
37035         * lib/exclude.c: Include wctype.h
37036
37037 2009-09-06  Akim Demaille  <demaille@gostai.com>
37038
37039         bootstrap: improve error message
37040         * build-aux/bootstrap (find_tool): Upon failure, report the list
37041         of candidates.
37042         Honor the initial value of the envvar.
37043
37044 2009-09-05  Eric Blake  <ebb9@byu.net>
37045
37046         symlinkat: new module
37047         * modules/symlinkat: New file.
37048         * lib/symlinkat.c: Likewise.
37049         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37051         * modules/unistd (Makefile.am): Use them.
37052         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37053         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37054         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37055         * MODULES.html.sh (File system functions): Mention module.
37056         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37057         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37058         * modules/symlinkat-tests: New test.
37059         * tests/test-symlinkat.c: Likewise.
37060
37061         test-openat-safer: add more checks
37062         * tests/test-openat-safer.c (main): Check more code paths.
37063
37064 2009-09-05  Jim Meyering  <meyering@redhat.com>
37065
37066         syntax-check: detect unnecessary inclusion of openat.h
37067         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37068
37069 2009-09-05  Bruno Haible  <bruno@clisp.org>
37070
37071         Support towlower, towupper.
37072         * doc/posix-functions/towlower.texi: Mention module wctype.
37073         * doc/posix-functions/towupper.texi: Likewise.
37074         * lib/wctype.in.h (towlower, towupper): New functions.
37075         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37076         (ASSERT): New macro.
37077         (e): New variable.
37078         (main): Test also towlower, towupper. Test WEOF argument.
37079         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37080
37081 2009-09-05  Bruno Haible  <bruno@clisp.org>
37082
37083         Fix conversion behaviour when the input is invalid.
37084         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37085         mark occurring in first pass of indirect conversion.
37086         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37087         input.
37088         Found by clang's static analyzer.
37089
37090 2009-09-05  Bruno Haible  <bruno@clisp.org>
37091
37092         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37093         where direct conversion is possible.
37094
37095 2009-09-04  Eric Blake  <ebb9@byu.net>
37096
37097         openat: fail with ENOENT on empty name
37098         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37099         buffer.
37100
37101         link-follow: fix logic bug in prior patch
37102         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37103         reversed sense of yes and no in prior patch.  Avoid confusing
37104         compilation failure with desired semantics.
37105
37106         link-follow: accomodate mingw and cross-compilation
37107         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37108         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37109         cross-compilation results to -1, to make linkat easier to
37110         implement when cross-compiling.  Trivially support mingw.
37111         * modules/link-follow (configure.ac): Call new name.
37112         * NEWS: Mention this.
37113
37114 2009-09-03  Eric Blake  <ebb9@byu.net>
37115
37116         faccessat: compile replacement
37117         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37118         needed.
37119
37120         fts: fix compilation error
37121         * lib/fts.c (includes): Re-add "openat.h", for
37122         openat_needs_fchdir.
37123
37124         faccessat: new module
37125         * modules/faccessat: New file.
37126         * lib/faccessat.c: Likewise.
37127         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37129         * modules/unistd (Makefile.am): Use it.
37130         * lib/unistd.in.h (faccessat): Declare it.
37131         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37132         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37133         * MODULES.html.sh (File system functions): Mention it.
37134         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37135         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37136
37137         euidaccess: prefer POSIX over non-standard implementation
37138         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37139         * lib/euidaccess.c (euidaccess): Use it if available.
37140
37141         openat: make template easier to use
37142         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37143         AT_FUNC_F2 to be undefined.
37144         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37145         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37146         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37147         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37148         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37149         Likewise.
37150         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37151         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37152         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37153         Likewise.
37154
37155         openat: declare in POSIX headers
37156         * NEWS: Mention this.
37157         * modules/openat (configure.ac): Declare witnesses.
37158         (Depends-on): Add fcntl-h, sys_stat, unistd.
37159         (Include): Mention correct headers.
37160         * modules/fcntl-h (Depends-on): Add link-warning.
37161         (Files): Add openat.m4.
37162         (Makefile.am): Substitute witnesses.
37163         * modules/sys_stat (Files, Makefile.am): Likewise.
37164         * modules/unistd (Files, Makefile.am): Likewise.
37165         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37166         (gl_OPENAT_DEFAULTS): New macro.
37167         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37170         (SYS_STAT_H): Remove unused variable.
37171         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37172         * lib/fcntl--.h (includes): Remove unneeded header.
37173         * lib/openat-safer.c (includes): Likewise.
37174         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37175         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37176         appropriate headers.
37177         (__OPENAT_PREFIX): Delete.
37178         * lib/fcntl.in.h (openat): Provide declaration.
37179         (AT_FDCWD): Fix Solaris bug.
37180         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37181         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37182         * lib/fchmodat.c (includes):  Adjust to find declaration.
37183         * lib/fchownat.c (includes): Likewise.
37184         * lib/mkdirat.c (includes): Likewise.
37185         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37186         still visible.
37187
37188 2009-09-02  Eric Blake  <ebb9@byu.net>
37189
37190         errno: use consistently
37191         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37192         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37193         * lib/canonicalize.c (ELOOP): Likewise.
37194         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37195         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37196         * lib/lchown.c (EOPNOTSUPP): Likewise.
37197         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37198         * lib/savewd.c (ESTALE): Likewise.
37199         * lib/settime.c (ENOSYS): Likewise.
37200         * lib/utimens.c (ENOSYS): Likewise.
37201         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37202         * lib/chdir-safer.c (ELOOP): Likewise.
37203         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37204         * modules/c-stack (Depends-on): Add errno.
37205         * modules/canonicalize (Depends-on): Likewise.
37206         * modules/chdir-safer (Depends-on): Likewise.
37207         * modules/fdopendir (Depends-on): Likewise.
37208         * modules/inet_ntop (Depends-on): Likewise.
37209         * modules/inet_pton (Depends-on): Likewise.
37210         * modules/lchown (Depends-on): Likewise.
37211         * modules/openat (Depends-on): Likewise.
37212         * modules/savewd (Depends-on): Likewise.
37213         * modules/settime (Depends-on): Likewise.
37214         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37215
37216         fts: avoid leaking fds
37217         * modules/fts (Depends-on): Add cloexec.
37218         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37219         flag.
37220
37221         fts: make directory fds more robust
37222         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37223         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37224
37225         backupfile, chdir-long, fts, savedir: make safer
37226         * lib/backupfile.c (includes): Use "dirent--.h", since
37227         numbered_backup can write to stderr during readdir.
37228         * lib/savedir.c (includes): Likewise.
37229         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37230         emulation can write to stderr on failure.
37231         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37232         * lib/getcwd.c: Document why opendir_safer is unused.
37233         * lib/glob.c: Likewise.
37234         * lib/scandir.c: Likewise.
37235         * lib/openat-proc.c: Likewise, for open_safer.
37236         * modules/backupfile (Depends-on): Add dirent-safer.
37237         * modules/savedir (Depends-on): Likewise.
37238         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37239         * modules/chdir-long (Depends-on): Add openat-safer.
37240
37241         openat-safer: new module
37242         * modules/openat-safer: New file.
37243         * lib/openat-safer.c: Likewise.
37244         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37245         * lib/fcntl-safer.h (openat_safer): Declare.
37246         * lib/fcntl--.h (openat): Override.
37247         * MODULES.html.sh (File descriptor based I/O): Mention it.
37248         * lib/openat.h: Add double-inclusion guards.
37249         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37250         "fcntl--.h", so we can implement openat.
37251         * modules/openat-safer-tests: New test.
37252         * tests/test-openat-safer.c: New file.
37253
37254         dirent-safer: new module
37255         * modules/dirent-safer: New file.
37256         * lib/dirent--.h: Likewise.
37257         * lib/dirent-safer.h: Likewise.
37258         * lib/opendir-safer.c: Likewise.
37259         * m4/dirent-safer.m4: Likewise.
37260         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37261         * modules/dirent-safer-tests: New test.
37262         * tests/test-dirent-safer.c: New file.
37263         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37264
37265         fdopendir: optimize on mingw
37266         * lib/unistd.in.h (_gl_directory_name): New prototype.
37267         * lib/fchdir.c (_gl_directory_name): Implement it.
37268         (fchdir): Use it to simplify implementation.
37269         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37270         fchdir, when available, to avoid calling [f]chdir().
37271
37272         fdopendir: split into its own module
37273         * lib/openat.c (fdopendir): Move...
37274         * lib/fdopendir.c: ...into new file.
37275         * modules/fdopendir: New module.
37276         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37277         * modules/openat (Depends-on): Add fdopendir.
37278         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37279         fdopendir here.
37280         * modules/savedir (Depends-on): Only need fdopendir, not full
37281         openat.
37282         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37283         * lib/openat.h (fdopendir): Drop prototype.
37284         * lib/dirent.in.h (fdopendir): Provide prototype.
37285         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37286         * modules/dirent (Makefile.am): Substitute them.
37287         * MODULES.html.sh (File system functions): Mention it.
37288         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37289         * modules/fdopendir-tests: New file.
37290         * tests/test-fdopendir.c: Likewise.
37291
37292         fchdir: use more consistent macro convention
37293         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37294         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37295         REPLACE_FCHDIR, rather than relying on config.h macros.
37296         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37297         inside a single make-time REPLACE_FCHDIR block, rather than using
37298         the config.h FCHDIR_REPLACEMENT.
37299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37300         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37301         Manage fstat replacement.
37302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37303         REPLACE_FCHDIR.
37304         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37305         (Makefile.am): Substitute REPLACE_FCHDIR.
37306         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37307         FCHDIR_REPLACEMENT.
37308         * lib/dup-safer.c (dup_safer): Likewise.
37309         * lib/dup2.c (rpl_dup2): Likewise.
37310         * lib/dup3.c (rpl_dup3): Likewise.
37311         * lib/open.c (rpl_open): Likewise.
37312
37313         fchdir: simplify error handling, and support dup3
37314         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37315         stdbool, malloc-posix, realloc-posix.
37316         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37317         (ensure_dirs_slot): Return false on allocation failure.
37318         (rpl_dup2): Delete.
37319         (_gl_register_dup): New function.
37320         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37321         (_gl_register_fd): Close fd on allocation failure.
37322         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37323         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37324         prototype.
37325         (rpl_dup2_fchdir): Delete prototype.
37326         * lib/open.c (open): Update caller.
37327         * lib/dup2.c (dup2): Track fchdir metadata.
37328         * lib/dup3.c (dup3): Likewise.
37329         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37331
37332 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37333
37334         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37335         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37336         don't pass arguments to AC_OUTPUT.
37337
37338 2009-09-02  Bruno Haible  <bruno@clisp.org>
37339
37340         * modules/mkdtemp (License): Relicense under LGPLv2+.
37341         Reported by Paolo Bonzini.
37342
37343 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37344
37345         Replace uses of obsolete autoconf macros in Jim's modules.
37346         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37347         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37348         can evoke a warning from autoconf when run with -Wobsolete
37349         enabled.  They were declared obsolete for good reasons (see
37350         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37351         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37352         should not continue using the deprecated macros.
37353         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37354         obsolete Autoconf macros with modern counterparts.
37355         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37356         * m4/dos.m4 (gl_AC_DOS): Likewise.
37357         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37359         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37360         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37361         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37362         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37363         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37364         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37365         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37366         Likewise.
37367         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37368         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37369         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37370         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37371         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37372         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37373
37374 2009-09-01  Eric Blake  <ebb9@byu.net>
37375
37376         fchdir: fix off-by-one bug in previous patch
37377         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37378         (_gl_unregister_fd): Delete useless if.
37379
37380 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37381
37382         maint.mk: sort the list of syntax-check rules
37383         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37384         easier to get a sense of progress when the rules are run sequentially
37385         and take a long time.
37386
37387 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37388
37389         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37390         * modules/netinet_in: Likewise.
37391         * modules/sys_file: Likewise.
37392         * modules/sys_ioctl: Likewise.
37393         * modules/sys_select: Likewise.
37394         * modules/sys_socket: Likewise.
37395         * modules/sys_stat: Likewise.
37396         * modules/sys_time: Likewise.
37397         * modules/sys_times: Likewise.
37398         * modules/sys_utsname: Likewise.
37399         * modules/sys_wait: Likewise.
37400
37401 2009-09-01  Jim Meyering  <meyering@redhat.com>
37402
37403         fts: help ensure that return values are not ignored
37404         * lib/fts_.h (__GNUC_PREREQ): Define.
37405         (__attribute_warn_unused_result__): Define.
37406         (fts_children, fts_close, fts_open, fts_read): Declare with
37407         __attribute_warn_unused_result__.
37408
37409         fts: fts_close now fails also when closing a dir file descriptor fails
37410         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37411         and propagate to caller, along with errno.
37412
37413         announce-gen: correct formatting in --help output
37414         * build-aux/announce-gen (usage): Move the one-line description in
37415         --help output "up", to where it belongs, just after Usage:.
37416
37417 2009-08-31  Eric Blake  <ebb9@byu.net>
37418
37419         fchdir: port to mingw
37420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37421         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37422         opened, then use a substitute.
37423         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37424         replacement.
37425         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37426         (_gl_register_fd): No need to check stat if open already filters
37427         all directories.
37428         (fchdir): Fix error condition to match POSIX.
37429         * modules/fchdir (Depends-on): Add sys_stat.
37430         * doc/posix-functions/open.texi (open): Document the limitation.
37431         * modules/fchdir-tests: New file.
37432         * tests/test-fchdir.c: Likewise.
37433
37434         canonicalize: allow cross-testing from cygwin to mingw
37435         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37436         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37437         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37438         Likewise.
37439         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37440         target does not support symlinks.
37441         * tests/test-canonicalize-lgpl.sh: Likewise.
37442
37443         chown: avoid compilation warning on mingw
37444         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37445         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37446         mingw.
37447         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37448         * modules/chown (Depends-on): Add errno.
37449
37450 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37451
37452         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37453         command.
37454
37455 2009-08-31  Jim Meyering  <meyering@redhat.com>
37456
37457         canonicalize: remove useless initialization
37458         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37459         initialization of local, "end".
37460
37461 2009-08-30  Bruno Haible  <bruno@clisp.org>
37462
37463         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37464         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37465         ENOSYS.
37466
37467 2009-08-30  Bruno Haible  <bruno@clisp.org>
37468
37469         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37470         /usr/xpg4/bin/tr when it exists.
37471         * tests/test-pipe-filter-gi1.sh: Likewise.
37472
37473 2009-08-30  Bruno Haible  <bruno@clisp.org>
37474
37475         Work around deficient /usr/bin/id program on Solaris.
37476         * tests/test-file-has-acl.sh (ID): New variable.
37477         * tests/test-set-mode-acl.sh (ID): Likewise.
37478         * tests/test-copy-acl.sh (ID): Likewise.
37479         * tests/test-copy-file.sh (ID): Likewise.
37480
37481 2009-08-30  Bruno Haible  <bruno@clisp.org>
37482
37483         New module 'xstriconveh'.
37484         * lib/xstriconveh.h: New file.
37485         * lib/xstriconveh.c: New file.
37486         * modules/xstriconveh: New file.
37487
37488 2009-08-30  Bruno Haible  <bruno@clisp.org>
37489
37490         Make it easier to use mem_cd_iconveh.
37491         * lib/striconveh.h (iconveh_t): New type.
37492         (iconveh_open, iconveh_close): New declarations.
37493         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37494         with a single 'const iconveh_t *' argument.
37495         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37496         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37497         with a single 'const iconveh_t *' argument.
37498         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37499         * tests/test-striconveh.c (main): Update.
37500         * NEWS: Mention the change.
37501
37502 2009-08-30  Bruno Haible  <bruno@clisp.org>
37503
37504         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37505         problem.
37506
37507 2009-08-30  Bruno Haible  <bruno@clisp.org>
37508
37509         Work around iconv_open problem on Solaris.
37510         * lib/iconv_open-solaris.gperf: New file.
37511         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37512         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37513         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37514         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37515         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37516         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37517
37518 2009-08-29  Jim Meyering  <meyering@redhat.com>
37519
37520         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37521         * top/maint.mk (cvs-check): Remove target; it was just an alias
37522         to the better-named vc-diff-check.
37523         (maintainer-distcheck): Remove rule.  It was used only from
37524         the (alpha/beta/major) target, and all of its commands but one
37525         were coreutils-specific.
37526         (vc-dist): Remove rule.
37527         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37528         Run vc-diff-check, not vc-dist.
37529         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37530
37531 2009-08-27  Bruno Haible  <bruno@clisp.org>
37532
37533         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37534         of 0.
37535
37536 2009-08-27  Bruno Haible  <bruno@clisp.org>
37537
37538         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37539         compilers.
37540         * doc/func.texi: Document the SunPRO C bug.
37541
37542 2009-08-27  Bruno Haible  <bruno@clisp.org>
37543
37544         Fix link error on Solaris.
37545         * tests/test-parse-duration.c (xstrdup): Remove function.
37546
37547 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37548
37549         ignore-value: handle pointer types, too
37550         * lib/ignore-value.h (__attribute__): Remove definition.
37551         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37552         of a more concise and more-often effective "(void) i" statement.
37553         (ignore_ptr): New function to suppress warnings from functions that
37554         return pointers, and to make it explicit that one function doesn't
37555         handle all cases.
37556
37557 2009-08-25  Bruno Haible  <bruno@clisp.org>
37558
37559         dup2: work around a Linux bug.
37560         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37561         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37562         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37563         Reported by Simon Josefsson.
37564
37565 2009-08-25  Jim Meyering  <meyering@redhat.com>
37566
37567         libguestfs uses gnulib
37568         * users.txt: Add libguestfs.
37569
37570 2009-08-24  Eric Blake  <ebb9@byu.net>
37571
37572         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37573         * lib/pipe2.c (includes): Add binary-io.h.
37574         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37575
37576 2009-08-24  Bruno Haible  <bruno@clisp.org>
37577
37578         Tolerate declared but missing accept4 syscall.
37579         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37580         available.
37581         * lib/sys_socket.in.h (accept4): If the function is already present,
37582         override it.
37583         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37584         * modules/accept4 (Makefile.am): Compile accept4.c always.
37585         Reported by Paolo Bonzini and Eric Blake.
37586
37587 2009-08-23  Bruno Haible  <bruno@clisp.org>
37588
37589         New module 'accept4'.
37590         * lib/sys_socket.in.h (accept4): New declaration.
37591         * lib/accept4.c: New file.
37592         * m4/accept4.m4: New file.
37593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37594         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37595         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37596         HAVE_ACCEPT4.
37597         * modules/accept4: New file.
37598         * doc/glibc-functions/accept4.texi: Mention the new module.
37599
37600 2009-08-24  Jim Meyering  <meyering@redhat.com>
37601
37602         progname: also set global program_invocation_name, when possible
37603         Before this change, a libtool-enabled program that calls glibc's
37604         error function would report the program name as
37605         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37606         * modules/progname (configure.ac): Check for a declaration of
37607         program_invocation_name.
37608         * lib/progname.c:  Include <errno.h>.
37609         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37610         Set program_invocation_name.
37611
37612 2009-08-23  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/dup3.c: Include <string.h>.
37615
37616 2009-08-23  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37619         * lib/pipe2.c (pipe2): Likewise.
37620         Suggested by Eric Blake.
37621
37622 2009-08-23  Bruno Haible  <bruno@clisp.org>
37623
37624         Tolerate declared but missing dup3 syscall.
37625         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37626         * lib/unistd.in.h (dup3): If the function is already present,
37627         override it.
37628         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37629         * modules/dup3 (Makefile.am): Compile dup3.c always.
37630         Reported by Paolo Bonzini.
37631
37632 2009-08-23  Bruno Haible  <bruno@clisp.org>
37633
37634         Tolerate declared but missing pipe2 syscall.
37635         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37636         available.
37637         * lib/unistd.in.h (pipe2): If the function is already present,
37638         override it.
37639         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37640         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37641         Reported by Paolo Bonzini.
37642
37643 2009-08-23  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/pipe2.c (pipe2): Move #ifs inside function.
37646
37647 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37648
37649         quotearg: document limitations of quote_these_too
37650         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37651         those limitations are created.
37652         * lib/quotearg.h (set_char_quoting): Document that digits and
37653         letters that are special after backslash are not permitted.
37654         (quotearg_char): Cross-reference set_char_quoting documentation.
37655
37656 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37657
37658         quotearg: implement custom_quoting_style
37659         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37660         right_quote fields.
37661         (set_custom_quoting): New public function.
37662         (quotearg_buffer_restyled): Add left_quote and right_quote
37663         arguments, handle them very much like locale quoting, and update
37664         all uses.
37665         (quotearg_n_custom): New public function.
37666         (quotearg_n_custom_mem): New public function.
37667         (quotearg_custom): New public function.
37668         (quotearg_custom_mem): New public function.
37669         * lib/quotearg.h: Prototype and document new public functions.
37670         (enum quoting_style): For escape_quoting_style and
37671         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37672         ignored even though they're otherwise like c_quoting_style.
37673         Add custom_quoting_style member and document with comparison to
37674         clocale_quoting_style.
37675         * tests/test-quotearg.c (custom_quotes): New array.
37676         (custom_results): New array.
37677         (main): Extend to test custom quoting.
37678
37679 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37680
37681         quotearg: fix right quote escaping when it's in quote_these_too
37682         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37683         quote, be sure to prepend only one backslash.
37684         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37685         (main): Test it.
37686
37687 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37688
37689         quotearg-tests: test escaping of embedded locale quotes
37690         * tests/test-quotearg.c (struct result_strings): Add member for
37691         new input.
37692         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37693         (inputs): Add new input.
37694         (results_g): Add expected results.
37695         (flag_results): Likewise.
37696         (locale_results): Likewise.
37697         (compare_strings): Check those.
37698
37699 2009-08-23  Bruno Haible  <bruno@clisp.org>
37700
37701         Tests for module 'dup3'.
37702         * modules/dup3-tests: New file.
37703         * tests/test-dup3.c: New file.
37704
37705         New module 'dup3'.
37706         * lib/unistd.in.h (dup3): New declaration.
37707         * lib/dup3.c: New file.
37708         * m4/dup3.m4: New file.
37709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37710         HAVE_DUP3.
37711         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37712         * modules/dup3: New file.
37713         * doc/glibc-functions/dup3.texi: Mention the new module.
37714
37715 2009-08-23  Bruno Haible  <bruno@clisp.org>
37716
37717         Tweak the dup2 test.
37718         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37719         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37720         the test file is still empty. Fix argument order of lseek.
37721
37722 2009-08-23  Bruno Haible  <bruno@clisp.org>
37723
37724         Avoid test link errors when the modules getopt-gnu, gettext are used.
37725         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37727
37728 2009-08-23  Bruno Haible  <bruno@clisp.org>
37729
37730         Fix getdtablesize() on mingw.
37731         * lib/getdtablesize.c (getdtablesize): Implement differently.
37732         * lib/unistd.in.h (getdtablesize): Improve comment.
37733
37734 2009-08-23  Bruno Haible  <bruno@clisp.org>
37735
37736         New module 'mkostemp'.
37737         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37738         * lib/stdlib.in.h (mksotemp): New declaration.
37739         * lib/mkostemp.c: New file, from glibc with modifications.
37740         * lib/tempname.h (GT_FILE): Remove outdated comment.
37741         (gen_tempname): Add flags argument.
37742         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37743         (__GT_FILE): Map to 1.
37744         (small_open, large_open): Remove macros.
37745         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37746         * lib/mkstemp.c (mkstemp): Update.
37747         * lib/mkdtemp.c (mkdtemp): Likewise.
37748         * m4/mkostemp.m4: New file.
37749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37750         HAVE_MKOSTEMP.
37751         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37752         HAVE_MKOSTEMP.
37753         * modules/mkostemp: New file, based on modules/mkstemp.
37754         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37755         * NEWS: Mention the change.
37756
37757 2009-08-23  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37760         Reported by Eric Blake.
37761
37762 2009-08-23  Bruno Haible  <bruno@clisp.org>
37763
37764         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37765         Reported by Eric Blake.
37766
37767 2009-08-23  Bruno Haible  <bruno@clisp.org>
37768
37769         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37770         * modules/pipe2 (Depends-on): Likewise.
37771
37772 2009-08-23  Eric Blake  <ebb9@byu.net>
37773
37774         fcntl-h: add O_TTY_INIT support
37775         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37776         * tests/test-fcntl-h.c (o): Test it.
37777         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37778
37779         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37780         * modules/fcntl: Move <fcntl.h> header replacement...
37781         * modules/fcntl-h: ...to new name, so as not to collide with
37782         like-named function.
37783         * tests/test-fcntl.c: Rename...
37784         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37785         * modules/fcntl-tests: Rename...
37786         * modules/fcntl-h-tests: ...to this.  Update test file name.
37787         * modules/chdir-long (Depends-on): Update clients.
37788         * modules/chdir-safer (Depends-on): Likewise.
37789         * modules/fcntl-safer (Depends-on): Likewise.
37790         * modules/fts (Depends-on): Likewise.
37791         * modules/mkancesdirs (Depends-on): Likewise.
37792         * modules/mkdir-p (Depends-on): Likewise.
37793         * modules/open (Depends-on): Likewise.
37794         * modules/savewd (Depends-on): Likewise.
37795         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37796         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37797
37798 2009-08-22  Bruno Haible  <bruno@clisp.org>
37799
37800         * modules/binary-io (License): Relicense under LGPL.
37801         * modules/pipe2 (License): Likewise.
37802
37803 2009-08-22  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37806         return value.
37807         * lib/pipe-filter-gi.c (filter_init): Likewise.
37808         Reported by Eric Blake.
37809
37810 2009-08-22  Bruno Haible  <bruno@clisp.org>
37811
37812         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37813         * modules/pipe (Depends-on): Add pipe2.
37814
37815 2009-08-22  Bruno Haible  <bruno@clisp.org>
37816
37817         Tests for module 'pipe2'.
37818         * modules/pipe2-tests: New file.
37819         * tests/test-pipe2.c: New file.
37820
37821         New module 'pipe2'.
37822         * lib/unistd.in.h (pipe2): New declaration.
37823         * lib/pipe2.c: New file.
37824         * m4/pipe2.m4: New file.
37825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37826         HAVE_PIPE2.
37827         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37828         * modules/pipe2: New file.
37829         * doc/glibc-functions/pipe2.texi: Mention the new module.
37830
37831 2009-08-22  Bruno Haible  <bruno@clisp.org>
37832
37833         Reference some new glibc functions.
37834         * doc/glibc-functions/accept4.texi: New file.
37835         * doc/glibc-functions/dup3.texi: New file.
37836         * doc/glibc-functions/mkostemp.texi: New file.
37837         * doc/glibc-functions/pipe2.texi: New file.
37838         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37839         (Glibc sys/socket.h): Refer to accept4.
37840         (Glibc unistd.h): Refer to dup3, pipe2.
37841         Reported by Eric Blake.
37842
37843 2009-08-22  Jim Meyering  <meyering@redhat.com>
37844             Bruno Haible  <bruno@clisp.org>
37845
37846         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37847         This makes it so packages using automake-1.11's silent-rules option
37848         can print e.g., a single "GEN    configmake.h" line, rather than
37849         the 30+ statements that perform the job.  If you want to see the
37850         actual commands, you can still run "make V=1".
37851         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37852         so that make output is abbreviated when those variables are defined
37853         appropriately.
37854         * modules/argz: Likewise.
37855         * modules/arpa_inet: Likewise.
37856         * modules/byteswap: Likewise.
37857         * modules/configmake: Likewise.
37858         * modules/dirent: Likewise.
37859         * modules/errno: Likewise.
37860         * modules/fcntl: Likewise.
37861         * modules/float: Likewise.
37862         * modules/fnmatch: Likewise.
37863         * modules/getopt-posix: Likewise.
37864         * modules/glob: Likewise.
37865         * modules/iconv_open: Likewise.
37866         * modules/inttypes: Likewise.
37867         * modules/localcharset: Likewise.
37868         * modules/locale: Likewise.
37869         * modules/math: Likewise.
37870         * modules/netdb: Likewise.
37871         * modules/netinet_in: Likewise.
37872         * modules/poll: Likewise.
37873         * modules/posix_spawnp-tests: Likewise.
37874         * modules/sched: Likewise.
37875         * modules/search: Likewise.
37876         * modules/selinux-h: Likewise.
37877         * modules/signal: Likewise.
37878         * modules/spawn: Likewise.
37879         * modules/stdarg: Likewise.
37880         * modules/stdbool: Likewise.
37881         * modules/stddef: Likewise.
37882         * modules/stdint: Likewise.
37883         * modules/stdio: Likewise.
37884         * modules/stdlib: Likewise.
37885         * modules/string: Likewise.
37886         * modules/strings: Likewise.
37887         * modules/sys_file: Likewise.
37888         * modules/sys_ioctl: Likewise.
37889         * modules/sys_select: Likewise.
37890         * modules/sys_socket: Likewise.
37891         * modules/sys_stat: Likewise.
37892         * modules/sys_time: Likewise.
37893         * modules/sys_times: Likewise.
37894         * modules/sys_utsname: Likewise.
37895         * modules/sys_wait: Likewise.
37896         * modules/sysexits: Likewise.
37897         * modules/time: Likewise.
37898         * modules/unistd: Likewise.
37899         * modules/wchar: Likewise.
37900         * modules/wctype: Likewise.
37901
37902 2009-08-22  Jim Meyering  <meyering@redhat.com>
37903
37904         announce-gen: detect write failure
37905         * build-aux/announce-gen: Add Coda at end.
37906         Remove equivalent-but-more-verbose block at top.
37907
37908 2009-08-19  Akim Demaille  <demaille@gostai.com>
37909
37910         bootstrap: --help to stdout.
37911         * bootstrap (usage): Don't send --help to stderr.
37912         Use a here doc instead of a long string.
37913
37914 2009-08-21  Eric Blake  <ebb9@byu.net>
37915
37916         test-popen-safer: split from test-popen
37917         * tests/test-popen.c (main): Move...
37918         * tests/test-popen.h: ...into new file.
37919         * tests/test-popen-safer2.c: New file.
37920         * modules/popen-tests (Files): Add test-popen.h.
37921         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37922         Suggested by Bruno Haible.
37923
37924         test-fcntl-safer: split from test-open
37925         * tests/test-open.c (main): Move...
37926         * tests/test-open.h: ...into new file.
37927         * tests/test-fcntl-safer.c: New file.
37928         * modules/open-tests (Files): Add test-open.h.
37929         * modules/fcntl-safer-tests: New file.
37930         Suggested by Bruno Haible.
37931
37932         test-fopen-safer: split from test-fopen
37933         * tests/test-fopen.c (main): Move...
37934         * tests/test-fopen.h: ...into new file.
37935         * tests/test-fopen-safer.c: New file.
37936         * modules/fopen-tests (Files): Add test-fopen.h.
37937         * modules/fopen-safer-tests: New file.
37938         Suggested by Bruno Haible.
37939
37940 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37941
37942         popen-safer: test O_CLOEXEC at run-time.
37943         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37944
37945 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37946
37947         fcntl: move more flags to the header
37948         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37949         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37950         * lib/fcntl.in.h: Do both things here.
37951
37952 2009-08-21  Jim Meyering  <meyering@redhat.com>
37953
37954         consistently remove $@-t before redirecting to it
37955         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37956         * modules/alloca-opt: Likewise.
37957         * modules/byteswap: Likewise.
37958         * modules/fnmatch: Likewise.
37959         * modules/getopt-posix: Likewise.
37960         * modules/glob: Likewise.
37961         * modules/poll: Likewise.
37962         * modules/posix_spawnp-tests: Likewise.
37963         * modules/sys_socket: Likewise.
37964         * modules/sysexits: Likewise.
37965
37966 2009-08-21  Eric Blake  <ebb9@byu.net>
37967
37968         popen: simplify access to original popen
37969         * lib/popen.c (rpl_popen): No need to worry about popen being a
37970         macro.
37971         Reported by Bruno Haible.
37972
37973 2009-08-20  Eric Blake  <ebb9@byu.net>
37974
37975         build: avoid some compiler warnings
37976         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37977         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37978         type.
37979         (new_exclude_segment, excluded_file_pattern_p)
37980         (excluded_file_name_p): Reduce scope.
37981         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37982         old-style declaration.
37983
37984 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37985
37986         * tests/test-exclude1.sh: Handle Windows EOL.
37987         * tests/test-exclude2.sh: Likewise.
37988         * tests/test-exclude3.sh: Likewise.
37989         * tests/test-exclude4.sh: Likewise.
37990         * tests/test-exclude5.sh: Likewise.
37991         * tests/test-exclude6.sh: Likewise.
37992         * tests/test-exclude7.sh: Likewise.
37993
37994 2009-08-19  Akim Demaille  <demaille@gostai.com>
37995
37996         bootstrap: find sha1sum when named gsha1sum.
37997         * bootstrap (find_tool): New.
37998         ($SHA1SUM): New.
37999         Use it.
38000
38001 2009-08-20  Jim Meyering  <meyering@redhat.com>
38002
38003         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38004         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38005         expression that converts "." in a file name to "\." in the resulting
38006         regexp.  Start with a dummy statement, so that prior shell variable
38007         definitions are expanded portably.  Reported by Simon Josefsson.
38008
38009 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38010
38011         Fix polling for writeability of a screen buffer.
38012         * lib/poll.c: Distinguish input and screen buffers for the
38013         Win32 implementation.
38014         * lib/select.c: Likewise.
38015
38016 2009-08-19  Eric Blake  <ebb9@byu.net>
38017
38018         popen-safer: prevent popen from clobbering std descriptors
38019         * modules/popen-safer: New file.
38020         * lib/popen-safer.c: Likewise.
38021         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38022         * lib/stdio--.h (popen): Provide override.
38023         * lib/stdio-safer.h (popen_safer): Provide declaration.
38024         * tests/test-popen.c (includes): Partially test this.
38025         * modules/popen-safer-tests: New file, for more tests.
38026         * tests/test-popen-safer.c: Likewise.
38027         * MODULES.html.sh (file stream based Input/Output): Mention it.
38028
38029         tests: test some of the *-safer modules
38030         * modules/fopen-safer (Depends-on): Add fopen.
38031         * modules/fcntl-safer (Depends-on): Add fcntl.
38032         * modules/stdlib-safer (Depends-on): Add stdlib.
38033         (configure.ac): Set indicator.
38034         * modules/unistd-safer (configure.ac): Likewise.
38035         * modules/tmpfile-safer (configure.ac): Likewise.
38036         (Depends-on): Add tmpfile.
38037         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38038         active.
38039         * tests/test-fopen.c (includes): Test safer versions when they are
38040         in use.
38041         * tests/test-open.c (includes): Likewise.
38042
38043         popen: fix cygwin 1.5 bug when stdin closed
38044         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38045         * modules/popen: New file.
38046         * modules/popen-tests: Likewise.
38047         * tests/test-popen.c: Likewise.
38048         * m4/popen.m4: Likewise.
38049         * lib/popen.c: Likewise.
38050         * lib/stdio.in.h (popen): New declaration.
38051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38052         * modules/stdio (Makefile.am): Likewise.
38053         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38054
38055 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38056
38057         maint.mk: give full control over update-copyright exclusions
38058         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38059         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38060         (update-copyright): Don't force inclusion of top-level
38061         ChangeLog.  Don't force exclusion of all COPYING files, but make
38062         them the default exclusion instead.
38063
38064 2009-08-16  Bruno Haible  <bruno@clisp.org>
38065
38066         Fix test failures on Solaris 10.
38067         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38068         tests when Solaris iconv() is used.
38069         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38070         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38071         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38072         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38073         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38074
38075 2009-08-16  Bruno Haible  <bruno@clisp.org>
38076
38077         Fix test failures on Solaris 10.
38078         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38079         'tr' program and pass it as first argument.
38080         * tests/test-pipe-filter-gi1.sh: Likewise.
38081         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38082         program as first argument.
38083         * tests/test-pipe-filter-gi1.c (main): Likewise.
38084
38085 2009-08-16  Eric Blake  <ebb9@byu.net>
38086
38087         fpurge: fix previous commits
38088         * modules/fpurge (Makefile.am): Make replacement conditional,
38089         partially reverting 2007-04-29 change; missed in previous
38090         attempt.
38091         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38092         is missing.
38093
38094 2009-08-16  Bruno Haible  <bruno@clisp.org>
38095
38096         Clarify fpurge's effect on the file position.
38097         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38098         * tests/test-fpurge.c (main): Make a second pass for checking the file
38099         position.
38100
38101 2009-08-16  Bruno Haible  <bruno@clisp.org>
38102
38103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38104         declaration of fpurge is missing.
38105         * tests/test-fpurge.c (main): Check that the file has not more contents
38106         than expected. Close the file before removing it.
38107
38108 2009-08-15  Eric Blake  <ebb9@byu.net>
38109
38110         fpurge: don't wrap working cygwin implementation
38111         * lib/fpurge.c (fpurge): Fix comment typo.
38112         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38113         1.7 to avoid replacement.
38114         * tests/test-fpurge.c (main): Enhance test.
38115
38116 2009-08-15  Eric Blake  <ebb9@byu.net>
38117         and Jim Meyering  <meyering@redhat.com>
38118
38119         test-update-copyright: skip if perl is insufficient
38120         * tests/test-update-copyright.sh: Failure to run maintainer tool
38121         should not cause testsuite failure on cygwin 1.5.
38122
38123 2009-08-14  Eric Blake  <ebb9@byu.net>
38124
38125         doc: mention more functions added in cygwin 1.7.0
38126         * doc/posix-headers/limits.texi (limits.h): Update for recent
38127         cygwin additions.
38128         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38129         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38130         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38131         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38132         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38133
38134 2009-08-14  Eric Blake  <ebb9@byu.net>
38135
38136         maint.mk: simplify update-copyright rule
38137         * top/maint.mk (update-copyright-local): Delete, and document how
38138         to do it in cfg.mk instead.
38139         (update-copyright-exclude-regexp): Delete, and document how to do
38140         it in .x-update-copyright instead.
38141         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38142         exclude ChangeLog.
38143
38144 2009-08-14  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38147
38148 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38149
38150         maint.mk: support update-copyright-env
38151         * top/maint.mk (update-copyright-env): Define place-holder.
38152         (update-copyright): Expand $(update-copyright-env) before
38153         invoking update-copyright.
38154
38155 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38156
38157         update-copyright: implement forced reformatting
38158         * build-aux/update-copyright: Implement and document
38159         UPDATE_COPYRIGHT_FORCE.
38160         * tests/test-update-copyright.sh: Test it.
38161
38162 2009-08-14  Eric Blake  <ebb9@byu.net>
38163         and Bruno Haible  <bruno@clisp.org>
38164
38165         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38166         * tests/test-locale.c: Revert previous patch related to NULL.
38167         * tests/test-stdio.c: Likewise.
38168         * tests/test-stdlib.c: Likewise.
38169         * tests/test-string.c: Likewise.
38170         * tests/test-unistd.c: Likewise.
38171         * modules/time-tests (Depends-on): Add verify.
38172         * modules/wchar-tests (Depends-on): Likewise.
38173         * tests/test-time.c: Test for NULL compliance.
38174         * tests/test-wchar.c: Likewise.
38175         * modules/locale (Depends-on): Add stddef.
38176         * modules/stdio (Depends-on): Likewise.
38177         * modules/stdlib (Depends-on): Likewise.
38178         * modules/string (Depends-on): Likewise.
38179         * modules/time (Depends-on): Likewise.
38180         * modules/unistd (Depends-on): Likewise.
38181         * modules/wchar (Depends-on): Likewise.
38182         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38183         * lib/stdlib.in.h (includes): Likewise.
38184         * lib/string.in.h (includes): Likewise.
38185         * lib/time.in.h (includes): Likewise.
38186         * lib/unistd.in.h (includes): Likewise.
38187         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38188         replaced.
38189         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38190         * m4/stddef_h.m4: New file.
38191         * modules/stddef: Likewise.
38192         * lib/stddef.in.h: Likewise.
38193         * modules/stddef-tests: Likewise.
38194         * tests/test-stddef.c: Likewise.
38195         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38196         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38197         * doc/posix-headers/locale.texi (locale.h): Likewise.
38198         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38199         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38200         * doc/posix-headers/string.texi (string.h): Likewise.
38201         * doc/posix-headers/time.texi (time.h): Likewise.
38202         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38203         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38204
38205 2009-08-14  Eric Blake  <ebb9@byu.net>
38206
38207         doc: improve git diff of texinfo files
38208         * .gitattributes: Add rule for *.texi files, with hint on how to
38209         use it.
38210         Copied from m4, and based on a report by Bruno Haible.
38211
38212 2009-08-14  Bruno Haible  <bruno@clisp.org>
38213
38214         Disable multithread support by default on Cygwin 1.5.x for real.
38215         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38216
38217 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38218
38219         update-copyright: much ado about intervals
38220         * build-aux/update-copyright: Implement and document
38221         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38222         of copyright year intervals.
38223         Also, document UPDATE_COPYRIGHT_YEAR.
38224         * tests/test-update-copyright.sh: Test it.
38225
38226         update-copyright: convert 2-digit to 4-digit years
38227         * build-aux/update-copyright: Implement and document.
38228         * tests/test-update-copyright.sh: Update.
38229
38230 2009-08-14  Jim Meyering  <meyering@redhat.com>
38231
38232         test-exclude: avoid coreutils "make check" failure
38233         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38234         just as in test-argmatch.c.
38235
38236 2009-08-13  Eric Blake  <ebb9@byu.net>
38237
38238         test-dup2: fix bad assumption
38239         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38240         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38241
38242         test-version-etc: fix CRLF portability issue
38243         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38244         recognize \r.
38245         * tests/test-argp-version-etc-1.sh: Likewise.
38246
38247         getopt: update client modules
38248         * modules/argp (Depends-on): Use getopt-gnu.
38249         * modules/git-merge-changelog (Depends-on): Likewise.
38250         * modules/long-options (Depends-on): Likewise.
38251         * modules/xstrtol (Depends-on): Likewise.
38252
38253 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38254
38255         * tests/test-version-etc.sh: Don't fail on different
38256         project/version.  Don't fail on CRLF differences.  Rewrite to use
38257         multiple -e instead of multiple sed forks, suggested by Eric Blake
38258         <ebb9@byu.net>.
38259         * tests/test-argp-version-etc-1.sh: Likewise.
38260
38261 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38262
38263         * tests/test-version-etc.sh: Don't fail on different
38264         project/version.
38265
38266 2009-08-12  Bruno Haible  <bruno@clisp.org>
38267
38268         Tests for modules 'getopt-posix', 'getopt-gnu'.
38269         * modules/getopt-posix-tests: New file.
38270         * tests/test-getopt.c: New file.
38271         * tests/test-getopt.h: New file.
38272         * tests/test-getopt_long.h: New file.
38273
38274         New modules 'getopt-posix', 'getopt-gnu'.
38275         * modules/getopt-gnu: New file, renamed from modules/getopt.
38276         * modules/getopt-posix: New file.
38277         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38278         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38279         (gl_GETOPT): Remove macro.
38280         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38281         Disable the test against BSD systems that declare optreset. Test
38282         against mingw bug. Test against lack of support of optional arguments
38283         on many platforms.
38284         * doc/glibc-headers/getopt.texi: Update module name and list of
38285         relevant platforms.
38286         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38287         'getopt-gnu' and more portability problems.
38288         * NEWS: Mention the changes.
38289
38290 2009-08-12  Bruno Haible  <bruno@clisp.org>
38291
38292         Ensure that optarg etc. get declared by <unistd.h>.
38293         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38294         AC_USE_SYSTEM_EXTENSIONS.
38295         * modules/getopt (Depends-on): Add 'extensions'.
38296
38297 2009-08-12  Bruno Haible  <bruno@clisp.org>
38298
38299         Avoid test link errors.
38300         * modules/pipe-filter-ii-tests (Makefile.am): Define
38301         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38302         * modules/pipe-filter-gi-tests (Makefile.am): Define
38303         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38305
38306 2009-08-12  Bruno Haible  <bruno@clisp.org>
38307
38308         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38309         gl_GETOPT_SUBSTITUTE before.
38310         (gl_GETOPT): Use it.
38311         * m4/argp.m4 (gl_ARGP): Update.
38312         Reported by Sergey Poznyakoff.
38313
38314         * m4/getopt.m4: Reorder macros.
38315         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38316         (gl_GETOPT_SUBSTITUTE): Remove macro.
38317
38318 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38319
38320         Minor improvement in gitlog-to-changelog
38321
38322         * build-aux/gitlog-to-changelog: New option `--format' makes
38323         output format string configurable.
38324
38325 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38326
38327         Optimize exclude: use hash tables for non-wildcard patterns.
38328
38329         * lib/exclude.c: Include hash.h and mbuiter.h
38330         (struct exclude_pattern, exclude_segment): New data types.
38331         (struct exclude): Rewrite.
38332         (fnmatch_pattern_has_wildcards): New function.
38333         (new_exclude_segment, free_exclude_segment): New functions.
38334         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38335         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38336         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38337         * modules/exclude: Depend on hash and mbuiter.
38338
38339         * modules/exclude-tests: New file.
38340         * tests/test-exclude.c: New file.
38341         * tests/test-exclude1.sh: New file.
38342         * tests/test-exclude2.sh: New file.
38343         * tests/test-exclude3.sh: New file.
38344         * tests/test-exclude4.sh: New file.
38345         * tests/test-exclude5.sh: New file.
38346         * tests/test-exclude6.sh: New file.
38347         * tests/test-exclude7.sh: New file.
38348
38349 2009-08-12  Bruno Haible  <bruno@clisp.org>
38350
38351         Ensure that getopt() gets declared by <unistd.h>.
38352         * lib/unistd.in.h: Conditionally include getopt.h.
38353         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38354         Set GNULIB_UNISTD_H_GETOPT.
38355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38356         GNULIB_UNISTD_H_GETOPT.
38357         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38358
38359 2009-08-12  Bruno Haible  <bruno@clisp.org>
38360
38361         Clarify logic.
38362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38363         gl_replace_getopt instead of GETOPT_H.
38364
38365 2009-08-12  Bruno Haible  <bruno@clisp.org>
38366
38367         * m4/getopt.m4: Add comments.
38368
38369 2009-08-12  Bruno Haible  <bruno@clisp.org>
38370
38371         Disable multithread support by default on Cygwin 1.5.x.
38372         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38373         set gl_use_threads=no if not specified otherwise.
38374
38375 2009-08-11  Bruno Haible  <bruno@clisp.org>
38376
38377         Avoid compilation error on NetBSD 5.0.
38378         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38379         * tests/test-stdio.c: Likewise.
38380         * tests/test-stdlib.c: Likewise.
38381         * tests/test-string.c: Likewise.
38382         * tests/test-unistd.c: Likewise.
38383         Reported by Greg Troxel <gdt@ir.bbn.com>
38384         at <https://savannah.gnu.org/support/?106973>.
38385
38386 2009-08-11  Bruno Haible  <bruno@clisp.org>
38387
38388         * modules/dup2-tests (Depends-on): Remove close.
38389
38390         Undo 2009-07-19 commit.
38391         * modules/acl-tests (Depends-on): Remove close.
38392         * modules/binary-io-tests (Depends-on): Likewise.
38393         * modules/closein-tests (Depends-on): Likewise.
38394         * modules/flock-tests (Depends-on): Likewise.
38395         * modules/fsync-tests (Depends-on): Likewise.
38396         * modules/lseek-tests (Depends-on): Likewise.
38397         * modules/pipe-tests (Depends-on): Likewise.
38398         * modules/posix_spawn-tests (Depends-on): Likewise.
38399         * modules/posix_spawnp-tests (Depends-on): Likewise.
38400         * modules/stat-time-tests (Depends-on): Likewise.
38401         * modules/yesno-tests (Depends-on): Likewise.
38402
38403 2009-08-10  Bruno Haible  <bruno@clisp.org>
38404
38405         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38406
38407 2009-08-10  Bruno Haible  <bruno@clisp.org>
38408
38409         Fix a gcc warning.
38410         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38411
38412 2009-08-10  Bruno Haible  <bruno@clisp.org>
38413
38414         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38415         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38416         not only the first time.
38417         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38418         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38419         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38420         is 1, not only the the first time.
38421
38422 2009-08-10  Bruno Haible  <bruno@clisp.org>
38423
38424         Make it possible to use module 'gethostname' without module 'close'.
38425         * lib/unistd.in.h (close): Evoke a link error only if
38426         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38428         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38429         * modules/unistd (Makefile.am): Substitute
38430         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38431         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38432         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38433         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38434         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38435         * modules/sys_ioctl (Makefile.am): Substitute
38436         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38437         * modules/socket (configure.ac): On native Windows, set
38438         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38439         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38440         Reported by Sam Steingold <sds@gnu.org>.
38441
38442 2009-08-10  Bruno Haible  <bruno@clisp.org>
38443
38444         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38445         * modules/ioctl (configure.ac): Likewise.
38446
38447 2009-08-10  Bruno Haible  <bruno@clisp.org>
38448
38449         Avoid collision between gnulib wrapper and libintl wrapper.
38450         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38451         already defined in intl/printf.c.
38452         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38453         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38454
38455 2009-08-09  Bruno Haible  <bruno@clisp.org>
38456
38457         Make <sys/select.h> really self-contained, also on Solaris 10.
38458         * lib/sys_select.in.h: Include <string.h>.
38459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38460         Solaris 10 problem.
38461         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38462         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38463         Reported by Jim Meyering.
38464
38465 2009-08-09  Bruno Haible  <bruno@clisp.org>
38466
38467         Avoid warnings from 'aclocal' that are due to a use of macro name
38468         AM_XGETTEXT_OPTION that is not defined in automake.
38469         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38470         automake.
38471         * modules/error (configure.ac): Likewise.
38472         * modules/propername (configure.ac): Likewise.
38473         * modules/vasprintf (configure.ac): Likewise.
38474         * modules/verror (configure.ac): Likewise.
38475         * modules/xprintf (configure.ac): Likewise.
38476         * modules/xvasprintf (configure.ac): Likewise.
38477
38478 2009-08-08  Bruno Haible  <bruno@clisp.org>
38479
38480         Avoid compilation error in C++ mode.
38481         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38482         Reported by Sam Steingold <sds@gnu.org>.
38483
38484 2009-08-08  Bruno Haible  <bruno@clisp.org>
38485
38486         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38487         for the various Unix platforms.
38488         * doc/posix-headers/limits.texi: Update platforms list regarding
38489         HOST_NAME_MAX.
38490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38491
38492 2009-08-07  Jim Meyering  <meyering@redhat.com>
38493
38494         selinux-at: fix typo in a comment
38495         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38496         Spotted by Paolo Bonzini.
38497
38498         selinux-at: remove redundant m4 code, add documentation
38499         * modules/selinux-at (configure.ac): Remove redundant code.
38500         LIB_SELINUX is already set via the dependent module, selinux-h.
38501         (Include): Add quotes around selinux-at.h.
38502         * lib/selinux-at.h: Add documentation.
38503         Reported by Bruno Haible in
38504         http://marc.info/?l=gnulib-bug&m=124958988300749
38505
38506 2009-08-07  Bruno Haible  <bruno@clisp.org>
38507
38508         Avoid link error on MacOS X 10.3 and 10.4.
38509         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38510         on non-ELF systems.
38511         * lib/argp-pv.c (argp_program_version): Likewise.
38512         Reported by Simon Josefsson.
38513
38514 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38515
38516         * tests/test-version-etc.sh: Use $EXEEXT.
38517
38518 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38519
38520         update-copyright: update documentation to point to maint.mk
38521         * build-aux/update-copyright: Here.
38522
38523 2009-08-06  Jim Meyering  <meyering@redhat.com>
38524
38525         maint.mk: support update-copyright-local
38526         * top/maint.mk (update-copyright-local): Define place-holder.
38527         (update-copyright): Depend on $(update-copyright-local).
38528
38529 2009-08-06  Jim Meyering  <meyering@redhat.com>
38530
38531         selinux-at: new module
38532         Initially written for coreutils, this module will soon be
38533         used by findutils, too.
38534         * MODULES.html.sh [Misc]: Add selinux-at.
38535         * lib/selinux-at.h: New file, from coreutils.
38536         * lib/selinux-at.c: Likewise.
38537         * modules/selinux-at: Likewise.
38538         (License): Change from LGPL to GPL, since it depends
38539         on the GPL'd openat module.
38540
38541         doc: update README
38542         * README: Remove references to cogito.
38543         Remove cvs-repo-updating instructions from 2007.
38544         Don't imply that CVS is better if you have limited disk space.
38545
38546 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38547
38548         update-copyright: support C-style comments
38549         * build-aux/update-copyright: Implement and document.
38550         * tests/test-update-copyright.sh: Test.
38551
38552 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38553
38554         update-copyright: support omitted "(C)"
38555         * build-aux/update-copyright: Implement and document.  Also,
38556         allow variable whitespace before "(C)".
38557         * tests/test-update-copyright.sh: Test.
38558
38559 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38560
38561         update-copyright: don't trip on non-FSF copyright statements
38562         * build-aux/update-copyright: Fix so that the first correctly
38563         formatted FSF copyright statement is recognized no matter what
38564         appears before it.  Update documentation.
38565         * tests/test-update-copyright.sh: Test that.
38566
38567 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38568
38569         update-copyright: clean up code a little
38570         * build-aux/update-copyright: Append "_re" to the name of any
38571         variable holding a regular expression.
38572         Replace "old" and "new" with "stmt" in variable names.
38573         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38574         handled correctly.
38575         Format code more consistently.
38576
38577 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38578
38579         update-copyright-tests: improve portability
38580         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38581         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38582
38583 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38584
38585         update-copyright: support @copyright{} and &copy;
38586         * build-aux/update-copyright: Implement and document.
38587         * tests/test-update-copyright.sh: Test.
38588
38589 2009-08-04  Jim Meyering  <meyering@redhat.com>
38590
38591         update-copyright-tests: correctly test EOL=\r\n handling
38592         * tests/test-update-copyright.sh: Put \r at the end of some lines
38593         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38594
38595         maint.mk: make update-copyright exclusion list more configurable
38596         * top/maint.mk (update-copyright): Default to excluding COPYING,
38597         but allow an override, in case someone does want to update that file.
38598
38599         maint.mk: don't update copyright date in COPYING
38600         * top/maint.mk (update-copyright): Exclude COPYING.
38601
38602         maint.mk: add a copyright-updating rule
38603         * top/maint.mk (update-copyright): New rule.
38604         Derived from coreutils/Makefile.am.
38605
38606         update-copyright: rename some variables
38607         * build-aux/update-copyright: Rename a few variables for clarity.
38608         Tweak syntax.  List Joel E. Denny as coauthor.
38609
38610 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38611
38612         update-copyright: fix bug for 2-digit last year and add tests
38613         * build-aux/update-copyright: Fix bug.
38614         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38615         specified.
38616         * modules/update-copyright-tests: New
38617         * tests/test-update-copyright.sh: New.
38618
38619 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38620
38621         update-copyright: handle leading tabs in line prefix
38622         * build-aux/update-copyright: Count leading tabs as 8 spaces
38623         when computing margin.  This helps with the formatting of
38624         ChangeLogs, for example.
38625         Fix documentation a little.
38626
38627 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38628
38629         update-copyright: support EOL=\r\n
38630         * build-aux/update-copyright: Implement that.
38631
38632 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38633
38634         update-copyright: automatically format copyright statements
38635         * build-aux/update-copyright: Implement that.
38636         Also, be a little more predictable and safer by always failing
38637         when the full copyright format is not perfectly recognized as an
38638         unbroken whole.  Discussed at
38639         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38640         Rewrite documentation.
38641
38642 2009-08-03  Bruno Haible  <bruno@clisp.org>
38643
38644         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38645
38646 2009-08-02  Bruno Haible  <bruno@clisp.org>
38647
38648         Tests for module 'uname'.
38649         * modules/uname-tests: New file.
38650         * tests/test-uname.c: New file.
38651
38652         New module 'uname'.
38653         * lib/uname.c: New file.
38654         * m4/uname.m4: New file.
38655         * modules/uname: New file.
38656         * doc/posix-functions/uname.texi: Mention the new module.
38657
38658 2009-08-02  Bruno Haible  <bruno@clisp.org>
38659
38660         Tests for module 'sys_utsname'.
38661         * modules/sys_utsname-tests: New file.
38662         * tests/test-sys_utsname.c: New file.
38663
38664         New module 'sys_utsname'.
38665         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38666         * m4/sys_utsname_h.m4: New file.
38667         * modules/sys_utsname: New file.
38668         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38669
38670 2009-08-02  Bruno Haible  <bruno@clisp.org>
38671
38672         Implicitly initialize the sockets library.
38673         * lib/gethostname.c: Include sockets.h.
38674         (rpl_gethostname): Invoke gl_sockets_startup.
38675         * lib/socket.c: Include sockets.h.
38676         (rpl_socket): Invoke gl_sockets_startup.
38677         * modules/gethostname (Depends-on): Add sockets.
38678         * modules/socket (Depends-on): Likewise.
38679         * tests/test-poll.c: Don't include sockets.h.
38680         (main): Don't invoke gl_sockets_startup.
38681         * tests/test-select.c: Don't include sockets.h.
38682         (main): Don't invoke gl_sockets_startup.
38683
38684 2009-08-02  Bruno Haible  <bruno@clisp.org>
38685
38686         Allow multiple calls to gl_sockets_startup.
38687         * lib/sockets.c (initialized_sockets_version): New variable.
38688         (gl_sockets_startup): Do nothing if already called for this or a higher
38689         version.
38690         (gl_sockets_cleanup): Reset initialized_sockets_version.
38691
38692 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38693
38694         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38695         different project/version.
38696
38697 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38698             Bruno Haible  <bruno@clisp.org>
38699
38700         Tests for module 'pipe-filter-gi'.
38701         * modules/pipe-filter-gi-tests: New file.
38702         * tests/test-pipe-filter-gi1.sh: New file.
38703         * tests/test-pipe-filter-gi1.c: New file.
38704         * tests/test-pipe-filter-gi2.sh: New file.
38705         * tests/test-pipe-filter-gi2-main.c: New file.
38706         * tests/test-pipe-filter-gi2-child.c: New file.
38707
38708         New module 'pipe-filter-gi'.
38709         * lib/pipe-filter-gi.c: New file.
38710         * modules/pipe-filter-gi: New file.
38711
38712 2009-08-02  Bruno Haible  <bruno@clisp.org>
38713             Paolo Bonzini  <bonzini@gnu.org>
38714
38715         Tests for module 'pipe-filter-ii'.
38716         * modules/pipe-filter-ii-tests: New file.
38717         * tests/test-pipe-filter-ii1.sh: New file.
38718         * tests/test-pipe-filter-ii1.c: New file.
38719         * tests/test-pipe-filter-ii2.sh: New file.
38720         * tests/test-pipe-filter-ii2-main.c: New file.
38721         * tests/test-pipe-filter-ii2-child.c: New file.
38722
38723         New module 'pipe-filter-ii'.
38724         * lib/pipe-filter.h: New file.
38725         * lib/pipe-filter-ii.c: New file.
38726         * lib/pipe-filter-aux.h: New file.
38727         * modules/pipe-filter-ii: New file.
38728
38729 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38730
38731         * lib/gc-libgcrypt.c: Change copyright to FSF.
38732         * lib/gc-gnulib.c: Likewise.
38733
38734 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38735
38736         * lib/gethostname.c: Include limits.h.
38737
38738 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38739             Bruno Haible  <bruno@clisp.org>
38740
38741         Ensure HOST_NAME_MAX as part of the gethostname module.
38742         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38743         define also HOST_NAME_MAX.
38744         * tests/test-gethostname.c: Include <limits.h>.
38745         (main): Check also HOST_NAME_MAX.
38746         * doc/posix-headers/limits.texi: Document the mingw problem.
38747
38748 2009-08-02  Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38751         Add comments.
38752
38753 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38754
38755         * lib/gethostname.c: Add Windows wrapper.
38756         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38757         * modules/gethostname: Depend on sys_socket & errno, for also
38758         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38759         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38760
38761 2009-07-31  Jim Meyering  <meyering@redhat.com>
38762
38763         getloadavg: fix symbol name in comment
38764         * lib/getloadavg.c: Correct a typo I introduced when adding
38765         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38766         Matt Kraai spotted the problem.
38767
38768 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38769
38770         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38771         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38772         code also if ! defined N_NAME_POINTER.
38773         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38774         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38775         but the n_name member is a 12-byte array.
38776
38777 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38778
38779         update-copyright: generalize comment handling
38780         * build-aux/update-copyright: Handle copyright statements
38781         within more comment styles.
38782         Document usage.
38783         Report any file with an external copyright holder or parse failure.
38784
38785 2009-07-29  Jim Meyering  <meyering@redhat.com>
38786
38787         mktime: correct setting of REPLACE_MKTIME
38788         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38789
38790         update-copyright: new module
38791         * modules/update-copyright: New file.
38792         * build-aux/update-copyright: New file.
38793         * MODULES.html.sh (maint+release support): Add update-copyright.
38794
38795 2009-07-27  Bruno Haible  <bruno@clisp.org>
38796
38797         Fix compilation error when <ctime> is used and mktime is replaced.
38798         * lib/time.in.h (mktime): New declaration.
38799         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38800         REPLACE_MKTIME instead of defining mktime in config.h.
38801         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38802         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38803         Reported by Ross McFarland <rwmcfa1@neces.com>.
38804
38805 2009-07-27  Bruno Haible  <bruno@clisp.org>
38806
38807         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38808         Reported by Matt Kraai <mkraai@beckman.com>.
38809
38810 2009-07-25  Jim Meyering  <meyering@redhat.com>
38811
38812         maint.mk: avoid warnings about missing files
38813         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38814         diagnostic when .prev-version does not exist.
38815         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38816         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38817         nonexistent cfg.mk.
38818         Suggestions from Simon Josefsson.
38819
38820 2009-07-25  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38823         defined as macros. Needed on QNX 6.4.1.
38824         Reported by Matt Kraai <mkraai@beckman.com>.
38825
38826 2009-07-23  Jim Meyering  <meyering@redhat.com>
38827
38828         maint.mk: invoke "make dist" with a working value of XZ_OPT
38829         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38830
38831 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38832
38833         Make fseeko.c compile on QNX.
38834         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38835
38836 2009-07-22  Peter Simons  <simons@cryp.to>
38837
38838         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38839         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38840         * lib/md4.h: Likewise.
38841         * lib/md5.h: Likewise.
38842         * lib/sha1.h: Likewise.
38843         * lib/sha256.h: Likewise.
38844         * lib/sha512.h: Likewise.
38845
38846         tests-sha1: don't assign literal string to 'char *' variable
38847         * tests/test-sha1.c (main): Declare locals with "const" to match
38848         attributes of the right hand side.
38849
38850 2009-07-21  Eric Blake  <ebb9@byu.net>
38851
38852         dup2: fix more mingw problems
38853         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38854         fd to itself.
38855         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38856         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38857         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38858         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38859         care of mingw bugs.
38860
38861 2009-07-21  Jim Meyering  <meyering@redhat.com>
38862
38863         vc-list-files: avoid failure when /bin/sh is dash
38864         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38865         On some Debian based systems, /bin/sh is a symlink to dash, and running
38866         this command would omit the "/" following each 'tests' prefix:
38867           dash -x build-aux/vc-list-files -C . tests
38868         That is because bash and dash work differently:
38869           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38870           bash ok
38871           dash odd
38872
38873 2009-07-21  Eric Blake  <ebb9@byu.net>
38874
38875         dup2-tests: test previous patch
38876         * modules/dup2-tests: New file.
38877         * tests/test-dup2.c: Likewise.
38878         * tests/test-open.c (main): Avoid unspecified behavior.
38879         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38880         test.
38881
38882         dup2: work around mingw and cygwin 1.5 bug
38883         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38885         * modules/unistd (Makefile.am): Substitute it.
38886         * lib/unistd.in.h (dup2): Declare the replacement.
38887         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38888         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38889         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38890         * modules/execute (Depends-on): Add dup2.
38891         * modules/fseterr (Depends-on): Likewise.
38892         * modules/pipe (Depends-on): Likewise.
38893         * modules/posix_spawn-internal (Depends-on): Likewise.
38894
38895 2009-07-21  Bruno Haible  <bruno@clisp.org>
38896
38897         * modules/.gitattributes: New file.
38898
38899 2009-07-20  Bruno Haible  <bruno@clisp.org>
38900
38901         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38902         (main): Use it.
38903
38904 2009-07-20  Eric Blake  <ebb9@byu.net>
38905
38906         test-pipe: make a bit more robust.
38907         * tests/test-pipe.c (myerr): Allow error messages regardless of
38908         what we do to stderr.
38909         (test_pipe): Rearrange to avoid deadlock.
38910         (child_main): Try a larger read, to ensure we avoided deadlock.
38911         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38912         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38913         if misused.
38914
38915 2009-07-19  Jim Meyering  <meyering@redhat.com>
38916
38917         fts: avoid false-positive cycle-detection
38918         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38919         for each new command line argument.
38920
38921 2009-07-19  Bruno Haible  <bruno@clisp.org>
38922
38923         Fix build error on mingw with the modules sys_select and unistd.
38924         * modules/acl-tests (Depends-on): Add close.
38925         * modules/binary-io-tests (Depends-on): Likewise.
38926         * modules/closein-tests (Depends-on): Likewise.
38927         * modules/flock-tests (Depends-on): Likewise.
38928         * modules/fsync-tests (Depends-on): Likewise.
38929         * modules/lseek-tests (Depends-on): Likewise.
38930         * modules/pipe-tests (Depends-on): Likewise.
38931         * modules/posix_spawn-tests (Depends-on): Likewise.
38932         * modules/posix_spawnp-tests (Depends-on): Likewise.
38933         * modules/stat-time-tests (Depends-on): Likewise.
38934         * modules/yesno-tests (Depends-on): Likewise.
38935
38936 2009-07-19  Bruno Haible  <bruno@clisp.org>
38937
38938         Unify conditionals.
38939         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38940         macros, not at the compiler macros.
38941         * lib/pipe.c: Likewise.
38942         * lib/execute.c: Likewise.
38943         * lib/spawni.c: Likewise.
38944
38945 2009-07-19  Bruno Haible  <bruno@clisp.org>
38946
38947         Fix handling of closed stdin/stdout/stderr on mingw.
38948         * lib/w32spawn.h: Include unistd.h.
38949         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38950         file descriptor with O_NOINHERIT flag.
38951         (fd_safer_noinherit): New function, based on fd-safer.c.
38952         (dup_safer_noinherit): New function, based on dup-safer.c.
38953         (undup_safer_noinherit): New function.
38954         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38955         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38956         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38957         instead of fd_safer.
38958         * tests/test-pipe.c: Include <windows.h>.
38959         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38960         result.
38961
38962         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38963         from main.
38964         (test_pipe): Pass an extra argument for disambiguation.
38965         (main): Invoke parent_main or child_main.
38966
38967         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38968         consistently.
38969
38970 2009-07-18  Eric Blake  <ebb9@byu.net>
38971
38972         test-pipe: fix mingw build
38973         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38974
38975 2009-07-18  Bruno Haible  <bruno@clisp.org>
38976
38977         * modules/pipe-tests (Makefile.am): Fix typo.
38978
38979 2009-07-18  Eric Blake  <ebb9@byu.net>
38980
38981         error: fix mingw build
38982         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38983         Reported by Bruno Haible.
38984
38985         error: avoid undefined use of stdout
38986         * lib/error.c (error, error_at_line): Check that fd 1 is open
38987         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38988         is handling faults and the close_stdout module wants to report the
38989         detection of closed stdout as an error.
38990
38991 2009-07-17  Eric Blake  <ebb9@byu.net>
38992
38993         pipe: be robust in face of closed fds
38994         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38995         should cause child to misbehave.
38996         * modules/pipe-tests: New module.
38997         * tests/test-pipe.c: New file.
38998         * tests/test-pipe.sh: New file.
38999         Reported by Akim Demaille.
39000
39001 2009-07-14  Bruno Haible  <bruno@clisp.org>
39002
39003         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39004         Reported by anonymous kc.
39005
39006 2009-07-07  Jim Meyering  <meyering@redhat.com>
39007
39008         maint.mk: don't look for translatable strings in *.m4 or *.mk
39009         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39010         when searching for translatable strings.
39011
39012 2009-07-05  Jim Meyering  <meyering@redhat.com>
39013
39014         remove superfluous parentheses in STREQ definition
39015         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39016         * lib/getugroups.c (STREQ): Likewise.
39017         * lib/fnmatch.c (STREQ): Likewise.
39018         Spotted by Bruno Haible.
39019
39020 2009-07-04  Jim Meyering  <meyering@redhat.com>
39021
39022         argv-iter: new module
39023         * MODULES.html.sh: Add argv-iter.
39024         * lib/argv-iter.c, lib/argv-iter.h: New files.
39025         * modules/argv-iter: New file.
39026         * modules/argv-iter-tests: New file.
39027         * tests/test-argv-iter.c: Test it.
39028
39029 2009-07-04  Bruno Haible  <bruno@clisp.org>
39030
39031         Fix assertion.
39032         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39033         contains more exact copies of a given entry than file2, leave the extra
39034         copies unpaired rather than aborting.
39035         Reported by Eric Blake.
39036
39037 2009-07-02  Bruno Haible  <bruno@clisp.org>
39038
39039         Speedup git-merge-changelog for git cherry-pick.
39040         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39041         (entries_mapping_get): New function, extracted from compute_mapping.
39042         (entries_mapping_reverse_get): New function.
39043         (compute_mapping): Add a 'full' argument. Return the result in a
39044         'struct entries_mapping'.
39045         (main): Update. Access the mappings through entries_mapping_get.
39046         Reported by Eric Blake.
39047
39048 2009-07-02  Bruno Haible  <bruno@clisp.org>
39049
39050         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39051         best_i.
39052
39053 2009-07-02  Bruno Haible  <bruno@clisp.org>
39054
39055         Speed up approximate search for matching ChangeLog entries.
39056         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39057         argument. Call fstrcmp_bounded instead of fstrcmp.
39058         (compute_mapping, try_split_merged_entry, main): Update callers.
39059
39060 2009-07-02  Bruno Haible  <bruno@clisp.org>
39061
39062         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39063
39064 2009-06-30  Bruno Haible  <bruno@clisp.org>
39065
39066         Reduce the number of uc_is_cased calls.
39067         * lib/unicase.h (casing_suffix_context_t): Add
39068         'first_char_except_ignorable' field.
39069         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39070         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39071         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39072         Update initializer.
39073         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39074         case-ignorable characters.
39075         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39076         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39077         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39078         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39079         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39080
39081 2009-06-30  Bruno Haible  <bruno@clisp.org>
39082
39083         Tests for module 'unicase/ignorable'.
39084         * modules/unicase/ignorable-tests: New file.
39085         * tests/unicase/test-ignorable.c: New file, generated by
39086         gen-uni-tables.
39087
39088         Tests for module 'unicase/cased'.
39089         * modules/unicase/cased-tests: New file.
39090         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39091         * tests/unicase/test-predicate-part1.h: New file, derived from
39092         tests/unictype/test-predicate-part1.h.
39093         * tests/unicase/test-predicate-part2.h: New file, same as
39094         tests/unictype/test-predicate-part2.h.
39095
39096         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39097         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39098         (output_casing_properties): New function.
39099         (main): Call it.
39100         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39101         * lib/unicase/cased.c: Include unictype/bitmap.h.
39102         (uc_is_cased): Define through a bitmap lookup.
39103         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39104         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39105         (uc_is_case_ignorable): Define through a bitmap lookup.
39106         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39107         lib/unictype/bitmap.h.
39108         (Depends-on): Add inline. Clean up.
39109         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39110         lib/unictype/bitmap.h.
39111         (Depends-on): Add inline. Clean up.
39112         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39113         recognition.
39114         * tests/unicase/test-u16-tolower.c (main): Likewise.
39115         * tests/unicase/test-u32-tolower.c (main): Likewise.
39116
39117 2009-06-30  Bruno Haible  <bruno@clisp.org>
39118
39119         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39120         * lib/unicase/u16-casemap.c: Likewise.
39121         * lib/unicase/u32-casemap.c: Likewise.
39122
39123 2009-06-29  Bruno Haible  <bruno@clisp.org>
39124
39125         Define u32_casefold as a wrapper around u32_ct_casefold.
39126         * lib/unicase/u32-casefold.c: Update.
39127         * modules/unicase/u32-casefold (Depends-on): Add
39128         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39129         unicase/empty-suffix-context. Clean up.
39130
39131         Define u16_casefold as a wrapper around u16_ct_casefold.
39132         * lib/unicase/u16-casefold.c: Update.
39133         * modules/unicase/u16-casefold (Depends-on): Add
39134         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39135         unicase/empty-suffix-context. Clean up.
39136
39137         Define u8_casefold as a wrapper around u8_ct_casefold.
39138         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39139         * lib/unicase/u8-casefold.c: Update.
39140         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39141         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39142
39143         Define u32_totitle as a wrapper around u32_ct_totitle.
39144         * lib/unicase/u32-totitle.c: Update.
39145         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39146         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39147
39148         Define u16_totitle as a wrapper around u16_ct_totitle.
39149         * lib/unicase/u16-totitle.c: Update.
39150         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39151         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39152
39153         Define u8_totitle as a wrapper around u8_ct_totitle.
39154         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39155         functions.
39156         (FUNC): Delegate to U_CT_TOTITLE.
39157         * lib/unicase/u8-totitle.c: Update.
39158         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39159         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39160
39161         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39162         invocation.
39163         * modules/unicase/u32-tolower (Depends-on): Add
39164         unicase/empty-prefix-context, unicase/empty-suffix-context.
39165
39166         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39167         invocation.
39168         * modules/unicase/u16-tolower (Depends-on): Add
39169         unicase/empty-prefix-context, unicase/empty-suffix-context.
39170
39171         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39172         * modules/unicase/u8-tolower (Depends-on): Add
39173         unicase/empty-prefix-context, unicase/empty-suffix-context.
39174
39175         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39176         invocation.
39177         * modules/unicase/u32-toupper (Depends-on): Add
39178         unicase/empty-prefix-context, unicase/empty-suffix-context.
39179
39180         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39181         invocation.
39182         * modules/unicase/u16-toupper (Depends-on): Add
39183         unicase/empty-prefix-context, unicase/empty-suffix-context.
39184
39185         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39186         * modules/unicase/u8-toupper (Depends-on): Add
39187         unicase/empty-prefix-context, unicase/empty-suffix-context.
39188
39189         New module 'unicase/u32-ct-casefold'.
39190         * lib/unicase/u32-ct-casefold.c: New file.
39191         * modules/unicase/u32-ct-casefold: New file.
39192
39193         New module 'unicase/u16-ct-casefold'.
39194         * lib/unicase/u16-ct-casefold.c: New file.
39195         * modules/unicase/u16-ct-casefold: New file.
39196
39197         New module 'unicase/u8-ct-casefold'.
39198         * lib/unicase/u8-ct-casefold.c: New file.
39199         * lib/unicase/u-ct-casefold.h: New file, derived from
39200         lib/unicase/u-casefold.h.
39201         * modules/unicase/u8-ct-casefold: New file.
39202
39203         New module 'unicase/u32-ct-totitle'.
39204         * lib/unicase/u32-ct-totitle.c: New file.
39205         * modules/unicase/u32-ct-totitle: New file.
39206
39207         New module 'unicase/u16-ct-totitle'.
39208         * lib/unicase/u16-ct-totitle.c: New file.
39209         * modules/unicase/u16-ct-totitle: New file.
39210
39211         New module 'unicase/u8-ct-totitle'.
39212         * lib/unicase/u8-ct-totitle.c: New file.
39213         * lib/unicase/u-ct-totitle.h: New file, derived from
39214         lib/unicase/u-totitle.h.
39215         * modules/unicase/u8-ct-totitle: New file.
39216
39217         New module 'unicase/u32-ct-tolower'.
39218         * lib/unicase/u32-ct-tolower.c: New file.
39219         * modules/unicase/u32-ct-tolower: New file.
39220
39221         New module 'unicase/u16-ct-tolower'.
39222         * lib/unicase/u16-ct-tolower.c: New file.
39223         * modules/unicase/u16-ct-tolower: New file.
39224
39225         New module 'unicase/u8-ct-tolower'.
39226         * lib/unicase/u8-ct-tolower.c: New file.
39227         * modules/unicase/u8-ct-tolower: New file.
39228
39229         New module 'unicase/u32-ct-toupper'.
39230         * lib/unicase/u32-ct-toupper.c: New file.
39231         * modules/unicase/u32-ct-toupper: New file.
39232
39233         New module 'unicase/u16-ct-toupper'.
39234         * lib/unicase/u16-ct-toupper.c: New file.
39235         * modules/unicase/u16-ct-toupper: New file.
39236
39237         New module 'unicase/u8-ct-toupper'.
39238         * lib/unicase/u8-ct-toupper.c: New file.
39239         * modules/unicase/u8-ct-toupper: New file.
39240
39241         Add context arguments to u*_casemap functions.
39242         * lib/unicase/unicasemap.h: Include unicase.h.
39243         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39244         suffix_context arguments.
39245         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39246         functions.
39247         (FUNC): Add prefix_context and suffix_context arguments. Use
39248         uc_is_cased and uc_is_case_ignorable.
39249         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39250         * lib/unicase/u16-casemap.c: Likewise.
39251         * lib/unicase/u32-casemap.c: Likewise.
39252         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39253         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39254         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39255         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39256         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39257         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39258
39259         New module 'unicase/u32-suffix-context'.
39260         * lib/unicase/u32-suffix-context.c: New file.
39261         * modules/unicase/u32-suffix-context: New file.
39262
39263         New module 'unicase/u16-suffix-context'.
39264         * lib/unicase/u16-suffix-context.c: New file.
39265         * modules/unicase/u16-suffix-context: New file.
39266
39267         New module 'unicase/u8-suffix-context'.
39268         * lib/unicase/u8-suffix-context.c: New file.
39269         * lib/unicase/u-suffix-context.h: New file.
39270         * modules/unicase/u8-suffix-context: New file.
39271
39272         New module 'unicase/empty-suffix-context'.
39273         * lib/unicase/empty-suffix-context.c: New file.
39274         * modules/unicase/empty-suffix-context: New file.
39275
39276         New module 'unicase/u32-prefix-context'.
39277         * lib/unicase/u32-prefix-context.c: New file.
39278         * modules/unicase/u32-prefix-context: New file.
39279
39280         New module 'unicase/u16-prefix-context'.
39281         * lib/unicase/u16-prefix-context.c: New file.
39282         * modules/unicase/u16-prefix-context: New file.
39283
39284         New module 'unicase/u8-prefix-context'.
39285         * lib/unicase/u8-prefix-context.c: New file.
39286         * lib/unicase/u-prefix-context.h: New file.
39287         * lib/unicase/context.h: New file.
39288         * modules/unicase/u8-prefix-context: New file.
39289
39290         New module 'unicase/empty-prefix-context'.
39291         * lib/unicase/empty-prefix-context.c: New file.
39292         * modules/unicase/empty-prefix-context: New file.
39293
39294         New module 'unicase/ignorable'.
39295         * lib/unicase/ignorable.c: New file.
39296         * modules/unicase/ignorable: New file.
39297
39298         New module 'unicase/cased'.
39299         * lib/unicase/caseprop.h: New file.
39300         * lib/unicase/cased.c: New file.
39301         * modules/unicase/cased: New file.
39302
39303         New functions for case mapping of substrings.
39304         * lib/unicase.h (casing_prefix_context_t): New type.
39305         (unicase_empty_prefix_context): New variable.
39306         (u8_casing_prefix_context, u16_casing_prefix_context,
39307         u32_casing_prefix_context, u8_casing_prefixes_context,
39308         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39309         declarations.
39310         (casing_suffix_context_t): New type.
39311         (unicase_empty_suffix_context): New variable.
39312         (u8_casing_suffix_context, u16_casing_suffix_context,
39313         u32_casing_suffix_context, u8_casing_suffixes_context,
39314         u16_casing_suffixes_context, u32_casing_suffixes_context,
39315         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39316         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39317         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39318         declarations.
39319
39320 2009-06-28  Jim Meyering  <meyering@redhat.com>
39321
39322         boostrap: indent only with spaces
39323         * build-aux/bootstrap: Indent only with spaces, never TABs.
39324
39325         bootstrap: split long lines
39326         * build-aux/bootstrap: Keep line length < 80.
39327
39328         bootstrap: sync from coreutils
39329         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39330         just as autoreconf does.  Verify a list of prerequisite
39331         package-name,version-number pairs if defined in bootstrap.conf.
39332         Refer to README-prereq, if prerequisites are not satisfied.
39333
39334 2009-06-27  Eric Blake  <ebb9@byu.net>
39335
39336         tests: add test for bogus NULL definition
39337         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39338         * tests/test-stdlib.c: Likewise.
39339         * tests/test-string.c: Likewise.
39340         * tests/test-locale.c: Likewise.
39341         * tests/test-unistd.c: Likewise.
39342         * modules/stdio-tests (Depends-on): Add verify.
39343         * modules/stdlib-tests (Depends-on): Likewise.
39344         * modules/string-tests (Depends-on): Likewise.
39345         * modules/locale-tests (Depends-on): Likewise.
39346         * modules/unistd-tests (Depends-on): Likewise.
39347
39348 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39349
39350         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39351         self-explaining comment.
39352         * m4/selinux-selinux-h: Update serial.
39353         (gl_LIBSELINUX): New macro, adding a warning for missing development
39354         packages to code extracted from...
39355         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39356         Add warning for missing development packages here, too.
39357
39358 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39359
39360         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39361
39362 2009-06-25  Eric Blake  <ebb9@byu.net>
39363
39364         version-etc: fix regression
39365         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39366         gcc.
39367         (version_etc): Use it, to catch bugs with trailing NULL.
39368         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39369         (version_etc_va): Fix logic bug.
39370         * modules/version-etc-tests: Add test.
39371         * tests/test-version-etc.c: New file.
39372         * tests/test-version-etc.sh: Likewise.
39373
39374 2009-06-25  Sam Steingold  <sds@gnu.org>
39375
39376         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39377         mbtowc declaration.
39378
39379 2009-06-25  Eric Blake  <ebb9@byu.net>
39380
39381         fpurge: migrate into <stdio.h>
39382         * lib/fpurge.h: Delete...
39383         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39384         * lib/fpurge.c (fpurge): Change declaring header.
39385         * modules/fpurge (Files): Drop deleted file.
39386         (Depends-on): Add stdio.
39387         (configure.ac): Set witness.
39388         * modules/stdio (Makefile.am): Support fpurge macros.
39389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39390         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39391         * lib/fflush.c: Update client.
39392         * tests/test-fpurge.c: Likewise.
39393         * NEWS: Mention the change.
39394
39395 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39396
39397         * lib/argp-version-etc.c (program_authors): Add const
39398         qualifier.
39399         * lib/version-etc.c: Fix typos in the comments.
39400         * modules/argp-version-etc: Depends on version-etc.
39401
39402 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39403
39404         argp-version-etc: new module.
39405
39406         * lib/argp-version-etc.c: New file.
39407         * lib/argp-version-etc.h: New file.
39408         * modules/argp-version-etc: New file.
39409         * modules/argp-version-etc-tests: New file.
39410         * tests/test-argp-version-etc.c: New test.
39411         * tests/test-argp-version-etc-1.sh: New test.
39412
39413 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39414
39415         Provide additional interfaces and documentation for version-etc
39416         module.
39417
39418         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39419         interfaces.
39420         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39421         prototypes.
39422
39423 2009-06-24  Bruno Haible  <bruno@clisp.org>
39424
39425         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39426         HAVE_LIB${NAME} macro.
39427         Reported by Sam Steingold <sds@gnu.org>.
39428
39429 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39430
39431         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39432         needed.
39433
39434 2009-06-21  Bruno Haible  <bruno@clisp.org>
39435
39436         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39437         work.
39438         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39439         together with LIB${NAME}, LTLIB${NAME}.
39440         Reported by Sam Steingold <sds@gnu.org>.
39441
39442 2009-06-20  Jim Meyering  <meyering@redhat.com>
39443
39444         tests: make sc_require_test_exit_idiom more generic
39445         * top/maint.mk (Exit_witness_file): New overridable variable.
39446         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39447         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39448
39449 2009-06-19  Jim Meyering  <meyering@redhat.com>
39450
39451         hash: reverse order of src/dst parameters in an internal interface
39452         * lib/hash.c (transfer_entries): Reverse order of parameters to
39453         put DST before SRC.  Adjust callers.
39454
39455         tests: test-hash: avoid wholesale duplication
39456         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39457         Instead, use a loop and add a single conditional.
39458
39459         tests: test-hash: allow seed selection via a command line argument
39460         * tests/test-hash.c (get_seed): New function.
39461         (main): Use it.
39462
39463 2009-06-19  Eric Blake  <ebb9@byu.net>
39464
39465         hash: avoid memory leak on allocation failure
39466         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39467         failure.  Factor repeated algorithm...
39468         (transfer_entries): ...into new helper routine.
39469         (hash_delete): React to hash_rehash return value.
39470
39471         hash: reduce memory pressure in hash_rehash no-op case
39472         * lib/hash.c (next_prime): Avoid overflow.
39473         (hash_initialize): Factor bucket size computation...
39474         (compute_bucket_size): ...into new helper function.
39475         (hash_rehash): Use new function and open coding to reduce memory
39476         pressure, and avoid a memory leak in USE_OBSTACK code.
39477         Reported by Jim Meyering.
39478
39479 2009-06-18  Eric Blake  <ebb9@byu.net>
39480
39481         hash: make rotation more obvious
39482         * modules/hash (Depends-on): Add bitrotate and stdint.
39483         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39484         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39485         (SIZE_MAX): Rely on headers for definition.
39486         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39487         (raw_hasher): Use rotr_sz.
39488         Suggested by Jim Meyering.
39489
39490         hash: fix memory leak in last patch
39491         * lib/hash.c (hash_rehash): Avoid memory leak.
39492
39493         hash: avoid no-op rehashing
39494         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39495
39496         hash: provide default callback functions
39497         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39498         (hash_initialize): Use them as defaults.
39499         * tests/test-hash.c (main): Test this.
39500
39501         hash: minor optimization
39502         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39503         when possible.
39504         (hash_initialize): Document this promise.
39505         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39506         * tests/test-hash.c (hash_compare_strings): Test this.
39507
39508 2009-06-18  Bruno Haible  <bruno@clisp.org>
39509
39510         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39511         going to be replaced anyway.
39512
39513 2009-06-18  Bruno Haible  <bruno@clisp.org>
39514
39515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39516         in one place.
39517         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39518         be replaced anyway.
39519
39520 2009-06-18  Eric Blake  <ebb9@byu.net>
39521
39522         hash: check for resize before insertion
39523         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39524         threshold before insertion, so that a pathological hash_rehash
39525         that fills every bucket can still trigger another rehash.
39526
39527 2009-06-18  Jim Meyering  <meyering@redhat.com>
39528
39529         hash-tests: add a loop around the small tests
39530         * tests/test-hash.c (main): Repeat small tests with selected
39531         small initial table sizes.
39532
39533 2009-06-17  Eric Blake  <ebb9@byu.net>
39534
39535         hash: minor cleanups
39536         * lib/hash.h (hash_entry): Make opaque, by moving...
39537         * lib/hash.c (hash_entry): ...here.
39538         (hash_insert): Clarify restrictions on what can be inserted.
39539         (hash_get_next): Clarify when it is safe to remove an element
39540         during traversal.
39541         (check_tuning): Skip verification when tuning is known safe.
39542         (hash_initialize): Clarify restrictions on tuning.
39543
39544 2009-06-17  Jim Meyering  <jim@meyering.net>
39545         and Eric Blake  <ebb9@byu.net>
39546
39547         hash-tests: new module
39548         * modules/hash-tests: New file.
39549         * tests/test-hash.c: New file.
39550
39551 2009-06-17  Eric Blake  <ebb9@byu.net>
39552
39553         strstr-simple: document new module
39554         * MODULES.html.sh: Document new module.
39555
39556         strstr, strcasestr: replace on platforms with broken memchr
39557         * modules/strstr: Split into...
39558         * modules/strstr-simple: ...new module that does not care about
39559         performance, but does care about glibc bug.
39560         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39561         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39562         if platform memchr is broken, per Debian bug 521737.
39563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39564         memchr.
39565         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39566         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39567         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39568         * modules/mountlist (Depends-on): Add strstr-simple.
39569         * modules/gen-uni-tables (Depends-on): Likewise.
39570         * modules/argz (Depends-on): Add strstr.
39571
39572 2009-06-17  Bruno Haible  <bruno@clisp.org>
39573
39574         * modules/posix_spawn-internal (Depends-on): Add errno.
39575
39576 2009-06-17  Bruno Haible  <bruno@clisp.org>
39577
39578         Define missing ESTALE on Interix 3.5.
39579         * lib/errno.in.h (ESTALE): Assign a value if missing.
39580         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39582         missing.
39583         * doc/posix-headers/errno.texi: Mention the Interix bug.
39584         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39585
39586 2009-06-15  Eric Blake  <ebb9@byu.net>
39587
39588         memchr, memchr2: add valgrind exception
39589         * lib/memchr.valgrind: New file.
39590         * lib/memchr2.valgrind: New file.
39591         * modules/memchr (Files): Distribute valgrind file.
39592         * modules/memchr2 (Files): Likewise.
39593
39594         docs: memchr is no longer obsolete
39595         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39596         * lib/string.in.h (memchr): Simplify logic.
39597
39598 2009-06-14  Jim Meyering  <meyering@redhat.com>
39599
39600         link-follow: fix the "checking..." message to not mention trailing slash
39601         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39602         never considered trailing slashes.
39603
39604 2009-06-14  Bruno Haible  <bruno@clisp.org>
39605
39606         * m4/memchr.m4: Mention also the bug on IA-64.
39607         * doc/posix-functions/memchr.texi: Likewise.
39608
39609 2009-06-12  Eric Blake  <ebb9@byu.net>
39610
39611         memchr: detect broken x86_64 and alpha implementations
39612         * modules/memchr-tests (Depends-on): Move mmap detection...
39613         * modules/memchr (Depends-on): ...here.
39614         (configure.ac): Set indicator.
39615         * lib/string.in.h (memchr): Declare replacement.
39616         * modules/string (Makefile.am): Trigger replacement.
39617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39618         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39619         bugs.
39620         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39621         * modules/getpagesize (License): Relax license.
39622
39623 2009-06-11  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/idpriv.h: Add more references.
39626
39627 2009-06-08  Bruno Haible  <bruno@clisp.org>
39628
39629         Tests for module 'idpriv-droptemp'.
39630         * modules/idpriv-droptemp-tests: New file.
39631         * tests/test-idpriv-droptemp.sh: New file.
39632         * tests/test-idpriv-droptemp.su.sh: New file.
39633         * tests/test-idpriv-droptemp.c: New file.
39634
39635         New module 'idpriv-droptemp'.
39636         * lib/idpriv-droptemp.c: New file.
39637         * modules/idpriv-droptemp: New file.
39638
39639 2009-06-08  Bruno Haible  <bruno@clisp.org>
39640
39641         Tests for module 'idpriv-drop'.
39642         * modules/idpriv-drop-tests: New file.
39643         * tests/test-idpriv-drop.sh: New file.
39644         * tests/test-idpriv-drop.su.sh: New file.
39645         * tests/test-idpriv-drop.c: New file.
39646
39647         New module 'idpriv-drop'.
39648         * lib/idpriv.h: New file.
39649         * lib-idpriv-drop.c: New file.
39650         * m4/idpriv.m4: New file.
39651         * modules/idpriv-drop: New file.
39652
39653 2009-06-08  Bruno Haible  <bruno@clisp.org>
39654
39655         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39656         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39657         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39658         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39659         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39660         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39661         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39662
39663 2009-06-08  Eric Blake  <ebb9@byu.net>
39664
39665         test-strstr: use memory fence, when possible
39666         * tests/test-strstr.c (main): Use memory fence, in order to be
39667         more likely to trigger Debian bug 521737.
39668         * modules/strstr-tests (Files): Pull in additional files.
39669
39670         memchr: no longer obsolete, for wider field testing
39671         * modules/memchr (Status, Notice): Delete, this module is no
39672         longer obsolete.
39673         * modules/vasnprintf (Depends-on): Add memchr.
39674
39675 2009-06-07  Jim Meyering  <meyering@redhat.com>
39676
39677         hash: declare some functions with the warn_unused_result attribute
39678         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39679
39680 2009-06-07  Bruno Haible  <bruno@clisp.org>
39681
39682         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39683         Reported by Eric Blake.
39684
39685 2009-06-06  Eric Blake  <ebb9@byu.net>
39686
39687         test-alignof: fix typo with long double
39688         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39689         compiler error.
39690
39691 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39692
39693         Escape non-texinfo { and }s.
39694         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39695         markup error.
39696
39697 2009-06-04  Jim Meyering  <meyering@redhat.com>
39698
39699         gitlog-to-changelog: don't infloop on an empty commit log
39700         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39701         Reported by Boris Petersen <transacid@centerim.org>.
39702
39703 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39704
39705         version-etc: extend for packagers
39706         Add three new configure options, intended for packagers:
39707           --with-packager="packager name"
39708           --with-packager-version="packager-specific version"
39709           --with-packager-bug-reports="packager bug reporting"
39710         An example with coreutils:
39711           $ ./configure \
39712             --with-packager=Gentoo \
39713             --with-packager-bug-report=http://bugs.gentoo.org/ \
39714             --with-packager-version="patchset 1.6"
39715           $ ./src/ls --version | head -n2
39716           ls (GNU coreutils) 7.1-dirty
39717           Packaged by Gentoo (patchset 1.6)
39718         Note that the bug reporting info via --help doesn't show up because
39719         coreutils uses its own custom emit_bug_reporting_address() implementation
39720         in src/system.h.  If it didn't, it'd look like:
39721           $ ./src/ls --help | tail -n4
39722           Report bugs to <bug-coreutils@gnu.org>.
39723           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39724           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39725           General help using GNU software: <http://www.gnu.org/gethelp/>.
39726         * lib/version-etc.c: Print new information, if provided.
39727         * m4/version-etc.m4: New file.
39728         * modules/version-etc (Files): Add m4/version-etc.m4.
39729         (configure.ac): Add gl_VERSION_ETC.
39730
39731 2009-05-31  Bruno Haible  <bruno@clisp.org>
39732
39733         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39734         and 'int64_t'.
39735         * modules/alignof-tests (Dependencies): Add stdint.
39736         Reported by Eric Blake.
39737
39738 2009-05-31  Bruno Haible  <bruno@clisp.org>
39739
39740         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39741         restriction due to compiler bugs.
39742         Reported by Eric Blake.
39743
39744 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39745             Bruno Haible  <bruno@clisp.org>
39746
39747         Fix test-alignof failure.
39748         * lib/alignof.h (alignof_slot): New macro.
39749         (alignof_type): New macro, with the same semantics as the previous
39750         'alignof'.
39751         (alignof): Alias to alignof_slot.
39752         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39753         check that the results are usable as constant expressions.
39754
39755 2009-05-31  Bruno Haible  <bruno@clisp.org>
39756
39757         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39758         * tests/test-memchr.c (main): Check that memchr does not read past the
39759         first occurrence of the byte.
39760         * tests/test-strstr.c (main): Update comment.
39761         Suggested by Eric Blake.
39762
39763 2009-05-30  Bruno Haible  <bruno@clisp.org>
39764
39765         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39766         detail how to use dumpbin.
39767         Reported by David Byron <dbyron@dbyron.com>.
39768
39769 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39770
39771         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39772
39773 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39774
39775         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39776
39777 2009-05-28  Bruno Haible  <bruno@clisp.org>
39778
39779         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39780         build-aux/ files.
39781
39782 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39783
39784         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39785
39786 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39787
39788         * gnulib-tool (sed_transform_main_lib_file)
39789         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39790         regexps.
39791
39792 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39793
39794         * tests/test-strstr.c: Add another self-test.
39795         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39796         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39797
39798 2009-05-23  Bruno Haible  <bruno@clisp.org>
39799
39800         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39801         change.
39802
39803 2009-05-21  Bruno Haible  <bruno@clisp.org>
39804
39805         Simplify use of mode_t varargs.
39806         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39807         uses 'mode_t' or 'int'.
39808         * lib/openat.c (openat): Likewise.
39809         * lib/open-safer.c (open_safer): Likewise.
39810         * m4/mode_t.m4: New file.
39811         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39812         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39813         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39814         * modules/open (Files): Add m4/mode_t.m4.
39815         * modules/openat (Files): Likewise.
39816         * modules/fcntl-safer (Files): Likewise.
39817         Suggested by Eric Blake.
39818
39819 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39820
39821         * doc/glibc-functions/fallocate.texi: New file.
39822         * doc/gnulib.texi: Include it.
39823
39824 2009-05-21  Eric Blake  <ebb9@byu.net>
39825             Bruno Haible  <bruno@clisp.org>
39826
39827         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39828         invocations.
39829         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39830
39831 2009-05-21  Eric Blake  <ebb9@byu.net>
39832             Bruno Haible  <bruno@clisp.org>
39833
39834         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39835         include_next. Fix of 2008-11-20 commit.
39836         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39837         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39838         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39839         NEXT_MATH_H.
39840         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39841         instead of NEXT_MATH_H.
39842
39843 2009-05-21  Bruno Haible  <bruno@clisp.org>
39844
39845         Avoid redefinition warnings for SIZE_MAX.
39846         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39847         Reported by Simon Josefsson.
39848
39849 2009-05-21  Bruno Haible  <bruno@clisp.org>
39850
39851         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39852         AC_CACHE_VAL.
39853
39854 2009-05-20  Bruno Haible  <bruno@clisp.org>
39855
39856         Make zeroptr.h work on mingw.
39857         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39858         mprotect.
39859         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39860         * modules/memchr2-tests (configure.ac): Likewise.
39861         * modules/memcmp-tests (configure.ac): Likewise.
39862         * modules/memmem-tests (configure.ac): Likewise.
39863         * modules/memrchr-tests (configure.ac): Likewise.
39864         Reported by Simon Josefsson.
39865
39866 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39867
39868         * tests/test-glob.c: Include string.h for strcmp prototype.
39869
39870 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39871
39872         * modules/getdelim (Depends-on): Add explicit stdint, although it
39873         was implicitly already pulled in via realloc-posix.
39874         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39875
39876 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39877
39878         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39879         G. Christensen" <tgc@jupiterrise.com>.
39880         * m4/sys_socket_h.m4: Check for sa_family_t.
39881         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39882         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39883         * tests/test-sys_socket.c: Check that sa_family_t works.
39884
39885 2009-05-18  Eric Blake  <ebb9@byu.net>
39886
39887         maint.mk: allow gnulib_dir in VPATH build
39888         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39889
39890 2009-05-15  Jim Meyering  <meyering@redhat.com>
39891
39892         maint.mk: Give gnulib_dir a default definition.
39893         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39894         Thus, most packages no longer need to specify this variable in cfg.mk
39895
39896 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39897
39898         rename.m4: fix typos that would make non-mingw cross-configure fail
39899         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39900
39901 2009-05-13  Eric Blake  <ebb9@byu.net>
39902
39903         mmap-anon: avoid out-of-order autoconf expansion
39904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39905         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39906         * modules/memchr-tests (Depends-on): Add extensions.
39907         * modules/memchr2-tests (Depends-on): Add extensions.
39908         * modules/memcmp-tests (Depends-on): Add extensions.
39909         * modules/memmem-tests (Depends-on): Add extensions.
39910         * modules/memrchr-tests (Depends-on): Add extensions.
39911
39912 2009-05-13  Bruno Haible  <bruno@clisp.org>
39913
39914         Make some tests ISO C 99 compliant.
39915         * tests/zerosize-ptr.h: New file.
39916         * tests/test-memchr.c: Include zerosize-ptr.h.
39917         (main): Use a zero-size object pointer instead of NULL.
39918         * tests/test-memchr2.c: Include zerosize-ptr.h.
39919         (main): Use a zero-size object pointer instead of NULL.
39920         * tests/test-memcmp.c: Include zerosize-ptr.h.
39921         (main): Use a zero-size object pointer instead of NULL.
39922         * tests/test-memmem.c: Include zerosize-ptr.h.
39923         (main): Use a zero-size object pointer instead of NULL.
39924         * tests/test-memrchr.c: Include zerosize-ptr.h.
39925         (main): Use a zero-size object pointer instead of NULL.
39926         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39927         m4/mmap-anon.m4.
39928         (Depends-on): Add getpagesize.
39929         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39930         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39931         m4/mmap-anon.m4.
39932         (Depends-on): Add getpagesize.
39933         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39934         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39935         m4/mmap-anon.m4.
39936         (Depends-on): Add getpagesize.
39937         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39938         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39939         m4/mmap-anon.m4.
39940         (Depends-on): Add getpagesize.
39941         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39942         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39943         m4/mmap-anon.m4.
39944         (Depends-on): Add getpagesize.
39945         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39946
39947 2009-05-12  Bruno Haible  <bruno@clisp.org>
39948
39949         Tests for module 'alignof'.
39950         * modules/alignof-tests: New file.
39951         * tests/test-alignof.c: New file.
39952
39953 2009-05-12  Bruno Haible  <bruno@clisp.org>
39954
39955         Fix alignof macro.
39956         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39957         vendor compilers that are always correct.
39958
39959 2009-05-12  Bruno Haible  <bruno@clisp.org>
39960
39961         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39962         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39963         not whether its fully works.
39964
39965 2009-05-12  Bruno Haible  <bruno@clisp.org>
39966
39967         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39968
39969 2009-05-12  Jim Meyering  <meyering@redhat.com>
39970
39971         * top/maint.mk: Adjust backslash alignment.
39972
39973 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39974
39975         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39976
39977 2009-05-11  Eric Blake  <ebb9@byu.net>
39978
39979         argp: avoid undefined behavior
39980         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39981         macros.
39982
39983 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39984
39985         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39986         user.name to prevent git commit from complaining.
39987
39988 2009-05-10  Bruno Haible  <bruno@clisp.org>
39989
39990         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39991         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39992         it rewrites every file name only once.
39993         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39994
39995 2009-05-08  Bruno Haible  <bruno@clisp.org>
39996
39997         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39998         instead of 'max'.
39999
40000 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40001
40002         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40003         sockaddr_storage test.
40004
40005 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40006
40007         * modules/sys_socket (Makefile.am): Substitute
40008         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40009         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40010         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40011         * tests/test-sys_socket.c: Check sockaddr_storage.
40012
40013 2009-05-08  Bruno Haible  <bruno@clisp.org>
40014
40015         New module 'alignof'.
40016         * lib/alignof.h: New file.
40017         * modules/alignof: New file.
40018
40019 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40020             Bruno Haible  <bruno@clisp.org>
40021
40022         Fix test-file-has-acl on FreeBSD.
40023         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40024         mask is implicitly added.
40025         * tests/test-file-has-acl.c: Include <signal.h>.
40026         (main): Terminate the test after 5 seconds.
40027         * modules/acl-tests (configure.ac): Check for alarm function.
40028
40029 2009-05-04  Bruno Haible  <bruno@clisp.org>
40030
40031         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40032         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40033         * modules/errno (configure.ac): Drop AC_REQUIRE.
40034         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40035         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40036
40037 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40038
40039         * modules/glob-tests: New module.
40040         * tests/test-glob.c: Add.
40041
40042 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40043
40044         * modules/fnmatch-tests: New module.
40045         * tests/test-fnmatch.c: Add.
40046
40047 2009-05-04  Eric Blake  <ebb9@byu.net>
40048
40049         maint: make the new no-submodule-changes rule VPATH-safe
40050         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40051
40052 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40053             Bruno Haible  <bruno@clisp.org>
40054
40055         acl: Fix infinite loop on FreeBSD.
40056         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40057         of return value from acl_get_entry.
40058         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40059         Likewise.
40060
40061 2009-05-03  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/acl-internal.h (acl_entries): Clarify return value.
40064         * lib/acl_entries.c (acl_entries): Likewise.
40065
40066 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40067
40068         Bug fix in acl module.
40069         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40070
40071 2009-05-03  Bruno Haible  <bruno@clisp.org>
40072
40073         Create gperf-generated file in the source dir, not in the build dir.
40074         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40075         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40076         * modules/unicase/locale-language (unicase/locale-languages.h):
40077         Likewise.
40078         * modules/unicase/special-casing (unicase/special-casing-table.h):
40079         Likewise.
40080         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40081         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40082         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40083         Reported by Ralf Wildenhues.
40084
40085 2009-05-03  Bruno Haible  <bruno@clisp.org>
40086
40087         * modules/fnmatch (Description, configure.ac): Taken from
40088         fnmatch-posix.
40089         * modules/fnmatch-posix: Turn into a symbolic reference to the
40090         'fnmatch' module, and deprecate.
40091         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40092
40093 2009-05-03  Bruno Haible  <bruno@clisp.org>
40094
40095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40096         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40097         Reported by Ralf Wildenhues.
40098
40099 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40100
40101         * m4/fnmatch.m4: Fix fnmatch re-define.
40102
40103 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40104
40105         priv-set: new module and tests; adapt write-any-file
40106         * lib/priv-set.c: New file.
40107         * lib/priv-set.h: New file.
40108         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40109         * lib/write-any-file.c: Simplify by using priv-set module.
40110         * m4/priv-set.m4: New file.
40111         * modules/priv-set: New file.
40112         * modules/unlinkdir: Add dependency on priv-set module.
40113         * modules/write-any-file: Likewise.
40114
40115         Tests for module 'priv-set'.
40116         * modules/priv-set-tests: New file.
40117         * tests/test-priv-set.c: New file.
40118
40119 2009-05-03  Jim Meyering  <meyering@redhat.com>
40120             Bruno Haible  <bruno@clisp.org>
40121
40122         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40123         use the converted UTF-8 variant of the name instead.
40124
40125 2009-05-03  Jim Meyering  <meyering@redhat.com>
40126
40127         tests: tighten some getdate tests
40128         * tests/test-getdate.c (main): Tighten tests: require equality,
40129         not just greater than.  Set TZ envvar to UTC0.
40130
40131 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40132
40133         getdate: correctly interpret "next monday" when run on a Monday
40134         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40135         that e.g., "next tues" (when run on a tuesday) results in a date
40136         that is one week in the future, and not today's date.
40137         I.e., add a week when the wday is the same as the current one.
40138         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40139         and earlier by Martin Bernreuther and Jan Minář.
40140         * tests/test-getdate.c (main): Check that "next DAY" is always in
40141         the future and that "last DAY" is always in the past.
40142
40143 2009-05-02  Jim Meyering  <meyering@redhat.com>
40144
40145         build: ensure that a release build fails when a submodule is unclean
40146         * top/maint.mk (no-submodule-changes): New rule.
40147         (alpha beta major): Depend on it.
40148
40149 2009-05-02  Bruno Haible  <bruno@clisp.org>
40150
40151         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40153         shell variable gl_fnmatch_required to detect which variant is
40154         requested.
40155         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40156         gl_FUNC_FNMATCH_POSIX.
40157         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40158         exclude fnmatch-posix.
40159
40160 2009-05-02  Bruno Haible  <bruno@clisp.org>
40161
40162         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40163         * modules/mbsrtowcs (License): Change to LGPLv2+.
40164         * modules/strnlen1 (License): Likewise.
40165         Reported by Simon Josefsson.
40166
40167 2009-05-02  Bruno Haible  <bruno@clisp.org>
40168
40169         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40170         "cross".
40171         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40172         gnulib-tool was called with option --source-base=lib.
40173
40174 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40175
40176         Use automake *-local hooks without commands, for extensibility.
40177         * modules/localcharset (Makefile.am): Rename install-exec-local
40178         rule to install-exec-localcharset, and make it a prerequisite of
40179         install-exec-local.  Likewise, rename the uninstall-local rule to
40180         uninstall-localcharset, and make it a prerequisite of the former.
40181
40182 2009-05-01  Bruno Haible  <bruno@clisp.org>
40183
40184         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40185         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40186         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40188         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40189         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40190         m4/locale-zh.m4, m4/codeset.m4.
40191
40192         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40193         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40194         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40195         m4/locale-zh.m4.
40196
40197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40198         REPLACE_WCRTOMB if mbstate_t must be replaced.
40199         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40200         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40201
40202 2009-05-01  Bruno Haible  <bruno@clisp.org>
40203
40204         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40205         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40206         dngettext, dcngettext, textdomain, bindtextdomain,
40207         bind_textdomain_codeset): Undefine before redefining.
40208
40209 2009-04-30  Bruno Haible  <bruno@clisp.org>
40210
40211         Fix bug introduced on 2009-04-25.
40212         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40213         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40214         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40215         is defined.
40216         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40217         is defined.
40218         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40219         is defined.
40220         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40221
40222 2009-04-28  Bruno Haible  <bruno@clisp.org>
40223
40224         Comment tweaks.
40225         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40226         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40227         * lib/unicase.h (u*_casexfrm): Likewise.
40228         Reported by Paolo Bonzini.
40229
40230 2009-04-28  Bruno Haible  <bruno@clisp.org>
40231
40232         Fix a compilation error.
40233         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40234         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40235         Reported by Jim Meyering.
40236
40237 2009-04-27  Bruno Haible  <bruno@clisp.org>
40238
40239         New module 'libunistring'.
40240         * modules/libunistring: New file.
40241         * m4/libunistring.m4: New file.
40242         * MODULES.html.sh (Unicode string functions): Add it.
40243
40244 2009-04-27  Eric Blake  <ebb9@byu.net>
40245
40246         maint.mk: allow package-specific header to provide <config.h>
40247         * top/maint.mk (sc_require_config_h): New variable.
40248         (sc_require_config_h, sc_require_config_h_first): Use it.
40249
40250 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40251
40252         * top/maint.mk (sc_avoid_if_before_free): Except
40253         useless-if-before-free script.
40254
40255 2009-04-27  Eric Blake  <ebb9@byu.net>
40256
40257         maintainer-makefile: depend on all required helper scripts
40258         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40259         useless-if-before-free.
40260         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40261         version, rather than assuming gnulib checkout is available.
40262         Reported by Simen Josefsson.
40263
40264 2009-04-26  Bruno Haible  <bruno@clisp.org>
40265
40266         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40267         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40268         "../" or "..".
40269
40270 2009-04-26  Bruno Haible  <bruno@clisp.org>
40271
40272         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40273         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40274         AC_LIB_HAVE_LINKFLAGS.
40275
40276 2009-04-26  Bruno Haible  <bruno@clisp.org>
40277
40278         Simplify calling convention of u*_conv_from_encoding.
40279         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40280         u32_conv_from_encoding): Expect a resultbuf argument and return the
40281         result directly as a pointer.
40282         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40283         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40284         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40285         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40286         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40287         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40288         Update.
40289         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40290         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40291         * lib/vasnprintf.c (VASNPRINTF): Update.
40292         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40293         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40294         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40295         * NEWS: Mention the change.
40296
40297 2009-04-26  Bruno Haible  <bruno@clisp.org>
40298
40299         Simplify calling convention of u*_conv_to_encoding.
40300         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40301         u32_conv_to_encoding): Expect a resultbuf argument and return the
40302         result directly as a pointer.
40303         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40304         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40305         freeing scaled_offsets if mem_iconveha failed.
40306         * lib/unicase/u-casexfrm.h (FUNC): Update.
40307         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40308         * lib/vasnprintf.c (VASNPRINTF): Update.
40309         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40310         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40311         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40312         * NEWS: Mention the change.
40313
40314 2009-04-26  Bruno Haible  <bruno@clisp.org>
40315
40316         Avoid test failures on AIX and OSF/1.
40317         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40318         malloc(0).
40319         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40320         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40321         Likewise.
40322         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40323         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40324         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40325         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40326         * doc/posix-functions/malloc.texi: Document the portability problem
40327         related to malloc(0).
40328
40329 2009-04-26  Bruno Haible  <bruno@clisp.org>
40330
40331         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40332         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40333         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40334
40335 2009-04-25  Bruno Haible  <bruno@clisp.org>
40336
40337         Avoid link error when creating a namespace clean library.
40338         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40339         as macro with arguments if already defined as an alias.
40340         * lib/signbitf.c (gl_signbitf): Don't undefine.
40341         * lib/signbitd.c (gl_signbitd): Don't undefine.
40342         * lib/signbitl.c (gl_signbitl): Don't undefine.
40343
40344 2009-04-25  Jim Meyering  <meyering@redhat.com>
40345
40346         vc-list-files: fix another quoting bug
40347         * build-aux/vc-list-files: Avoid sed backslash expansion
40348         of pathological directory names.
40349
40350 2009-04-25  Eric Blake  <ebb9@byu.net>
40351
40352         vc-list-files: fix shell quoting error
40353         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40354         timestamp.
40355
40356 2009-04-25  Jim Meyering  <meyering@redhat.com>
40357
40358         vc-list-files: restore lost functionality with subdir argument
40359         * build-aux/vc-list-files: When given a non-"." sub-directory
40360         argument, substitute the $dir/ prefix back onto each resulting name.
40361         Otherwise, coreutils' root_tests check would fail.
40362
40363 2009-04-24  Eric Blake  <ebb9@byu.net>
40364
40365         vc-list-files: ignore git symlinks
40366         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40367         than ls-files, to ignore git symlinks.
40368
40369         maint.mk: import improvements from m4
40370         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40371         (move_if_change): Delete unused macro.
40372         (news-date-check, vc-diff-check): Support VPATH builds.
40373         (announcement): Likewise.  Split --bootstrap-tools list...
40374         (boostrap-tools): ...into separate list, which can be overridden
40375         in cfg.mk.
40376         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40377         requiring dependency on useless-if-before-free module.
40378         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40379         Support VPATH builds.
40380
40381 2009-04-24  Jim Meyering  <meyering@redhat.com>
40382
40383         maint.mk: remove coreutils-specific rules and variables
40384         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40385         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40386         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40387
40388         maint.mk: remove obsolete rule
40389         * top/maint.mk (rel-check): Remove rule.
40390         (WGET, WGETFLAGS): Remove now-unused variables.
40391
40392 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40393
40394         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40395         consistency.
40396
40397         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40398         '$(PATH_SEPARATOR)' instead of ':'.
40399
40400 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40401
40402         * lib/getopt1.c (main): Use 'const' for static array.
40403
40404 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40405
40406         * top/maint.mk: Sync with coreutils.
40407         * NEWS: Explain incompatibilities.
40408
40409 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40410             Bruno Haible  <bruno@clisp.org>
40411
40412         Fix cross-compilation results.
40413         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40414         statement, as third argument of AC_TRY_RUN.
40415         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40416         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40417         Likewise.
40418         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40419         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40420         Likewise.
40421         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40422         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40423         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40424
40425 2009-04-20  Bruno Haible  <bruno@clisp.org>
40426
40427         Avoid test failure on mingw.
40428         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40429
40430 2009-04-20  Bruno Haible  <bruno@clisp.org>
40431
40432         Avoid compilation error on mingw.
40433         * modules/localename-tests (Depends-on): Add locale.
40434
40435 2009-04-19  Bruno Haible  <bruno@clisp.org>
40436
40437         Support for building a shared library on Windows platforms.
40438         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40439         (main): Test the presence of UNINORM_NFC here.
40440         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40441         (main): Test the presence of UNINORM_NFD here.
40442         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40443         (main): Test the presence of UNINORM_NFKC here.
40444         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40445         (main): Test the presence of UNINORM_NFKD here.
40446
40447 2009-04-19  Bruno Haible  <bruno@clisp.org>
40448
40449         Avoid a compiler warning.
40450         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40451         Change type of variable 'sequence'.
40452
40453 2009-04-19  Bruno Haible  <bruno@clisp.org>
40454
40455         * modules/configmake (Makefile.am): When the contents of configmake.h
40456         does not change, arrange to preserve its modification time.
40457
40458 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40459
40460         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40461         gettext domain.
40462
40463 2009-04-16  Jim Meyering  <meyering@redhat.com>
40464
40465         useless-if-before-free: improve conversion code
40466         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40467         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40468
40469 2009-04-14  Bruno Haible  <bruno@clisp.org>
40470
40471         * modules/fcntl (Depends-on): Add extensions.
40472         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40473
40474 2009-04-12  Ben Pfaff  <blp@gnu.org>
40475
40476         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40477         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40478
40479 2009-03-20  Ben Pfaff  <blp@gnu.org>
40480
40481         Make rename replace existing destinations on Windows.
40482         * m4/rename.m4: Add test for Mingw.
40483         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40484         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40485         * doc/posix-functions/rename.texi: Document.
40486
40487 2009-04-10  Bruno Haible  <bruno@clisp.org>
40488
40489         New include file "iconveh.h".
40490         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40491         * lib/striconveh.h: Include it.
40492         (enum iconv_ilseq_handler): Remove definition.
40493         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40494         striconveh.h.
40495         * lib/striconveha.c: Include striconveh.h.
40496         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40497         * modules/striconveh (Files): Add lib/iconveh.h.
40498         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40499         lib/striconveh.h.
40500
40501 2009-04-10  Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/uniconv.h: Update comment.
40504
40505 2009-04-10  Bruno Haible  <bruno@clisp.org>
40506
40507         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40508         always.
40509         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40510         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40511         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40512         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40513         "unistring-notinline.h", so that the function gets defined always.
40514         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40515         * lib/unistr/u8-uctomb.c: Likewise.
40516         * lib/unistr/u16-mbtouc.c: Likewise.
40517         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40518         * lib/unistr/u16-uctomb.c: Likewise.
40519         * lib/unistr/u32-mbtouc.c: Likewise.
40520         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40521         * lib/unistr/u32-uctomb.c: Likewise.
40522
40523 2009-04-10  Bruno Haible  <bruno@clisp.org>
40524
40525         Mark 'utime' obsolete.
40526         * modules/utime (Status, Notice): New sections.
40527         Suggested by Jim Meyering.
40528
40529         Fix cross-compile guess for utime test.
40530         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40531         autoconf.
40532         * doc/posix-functions/utime.texi: Give more precisions.
40533         Reported by Jan <ipif@ymail.com>.
40534
40535 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40536
40537         filevercmp: correct today's change
40538         * lib/filevercmp.c: Also handle coreutils' test inputs.
40539         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40540
40541         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40542         for reporting it.
40543         * lib/filevercmp.c: Special handle for "", "." and "..".
40544         * tests/test-filevercmp.c: Enlarge the set suite.
40545
40546 2009-04-07  Jim Meyering  <meyering@redhat.com>
40547
40548         useless-if-before-free: show how to remove braced useless free, too
40549         * build-aux/useless-if-before-free: still only in a comment, though.
40550
40551 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40552
40553         maint.mk: import changes to syntax-check macros from coreutils
40554         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40555         Use them in the relevant macros.
40556
40557 2009-04-06  Bruno Haible  <bruno@clisp.org>
40558
40559         Fix unportable use of bit-fields.
40560         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40561         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40562         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40563
40564 2009-04-06  Bruno Haible  <bruno@clisp.org>
40565
40566         Avoid test failures on AIX and OSF/1.
40567         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40568         that malloc(0) = NULL.
40569         * tests/unicase/test-u8-tolower.c (check): Likewise.
40570         * tests/unicase/test-u8-totitle.c (check): Likewise.
40571         * tests/unicase/test-u8-toupper.c (check): Likewise.
40572         * tests/unicase/test-u16-casefold.c (check): Likewise.
40573         * tests/unicase/test-u16-tolower.c (check): Likewise.
40574         * tests/unicase/test-u16-totitle.c (check): Likewise.
40575         * tests/unicase/test-u16-toupper.c (check): Likewise.
40576         * tests/unicase/test-u32-casefold.c (check): Likewise.
40577         * tests/unicase/test-u32-tolower.c (check): Likewise.
40578         * tests/unicase/test-u32-totitle.c (check): Likewise.
40579         * tests/unicase/test-u32-toupper.c (check): Likewise.
40580         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40581         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40582         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40583         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40584         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40585         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40586         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40587         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40588         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40589         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40590         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40591         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40592
40593 2009-04-05  Bruno Haible  <bruno@clisp.org>
40594
40595         Work around an autoconf limitation.
40596         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40597         comment line if it would be longer than 3 KB.
40598
40599 2009-04-05  Bruno Haible  <bruno@clisp.org>
40600
40601         Avoid test failure with libiconv-1.13.
40602         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40603         of the expected test results.
40604
40605 2009-04-05  Bruno Haible  <bruno@clisp.org>
40606
40607         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40608         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40609         that it should be installed.
40610
40611 2009-04-05  Bruno Haible  <bruno@clisp.org>
40612
40613         * gnulib-tool: New option --copy-file.
40614         (func_usage): Document it.
40615         (func_dest_tmpfilename): Moved out of func_import.
40616         (func_add_file, func_update_file): New functions, extracted from
40617         func_import.
40618         (func_import): Update.
40619
40620 2009-04-05  Karl Berry  <karl@gnu.org>
40621
40622         * README: prominently mention gnulib-tool.
40623         Rearrange sections so getting the code is near the top.
40624
40625 2009-04-05  Bruno Haible  <bruno@clisp.org>
40626
40627         * lib/unicase.h: Mention u*_cmp2.
40628         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40629         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40630         * lib/unicase/ulc-casecmp.c: Likewise.
40631         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40632         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40633         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40634         unistr/u8-cmp.
40635         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40636         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40637         unistr/u16-cmp.
40638         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40639         unistr/u32-cmp.
40640
40641         * lib/uninorm.h: Mention u*_cmp2.
40642         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40643         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40644         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40645         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40646         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40647         unistr/u8-cmp.
40648         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40649         unistr/u16-cmp.
40650         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40651         unistr/u32-cmp.
40652
40653         New module 'unistr/u32-cmp2'.
40654         * lib/unistr/u32-cmp2.c: New file.
40655         * modules/unistr/u32-cmp2: New file.
40656
40657         New module 'unistr/u16-cmp2'.
40658         * lib/unistr/u16-cmp2.c: New file.
40659         * modules/unistr/u16-cmp2: New file.
40660
40661         New module 'unistr/u8-cmp2'.
40662         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40663         * lib/unistr/u8-cmp2.c: New file.
40664         * lib/unistr/u-cmp2.h: New file.
40665         * modules/unistr/u8-cmp2: New file.
40666
40667 2009-04-05  Bruno Haible  <bruno@clisp.org>
40668
40669         * lib/unictype.h (uc_property_is_valid): New macro.
40670         * tests/unictype/test-pr_byname.c (main): Use it.
40671
40672         * lib/unistr.h: Doc fixes.
40673         * lib/uniconv.h: Doc fixes.
40674         * lib/unictype.h: Doc fixes.
40675
40676 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40677
40678         Port coreutils 7.2 to Solaris 8.
40679
40680         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40681         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40682         for Solaris 8.  This is a bit of a hack, as it means it's the
40683         caller's responsibility to add -lnsl if needed, but most likely it
40684         won't be needed since only getaddrinfo uses this and getaddrinfo
40685         isn't needed on Solaris 8.
40686
40687         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40688         problem to Solaris 8 encountered with coreutils 7.2, which
40689         resulted in a message "fnmatch.c:292: warning: passing argument 4
40690         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40691         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40692
40693 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40694
40695         * m4/ld-version-script.m4: Add FIXME comment.
40696
40697 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40698
40699         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40700         SOVERSION variable.
40701
40702 2009-04-02  Bruno Haible  <bruno@clisp.org>
40703
40704         * Makefile (info, html, dvi, pdf): Combine the rules.
40705         Suggested by Jim Meyering.
40706
40707 2009-04-01  Bruno Haible  <bruno@clisp.org>
40708
40709         * Makefile (info, html, dvi, pdf): New targets.
40710         Reported by Reuben Thomas <rrt@sc3d.org>.
40711
40712 2009-04-01  Bruno Haible  <bruno@clisp.org>
40713
40714         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40715         can be put into PATH.
40716         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40717
40718 2009-04-01  Bruno Haible  <bruno@clisp.org>
40719
40720         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40721
40722 2009-04-01  Bruno Haible  <bruno@clisp.org>
40723
40724         Rename module 'visibility'.
40725         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40726         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40727         * doc/gnulib.texi: Update.
40728         * MODULES.html.sh (Misc): Update.
40729         * NEWS: Mention the change.
40730
40731 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40732
40733         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40734         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40735         Eric Blake <ebb9@byu.net> for review.
40736         * MODULES.html.sh: Add lib-msvc-compat.
40737         * doc/gnulib.texi: Link to new section.
40738         * m4/ld-output-def.m4: New file.
40739         * doc/ld-output-def.texi: New file.
40740
40741 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40742
40743         Rename ld-version-script to lib-symbol-versions.  Suggested by
40744         Bruno Haible <bruno@clisp.org>.
40745         * modules/ld-version-script: Renamed to lib-symbol-versions.
40746         * doc/ld-version-script.texi: Fix module name.
40747         * MODULES.html.sh: Add lib-symbol-versions.
40748
40749 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40750
40751         * modules/u64-tests: New file.
40752         * tests/test-u64.c: New file.
40753
40754 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40755
40756         * MODULES.html.sh: Mention u64.
40757         * modules/u64: New module.
40758         * modules/crypto/sha512: Depend on u64 module instead of providing
40759         u64.h.
40760
40761 2009-03-27  Eric Blake  <ebb9@byu.net>
40762
40763         test-strerror: make debugging EAI_SYSTEM easier
40764         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40765         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40766         failure was EAI_SYSTEM.
40767
40768 2009-03-25  Bruno Haible  <bruno@clisp.org>
40769
40770         Fix a problem with --enable-relocatable on Solaris 7.
40771         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40772         since 2008-02-24.
40773
40774 2009-03-25  Eric Blake  <ebb9@byu.net>
40775
40776         test-sockets: avoid gcc warning
40777         * tests/test-sockets.c (main): Silence compiler warning.
40778
40779 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40780
40781         New modules nproc, pthread, contributed by Glen Lenker.
40782
40783         * MODULES.html.sh: Add pthread, nproc.
40784         * lib/nproc.c: New file.
40785         * lib/nproc.h: New file.
40786         * lib/pthread.in.h: New file.
40787         * m4/pthread.m4: New file.
40788         * modules/nproc: New file.
40789         * modules/pthread: New file.
40790
40791 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40792
40793         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40794         New variable.
40795
40796 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40797
40798         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40799         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40800         * tests/test-filevercmp.c: Add tests for backup suffixes.
40801
40802 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40803
40804         * modules/stdlib (Depends-on): Add stdint, needed when defining
40805         struct random_data on, for example, HP-UX 10.20.  Reported by
40806         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40807
40808 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40809
40810         * lib/readline.c (readline): Call fflush on stdout after printing
40811         prompt.
40812
40813 2009-03-20  Bruno Haible  <bruno@clisp.org>
40814
40815         Remove dependency from 'close' module to -lws2_32 on native Windows.
40816         * lib/close-hook.h: New file.
40817         * lib/close-hook.c: New file.
40818         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40819         w32sock.h.
40820         (_gl_close_fd_maybe_socket): Remove function.
40821         (rpl_close): Invoke execute_all_close_hooks instead of
40822         _gl_close_fd_maybe_socket.
40823         * lib/sockets.c: Include close-hook.h, w32sock.h.
40824         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40825         (close_sockets_hook): New variable.
40826         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40827         (gl_sockets_cleanup): Unregister it.
40828         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40829         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40830         * modules/close-hook: New file.
40831         * modules/close (Files): Remove lib/w32sock.h.
40832         (Depends-on): Add close-hook.
40833         (Link): Remove section.
40834         * modules/sockets (Files): Add lib/w32sock.h.
40835         (Depends-on): Add close-hook.
40836         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40837         invocation.
40838         * NEWS: Mention that LIB_CLOSE is gone.
40839
40840 2009-03-23  Eric Blake  <ebb9@byu.net>
40841
40842         signal-tests: test previous patch
40843         * tests/test-signal.c: New file.
40844         * modules/signal-tests: Likewise.
40845
40846         signal.h: always support 'volatile sig_atomic_t'
40847         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40848         (gl_SIGNAL_H_DEFAULTS): Add a default.
40849         * modules/signal (Makefile.am): Substitute if needed.
40850         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40851         users can blindly add volatile.
40852         * doc/posix-headers/signal.texi (signal.h): Document it.
40853         Reported by Matthew Woehlke.
40854
40855 2009-03-23  Jim Meyering  <meyering@redhat.com>
40856
40857         pathmax: PATH_MAX: use pathconf only when available
40858         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40859         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40860         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40861         This avoids a link failure in a PSP cross-compilation environment
40862         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40863
40864         * lib/vasnprintf.c (divide): Fix typo in comment.
40865
40866 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40867
40868         * gnulib-tool (func_filter_filelist): Fix comment.
40869
40870 2009-03-20  Bruno Haible  <bruno@clisp.org>
40871
40872         Make sockets.h self-contained.
40873         * lib/sockets.c: Include sockets.h first.
40874         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40875
40876 2009-03-19  Eric Blake  <ebb9@byu.net>
40877
40878         doc: mention more functions added in cygwin 1.7.0
40879         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40880         addition.
40881         * doc/posix-functions/log2f.texi: Likewise.
40882
40883 2009-03-19  Jim Meyering  <meyering@redhat.com>
40884
40885         fsusage: avoid syntax error due to statement-before-declaration
40886         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40887         after all declarations.  Reported by Matthew Woehlke in
40888         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40889
40890 2009-03-18  Eric Blake  <ebb9@byu.net>
40891
40892         build-aux/compile: sync from automake
40893         * build-aux/compile: New file, from automake.
40894         * config/srclist.txt: Mention build-aux/compile.
40895
40896 2009-03-17  Bruno Haible  <bruno@clisp.org>
40897
40898         * lib/git-merge-changelog.c: Fix typo in comment.
40899         Reported by Reuben Thomas <rrt@sc3d.org>.
40900
40901 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40902
40903         * m4/regex.m4: update and improve help for
40904         --without-included-regex.
40905
40906 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40907
40908         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40909         failure on missing include files.
40910
40911 2009-03-17  Eric Blake  <ebb9@byu.net>
40912
40913         doc: mention more functions added in cygwin 1.7.0
40914         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40915         addition.
40916         * doc/posix-functions/fwscanf.texi: Likewise.
40917         * doc/posix-functions/swprintf.texi: Likewise.
40918         * doc/posix-functions/swscanf.texi: Likewise.
40919         * doc/posix-functions/vfwprintf.texi: Likewise.
40920         * doc/posix-functions/vfwscanf.texi: Likewise.
40921         * doc/posix-functions/vswprintf.texi: Likewise.
40922         * doc/posix-functions/vswscanf.texi: Likewise.
40923         * doc/posix-functions/vwprintf.texi: Likewise.
40924         * doc/posix-functions/vwscanf.texi: Likewise.
40925         * doc/posix-functions/wcscasecmp.texi: Likewise.
40926         * doc/posix-functions/wcsdup.texi: Likewise.
40927         * doc/posix-functions/wcsftime.texi: Likewise.
40928         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40929         * doc/posix-functions/wprintf.texi: Likewise.
40930         * doc/posix-functions/wscanf.texi: Likewise.
40931         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40932
40933 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40934
40935         maint.mk: really add $(AM_MAKEFLAGS)
40936         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40937         was inadvertently omitted in the last commit.
40938         Spotted by Bruno Haible.
40939
40940         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40941         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40942         $(AM_MAKEFLAGS)' rather than plain `make'.
40943
40944         gnulib-tool: execute $MAKE not make
40945         * gnulib-tool: Default $MAKE to 'make'.
40946         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40947         than make.  Initialize $MAKE in the do-autobuild script.
40948
40949         gnulib-tool: use $MAKE not make in generated files
40950         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40951         make, in generated files.  Initialize $MAKE in the do-autobuild
40952         script.
40953
40954         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40955
40956         GNUmakefile: disable parallelism only for multiple, recursive targets
40957         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40958         additions in the Makefile.
40959         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40960         by Automake.
40961         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40962         are listed on the command line and at least one of them is
40963         listed in $(ALL_RECURSIVE_TARGETS).
40964
40965 2009-03-14  Bruno Haible  <bruno@clisp.org>
40966
40967         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40968         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40969         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40970         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40971         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40972         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40973         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40974         unistr/u8-uctomb.
40975         * modules/unistr/u8-strchr (Depends-on): Likewise.
40976         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40977         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40978         unistr/u16-uctomb.
40979         * modules/unistr/u16-strchr (Depends-on): Likewise.
40980         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40981
40982 2009-03-12  Bruno Haible  <bruno@clisp.org>
40983
40984         Work around select() bug on Interix 3.5.
40985         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40986         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40987         * m4/select.m4: New file.
40988         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40989         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40990         * modules/select (Files): Add m4/select.m4.
40991         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40992         * modules/nanosleep (Depends-on): Add select.
40993         * modules/poll (Depends-on): Likewise.
40994         * doc/posix-functions/select.texi: Mention the Interix bug.
40995         Reported by Markus Duft <mduft@gentoo.org>.
40996
40997         * lib/select.c: Renamed from lib/winsock-select.c.
40998         * modules/select (Files): Add lib/select.c, remove
40999         lib/winsock-select.c.
41000         (configure.ac): Update.
41001
41002 2009-03-12  Jim Meyering  <meyering@redhat.com>
41003
41004         avoid gcc warnings about unused macro definitions
41005         * lib/readtokens.c (STREQ): Remove unused definition.
41006         * lib/xmalloc.c (SIZE_MAX): Likewise.
41007         * lib/openat-die.c (N_): Likewise.
41008         * lib/mountlist.c (SIZE_MAX): Remove definition.
41009         Instead, include <stdint.h>.
41010         * lib/readutmp.c: Likewise.
41011         * modules/readutmp (Depends-on): Add stdint.
41012         * modules/mountlist (Depends-on): Add stdint.
41013         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41014
41015 2009-03-10  Bruno Haible  <bruno@clisp.org>
41016
41017         Tests for module 'mbmemcasecoll'.
41018         * modules/mbmemcasecoll-tests: New file.
41019         * tests/test-mbmemcasecoll1.sh: New file.
41020         * tests/test-mbmemcasecoll2.sh: New file.
41021         * tests/test-mbmemcasecoll3.sh: New file.
41022         * tests/test-mbmemcasecoll.c: New file.
41023
41024         New module 'mbmemcasecoll'.
41025         * lib/mbmemcasecoll.h: New file.
41026         * lib/mbmemcasecoll.c: New file.
41027         * modules/mbmemcasecoll: New file.
41028
41029         * tests/test-mbmemcasecmp.h: New file, extracted from
41030         tests/test-mbmemcasecmp.c.
41031         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41032         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41033         (main): Update.
41034         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41035
41036 2009-03-09  Bruno Haible  <bruno@clisp.org>
41037
41038         Tests for module 'mbmemcasecmp'.
41039         * modules/mbmemcasecmp-tests: New file.
41040         * tests/test-mbmemcasecmp1.sh: New file.
41041         * tests/test-mbmemcasecmp2.sh: New file.
41042         * tests/test-mbmemcasecmp3.sh: New file.
41043         * tests/test-mbmemcasecmp.c: New file.
41044
41045         New module 'mbmemcasecmp'.
41046         * lib/mbmemcasecmp.h: New file.
41047         * lib/mbmemcasecmp.c: New file.
41048         * modules/mbmemcasecmp: New file.
41049
41050 2009-03-09  Bruno Haible  <bruno@clisp.org>
41051
41052         Tests for module 'unicase/ulc-casecoll'.
41053         * modules/unicase/ulc-casecoll-tests: New file.
41054         * tests/unicase/test-ulc-casecoll1.sh: New file.
41055         * tests/unicase/test-ulc-casecoll2.sh: New file.
41056         * tests/unicase/test-ulc-casecoll.c: New file.
41057
41058         New module 'unicase/ulc-casecoll'.
41059         * lib/unicase.h (ulc_casecoll): New declaration.
41060         * lib/unicase/ulc-casecoll.c: New file.
41061         * modules/unicase/ulc-casecoll: New file.
41062
41063         New module 'unicase/ulc-casexfrm'.
41064         * lib/unicase.h (ulc_casexfrm): New declaration.
41065         * lib/unicase/ulc-casexfrm.c: New file.
41066         * modules/unicase/ulc-casexfrm: New file.
41067
41068 2009-03-09  Bruno Haible  <bruno@clisp.org>
41069
41070         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41071         invocations.
41072
41073         * m4/mbscasecmp.m4: Remove file.
41074         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41075         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41076
41077         * m4/mbscasestr.m4: Remove file.
41078         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41079         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41080
41081         * m4/mbschr.m4: Remove file.
41082         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41083         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41084
41085         * m4/mbscspn.m4: Remove file.
41086         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41087         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41088
41089         * m4/mbslen.m4: Remove file.
41090         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41091         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41092
41093         * m4/mbsncasecmp.m4: Remove file.
41094         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41095         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41096
41097         * m4/mbsnlen.m4: Remove file.
41098         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41099         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41100
41101         * m4/mbspbrk.m4: Remove file.
41102         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41103         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41104
41105         * m4/mbspcasecmp.m4: Remove file.
41106         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41107         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41108
41109         * m4/mbsrchr.m4: Remove file.
41110         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41111         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41112
41113         * m4/mbssep.m4: Remove file.
41114         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41115         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41116
41117         * m4/mbsspn.m4: Remove file.
41118         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41119         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41120
41121         * m4/mbsstr.m4: Remove file.
41122         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41123         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41124
41125         * m4/mbstok_r.m4: Remove file.
41126         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41127         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41128
41129         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41130
41131         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41132         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41133
41134         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41135
41136 2009-03-08  Bruno Haible  <bruno@clisp.org>
41137
41138         Tests for module 'unicase/ulc-casecmp'.
41139         * modules/unicase/ulc-casecmp-tests: New file.
41140         * tests/unicase/test-ulc-casecmp1.sh: New file.
41141         * tests/unicase/test-ulc-casecmp2.sh: New file.
41142         * tests/unicase/test-ulc-casecmp.c: New file.
41143
41144         New module 'unicase/ulc-casecmp'.
41145         * lib/unicase.h (ulc_casecmp): New declaration.
41146         * lib/unicase/ulc-casecmp.c: New file.
41147         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41148         'const SRC_UNIT *'.
41149         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41150         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41151         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41152         * modules/unicase/ulc-casecmp: New file.
41153
41154         Tests for module 'unicase/u32-is-cased'.
41155         * modules/unicase/u32-is-cased-tests: New file.
41156         * tests/unicase/test-u32-is-cased.c: New file.
41157
41158         Tests for module 'unicase/u16-is-cased'.
41159         * modules/unicase/u16-is-cased-tests: New file.
41160         * tests/unicase/test-u16-is-cased.c: New file.
41161
41162         Tests for module 'unicase/u8-is-cased'.
41163         * modules/unicase/u8-is-cased-tests: New file.
41164         * tests/unicase/test-u8-is-cased.c: New file.
41165         * tests/unicase/test-is-cased.h: New file.
41166
41167         New module 'unicase/u32-is-cased'.
41168         * lib/unicase/u32-is-cased.c: New file.
41169         * modules/unicase/u32-is-cased: New file.
41170
41171         New module 'unicase/u16-is-cased'.
41172         * lib/unicase/u16-is-cased.c: New file.
41173         * modules/unicase/u16-is-cased: New file.
41174
41175         New module 'unicase/u8-is-cased'.
41176         * lib/unicase/u8-is-cased.c: New file.
41177         * lib/unicase/u-is-cased.h: New file.
41178         * modules/unicase/u8-is-cased: New file.
41179
41180         Tests for module 'unicase/u32-is-casefolded'.
41181         * modules/unicase/u32-is-casefolded-tests: New file.
41182         * tests/unicase/test-u32-is-casefolded.c: New file.
41183
41184         Tests for module 'unicase/u16-is-casefolded'.
41185         * modules/unicase/u16-is-casefolded-tests: New file.
41186         * tests/unicase/test-u16-is-casefolded.c: New file.
41187
41188         Tests for module 'unicase/u8-is-casefolded'.
41189         * modules/unicase/u8-is-casefolded-tests: New file.
41190         * tests/unicase/test-u8-is-casefolded.c: New file.
41191         * tests/unicase/test-is-casefolded.h: New file.
41192
41193         New module 'unicase/u32-is-casefolded'.
41194         * lib/unicase/u32-is-casefolded.c: New file.
41195         * modules/unicase/u32-is-casefolded: New file.
41196
41197         New module 'unicase/u16-is-casefolded'.
41198         * lib/unicase/u16-is-casefolded.c: New file.
41199         * modules/unicase/u16-is-casefolded: New file.
41200
41201         New module 'unicase/u8-is-casefolded'.
41202         * lib/unicase/u8-is-casefolded.c: New file.
41203         * modules/unicase/u8-is-casefolded: New file.
41204
41205         Tests for module 'unicase/u32-is-titlecase'.
41206         * modules/unicase/u32-is-titlecase-tests: New file.
41207         * tests/unicase/test-u32-is-titlecase.c: New file.
41208
41209         Tests for module 'unicase/u16-is-titlecase'.
41210         * modules/unicase/u16-is-titlecase-tests: New file.
41211         * tests/unicase/test-u16-is-titlecase.c: New file.
41212
41213         Tests for module 'unicase/u8-is-titlecase'.
41214         * modules/unicase/u8-is-titlecase-tests: New file.
41215         * tests/unicase/test-u8-is-titlecase.c: New file.
41216         * tests/unicase/test-is-titlecase.h: New file.
41217
41218         New module 'unicase/u32-is-titlecase'.
41219         * lib/unicase/u32-is-titlecase.c: New file.
41220         * modules/unicase/u32-is-titlecase: New file.
41221
41222         New module 'unicase/u16-is-titlecase'.
41223         * lib/unicase/u16-is-titlecase.c: New file.
41224         * modules/unicase/u16-is-titlecase: New file.
41225
41226         New module 'unicase/u8-is-titlecase'.
41227         * lib/unicase/u8-is-titlecase.c: New file.
41228         * modules/unicase/u8-is-titlecase: New file.
41229
41230         Tests for module 'unicase/u32-is-lowercase'.
41231         * modules/unicase/u32-is-lowercase-tests: New file.
41232         * tests/unicase/test-u32-is-lowercase.c: New file.
41233
41234         Tests for module 'unicase/u16-is-lowercase'.
41235         * modules/unicase/u16-is-lowercase-tests: New file.
41236         * tests/unicase/test-u16-is-lowercase.c: New file.
41237
41238         Tests for module 'unicase/u8-is-lowercase'.
41239         * modules/unicase/u8-is-lowercase-tests: New file.
41240         * tests/unicase/test-u8-is-lowercase.c: New file.
41241         * tests/unicase/test-is-lowercase.h: New file.
41242
41243         New module 'unicase/u32-is-lowercase'.
41244         * lib/unicase/u32-is-lowercase.c: New file.
41245         * modules/unicase/u32-is-lowercase: New file.
41246
41247         New module 'unicase/u16-is-lowercase'.
41248         * lib/unicase/u16-is-lowercase.c: New file.
41249         * modules/unicase/u16-is-lowercase: New file.
41250
41251         New module 'unicase/u8-is-lowercase'.
41252         * lib/unicase/u8-is-lowercase.c: New file.
41253         * modules/unicase/u8-is-lowercase: New file.
41254
41255         Tests for module 'unicase/u32-is-uppercase'.
41256         * modules/unicase/u32-is-uppercase-tests: New file.
41257         * tests/unicase/test-u32-is-uppercase.c: New file.
41258
41259         Tests for module 'unicase/u16-is-uppercase'.
41260         * modules/unicase/u16-is-uppercase-tests: New file.
41261         * tests/unicase/test-u16-is-uppercase.c: New file.
41262
41263         Tests for module 'unicase/u8-is-uppercase'.
41264         * modules/unicase/u8-is-uppercase-tests: New file.
41265         * tests/unicase/test-u8-is-uppercase.c: New file.
41266         * tests/unicase/test-is-uppercase.h: New file.
41267
41268         New module 'unicase/u32-is-uppercase'.
41269         * lib/unicase/u32-is-uppercase.c: New file.
41270         * modules/unicase/u32-is-uppercase: New file.
41271
41272         New module 'unicase/u16-is-uppercase'.
41273         * lib/unicase/u16-is-uppercase.c: New file.
41274         * modules/unicase/u16-is-uppercase: New file.
41275
41276         New module 'unicase/u8-is-uppercase'.
41277         * lib/unicase/u8-is-uppercase.c: New file.
41278         * modules/unicase/u8-is-uppercase: New file.
41279
41280         New module 'unicase/u32-is-invariant'.
41281         * lib/unicase/u32-is-invariant.c: New file.
41282         * modules/unicase/u32-is-invariant: New file.
41283
41284         New module 'unicase/u16-is-invariant'.
41285         * lib/unicase/u16-is-invariant.c: New file.
41286         * modules/unicase/u16-is-invariant: New file.
41287
41288         New module 'unicase/u8-is-invariant'.
41289         * lib/unicase/u8-is-invariant.c: New file.
41290         * lib/unicase/invariant.h: New file.
41291         * lib/unicase/u-is-invariant.h: New file.
41292         * modules/unicase/u8-is-invariant: New file.
41293
41294         Tests for module 'unicase/u32-casecoll'.
41295         * modules/unicase/u32-casecoll-tests: New file.
41296         * tests/unicase/test-u32-casecoll.c: New file.
41297
41298         Tests for module 'unicase/u16-casecoll'.
41299         * modules/unicase/u16-casecoll-tests: New file.
41300         * tests/unicase/test-u16-casecoll.c: New file.
41301
41302         Tests for module 'unicase/u8-casecoll'.
41303         * modules/unicase/u8-casecoll-tests: New file.
41304         * tests/unicase/test-u8-casecoll.c: New file.
41305
41306         New module 'unicase/u32-casecoll'.
41307         * lib/unicase/u32-casecoll.c: New file.
41308         * modules/unicase/u32-casecoll: New file.
41309
41310         New module 'unicase/u16-casecoll'.
41311         * lib/unicase/u16-casecoll.c: New file.
41312         * modules/unicase/u16-casecoll: New file.
41313
41314         New module 'unicase/u8-casecoll'.
41315         * lib/unicase/u8-casecoll.c: New file.
41316         * lib/unicase/u-casecoll.h: New file.
41317         * modules/unicase/u8-casecoll: New file.
41318
41319         New module 'unicase/u32-casexfrm'.
41320         * lib/unicase/u32-casexfrm.c: New file.
41321         * modules/unicase/u32-casexfrm: New file.
41322
41323         New module 'unicase/u16-casexfrm'.
41324         * lib/unicase/u16-casexfrm.c: New file.
41325         * modules/unicase/u16-casexfrm: New file.
41326
41327         New module 'unicase/u8-casexfrm'.
41328         * lib/unicase/u8-casexfrm.c: New file.
41329         * lib/unicase/u-casexfrm.h: New file.
41330         * modules/unicase/u8-casexfrm: New file.
41331
41332         Tests for module 'unicase/u32-casecmp'.
41333         * modules/unicase/u32-casecmp-tests: New file.
41334         * tests/unicase/test-u32-casecmp.c: New file.
41335
41336         Tests for module 'unicase/u16-casecmp'.
41337         * modules/unicase/u16-casecmp-tests: New file.
41338         * tests/unicase/test-u16-casecmp.c: New file.
41339
41340         Tests for module 'unicase/u8-casecmp'.
41341         * modules/unicase/u8-casecmp-tests: New file.
41342         * tests/unicase/test-u8-casecmp.c: New file.
41343         * tests/unicase/test-casecmp.h: New file.
41344
41345         New module 'unicase/u32-casecmp'.
41346         * lib/unicase/u32-casecmp.c: New file.
41347         * modules/unicase/u32-casecmp: New file.
41348
41349         New module 'unicase/u16-casecmp'.
41350         * lib/unicase/u16-casecmp.c: New file.
41351         * modules/unicase/u16-casecmp: New file.
41352
41353         New module 'unicase/u8-casecmp'.
41354         * lib/unicase/u8-casecmp.c: New file.
41355         * lib/unicase/u-casecmp.h: New file.
41356         * modules/unicase/u8-casecmp: New file.
41357
41358         Tests for module 'unicase/u32-casefold'.
41359         * modules/unicase/u32-casefold-tests: New file.
41360         * tests/unicase/test-u32-casefold.c: New file.
41361
41362         Tests for module 'unicase/u16-casefold'.
41363         * modules/unicase/u16-casefold-tests: New file.
41364         * tests/unicase/test-u16-casefold.c: New file.
41365
41366         Tests for module 'unicase/u8-casefold'.
41367         * modules/unicase/u8-casefold-tests: New file.
41368         * tests/unicase/test-u8-casefold.c: New file.
41369
41370         New module 'unicase/u32-casefold'.
41371         * lib/unicase/u32-casefold.c: New file.
41372         * modules/unicase/u32-casefold: New file.
41373
41374         New module 'unicase/u16-casefold'.
41375         * lib/unicase/u16-casefold.c: New file.
41376         * modules/unicase/u16-casefold: New file.
41377
41378         New module 'unicase/u8-casefold'.
41379         * lib/unicase/u8-casefold.c: New file.
41380         * lib/unicase/u-casefold.h: New file.
41381         * modules/unicase/u8-casefold: New file.
41382
41383         New module 'unicase/tocasefold'.
41384         * lib/unicase/casefold.h: New file.
41385         * lib/unicase/tocasefold.c: New file.
41386         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41387         * modules/unicase/tocasefold: New file.
41388
41389         Tests for module 'unicase/u32-totitle'.
41390         * modules/unicase/u32-totitle-tests: New file.
41391         * tests/unicase/test-u32-totitle.c: New file.
41392
41393         Tests for module 'unicase/u16-totitle'.
41394         * modules/unicase/u16-totitle-tests: New file.
41395         * tests/unicase/test-u16-totitle.c: New file.
41396
41397         Tests for module 'unicase/u8-totitle'.
41398         * modules/unicase/u8-totitle-tests: New file.
41399         * tests/unicase/test-u8-totitle.c: New file.
41400
41401         New module 'unicase/u32-totitle'.
41402         * lib/unicase/u32-totitle.c: New file.
41403         * modules/unicase/u32-totitle: New file.
41404
41405         New module 'unicase/u16-totitle'.
41406         * lib/unicase/u16-totitle.c: New file.
41407         * modules/unicase/u16-totitle: New file.
41408
41409         New module 'unicase/u8-totitle'.
41410         * lib/unicase/u8-totitle.c: New file.
41411         * lib/unicase/u-totitle.h: New file.
41412         * modules/unicase/u8-totitle: New file.
41413
41414         Tests for module 'unicase/u32-tolower'.
41415         * modules/unicase/u32-tolower-tests: New file.
41416         * tests/unicase/test-u32-tolower.c: New file.
41417
41418         Tests for module 'unicase/u16-tolower'.
41419         * modules/unicase/u16-tolower-tests: New file.
41420         * tests/unicase/test-u16-tolower.c: New file.
41421
41422         Tests for module 'unicase/u8-tolower'.
41423         * modules/unicase/u8-tolower-tests: New file.
41424         * tests/unicase/test-u8-tolower.c: New file.
41425
41426         New module 'unicase/u32-tolower'.
41427         * lib/unicase/u32-tolower.c: New file.
41428         * modules/unicase/u32-tolower: New file.
41429
41430         New module 'unicase/u16-tolower'.
41431         * lib/unicase/u16-tolower.c: New file.
41432         * modules/unicase/u16-tolower: New file.
41433
41434         New module 'unicase/u8-tolower'.
41435         * lib/unicase/u8-tolower.c: New file.
41436         * modules/unicase/u8-tolower: New file.
41437
41438         Tests for module 'unicase/u32-toupper'.
41439         * modules/unicase/u32-toupper-tests: New file.
41440         * tests/unicase/test-u32-toupper.c: New file.
41441
41442         Tests for module 'unicase/u16-toupper'.
41443         * modules/unicase/u16-toupper-tests: New file.
41444         * tests/unicase/test-u16-toupper.c: New file.
41445
41446         Tests for module 'unicase/u8-toupper'.
41447         * modules/unicase/u8-toupper-tests: New file.
41448         * tests/unicase/test-u8-toupper.c: New file.
41449
41450         New module 'unicase/u32-toupper'.
41451         * lib/unicase/u32-toupper.c: New file.
41452         * modules/unicase/u32-toupper: New file.
41453
41454         New module 'unicase/u16-toupper'.
41455         * lib/unicase/u16-toupper.c: New file.
41456         * modules/unicase/u16-toupper: New file.
41457
41458         New module 'unicase/u8-toupper'.
41459         * lib/unicase/u8-toupper.c: New file.
41460         * modules/unicase/u8-toupper: New file.
41461
41462         New module 'unicase/u32-casemap'.
41463         * lib/unicase/u32-casemap.c: New file.
41464         * modules/unicase/u32-casemap: New file.
41465
41466         New module 'unicase/u16-casemap'.
41467         * lib/unicase/u16-casemap.c: New file.
41468         * modules/unicase/u16-casemap: New file.
41469
41470         New module 'unicase/u8-casemap'.
41471         * lib/unicase/unicasemap.h: New file.
41472         * lib/unicase/u8-casemap.c: New file.
41473         * lib/unicase/u-casemap.h: New file.
41474         * modules/unicase/u8-casemap: New file.
41475
41476         New module 'unicase/special-casing'.
41477         * lib/unicase/special-casing.h: New file.
41478         * lib/unicase/special-casing.c: New file.
41479         * lib/unicase/special-casing-table.gperf: New file, generated by
41480         gen-uni-tables.c.
41481         * modules/unicase/special-casing: New file.
41482
41483         Tests for module 'unicase/locale-language'.
41484         * modules/unicase/locale-language-tests: New file.
41485         * tests/unicase/test-locale-language.sh: New file.
41486         * tests/unicase/test-locale-language.c: New file.
41487
41488         New module 'unicase/locale-language'.
41489         * lib/unicase/locale-language.c: New file.
41490         * lib/unicase/locale-languages.gperf: New file.
41491         * modules/unicase/locale-language: New file.
41492
41493         Generate more tables for case conversion and case folding.
41494         * lib/gen-uni-tables.c (SCC_*): New enum items.
41495         (struct special_casing_rule): New type.
41496         (casing_rules, num_casing_rules, allocated_casing_rules): New
41497         variables.
41498         (add_casing_rule, fill_casing_rules): New functions.
41499         (struct casefold_rule): New type.
41500         (casefolding_rules, num_casefolding_rules,
41501         allocated_casefolding_rules): New variables.
41502         (fill_casefolding_rules): New function.
41503         (unicode_casefold): New variable.
41504         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41505         sort_casing_rules, output_casing_rules): New functions.
41506         (main): Accept to more arguments: SpecialCasing.txt and
41507         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41508         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41509         Output mapping for casefolding.
41510
41511         * lib/unicase.h: Include stdbool.h, uninorm.h.
41512         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41513         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41514         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41515         arguments.
41516         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41517         resultp arguments.
41518         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41519         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41520         resultp arguments.
41521         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41522         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41523         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41524         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41525         declarations.
41526         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41527
41528 2009-03-08  Bruno Haible  <bruno@clisp.org>
41529
41530         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41531         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41532         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41533         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41534
41535 2009-03-07  Bruno Haible  <bruno@clisp.org>
41536
41537         Adjust u*_normcmp, u*_normcoll API.
41538         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41539         u16_normcoll, u32_normcoll): Change failure conventions.
41540         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41541         errno and return -1.
41542         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41543
41544 2009-03-07  Bruno Haible  <bruno@clisp.org>
41545
41546         Tests for module 'uninorm/u32-normcoll'.
41547         * modules/uninorm/u32-normcoll-tests: New file.
41548         * tests/uninorm/test-u32-normcoll.c: New file.
41549
41550         Tests for module 'uninorm/u16-normcoll'.
41551         * modules/uninorm/u16-normcoll-tests: New file.
41552         * tests/uninorm/test-u16-normcoll.c: New file.
41553
41554         Tests for module 'uninorm/u8-normcoll'.
41555         * modules/uninorm/u8-normcoll-tests: New file.
41556         * tests/uninorm/test-u8-normcoll.c: New file.
41557
41558 2009-03-07  Bruno Haible  <bruno@clisp.org>
41559
41560         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41561         tests/uninorm/test-u32-normcmp.c.
41562         * tests/uninorm/test-u32-normcmp.c: Include it.
41563         (test_nonascii): New function, extracted from main. Add some more
41564         tests.
41565         (main): Invoke test_ascii and test_nonascii.
41566         * modules/uninorm/u32-normcmp-tests (Files): Add
41567         tests/uninorm/test-u32-normcmp.h.
41568         (Depends-on): Remove uninorm/u32-normcmp.
41569
41570         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41571         tests/uninorm/test-u16-normcmp.c.
41572         * tests/uninorm/test-u16-normcmp.c: Include it.
41573         (test_nonascii): New function, extracted from main. Add some more
41574         tests.
41575         (main): Invoke test_ascii and test_nonascii.
41576         * modules/uninorm/u16-normcmp-tests (Files): Add
41577         tests/uninorm/test-u16-normcmp.h.
41578         (Depends-on): Remove uninorm/u16-normcmp.
41579
41580         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41581         tests/uninorm/test-u8-normcmp.c.
41582         * tests/uninorm/test-u8-normcmp.c: Include it.
41583         (test_nonascii): New function, extracted from main. Add some more
41584         tests.
41585         (main): Invoke test_ascii and test_nonascii.
41586         * modules/uninorm/u8-normcmp-tests (Files): Add
41587         tests/uninorm/test-u8-normcmp.h.
41588         (Depends-on): Remove uninorm/u8-normcmp.
41589
41590 2009-03-07  Bruno Haible  <bruno@clisp.org>
41591
41592         New module 'uninorm/u32-normcoll'.
41593         * lib/uninorm/u32-normcoll.c: New file.
41594         * modules/uninorm/u32-normcoll: New file.
41595
41596         New module 'uninorm/u16-normcoll'.
41597         * lib/uninorm/u16-normcoll.c: New file.
41598         * modules/uninorm/u16-normcoll: New file.
41599
41600         New module 'uninorm/u8-normcoll'.
41601         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41602         declarations.
41603         * lib/uninorm/u8-normcoll.c: New file.
41604         * lib/uninorm/u-normcoll.h: New file.
41605         * modules/uninorm/u8-normcoll: New file.
41606
41607         New module 'uninorm/u32-normxfrm'.
41608         * lib/uninorm/u32-normxfrm.c: New file.
41609         * modules/uninorm/u32-normxfrm: New file.
41610
41611         New module 'uninorm/u16-normxfrm'.
41612         * lib/uninorm/u16-normxfrm.c: New file.
41613         * modules/uninorm/u16-normxfrm: New file.
41614
41615         New module 'uninorm/u8-normxfrm'.
41616         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41617         declarations.
41618         * lib/uninorm/u8-normxfrm.c: New file.
41619         * lib/uninorm/u-normxfrm.h: New file.
41620         * modules/uninorm/u8-normxfrm: New file.
41621
41622 2009-03-07  Bruno Haible  <bruno@clisp.org>
41623
41624         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41625         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41626         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41627
41628 2009-03-07  Bruno Haible  <bruno@clisp.org>
41629
41630         New module 'memxfrm'.
41631         * lib/memxfrm.h: New file.
41632         * lib/memxfrm.c: New file.
41633         * modules/memxfrm: New file.
41634
41635 2009-03-07  Bruno Haible  <bruno@clisp.org>
41636
41637         New module 'memcmp2'.
41638         * lib/memcmp2.h: New file.
41639         * lib/memcmp2.c: New file.
41640         * modules/memcmp2: New file.
41641
41642 2009-03-07  Bruno Haible  <bruno@clisp.org>
41643
41644         Tests for module 'uninorm/decomposing-form'.
41645         * modules/uninorm/decomposing-form-tests: New file.
41646         * tests/uninorm/test-decomposing-form.c: New file.
41647
41648         New module 'uninorm/decomposing-form'.
41649         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41650         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41651         Add 'decomposing_variant' field.
41652         * lib/uninorm/decomposing-form.c: New file.
41653         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41654         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41655         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41656         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41657         * modules/uninorm/decomposing-form: New file.
41658         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41659         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41660
41661 2009-03-07  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41664         strings.
41665
41666 2009-03-06  Bruno Haible  <bruno@clisp.org>
41667
41668         Tests for module 'uninorm/u32-normcmp'.
41669         * tests/uninorm/test-u32-normcmp.c: New file.
41670         * modules/uninorm/u32-normcmp-tests: New file.
41671
41672         Tests for module 'uninorm/u16-normcmp'.
41673         * tests/uninorm/test-u16-normcmp.c: New file.
41674         * modules/uninorm/u16-normcmp-tests: New file.
41675
41676         Tests for module 'uninorm/u8-normcmp'.
41677         * tests/uninorm/test-u8-normcmp.c: New file.
41678         * modules/uninorm/u8-normcmp-tests: New file.
41679
41680         New module 'uninorm/u32-normcmp'.
41681         * lib/uninorm/u32-normcmp.c: New file.
41682         * modules/uninorm/u32-normcmp: New file.
41683
41684         New module 'uninorm/u16-normcmp'.
41685         * lib/uninorm/u16-normcmp.c: New file.
41686         * modules/uninorm/u16-normcmp: New file.
41687
41688         New module 'uninorm/u8-normcmp'.
41689         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41690         declarations.
41691         * lib/uninorm/u8-normcmp.c: New file.
41692         * lib/uninorm/u-normcmp.h: New file.
41693         * modules/uninorm/u8-normcmp: New file.
41694
41695 2009-03-06  Bruno Haible  <bruno@clisp.org>
41696
41697         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41698         Reported by Eric Blake.
41699
41700 2009-03-06  Eric Blake  <ebb9@byu.net>
41701             Bruno Haible  <bruno@clisp.org>
41702
41703         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41704         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41705         condition.
41706         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41707         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41708         condition.
41709         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41710
41711 2009-03-06  Eric Blake  <ebb9@byu.net>
41712
41713         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41714         to avoid compiler warnings.
41715         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41716
41717 2009-03-05  Bruno Haible  <bruno@clisp.org>
41718
41719         * tests/test-ftell.c (main): Disable test beyond end of file on
41720         FreeMiNT.
41721         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41722
41723 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41724
41725         * lib/filevercmp.c: Move hidden files up in ordering.
41726         * tests/test-filevercmp.c: Add tests for hidden files.
41727
41728 2009-03-04  Bruno Haible  <bruno@clisp.org>
41729
41730         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41731         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41732         AM_CFLAGS.
41733         Reported by Simon Josefsson.
41734
41735 2009-03-03  Bruno Haible  <bruno@clisp.org>
41736
41737         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41738         Reported by Simon Josefsson.
41739
41740         * doc/ld-version-script.texi: Update node reference.
41741
41742 2009-03-03  Bruno Haible  <bruno@clisp.org>
41743
41744         * modules/visibility (License): Change to 'unlimited'.
41745         Suggested by Simon Josefsson.
41746
41747 2009-03-03  Jim Meyering  <meyering@redhat.com>
41748
41749         unlinkdir: cannot_unlink_dir may modify process state
41750         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41751         it's neither thread-safe nor appropriate for use in a library.
41752
41753 2009-03-03  Eric Blake  <ebb9@byu.net>
41754
41755         test-closein: silence test under Darwin
41756         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41757         care if it dies from EPIPE or EBADF.
41758
41759 2009-03-03  Bruno Haible  <bruno@clisp.org>
41760
41761         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41762         earlier.
41763         * doc/visibility.texi: Fix @node and @section.
41764
41765 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41766
41767         * doc/gnulib.texi: Link to sections for ld version script and
41768         visibility.
41769         * doc/visibility.texi: Add @node and @section.
41770         * modules/ld-version-script: New module.
41771         * m4/ld-version-script.m4: New file.
41772         * doc/ld-version-script.texi: New file.
41773
41774 2009-03-02  David Lutterkort  <lutter@redhat.com>
41775
41776         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41778
41779 2009-03-02  Bruno Haible  <bruno@clisp.org>
41780
41781         * doc/visibility.texi: Mention libtool's -export-symbols option.
41782
41783 2009-03-02  Jim Meyering  <meyering@redhat.com>
41784
41785         announce-gen: new option: --no-print-checksums
41786         * build-aux/announce-gen (usage): Describe it.
41787         (print_checksums): Print a newline here, not in the [*] footnote.
41788         (main): Honor it.
41789
41790 2009-03-01  Bruno Haible  <bruno@clisp.org>
41791
41792         Use socklen_t in the native Windows replacements prototypes.
41793         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41794         instead of 'int'.
41795         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41796         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41797         * modules/getsockopt (Depends-on): Add socklen.
41798         * modules/setsockopt (Depends-on): Add socklen.
41799
41800 2009-03-01  Bruno Haible  <bruno@clisp.org>
41801
41802         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41803         least 4.2.
41804
41805 2009-03-01  Eric Blake  <ebb9@byu.net>
41806             Bruno Haible  <bruno@clisp.org>
41807
41808         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41809         error messages.
41810         * lib/wait-process.c (wait_subprocess): Omit error message about
41811         deadly signal sent to the child of termsigp != NULL.
41812
41813 2009-03-01  Eric Blake  <ebb9@byu.net>
41814
41815         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41816
41817 2009-03-01  Bruno Haible  <bruno@clisp.org>
41818
41819         Avoid a gcc warning.
41820         * tests/test-sched.c (b): Make global.
41821         Reported by Eric Blake.
41822
41823 2009-01-19  Martin Lambers  <marlam@marlam.de>
41824
41825         Provide POSIX semantics for socket timeout options on W32.
41826         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41827         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41828         * modules/setsockopt: Depend on sys_time module for struct timeval.
41829         * modules/getsockopt: Depend on sys_time module for struct timeval.
41830
41831 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41832
41833         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41834         __USE_GNU, for consistency with netdb.in.h.
41835         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41836
41837 2009-03-01  Bruno Haible  <bruno@clisp.org>
41838
41839         More support for FreeMiNT.
41840         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41841         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41842
41843 2009-03-01  Bruno Haible  <bruno@clisp.org>
41844
41845         More support for FreeMiNT.
41846         * lib/fpurge.c (fpurge): Correct last commit.
41847         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41848
41849 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41850
41851         Fix unportable awk script in vc-list-files.
41852         * build-aux/vc-list-files: In the replacement awk script, use
41853         substr with a second argument of 1, not zero.
41854         Report by Simon Josefsson.
41855
41856 2009-02-28  Bruno Haible  <bruno@clisp.org>
41857
41858         More support for FreeMiNT.
41859         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41860         to FreeMiNT today.
41861         * lib/fwriting.c (fwriting): Likewise.
41862         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41863
41864 2009-02-28  Bruno Haible  <bruno@clisp.org>
41865
41866         * tests/test-freadseek.c (main): Disable test beyond end of file on
41867         FreeMiNT.
41868         * tests/test-ftello.c (main): Likewise.
41869         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41870
41871 2009-02-28  Bruno Haible  <bruno@clisp.org>
41872
41873         Add tentative support for FreeMiNT.
41874         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41875         * lib/fpurge.c (fpurge): Likewise.
41876         * lib/freadable.c (freadable): Likewise.
41877         * lib/freading.c (freading): Likewise.
41878         * lib/freadptr.c (freadptr): Likewise.
41879         * lib/freadseek.c (freadptrinc): Likewise.
41880         * lib/fseeko.c (rpl_fseeko): Likewise.
41881         * lib/fseterr.c (fseterr): Likewise.
41882         * lib/fwritable.c (fwritable): Likewise.
41883         * lib/fwriting.c (fwriting): Likewise.
41884         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41885         Hourihane.
41886         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41887
41888 2009-02-28  Bruno Haible  <bruno@clisp.org>
41889
41890         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41891         SIGCHLD.
41892         Reported by Jim Meyering.
41893
41894 2009-02-28  Bruno Haible  <bruno@clisp.org>
41895
41896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41897         Mention the results of these tests on various platforms.
41898         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41899         order.
41900         * doc/posix-functions/printf.texi: Likewise.
41901         * doc/posix-functions/snprintf.texi: Likewise.
41902         * doc/posix-functions/sprintf.texi: Likewise.
41903         * doc/posix-functions/vfprintf.texi: Likewise.
41904         * doc/posix-functions/vprintf.texi: Likewise.
41905         * doc/posix-functions/vsnprintf.texi: Likewise.
41906         * doc/posix-functions/vsprintf.texi: Likewise.
41907         * doc/glibc-functions/obstack_printf.texi: Likewise.
41908         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41909
41910 2009-02-28  Bruno Haible  <bruno@clisp.org>
41911
41912         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41913         Reported by Loïc Minier <lool@dooz.org>.
41914
41915 2009-02-27  Bruno Haible  <bruno@clisp.org>
41916
41917         * gnulib-tool (func_import): Make the sed expression used to create the
41918         sed script for updating the .gitignore file POSIX compliant.
41919         Reported by Eric Blake.
41920
41921 2009-02-27  Bruno Haible  <bruno@clisp.org>
41922
41923         * gnulib-tool (sed): Don't alias as "sed --posix".
41924         Reported by Eric Blake.
41925
41926 2009-02-27  Bruno Haible  <bruno@clisp.org>
41927
41928         Avoid test link errors.
41929         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41930         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41931         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41932         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41934
41935 2009-02-27  Bruno Haible  <bruno@clisp.org>
41936
41937         Avoid spurious "(cached)" in configure output.
41938         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41939         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41940         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41942         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41943         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41944         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41945         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41946         Reported by Eric Blake.
41947
41948 2009-02-27  Eric Blake  <ebb9@byu.net>
41949
41950         printf: fix regression in previous patch
41951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41952
41953 2009-02-27  Bruno Haible  <bruno@clisp.org>
41954
41955         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41956         value.
41957         * lib/stdint.in.h: Likewise.
41958         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41959
41960 2009-02-27  Eric Blake  <ebb9@byu.net>
41961
41962         doc: mention more functions added in cygwin 1.7.0
41963         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41964         addition.
41965         * doc/posix-functions/open_wmemstream.texi: Likewise.
41966         * doc/posix-functions/wcsnlen.texi: Likewise.
41967         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41968         * doc/posix-functions/wcstod.texi: Likewise.
41969         * doc/posix-functions/wcstof.texi: Likewise.
41970         * doc/posix-functions/wcstoimax.texi: Likewise.
41971         * doc/posix-functions/wcstok.texi: Likewise.
41972         * doc/posix-functions/wcstoumax.texi: Likewise.
41973
41974         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41976         * doc/posix-functions/fprintf.texi: Update.
41977         * doc/posix-functions/printf.texi: Update.
41978         * doc/posix-functions/snprintf.texi: Update.
41979         * doc/posix-functions/sprintf.texi: Update.
41980         * doc/posix-functions/vfprintf.texi: Update.
41981         * doc/posix-functions/vprintf.texi: Update.
41982         * doc/posix-functions/vsnprintf.texi: Update.
41983         * doc/posix-functions/vsprintf.texi: Update.
41984         * doc/glibc-functions/obstack_printf.texi: Update.
41985         * doc/glibc-functions/obstack_vprintf.texi: Update.
41986
41987 2009-02-26  Eric Blake  <ebb9@byu.net>
41988
41989         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41990         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41991         compilation bug by using runtime conversion.
41992         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41993         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41994         * modules/ceill-tests (Files): Use nan.h.
41995         * modules/floorl-tests (Files): Likewise.
41996         * modules/frexpl-tests (Files): Likewise.
41997         * modules/isnanl-tests (Files): Likewise.
41998         * modules/ldexpl-tests (Files): Likewise.
41999         * modules/roundl-tests (Files): Likewise.
42000         * modules/truncl-tests (Files): Likewise.
42001         * tests/test-ceill.c (main): Use a working NaN.
42002         * tests/test-floorl.c (main): Likewise.
42003         * tests/test-frexpl.c (main): Likewise.
42004         * tests/test-isnan.c (test_long_double): Likewise.
42005         * tests/test-isnanl.h (main): Likewise.
42006         * tests/test-ldexpl.h (main): Likewise.
42007         * tests/test-roundl.h (main): Likewise.
42008         * tests/test-truncl.h (main): Likewise.
42009         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42010
42011 2009-02-26  Eric Blake  <ebb9@byu.net>
42012             Bruno Haible  <bruno@clisp.org>
42013
42014         Work around a *printf bug with %ls on Solaris.
42015         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42016         precision is specified, sprintf stops converting the wide string
42017         argument when the number of bytes that have been produced by this
42018         conversion equals or exceeds the precision.
42019         * doc/posix-functions/fprintf.texi: Update.
42020         * doc/posix-functions/printf.texi: Update.
42021         * doc/posix-functions/snprintf.texi: Update.
42022         * doc/posix-functions/sprintf.texi: Update.
42023         * doc/posix-functions/vfprintf.texi: Update.
42024         * doc/posix-functions/vprintf.texi: Update.
42025         * doc/posix-functions/vsnprintf.texi: Update.
42026         * doc/posix-functions/vsprintf.texi: Update.
42027         * doc/glibc-functions/obstack_printf.texi: Update.
42028         * doc/glibc-functions/obstack_vprintf.texi: Update.
42029
42030 2009-02-26  Eric Blake  <ebb9@byu.net>
42031
42032         stdlib: favor compiler check of random.h
42033         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42034         to avoid an ObjC random.h installed by Swarm.
42035
42036 2009-02-26  Bruno Haible  <bruno@clisp.org>
42037
42038         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42039         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42040         Reported by Gary V. Vaughan <gary@gnu.org>.
42041
42042 2009-02-26  Bruno Haible  <bruno@clisp.org>
42043
42044         Fix *printf behaviour regarding the %ls directive.
42045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42046         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42047         NEED_PRINTF_DIRECTIVE_LS.
42048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42049         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42050         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42051         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42052         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42053         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42054         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42055         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42056         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42057         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42058         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42059         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42060         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42062         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42063         * doc/posix-functions/fprintf.texi: Update.
42064         * doc/posix-functions/printf.texi: Update.
42065         * doc/posix-functions/snprintf.texi: Update.
42066         * doc/posix-functions/sprintf.texi: Update.
42067         * doc/posix-functions/vfprintf.texi: Update.
42068         * doc/posix-functions/vprintf.texi: Update.
42069         * doc/posix-functions/vsnprintf.texi: Update.
42070         * doc/posix-functions/vsprintf.texi: Update.
42071         * doc/glibc-functions/obstack_printf.texi: Update.
42072         * doc/glibc-functions/obstack_vprintf.texi: Update.
42073         Reported by Eric Blake.
42074
42075 2009-02-25  Bruno Haible  <bruno@clisp.org>
42076
42077         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42078         with known value.
42079         Reported by Gary V. Vaughan <gary@gnu.org>.
42080
42081 2009-02-25  Bruno Haible  <bruno@clisp.org>
42082
42083         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42084         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42085         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42086         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42087         Reported by Gary V. Vaughan <gary@gnu.org>.
42088
42089 2009-02-25  Bruno Haible  <bruno@clisp.org>
42090
42091         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42092         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42093         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42094         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42095         Reported by Gary V. Vaughan <gary@gnu.org>.
42096
42097 2009-02-25  Eric Blake  <ebb9@byu.net>
42098
42099         tests: skip fseek/ftell tests if ungetc is broken
42100         * m4/ungetc.m4: New file.
42101         * modules/fseek-tests: Split test, so ungetc dependency is
42102         separate from rest of test.
42103         * modules/fseeko-tests: Likewise.
42104         * modules/ftell-tests: Likewise.
42105         * modules/ftello-tests: Likewise.
42106         * tests/test-fseek.c (main): Isolate ungetc dependency.
42107         * tests/test-fseeko.c (main): Likewise.
42108         * tests/test-ftell.c (main): Likewise.
42109         * tests/test-ftello.c (main): Likewise.
42110         * tests/test-fseek2.sh: New file.
42111         * tests/test-fseeko2.sh: Likewise.
42112         * tests/test-ftell2.sh: Likewise.
42113         * tests/test-ftello2.sh: Likewise.
42114
42115 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42116
42117         test-getaddrinfo: fix usage of skip return code 77
42118         * tests/test-gettaddrinfo.c: Return skip code 77 only
42119         for first occurance of skip (4x77 is not 77)
42120
42121 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42122
42123         strtod: avoid C99 decl-after-statement
42124         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42125
42126 2009-02-24  Eric Blake  <ebb9@byu.net>
42127
42128         strtod: detect HP-UX 11.31 bug
42129         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42130         Reported by Gary V. Vaughan.
42131
42132 2009-02-23  Bruno Haible  <bruno@clisp.org>
42133
42134         Fix invalid read past end of memory block.
42135         * lib/vasnprintf.c (DCHAR_SET): Define.
42136         (local_wcslen): Define only when needed.
42137         (local_strnlen, local_wcsnlen): New functions.
42138         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42139         directives that involve a conversion ourselves.
42140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42141         wcsnlen, mbrtowc, wcrtomb.
42142         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42143         * tests/test-vasprintf-posix.c (test_function): Likewise.
42144         * tests/test-snprintf-posix.h (test_function): Likewise.
42145         * tests/test-sprintf-posix.h (test_function): Likewise.
42146         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42147
42148 2009-02-22  Bruno Haible  <bruno@clisp.org>
42149
42150         Implement new clarified decomposition of Hangul syllables.
42151         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42152         of type LTV, return only a pairwise decomposition.
42153         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42154         Likewise.
42155         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42156         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42157         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42158
42159 2009-02-22  Bruno Haible  <bruno@clisp.org>
42160
42161         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42162         zero-length results and shrink excess allocated memory.
42163         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42164         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42165         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42166         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42167         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42168         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42169         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42170         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42171         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42172         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42173         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42174         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42175
42176 2009-02-21  Bruno Haible  <bruno@clisp.org>
42177
42178         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42179         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42180         spaces after a period. Put a space between a macro name and its
42181         argument list. Trivial rewordings.
42182         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42183         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42184         (main): Return 0 explicitly.
42185
42186 2009-02-21  Bruno Haible  <bruno@clisp.org>
42187
42188         Tests for module 'uninorm/filter'.
42189         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42190         * modules/uninorm/filter-tests: New file.
42191
42192         New module 'uninorm/filter'.
42193         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42194         uninorm_filter_flush, uninorm_filter_free): New declarations.
42195         * lib/uninorm/uninorm-filter.c: New file.
42196         * modules/uninorm/filter: New file.
42197
42198 2009-02-21  Bruno Haible  <bruno@clisp.org>
42199
42200         Tests for module 'uninorm/nfkc'.
42201         * tests/uninorm/test-nfkc.c: New file.
42202         * tests/uninorm/test-u8-nfkc.c: New file.
42203         * tests/uninorm/test-u16-nfkc.c: New file.
42204         * tests/uninorm/test-u32-nfkc.c: New file.
42205         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42206         * tests/uninorm/test-u32-nfkc-big.c: New file.
42207         * modules/uninorm/nfkc-tests: New file.
42208
42209         New module 'uninorm/nfkc'.
42210         * lib/uninorm/nfkc.c: New file.
42211         * modules/uninorm/nfkc: New file.
42212
42213         Tests for module 'uninorm/nfkd'.
42214         * tests/uninorm/test-nfkd.c: New file.
42215         * tests/uninorm/test-u8-nfkd.c: New file.
42216         * tests/uninorm/test-u16-nfkd.c: New file.
42217         * tests/uninorm/test-u32-nfkd.c: New file.
42218         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42219         * tests/uninorm/test-u32-nfkd-big.c: New file.
42220         * modules/uninorm/nfkd-tests: New file.
42221
42222         New module 'uninorm/nfkd'.
42223         * lib/uninorm/nfkd.c: New file.
42224         * modules/uninorm/nfkd: New file.
42225
42226         Tests for module 'uninorm/nfc'.
42227         * tests/uninorm/test-nfc.c: New file.
42228         * tests/uninorm/test-u8-nfc.c: New file.
42229         * tests/uninorm/test-u16-nfc.c: New file.
42230         * tests/uninorm/test-u32-nfc.c: New file.
42231         * tests/uninorm/test-u32-nfc-big.sh: New file.
42232         * tests/uninorm/test-u32-nfc-big.c: New file.
42233         * modules/uninorm/nfc-tests: New file.
42234
42235         New module 'uninorm/nfc'.
42236         * lib/uninorm/nfc.c: New file.
42237         * modules/uninorm/nfc: New file.
42238
42239         Tests for module 'uninorm/nfd'.
42240         * tests/uninorm/test-nfd.c: New file.
42241         * tests/uninorm/test-u8-nfd.c: New file.
42242         * tests/uninorm/test-u16-nfd.c: New file.
42243         * tests/uninorm/test-u32-nfd.c: New file.
42244         * tests/uninorm/test-u32-nfd-big.sh: New file.
42245         * tests/uninorm/test-u32-nfd-big.c: New file.
42246         * tests/uninorm/test-u32-normalize-big.h: New file.
42247         * tests/uninorm/test-u32-normalize-big.c: New file.
42248         * tests/uninorm/NormalizationTest.txt: New file, created from
42249         Unicode 5.1.0 NormalizationTest.txt.
42250         * modules/uninorm/nfd-tests: New file.
42251
42252         New module 'uninorm/nfd'.
42253         * lib/uninorm/nfd.c: New file.
42254         * modules/uninorm/nfd: New file.
42255
42256         New module 'uninorm/u32-normalize'.
42257         * lib/uninorm/u32-normalize.c: New file.
42258         * modules/uninorm/u32-normalize: New file.
42259
42260         New module 'uninorm/u16-normalize'.
42261         * lib/uninorm/u16-normalize.c: New file.
42262         * modules/uninorm/u16-normalize: New file.
42263
42264         New module 'uninorm/u8-normalize'.
42265         * lib/uninorm/u8-normalize.c: New file.
42266         * lib/uninorm/normalize-internal.h: New file.
42267         * lib/uninorm/u-normalize-internal.h: New file.
42268         * modules/uninorm/u8-normalize: New file.
42269
42270         New module 'uninorm/decompose-internal'.
42271         * lib/uninorm/decompose-internal.c: New file.
42272         * modules/uninorm/decompose-internal: New file.
42273
42274         Tests for module 'uninorm/composition'.
42275         * tests/uninorm/test-composition.c: New file.
42276         * modules/uninorm/composition-tests: New file.
42277
42278         New module 'uninorm/composition'.
42279         * lib/uninorm/composition.c: New file.
42280         * lib/uninorm/composition-table.gperf: New file, generated by
42281         gen-uni-tables.
42282         * modules/uninorm/composition: New file.
42283
42284         Tests for module 'uninorm/compat-decomposition'.
42285         * tests/uninorm/test-compat-decomposition.c: New file.
42286         * modules/uninorm/compat-decomposition-tests: New file.
42287
42288         New module 'uninorm/compat-decomposition'.
42289         * lib/uninorm/decompose-internal.h: New file.
42290         * lib/uninorm/compat-decomposition.c: New file.
42291         * modules/uninorm/compat-decomposition: New file.
42292
42293         Tests for module 'uninorm/canonical-decomposition'.
42294         * tests/uninorm/test-canonical-decomposition.c: New file.
42295         * modules/uninorm/canonical-decomposition-tests: New file.
42296
42297         New module 'uninorm/canonical-decomposition'.
42298         * lib/uninorm/canonical-decomposition.c: New file.
42299         * modules/uninorm/canonical-decomposition: New file.
42300
42301         Tests for module 'uninorm/decomposition'.
42302         * tests/uninorm/test-decomposition.c: New file.
42303         * modules/uninorm/decomposition-tests: New file.
42304
42305         New module 'uninorm/decomposition'.
42306         * lib/uninorm/decomposition.c: New file.
42307         * modules/uninorm/decomposition: New file.
42308
42309         New module 'uninorm/decomposition-table'.
42310         * lib/uninorm/decomposition-table.h: New file.
42311         * lib/uninorm/decomposition-table.c: New file.
42312         * lib/uninorm/decomposition-table1.h: New file, generated by
42313         gen-uni-tables.
42314         * lib/uninorm/decomposition-table2.h: New file, generated by
42315         gen-uni-tables.
42316         * modules/uninorm/decomposition-table: New file.
42317
42318         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42319         (UC_DECOMP_*): New enumeration items.
42320         (get_decomposition): New function.
42321         (struct decomp_table): New type.
42322         (output_decomposition, output_decomposition_tables): New functions.
42323         (unicode_composition_exclusions): New variable.
42324         (fill_composition_exclusions, debug_output_composition_tables): New
42325         functions.
42326         (main): Accept one more argument. Invoke fill_composition_exclusions.
42327         Output decomposition and composition tables.
42328
42329         New module 'uninorm/base'.
42330         * lib/uninorm.h: New file.
42331         * lib/unictype.h: Update comment.
42332         * modules/uninorm/base: New file.
42333
42334 2009-02-21  David Lutterkort  <lutter@redhat.com>
42335
42336         Tests for module 'safe-alloc'.
42337         * tests/test-safe-alloc.c: New file.
42338         * modules/safe-alloc-tests: New file.
42339
42340         New module 'safe-alloc'.
42341         * lib/safe-alloc.h: New file.
42342         * lib/safe-alloc.c: New file.
42343         * m4/safe-alloc.m4: New file.
42344         * modules/safe-alloc: New file.
42345         * doc/safe-alloc.texi: New file.
42346         * doc/gnulib.texi: Include it.
42347         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42348         safe-alloc.
42349
42350 2009-02-18  Bruno Haible  <bruno@clisp.org>
42351
42352         Fix link error on non-glibc systems.
42353         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42354         variable.
42355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42356
42357 2009-02-18  Jim Meyering  <meyering@redhat.com>
42358
42359         fts: avoid used-uninitialized error due to recent change
42360         * lib/fts.c (fts_read): Guard uses of the new member,
42361         parent->fts_n_dirs_remaining, since it's not relevant for
42362         the parent of a directory specified on the command-line.
42363
42364 2009-02-17  James Youngman  <jay@gnu.org>
42365             Bruno Haible  <bruno@clisp.org>
42366
42367         * m4/include_next.m4: Reformulate comment.
42368
42369 2009-02-16  Jim Meyering  <meyering@redhat.com>
42370
42371         fts: add #if guards so that the fts_lgpl module still builds
42372         * lib/fts.c: Guard just-added hash-table-using parts with
42373         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42374         Reported by Simon Josefsson.
42375
42376 2009-02-15  Bruno Haible  <bruno@clisp.org>
42377
42378         * modules/array-mergesort-tests: New file.
42379         * tests/test-array-mergesort.c: New file.
42380
42381         New module 'array-mergesort'.
42382         * modules/array-mergesort: New file.
42383         * lib/array-mergesort.h: New file.
42384
42385 2009-02-15  Bruno Haible  <bruno@clisp.org>
42386
42387         Fix 2009-02-07 commit.
42388         * lib/gen-uni-tables.c (output_predicate, output_category,
42389         output_combclass, output_bidi_category, output_decimal_digit,
42390         output_digit, output_numeric, output_mirror, output_scripts,
42391         output_ident_category, output_simple_mapping): Fix format directives.
42392         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42393
42394 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42395
42396         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42397         fixes are available from IBM.
42398
42399 2009-02-13  Jim Meyering  <meyering@redhat.com>
42400
42401         fts: arrange not to stat non-directories in more cases
42402         This makes GNU find (when it doesn't need to stat each file)
42403         *much* more efficient at traversing reiserfs file systems.
42404         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42405         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42406         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42407         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42408         (leaf_optimization_applies): New function.
42409         (LCO_hash, LCO_compare): New helper functions.
42410         (link_count_optimize_ok): New function.
42411         (fts_stat): Initialize new member (if dir).
42412         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42413         we've just stat'ed a directory.  Skip the stat call when possible.
42414         ---
42415         Note this AFS-related exchange:
42416         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42417         and note find's pioctl call in find/fstype.c.
42418         But that is necessary only if you want to enable the
42419         optimization for AFS, and for now, I don't.
42420
42421         fts: move a function definition "up" (no semantic change)
42422         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42423         "up" to precede upcoming use of a related function.
42424
42425 2009-02-11  Jim Meyering  <meyering@redhat.com>
42426
42427         fts: correct internal computation of nlinks (optimization-related)
42428         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42429         whether the current entry is a directory, so don't test it.
42430
42431 2009-02-10  Bruno Haible  <bruno@clisp.org>
42432
42433         Tests for module 'uniwbrk/ulc-wordbreaks'.
42434         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42435         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42436         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42437
42438         Tests for module 'uniwbrk/u32-wordbreaks'.
42439         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42440         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42441
42442         Tests for module 'uniwbrk/u16-wordbreaks'.
42443         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42444         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42445
42446         Tests for module 'uniwbrk/u8-wordbreaks'.
42447         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42448         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42449
42450 2009-02-10  Bruno Haible  <bruno@clisp.org>
42451
42452         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42453         property.
42454         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42455         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42456         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42457
42458 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42459
42460         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42461         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42462
42463 2009-02-10  Bruno Haible  <bruno@clisp.org>
42464
42465         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42466         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42467         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42468         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42469         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42470         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42471
42472 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42473
42474         * lib/sockets.h (gl_fd_to_handle): New function.
42475
42476         * tests/test-sockets.c: Call gl_fd_to_handle.
42477
42478 2009-02-09  Bruno Haible  <bruno@clisp.org>
42479
42480         * doc/havelib.texi: Document the conventions on bi-arch systems.
42481
42482 2009-02-08  Bruno Haible  <bruno@clisp.org>
42483
42484         Document the AC_LIB_LINKFLAGS macro.
42485         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42486         * doc/gnulib.texi: Include it.
42487
42488 2009-02-08  Bruno Haible  <bruno@clisp.org>
42489
42490         Fix wrong order of sections, compared to TOC.
42491         * doc/gnulib.texi: Include relocatable-maint.texi after the
42492         "Regular expressions" node, not before.
42493
42494 2009-02-08  Bruno Haible  <bruno@clisp.org>
42495
42496         Tests for module 'unicase/totitle'.
42497         * modules/unicase/totitle-tests: New file.
42498
42499         Tests for module 'unicase/tolower'.
42500         * modules/unicase/tolower-tests: New file.
42501
42502         Tests for module 'unicase/toupper'.
42503         * modules/unicase/toupper-tests: New file.
42504         * tests/unicase/test-mapping-part1.h: New file.
42505         * tests/unicase/test-mapping-part2.h: New file.
42506
42507         New module 'unicase/totitle'.
42508         * modules/unicase/totitle: New file.
42509         * lib/unicase/totitle.c: New file.
42510
42511         New module 'unicase/tolower'.
42512         * modules/unicase/tolower: New file.
42513         * lib/unicase/tolower.c: New file.
42514
42515         New module 'unicase/toupper'.
42516         * modules/unicase/toupper: New file.
42517         * lib/unicase/toupper.c: New file.
42518         * lib/unicase/simple-mapping.h: New file.
42519
42520         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42521         (mapping_table): New structure.
42522         (output_simple_mapping): New function.
42523         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42524         * modules/gen-uni-tables (Description): Update.
42525         * lib/unicase/toupper.h: New file, automatically generated by
42526         gen-uni-tables.
42527         * lib/unicase/tolower.h: New file, automatically generated by
42528         gen-uni-tables.
42529         * lib/unicase/totitle.h: New file, automatically generated by
42530         gen-uni-tables.
42531         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42532         gen-uni-tables.
42533         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42534         gen-uni-tables.
42535         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42536         gen-uni-tables.
42537
42538         New module 'unicase/base'.
42539         * modules/unicase/base: New file.
42540         * lib/unicase.h: New file.
42541
42542 2009-02-08  Bruno Haible  <bruno@clisp.org>
42543
42544         New module 'uniwbrk/ulc-wordbreaks'.
42545         * modules/uniwbrk/ulc-wordbreaks: New file.
42546         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42547
42548         New module 'uniwbrk/u32-wordbreaks'.
42549         * modules/uniwbrk/u32-wordbreaks: New file.
42550         * lib/uniwbrk/u32-wordbreaks.c: New file.
42551
42552         New module 'uniwbrk/u16-wordbreaks'.
42553         * modules/uniwbrk/u16-wordbreaks: New file.
42554         * lib/uniwbrk/u16-wordbreaks.c: New file.
42555
42556         New module 'uniwbrk/u8-wordbreaks'.
42557         * modules/uniwbrk/u8-wordbreaks: New file.
42558         * lib/uniwbrk/u8-wordbreaks.c: New file.
42559         * lib/uniwbrk/u-wordbreaks.h: New file.
42560
42561         New module 'uniwbrk/table'.
42562         * modules/uniwbrk/table: New file.
42563         * lib/uniwbrk/wbrktable.h: New file.
42564         * lib/uniwbrk/wbrktable.c: New file.
42565
42566         New module 'uniwbrk/wordbreak-property'.
42567         * modules/uniwbrk/wordbreak-property: New file.
42568         * lib/uniwbrk/wordbreak-property.c: New file.
42569
42570         * lib/gen-uni-tables.c (WBP_*): New enum items.
42571         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42572         (unicode_org_wbp): New variable.
42573         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42574         New functions.
42575         (wbp_table): New structure.
42576         (output_wbp, output_wbrk_tables): New functions.
42577         (main): Accept additional argument. Invoke fill_org_wbp,
42578         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42579         output_wbrk_tables.
42580         * modules/gen-uni-tables (Description): Update.
42581         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42582         gen-uni-tables.
42583
42584         New module 'uniwbrk/base'.
42585         * modules/uniwbrk/base: New file.
42586         * lib/uniwbrk.h: New file.
42587
42588 2009-02-08  Bruno Haible  <bruno@clisp.org>
42589
42590         Update to Unicode 5.1.0.
42591         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42592         U+2185..U+2188.
42593         (is_property_default_ignorable_code_point): Don't include characters
42594         of category Cc or Cs and not-a-characters.
42595         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42596         U+0D79, U+109E, U+109F, U+A60C.
42597         * lib/unictype/bidi_of.h: Regenerated.
42598         * lib/unictype/blocks.h: Regenerated.
42599         * lib/unictype/categ_C.h: Regenerated.
42600         * lib/unictype/categ_Cf.h: Regenerated.
42601         * lib/unictype/categ_Cn.h: Regenerated.
42602         * lib/unictype/categ_L.h: Regenerated.
42603         * lib/unictype/categ_Ll.h: Regenerated.
42604         * lib/unictype/categ_Lm.h: Regenerated.
42605         * lib/unictype/categ_Lo.h: Regenerated.
42606         * lib/unictype/categ_Lu.h: Regenerated.
42607         * lib/unictype/categ_M.h: Regenerated.
42608         * lib/unictype/categ_Mc.h: Regenerated.
42609         * lib/unictype/categ_Me.h: Regenerated.
42610         * lib/unictype/categ_Mn.h: Regenerated.
42611         * lib/unictype/categ_N.h: Regenerated.
42612         * lib/unictype/categ_Nd.h: Regenerated.
42613         * lib/unictype/categ_Nl.h: Regenerated.
42614         * lib/unictype/categ_No.h: Regenerated.
42615         * lib/unictype/categ_P.h: Regenerated.
42616         * lib/unictype/categ_Pd.h: Regenerated.
42617         * lib/unictype/categ_Pe.h: Regenerated.
42618         * lib/unictype/categ_Pf.h: Regenerated.
42619         * lib/unictype/categ_Pi.h: Regenerated.
42620         * lib/unictype/categ_Po.h: Regenerated.
42621         * lib/unictype/categ_Ps.h: Regenerated.
42622         * lib/unictype/categ_S.h: Regenerated.
42623         * lib/unictype/categ_Sk.h: Regenerated.
42624         * lib/unictype/categ_Sm.h: Regenerated.
42625         * lib/unictype/categ_So.h: Regenerated.
42626         * lib/unictype/categ_of.h: Regenerated.
42627         * lib/unictype/combining.h: Regenerated.
42628         * lib/unictype/ctype_alnum.h: Regenerated.
42629         * lib/unictype/ctype_alpha.h: Regenerated.
42630         * lib/unictype/ctype_graph.h: Regenerated.
42631         * lib/unictype/ctype_lower.h: Regenerated.
42632         * lib/unictype/ctype_print.h: Regenerated.
42633         * lib/unictype/ctype_punct.h: Regenerated.
42634         * lib/unictype/ctype_upper.h: Regenerated.
42635         * lib/unictype/decdigit.h: Regenerated.
42636         * lib/unictype/digit.h: Regenerated.
42637         * lib/unictype/mirror.h: Regenerated.
42638         * lib/unictype/numeric.h: Regenerated.
42639         * lib/unictype/pr_alphabetic.h: Regenerated.
42640         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42641         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42642         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42643         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42644         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42645         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42646         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42647         * lib/unictype/pr_combining.h: Regenerated.
42648         * lib/unictype/pr_dash.h: Regenerated.
42649         * lib/unictype/pr_decimal_digit.h: Regenerated.
42650         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42651         * lib/unictype/pr_deprecated.h: Regenerated.
42652         * lib/unictype/pr_diacritic.h: Regenerated.
42653         * lib/unictype/pr_extender.h: Regenerated.
42654         * lib/unictype/pr_format_control.h: Regenerated.
42655         * lib/unictype/pr_grapheme_base.h: Regenerated.
42656         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42657         * lib/unictype/pr_grapheme_link.h: Regenerated.
42658         * lib/unictype/pr_id_continue.h: Regenerated.
42659         * lib/unictype/pr_id_start.h: Regenerated.
42660         * lib/unictype/pr_ideographic.h: Regenerated.
42661         * lib/unictype/pr_ignorable_control.h: Regenerated.
42662         * lib/unictype/pr_lowercase.h: Regenerated.
42663         * lib/unictype/pr_math.h: Regenerated.
42664         * lib/unictype/pr_numeric.h: Regenerated.
42665         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42666         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42667         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42668         * lib/unictype/pr_other_id_continue.h: Regenerated.
42669         * lib/unictype/pr_other_lowercase.h: Regenerated.
42670         * lib/unictype/pr_other_math.h: Regenerated.
42671         * lib/unictype/pr_punctuation.h: Regenerated.
42672         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42673         * lib/unictype/pr_soft_dotted.h: Regenerated.
42674         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42675         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42676         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42677         * lib/unictype/pr_uppercase.h: Regenerated.
42678         * lib/unictype/pr_xid_continue.h: Regenerated.
42679         * lib/unictype/pr_xid_start.h: Regenerated.
42680         * lib/unictype/pr_zero_width.h: Regenerated.
42681         * lib/unictype/scripts.h: Regenerated.
42682         * lib/unictype/scripts_byname.gperf: Regenerated.
42683         * lib/unictype/sy_java_ident.h: Regenerated.
42684         * lib/unilbrk/lbrkprop1.h: Regenerated.
42685         * lib/unilbrk/lbrkprop2.h: Regenerated.
42686         * tests/unictype/test-categ_C.c: Regenerated.
42687         * tests/unictype/test-categ_Cf.c: Regenerated.
42688         * tests/unictype/test-categ_Cn.c: Regenerated.
42689         * tests/unictype/test-categ_L.c: Regenerated.
42690         * tests/unictype/test-categ_Ll.c: Regenerated.
42691         * tests/unictype/test-categ_Lm.c: Regenerated.
42692         * tests/unictype/test-categ_Lo.c: Regenerated.
42693         * tests/unictype/test-categ_Lu.c: Regenerated.
42694         * tests/unictype/test-categ_M.c: Regenerated.
42695         * tests/unictype/test-categ_Mc.c: Regenerated.
42696         * tests/unictype/test-categ_Me.c: Regenerated.
42697         * tests/unictype/test-categ_Mn.c: Regenerated.
42698         * tests/unictype/test-categ_N.c: Regenerated.
42699         * tests/unictype/test-categ_Nd.c: Regenerated.
42700         * tests/unictype/test-categ_Nl.c: Regenerated.
42701         * tests/unictype/test-categ_No.c: Regenerated.
42702         * tests/unictype/test-categ_P.c: Regenerated.
42703         * tests/unictype/test-categ_Pd.c: Regenerated.
42704         * tests/unictype/test-categ_Pe.c: Regenerated.
42705         * tests/unictype/test-categ_Pf.c: Regenerated.
42706         * tests/unictype/test-categ_Pi.c: Regenerated.
42707         * tests/unictype/test-categ_Po.c: Regenerated.
42708         * tests/unictype/test-categ_Ps.c: Regenerated.
42709         * tests/unictype/test-categ_S.c: Regenerated.
42710         * tests/unictype/test-categ_Sk.c: Regenerated.
42711         * tests/unictype/test-categ_Sm.c: Regenerated.
42712         * tests/unictype/test-categ_So.c: Regenerated.
42713         * tests/unictype/test-ctype_alnum.c: Regenerated.
42714         * tests/unictype/test-ctype_alpha.c: Regenerated.
42715         * tests/unictype/test-ctype_graph.c: Regenerated.
42716         * tests/unictype/test-ctype_lower.c: Regenerated.
42717         * tests/unictype/test-ctype_print.c: Regenerated.
42718         * tests/unictype/test-ctype_punct.c: Regenerated.
42719         * tests/unictype/test-ctype_upper.c: Regenerated.
42720         * tests/unictype/test-decdigit.h: Regenerated.
42721         * tests/unictype/test-digit.h: Regenerated.
42722         * tests/unictype/test-numeric.h: Regenerated.
42723         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42724         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42725         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42726         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42727         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42728         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42729         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42730         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42731         * tests/unictype/test-pr_combining.c: Regenerated.
42732         * tests/unictype/test-pr_dash.c: Regenerated.
42733         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42734         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42735         * tests/unictype/test-pr_deprecated.c: Regenerated.
42736         * tests/unictype/test-pr_diacritic.c: Regenerated.
42737         * tests/unictype/test-pr_extender.c: Regenerated.
42738         * tests/unictype/test-pr_format_control.c: Regenerated.
42739         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42740         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42741         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42742         * tests/unictype/test-pr_id_continue.c: Regenerated.
42743         * tests/unictype/test-pr_id_start.c: Regenerated.
42744         * tests/unictype/test-pr_ideographic.c: Regenerated.
42745         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42746         * tests/unictype/test-pr_lowercase.c: Regenerated.
42747         * tests/unictype/test-pr_math.c: Regenerated.
42748         * tests/unictype/test-pr_numeric.c: Regenerated.
42749         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42750         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42751         Regenerated.
42752         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42753         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42754         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42755         * tests/unictype/test-pr_other_math.c: Regenerated.
42756         * tests/unictype/test-pr_punctuation.c: Regenerated.
42757         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42758         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42759         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42760         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42761         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42762         * tests/unictype/test-pr_uppercase.c: Regenerated.
42763         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42764         * tests/unictype/test-pr_xid_start.c: Regenerated.
42765         * tests/unictype/test-pr_zero_width.c: Regenerated.
42766
42767         Update to Unicode 5.1.0.
42768         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42769         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42770         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42771         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42772         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42773         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42774         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42775         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42776         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42777         (nonspacing_table_ind): Update.
42778         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42779
42780         Update to Unicode 5.1.0.
42781         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42782         code transform.
42783         * lib/uniname/uniname.c (unicode_character_name,
42784         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42785         * lib/uniname/uninames.h: Regenerated.
42786         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42787
42788 2009-02-07  Bruno Haible  <bruno@clisp.org>
42789
42790         Merge gen-ctype and gen-lbrk into a single program.
42791         * lib/gen-uni-tables.c: New file, incorporating
42792         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42793         Add directory prefixes to the names of the generated files.
42794         * lib/unictype/gen-ctype.c: Remove file.
42795         * lib/unilbrk/gen-lbrk.c: Remove file.
42796         * modules/gen-uni-tables: New file.
42797         * modules/unictype/gen-ctype: Remove file.
42798         * modules/unilbrk/gen-lbrk: Remove file.
42799
42800 2009-02-07  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42803
42804         New module 'unistr/u32-strcoll'.
42805         * modules/unistr/u32-strcoll: New file.
42806         * lib/unistr/u32-strcoll.c: New file.
42807
42808         New module 'unistr/u16-strcoll'.
42809         * modules/unistr/u16-strcoll: New file.
42810         * lib/unistr/u16-strcoll.c: New file.
42811
42812         New module 'unistr/u8-strcoll'.
42813         * modules/unistr/u8-strcoll: New file.
42814         * lib/unistr/u8-strcoll.c: New file.
42815         * lib/unistr/u-strcoll.h: New file.
42816
42817 2009-02-07  Bruno Haible  <bruno@clisp.org>
42818
42819         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42820         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42821         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42822         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42823         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42824         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42825
42826 2009-02-07  Bruno Haible  <bruno@clisp.org>
42827
42828         Make 64-bit clean.
42829         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42830         output_combclass, output_bidi_category, output_decimal_digit,
42831         output_digit, output_numeric, output_mirror, output_scripts,
42832         output_ident_category): Use proper width specifier in format strings.
42833
42834 2009-02-07  Bruno Haible  <bruno@clisp.org>
42835
42836         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42837         failure behaviour.
42838
42839 2009-02-07  Jim Meyering  <meyering@redhat.com>
42840
42841         regex: avoid compilation failure with upcoming gcc-4.4
42842         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42843         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42844         "... error: integer overflow in preprocessor expression".
42845
42846 2009-02-05  Ben Pfaff  <blp@gnu.org>
42847
42848         Fix link errors on Windows when close module is used.
42849         * modules/close: Add $(LIB_CLOSE) to Link section.
42850         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42851         $(LIB_CLOSE) on Windows.
42852
42853 2009-02-05  Jim Meyering  <meyering@redhat.com>
42854
42855         still avoid unused-parameter warnings, but do it cleanly
42856         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42857         (get_fs_usage): Cast to void instead.
42858         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42859         (dev_from_mount_options, read_file_system_list): Cast to void.
42860         Prompted by Bruno Haible.
42861
42862 2009-02-04  Jim Meyering  <meyering@redhat.com>
42863
42864         fsusage.c: correct copyright year
42865         * lib/fsusage.c: Reflect year in which the change is pushed into
42866
42867         avoid misc. warnings
42868         * lib/fsusage.c (UNUSED_PARAM): Define.
42869         (get_fs_usage): Mark parameter "disk" as unused.
42870         * lib/getugroups.c (getgrent): Use "void" in prototype.
42871         * lib/mountlist.c: Mark unused parameters.
42872         (read_file_system_list): Declare a local with "const".
42873         * lib/nanosleep.c (getnow): Declare static.
42874         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42875
42876         dirfd: set errno upon failure
42877         * lib/dirfd.c: Include <errno.h>.
42878         Set errno to ENOTSUP when returning -1.
42879         * modules/dirfd (Depends-on): Add errno.
42880         Suggested by John Kodis <kodis@comcast.net>.
42881
42882 2009-02-01  Bruno Haible  <bruno@clisp.org>
42883
42884         Don't assume sizeof (long) >= sizeof (void *).
42885         * lib/memcmp.c: Include stdint.h.
42886         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42887         srcp2 to 'const byte *'.
42888         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42889         types to uintptr_t.
42890         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42891         * modules/memcmp (Depends-on): Add stdint.
42892         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42893
42894 2009-01-30  Eric Blake  <ebb9@byu.net>
42895
42896         fix more require-before-expand issues
42897         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42898         expand, AC_PROG_AWK.
42899         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42900
42901 2009-01-28  Eric Blake  <ebb9@byu.net>
42902
42903         version-etc: use consistent URL formatting
42904         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42905         Improve formatting.  Use fputs for string without %.
42906
42907 2009-01-28  Jim Meyering  <meyering@redhat.com>
42908
42909         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42910         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42911         "underquoted definition of NAME" from autoconf-2.59.
42912
42913 2009-01-28  Bruno Haible  <bruno@clisp.org>
42914
42915         * doc/gnulib.texi: Add "Obsolete modules" to index.
42916
42917 2009-01-28  Jim Meyering  <meyering@redhat.com>
42918
42919         useless-if-before-free: recognize more variants
42920         * build-aux/useless-if-before-free: Also recognize e.g.,
42921         if (NULL != p) free (p);
42922
42923 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42924
42925         test-getaddrinfo: skip (don't fail) this test when there's no network
42926         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42927         on the presumption that it means you lack network access.
42928
42929 2009-01-26  Jim Meyering  <meyering@redhat.com>
42930
42931         fflush: avoid warnings on modern systems
42932         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42933         pos and result, into scopes where they're used.
42934
42935 2009-01-26  Eric Blake  <ebb9@byu.net>
42936
42937         Silence warning reintroduced by recent extensions patch.
42938         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42939         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42940         autoconf.
42941
42942         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42943         * m4/00gnulib.m4: New file.
42944         * gnulib-tool (func_get_filelist): Always use it.
42945         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42946         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42947
42948 2009-01-25  Bruno Haible  <bruno@clisp.org>
42949
42950         Make test-quotearg work on MacOS X and AIX.
42951         * tests/test-quotearg.sh: New file.
42952         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42953         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42954         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42955         include <libintl.h>.
42956         (fake_locale): Remove variable.
42957         (gettext, dgettext, dcgettext): Remove functions.
42958         (main): Instead of setting a fake locale, set a real locale. Call
42959         textdomain and bindtextdomain.
42960         * modules/quotearg-tests (Files): Add the new files.
42961         (Depends-on): Add gettext, setenv, unsetenv.
42962         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42963         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42964         Augment TESTS_ENVIRONMENT.
42965
42966 2009-01-25  Bruno Haible  <bruno@clisp.org>
42967
42968         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42969         fr_FR.ISO8859-1 locale on MacOS X.
42970         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42971         ja_JP.eucJP locale on MacOS X.
42972         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42973         zh_CN.GB18030 locale on MacOS X.
42974
42975 2009-01-25  Bruno Haible  <bruno@clisp.org>
42976
42977         Avoid link errors on MacOS X 10.3.
42978         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42979         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42980
42981 2009-01-25  Bruno Haible  <bruno@clisp.org>
42982
42983         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42984         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42985         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42986         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42987         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42988         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42989         posix_spawnattr_init, posix_spawnattr_setsigmask,
42990         posix_spawnattr_setflags, posix_spawnattr_destroy.
42991
42992         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42993         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42994         * modules/execute (Files): Remove m4/posix_spawn.m4.
42995         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42996         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42997         posix_spawnattr_init, posix_spawnattr_setsigmask,
42998         posix_spawnattr_setflags, posix_spawnattr_destroy.
42999
43000 2009-01-25  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/glthread/threadlib.c: Include <stdlib.h>.
43003
43004 2009-01-25  Bruno Haible  <bruno@clisp.org>
43005
43006         * lib/glthread/threadlib.c (dummy): New declaration.
43007
43008 2009-01-25  Bruno Haible  <bruno@clisp.org>
43009
43010         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43011         multibyte characters also for the GB18030 encoding. Don't crash when
43012         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43013
43014 2009-01-25  Bruno Haible  <bruno@clisp.org>
43015
43016         Avoid redefining 'struct random_data' on OSF/1 5.1.
43017         * lib/stdlib.in.h: Include <random.h> if it exists.
43018         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43019         HAVE_RANDOM_H. Include <random.h> when testing whether
43020         'struct random_data' exists.
43021         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43022
43023 2009-01-25  Bruno Haible  <bruno@clisp.org>
43024
43025         Don't install charset.alias on MacOS X >= 10.3.
43026         * lib/localcharset.c (DARWIN7): New macro.
43027         (get_charset_aliases): Hardcode the result for Darwin7.
43028         * modules/localcharset (install-exec-local): Don't install
43029         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43030
43031 2009-01-25  Bruno Haible  <bruno@clisp.org>
43032
43033         Don't install charset.alias on mingw and Cygwin.
43034         * modules/localcharset (install-exec-local): Don't install
43035         charset.alias on mingw and Cygwin, if the file does not yet exist.
43036         The result for these platforms is hardcoded in localcharset.c.
43037
43038 2009-01-25  Bruno Haible  <bruno@clisp.org>
43039
43040         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43042         before requiring AC_USE_SYSTEM_EXTENSIONS.
43043
43044 2009-01-25  Jim Meyering  <meyering@redhat.com>
43045
43046         c-strtod: avoid warnings
43047         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43048         "assignment discards qualifiers from pointer target type" warnings.
43049
43050 2009-01-24  Bruno Haible  <bruno@clisp.org>
43051
43052         Add support for non-UTF-8 locales on MacOS X.
43053         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43054         canonical encodings. For Darwin 7 and newer, don't map traditional
43055         encodings to UTF-8.
43056         Reported by Vincent Lefevre <vincent@vinc17.org>
43057         at <http://savannah.gnu.org/bugs/?25235>.
43058
43059 2009-01-24  Bruno Haible  <bruno@clisp.org>
43060
43061         * doc/gnulib.texi (Obsolete modules): New section.
43062         Reported by Mike Frysinger <vapier@gentoo.org>.
43063
43064 2009-01-24  Bruno Haible  <bruno@clisp.org>
43065
43066         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43067         (%.dvi): New rule.
43068
43069 2009-01-24  Bruno Haible  <bruno@clisp.org>
43070
43071         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43072         Reported by Eric Blake.
43073
43074 2009-01-24  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43077         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43078         Reported by Gary V. Vaughan <gary@gnu.org>.
43079
43080 2009-01-24  Bruno Haible  <bruno@clisp.org>
43081
43082         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43083
43084 2009-01-23  Bruno Haible  <bruno@clisp.org>
43085
43086         Make c-strtod, c-strtold usable in libraries.
43087         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43088         (C_STRTOD): Call strdup instead of xstrdup.
43089         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43090         * modules/c-strtold (Depends-on): Likewise.
43091         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43092         * NEWS: Mention the change.
43093         Reported by Michael Gold <mgold@ncf.ca>.
43094
43095 2009-01-23  Jim Meyering  <meyering@redhat.com>
43096
43097         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43098         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43099         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43100
43101 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43102
43103         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43104         GNU CoreUtils.
43105         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43106         * modules/version-etc (Description): Update.
43107
43108 2009-01-22  Bruno Haible  <bruno@clisp.org>
43109
43110         Cache the C locale object.
43111         * lib/c-strtod.c (c_locale_cache): New variable.
43112         (c_locale): New function.
43113         (C_STRTOD): Use it, and don't call freelocale.
43114         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43115         Suggested by Paolo Bonzini.
43116
43117 2009-01-21  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43120         conditions other than overflow.
43121
43122 2009-01-21  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/c-strtod.c: Include errno.h.
43125         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43126         value from STRTOD_L and STRTOD.
43127
43128 2009-01-21  Bruno Haible  <bruno@clisp.org>
43129         and Jim Meyering  <meyering@redhat.com>
43130
43131         nanosleep: skip configure test (fail it) for apple universal builds
43132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43133         universal builds, assume that nanosleep does not work.
43134         * modules/nanosleep (Depends-on): Add multiarch.
43135
43136         mktime: skip configure test (fail it) for apple universal builds
43137         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43138         universal builds, assume that mktime does not work.
43139         * modules/mktime (Depends-on): Add multiarch.
43140
43141 2009-01-21  Eric Blake  <ebb9@byu.net>
43142
43143         multiarch: avoid expand-before-require warning
43144         * modules/multiarch (configure.ac): Require, rather than expand,
43145         gl_MULTIARCH.
43146         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43147         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43148         enforce that all clients require it.  Partial reversion of
43149         2008-12-29 patch.
43150
43151         error: avoid expand-before-require warning
43152         * modules/errno (configure.ac): Require, rather than expand,
43153         gl_HEADER_ERRNO_H.
43154         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43155         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43156         enforce that all clients require it.
43157
43158         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43159         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43160         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43161         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43162
43163 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43164
43165         Revert:
43166         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43167
43168         regex: do not depend on obsolete modules.
43169         * modules/regex: Remove memcmp and memmove.
43170
43171 2009-01-20  Bruno Haible  <bruno@clisp.org>
43172
43173         Make the 'link' module link on Windows NT 4.
43174         * lib/link.c (_WIN32_WINNT): Don't define.
43175         (CreateHardLinkFuncType): New type.
43176         (CreateHardLinkFunc, initialized): New variables.
43177         (initialize): New function.
43178         (link): Invoke CreateHardLink indirectly through the function pointer.
43179
43180 2009-01-20  Bruno Haible  <bruno@clisp.org>
43181
43182         Fix compilation failure on mingw.
43183         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43184
43185 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43186
43187         * doc/c-strtod.texi: Mention a couple of restrictions.
43188
43189 2009-01-20  Jim Meyering  <meyering@redhat.com>
43190
43191         gettimeofday: move more declarations out of functions
43192         * lib/gettimeofday.c: Move extern declarations of tzset and
43193         gmtime out of containing functions.  Prompted by Bruno Haible.
43194
43195 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43196
43197         regex: do not depend on obsolete modules.
43198         * modules/regex: Remove memcmp and memmove.
43199
43200 2009-01-19  Bruno Haible  <bruno@clisp.org>
43201
43202         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43203         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43204         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43205         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43206         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43207
43208 2009-01-19  Bruno Haible  <bruno@clisp.org>
43209
43210         * tests/test-link.c: Include <errno.h>.
43211         (main): Exit with code 77 when a hard link cannot be created due to
43212         the file system.
43213         * tests/test-link.sh: Skip test when a hard link cannot be created due
43214         to the file system.
43215         Suggested by Eric Blake.
43216
43217 2009-01-19  Martin Lambers  <marlam@marlam.de>
43218
43219         * modules/link-tests: New file.
43220         * tests/test-link.sh: New file.
43221         * tests/test-link.c: New file.
43222
43223 2009-01-19  Eric Blake  <ebb9@byu.net>
43224
43225         doc: mention another function added in cygwin 1.7.0
43226         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43227         Another new function in cygwin 1.7.
43228
43229 2009-01-19  Bruno Haible  <bruno@clisp.org>
43230
43231         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43232         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43233         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43234         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43235         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43236         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43237         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43238         * m4/md4.m4 (gl_MD4): Likewise.
43239         * m4/md5.m4 (gl_MD5): Likewise.
43240         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43241         * m4/sha1.m4 (gl_SHA1): Likewise.
43242         * m4/sha256.m4 (gl_SHA256): Likewise.
43243         * m4/sha512.m4 (gl_SHA512): Likewise.
43244
43245 2009-01-19  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/uniname/uniname-tests (Depends-on): Add progname.
43248         * tests/uniname/test-uninames.c: Include progname.h.
43249         (main): Call set_program_name.
43250
43251         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43252         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43253         (main): Call set_program_name.
43254
43255         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43256         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43257         (main): Call set_program_name.
43258
43259         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43260         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43261         (main): Call set_program_name.
43262
43263         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43264         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43265         (main): Call set_program_name.
43266
43267         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43268         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43269         (main): Call set_program_name.
43270
43271         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43272         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43273         (main): Call set_program_name.
43274
43275         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43276         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43277         (main): Call set_program_name.
43278
43279         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43280         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43281         (main): Call set_program_name.
43282
43283 2009-01-19  Eric Blake  <ebb9@byu.net>
43284
43285         test-unistd: test previous patch
43286         * tests/test-unistd.c: Test *_FILENO macros.
43287
43288         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43289         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43290         Guarantee a definition.
43291         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43292         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43293         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43294         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43295         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43296         Likewise.
43297         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43298         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43299         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43300         Likewise.
43301         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43302         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43303         (STDERR_FILENO): Likewise.
43304         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43305         (STDERR_FILENO): Likewise.
43306         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43307         (STDERR_FILENO): Likewise.
43308         Reported by Elbert Pol.
43309
43310 2009-01-19  Eric Blake  <ebb9@byu.net>
43311
43312         doc: mention more functions added in cygwin 1.7.0
43313         * doc/posix-functions/abort.texi (abort): Update wording related
43314         to cygwin.
43315         * doc/posix-functions/daylight.texi (daylight): Likewise.
43316         * doc/posix-functions/optarg.texi (optarg): Likewise.
43317         * doc/posix-functions/optarg.texi (opterr): Likewise.
43318         * doc/posix-functions/optarg.texi (optind): Likewise.
43319         * doc/posix-functions/optarg.texi (optopt): Likewise.
43320         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43321         worked in 1.5.x, and was withdrawn in 1.7.
43322         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43323         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43324         cygwin versions.
43325         * doc/posix-functions/perror.texi (perror): Likewise.
43326         * doc/posix-functions/printf.texi (printf): Likewise.
43327         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43328         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43329         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43330         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43331         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43332         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43333         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43334         Likewise.
43335         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43336         Likewise.
43337         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43338         this function.
43339         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43340         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43341         Likewise.
43342         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43343         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43344         * doc/posix-functions/confstr.texi (confstr): Likewise.
43345         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43346         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43347         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43348         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43349         * doc/posix-functions/fputws.texi (fputws): Likewise.
43350         * doc/posix-functions/fwide.texi (fwide): Likewise.
43351         * doc/posix-functions/getwc.texi (getwc): Likewise.
43352         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43353         * doc/posix-functions/putwc.texi (putwc): Likewise.
43354         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43355         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43356         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43357         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43358         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43359         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43360         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43361         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43362         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43363         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43364         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43365
43366 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43367
43368         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43369         * lib/ioctl.c: Include <sys/ioctl.h>.
43370
43371 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43372
43373         * modules/getdate-tests (Depends-on): Add progname.
43374         * tests/test-getdate.c: Use progname module, to avoid link errors
43375         on non-glibc systems.
43376
43377 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43378
43379         * modules/filenamecat-tests (Depends-on): Add progname.
43380         * modules/fstrcmp-tests (Depends-on): Likewise.
43381
43382         * tests/test-filenamecat.c: Use progname module, to avoid link
43383         errors on non-glibc systems.
43384         * tests/test-fstrcmp.c: Likewise.
43385
43386 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43387
43388         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43389         * lib/gettimeofday.c: Move extern declaration out of function.
43390
43391 2009-01-18  Bruno Haible  <bruno@clisp.org>
43392
43393         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43394         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43395         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43396
43397 2009-01-18  Bruno Haible  <bruno@clisp.org>
43398
43399         * lib/strftime.c (MEMPCPY): Remove unused macro.
43400         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43401
43402 2009-01-18  Martin Lambers  <marlam@marlam.de>
43403
43404         New module 'link'.
43405         * lib/unistd.in.h (link): New declaration.
43406         * lib/link.c: New file.
43407         * m4/link.m4: New file.
43408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43409         HAVE_LINK.
43410         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43411         * modules/link: New file.
43412         * doc/posix-functions/link.texi: Mention the new module.
43413
43414 2009-01-18  Bruno Haible  <bruno@clisp.org>
43415
43416         * tests/test-avltree_list.c (main): Call set_program_name.
43417         * tests/test-avltree_oset.c (main): Likewise.
43418         * tests/test-obstack-printf.c: Include progname.h.
43419         (main): Call set_program_name.
43420         * tests/test-quotearg.c: Include progname.h.
43421         (main): Call set_program_name.
43422         * tests/test-xmemdup0.c: Include progname.h.
43423         (main): Call set_program_name.
43424
43425 2009-01-18  Bruno Haible  <bruno@clisp.org>
43426
43427         New module 'alphasort'.
43428         * lib/dirent.in.h (alphasort): New declaration.
43429         * lib/alphasort.c: New file, from glibc with modifications.
43430         * m4/alphasort.m4: New file.
43431         * modules/alphasort: New file.
43432         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43433         HAVE_ALPHASORT.
43434         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43435         HAVE_ALPHASORT.
43436         * doc/posix-functions/alphasort.texi: Mention the new module and the
43437         portability problems.
43438
43439 2009-01-18  Bruno Haible  <bruno@clisp.org>
43440
43441         New module 'scandir'.
43442         * lib/dirent.in.h (scandir): New declaration.
43443         * lib/scandir.c: New file, from glibc with modifications.
43444         * m4/scandir.m4: New file.
43445         * modules/scandir: New file.
43446         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43447         HAVE_SCANDIR.
43448         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43449         HAVE_SCANDIR.
43450         * doc/posix-functions/scandir.texi: Mention the new module and the
43451         portability problems.
43452
43453 2009-01-17  Bruno Haible  <bruno@clisp.org>
43454
43455         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43456         Update documentation.
43457         (func_remove_suffix): Escape all dots in the suffix. Update
43458         documentation.
43459         (func_filter_filelist): Update documentation.
43460         Reported by Ralf Wildenhues.
43461
43462 2009-01-17  Bruno Haible  <bruno@clisp.org>
43463
43464         * modules/dprintf-posix-tests: New file.
43465         * tests/test-dprintf-posix.sh: New file.
43466         * tests/test-dprintf-posix.c: New file.
43467
43468         New modules 'dprintf', 'dprintf-posix'.
43469         * lib/stdio.in.h (dprintf): New declaration.
43470         * lib/dprintf.c: New file.
43471         * m4/dprintf.m4: New file.
43472         * m4/dprintf-posix.m4: New file.
43473         * modules/dprintf: New file.
43474         * modules/dprintf-posix: New file.
43475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43476         HAVE_DPRINTF, REPLACE_DPRINTF.
43477         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43478         HAVE_DPRINTF, REPLACE_DPRINTF.
43479         * doc/posix-functions/dprintf.texi: Mention the new modules.
43480
43481 2009-01-17  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/vdprintf-posix-tests: New file.
43484         * tests/test-vdprintf-posix.sh: New file.
43485         * tests/test-vdprintf-posix.c: New file.
43486
43487         New modules 'vdprintf', 'vdprintf-posix'.
43488         * lib/stdio.in.h (vdprintf): New declaration.
43489         * lib/vdprintf.c: New file.
43490         * m4/vdprintf.m4: New file.
43491         * m4/vdprintf-posix.m4: New file.
43492         * modules/vdprintf: New file.
43493         * modules/vdprintf-posix: New file.
43494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43495         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43496         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43497         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43498         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43499
43500 2009-01-17  Bruno Haible  <bruno@clisp.org>
43501
43502         Fix replacement of fopen on mingw.
43503         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43504         mingw.
43505
43506 2009-01-17  Bruno Haible  <bruno@clisp.org>
43507
43508         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43509         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43510
43511 2009-01-17  Bruno Haible  <bruno@clisp.org>
43512
43513         Avoid test-fflush2.sh failure on mingw.
43514         * tests/test-fflush2.c: Include binary-io.h.
43515         (main): Put standard input into binary mode.
43516         * modules/fflush-tests (Depends-on): Add binary-io.
43517
43518 2009-01-17  Bruno Haible  <bruno@clisp.org>
43519
43520         * lib/wchar.in.h: In another particular situation, include only the
43521         system's <wchar.h> file.
43522         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43523         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43524         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43525
43526 2009-01-17  Bruno Haible  <bruno@clisp.org>
43527
43528         Support for stripping executables in --enable-relocatable.
43529         * build-aux/install-reloc: Expect one more argument, or an environment
43530         variable RELOC_STRIP_PROG. If set, strip the destination program and
43531         its wrapper.
43532         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43533         RELOC_STRIP_PROG.
43534         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43535         to set RELOCATABLE_STRIP.
43536         * NEWS: Mention the new Makefile requirement.
43537
43538 2009-01-17  Bruno Haible  <bruno@clisp.org>
43539
43540         * build-aux/install-reloc: Remove debugging information left over by
43541         C compiler on MacOS X.
43542
43543 2009-01-17  Bruno Haible  <bruno@clisp.org>
43544
43545         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43546         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43547         _NSGetExecutablePath.
43548
43549 2009-01-16  Jim Meyering  <meyering@redhat.com>
43550
43551         strerror: avoid warnings about discarding "const"
43552         * lib/strerror.c (rpl_strerror): Instead of returning a const
43553         string from each and every "case", use a variable, and add a single
43554         cast after the switch.
43555
43556 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43557
43558         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43559
43560 2009-01-16  Bruno Haible  <bruno@clisp.org>
43561
43562         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43563         array initializer syntax that also works in C++ mode.
43564         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43565
43566 2009-01-16  Jim Meyering  <meyering@redhat.com>
43567
43568         poll: suppress a warning
43569         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43570         to ignore "...unsigned expression < 0 is always false" warnings.
43571
43572 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43573
43574         poll: remove declarations of unused variables
43575         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43576         sockbuf and optlen.
43577
43578 2009-01-15  Bruno Haible  <bruno@clisp.org>
43579
43580         Make fflush-after-ungetc POSIX compliant on BSD systems.
43581         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43582         (clear_ungetc_buffer): Implement also for other systems.
43583         (rpl_fflush): On glibc systems, invoke
43584         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43585         clear_ungetc_buffer after fetching the stream's position, not before.
43586
43587 2009-01-15  Bruno Haible  <bruno@clisp.org>
43588
43589         Make fflush-after-ungetc POSIX compliant on glibc systems.
43590         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43591         after ungetc.
43592         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43593         (rpl_fflush): On glibc systems, simply call the system's fflush
43594         function after clearing the ungetc buffer.
43595         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43596         Instead, lseek only to the end of file, then use the system's fseeko
43597         for the rest. On glibc systems, reset the EOF indicator bit.
43598
43599 2009-01-15  Jim Meyering  <meyering@redhat.com>
43600
43601         openmp.m4: revert quote-adding change, for portability to older autoconf
43602         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43603         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43604         Simon Josefsson noticed the problem when using autoconf-2.61.
43605
43606 2009-01-15  Bruno Haible  <bruno@clisp.org>
43607
43608         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43609         * tests/test-fflush2.c (ASSERT): Always fail.
43610         (main): Add two tests for fflush() after ungetc(), taking into account
43611         the Austin Group's clarification.
43612         Suggested by Eric Blake.
43613
43614 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43615
43616         mktime.m4: remove K&R-style function prototypes
43617         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43618         for the Sun C++ compiler.
43619
43620 2009-01-14  Bruno Haible  <bruno@clisp.org>
43621
43622         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43623         while including <wchar.h>.
43624         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43625         the system's <wchar.h> file.
43626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43627
43628 2009-01-14  Bruno Haible  <bruno@clisp.org>
43629
43630         * m4/csharp.m4: Don't mention gettext on the serial number line.
43631         * m4/csharpexec.m4: Likewise.
43632         * m4/eaccess.m4: Likewise.
43633         * m4/javaexec.m4: Likewise.
43634         * m4/sig_atomic_t.m4: Likewise.
43635         * m4/tmpdir.m4: Likewise.
43636         * m4/intldir.m4: Bump gettext version.
43637         * m4/lib-ld.m4: Likewise.
43638
43639 2009-01-14  Bruno Haible  <bruno@clisp.org>
43640
43641         * lib/progname.c (set_program_name): Add more comments.
43642         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43643
43644 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43645
43646         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43647         were sys/stat.h does not define it.
43648
43649 2009-01-14  Jim Meyering  <meyering@redhat.com>
43650
43651         many *.m4 files: improve m4 quoting
43652         99% of this change was performed by running the following commands:
43653         git ls-files | grep '\.m4$' | xargs perl -pi \
43654           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43655           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43656           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43657           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43658         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43659         The remainder were to add Copyright dates, increment serial numbers,
43660         undo some changes in comments, exclude m4/intl.m4, and add quotes
43661         around the "1" in ",1" where the unusual spacing prohibited the
43662         above regexps from doing the job.  For more details, see
43663         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43664         * m4/acl.m4: Modified.
43665         * m4/afs.m4: Likewise.
43666         * m4/alloca.m4: Likewise.
43667         * m4/argp.m4: Likewise.
43668         * m4/argz.m4: Likewise.
43669         * m4/atexit.m4: Likewise.
43670         * m4/bison-i18n.m4: Likewise.
43671         * m4/bison.m4: Likewise.
43672         * m4/byteswap.m4: Likewise.
43673         * m4/c-stack.m4: Likewise.
43674         * m4/c-strtod.m4: Likewise.
43675         * m4/calloc.m4: Likewise.
43676         * m4/canonicalize-lgpl.m4: Likewise.
43677         * m4/chown.m4: Likewise.
43678         * m4/clock_time.m4: Likewise.
43679         * m4/codeset.m4: Likewise.
43680         * m4/copy-file.m4: Likewise.
43681         * m4/csharp.m4: Likewise.
43682         * m4/csharpcomp.m4: Likewise.
43683         * m4/csharpexec.m4: Likewise.
43684         * m4/d-ino.m4: Likewise.
43685         * m4/d-type.m4: Likewise.
43686         * m4/dirfd.m4: Likewise.
43687         * m4/double-slash-root.m4: Likewise.
43688         * m4/eaccess.m4: Likewise.
43689         * m4/eealloc.m4: Likewise.
43690         * m4/environ.m4: Likewise.
43691         * m4/errno_h.m4: Likewise.
43692         * m4/euidaccess.m4: Likewise.
43693         * m4/execute.m4: Likewise.
43694         * m4/fatal-signal.m4: Likewise.
43695         * m4/fchdir.m4: Likewise.
43696         * m4/fcntl_h.m4: Likewise.
43697         * m4/fileblocks.m4: Likewise.
43698         * m4/filenamecat.m4: Likewise.
43699         * m4/findprog.m4: Likewise.
43700         * m4/flexmember.m4: Likewise.
43701         * m4/fnmatch.m4: Likewise.
43702         * m4/fopen.m4: Likewise.
43703         * m4/fpending.m4: Likewise.
43704         * m4/fprintf-posix.m4: Likewise.
43705         * m4/free.m4: Likewise.
43706         * m4/frexp.m4: Likewise.
43707         * m4/frexpl.m4: Likewise.
43708         * m4/fsusage.m4: Likewise.
43709         * m4/ftruncate.m4: Likewise.
43710         * m4/gc-camellia.m4: Likewise.
43711         * m4/gc-random.m4: Likewise.
43712         * m4/gc.m4: Likewise.
43713         * m4/getaddrinfo.m4: Likewise.
43714         * m4/getcwd-abort-bug.m4: Likewise.
43715         * m4/getcwd-path-max.m4: Likewise.
43716         * m4/getdate.m4: Likewise.
43717         * m4/getdomainname.m4: Likewise.
43718         * m4/getgroups.m4: Likewise.
43719         * m4/gethostname.m4: Likewise.
43720         * m4/gethrxtime.m4: Likewise.
43721         * m4/getline.m4: Likewise.
43722         * m4/getloadavg.m4: Likewise.
43723         * m4/getndelim2.m4: Likewise.
43724         * m4/getpass.m4: Likewise.
43725         * m4/gettext.m4: Likewise.
43726         * m4/gettime.m4: Likewise.
43727         * m4/gettimeofday.m4: Likewise.
43728         * m4/gnulib-common.m4: Likewise.
43729         * m4/group-member.m4: Likewise.
43730         * m4/host-os.m4: Likewise.
43731         * m4/iconv.m4: Likewise.
43732         * m4/iconv_open.m4: Likewise.
43733         * m4/inet_ntop.m4: Likewise.
43734         * m4/inet_pton.m4: Likewise.
43735         * m4/inline.m4: Likewise.
43736         * m4/intldir.m4: Likewise.
43737         * m4/intlmacosx.m4: Likewise.
43738         * m4/intmax.m4: Likewise.
43739         * m4/intmax_t.m4: Likewise.
43740         * m4/inttypes.m4: Likewise.
43741         * m4/inttypes_h.m4: Likewise.
43742         * m4/inttypes-pri.m4: Likewise.
43743         * m4/isapipe.m4: Likewise.
43744         * m4/isnand.m4: Likewise.
43745         * m4/isnanf.m4: Likewise.
43746         * m4/isnanl.m4: Likewise.
43747         * m4/javacomp.m4: Likewise.
43748         * m4/javaexec.m4: Likewise.
43749         * m4/jm-winsz1.m4: Likewise.
43750         * m4/jm-winsz2.m4: Likewise.
43751         * m4/lchown.m4: Likewise.
43752         * m4/lcmessage.m4: Likewise.
43753         * m4/ldexpl.m4: Likewise.
43754         * m4/lib-ld.m4: Likewise.
43755         * m4/lib-link.m4: Likewise.
43756         * m4/libsigsegv.m4: Likewise.
43757         * m4/link-follow.m4: Likewise.
43758         * m4/localcharset.m4: Likewise.
43759         * m4/locale-fr.m4: Likewise.
43760         * m4/locale-ja.m4: Likewise.
43761         * m4/locale-tr.m4: Likewise.
43762         * m4/locale-zh.m4: Likewise.
43763         * m4/lock.m4: Likewise.
43764         * m4/longlong.m4: Likewise.
43765         * m4/ls-mntd-fs.m4: Likewise.
43766         * m4/lstat.m4: Likewise.
43767         * m4/malloc.m4: Likewise.
43768         * m4/mathl.m4: Likewise.
43769         * m4/mbrtowc.m4: Likewise.
43770         * m4/mbstate_t.m4: Likewise.
43771         * m4/mbswidth.m4: Likewise.
43772         * m4/memchr.m4: Likewise.
43773         * m4/memcmp.m4: Likewise.
43774         * m4/memcpy.m4: Likewise.
43775         * m4/memmem.m4: Likewise.
43776         * m4/memmove.m4: Likewise.
43777         * m4/mempcpy.m4: Likewise.
43778         * m4/memrchr.m4: Likewise.
43779         * m4/memset.m4: Likewise.
43780         * m4/minmax.m4: Likewise.
43781         * m4/mkdir-slash.m4: Likewise.
43782         * m4/mkdtemp.m4: Likewise.
43783         * m4/mktime.m4: Likewise.
43784         * m4/mmap-anon.m4: Likewise.
43785         * m4/mountlist.m4: Likewise.
43786         * m4/nanosleep.m4: Likewise.
43787         * m4/nls.m4: Likewise.
43788         * m4/nocrash.m4: Likewise.
43789         * m4/open.m4: Likewise.
43790         * m4/openat.m4: Likewise.
43791         * m4/openmp.m4: Likewise.
43792         * m4/pathmax.m4: Likewise.
43793         * m4/perl.m4: Likewise.
43794         * m4/physmem.m4: Likewise.
43795         * m4/pipe.m4: Likewise.
43796         * m4/po.m4: Likewise.
43797         * m4/poll.m4: Likewise.
43798         * m4/posixtm.m4: Likewise.
43799         * m4/posixver.m4: Likewise.
43800         * m4/printf-frexp.m4: Likewise.
43801         * m4/printf-frexpl.m4: Likewise.
43802         * m4/printf-posix.m4: Likewise.
43803         * m4/printf-posix-rpl.m4: Likewise.
43804         * m4/printf.m4: Likewise.
43805         * m4/progtest.m4: Likewise.
43806         * m4/putenv.m4: Likewise.
43807         * m4/readline.m4: Likewise.
43808         * m4/readlink.m4: Likewise.
43809         * m4/readutmp.m4: Likewise.
43810         * m4/realloc.m4: Likewise.
43811         * m4/regex.m4: Likewise.
43812         * m4/relocatable.m4: Likewise.
43813         * m4/relocatable-lib.m4: Likewise.
43814         * m4/rename-dest-slash.m4: Likewise.
43815         * m4/rename.m4: Likewise.
43816         * m4/rmdir-errno.m4: Likewise.
43817         * m4/rmdir.m4: Likewise.
43818         * m4/roundf.m4: Likewise.
43819         * m4/roundl.m4: Likewise.
43820         * m4/rpmatch.m4: Likewise.
43821         * m4/save-cwd.m4: Likewise.
43822         * m4/selinux-selinux-h.m4: Likewise.
43823         * m4/setenv.m4: Likewise.
43824         * m4/settime.m4: Likewise.
43825         * m4/sig2str.m4: Likewise.
43826         * m4/sig_atomic_t.m4: Likewise.
43827         * m4/signalblocking.m4: Likewise.
43828         * m4/signbit.m4: Likewise.
43829         * m4/sigpipe.m4: Likewise.
43830         * m4/sockets.m4: Likewise.
43831         * m4/sockpfaf.m4: Likewise.
43832         * m4/st_dm_mode.m4: Likewise.
43833         * m4/stat-time.m4: Likewise.
43834         * m4/stdbool.m4: Likewise.
43835         * m4/stdint.m4: Likewise.
43836         * m4/stdint_h.m4: Likewise.
43837         * m4/stpcpy.m4: Likewise.
43838         * m4/stpncpy.m4: Likewise.
43839         * m4/strcase.m4: Likewise.
43840         * m4/strchrnul.m4: Likewise.
43841         * m4/strcspn.m4: Likewise.
43842         * m4/strdup.m4: Likewise.
43843         * m4/strftime.m4: Likewise.
43844         * m4/strndup.m4: Likewise.
43845         * m4/strnlen.m4: Likewise.
43846         * m4/strpbrk.m4: Likewise.
43847         * m4/strptime.m4: Likewise.
43848         * m4/strsep.m4: Likewise.
43849         * m4/strtod.m4: Likewise.
43850         * m4/strtoimax.m4: Likewise.
43851         * m4/strtok_r.m4: Likewise.
43852         * m4/strtol.m4: Likewise.
43853         * m4/strtoll.m4: Likewise.
43854         * m4/strtoul.m4: Likewise.
43855         * m4/strtoull.m4: Likewise.
43856         * m4/strtoumax.m4: Likewise.
43857         * m4/strverscmp.m4: Likewise.
43858         * m4/threadlib.m4: Likewise.
43859         * m4/timegm.m4: Likewise.
43860         * m4/tm_gmtoff.m4: Likewise.
43861         * m4/tmpdir.m4: Likewise.
43862         * m4/tmpfile.m4: Likewise.
43863         * m4/tzset.m4: Likewise.
43864         * m4/uintmax_t.m4: Likewise.
43865         * m4/unlinkdir.m4: Likewise.
43866         * m4/unlocked-io.m4: Likewise.
43867         * m4/uptime.m4: Likewise.
43868         * m4/userspec.m4: Likewise.
43869         * m4/utimbuf.m4: Likewise.
43870         * m4/utime.m4: Likewise.
43871         * m4/utimes-null.m4: Likewise.
43872         * m4/utimes.m4: Likewise.
43873         * m4/vararrays.m4: Likewise.
43874         * m4/vasnprintf.m4: Likewise.
43875         * m4/vfprintf-posix.m4: Likewise.
43876         * m4/vprintf-posix.m4: Likewise.
43877         * m4/wait-process.m4: Likewise.
43878         * m4/wchar_t.m4: Likewise.
43879         * m4/wint_t.m4: Likewise.
43880         * m4/write-any-file.m4: Likewise.
43881         * m4/yield.m4: Likewise.
43882
43883 2009-01-13  Bruno Haible  <bruno@clisp.org>
43884
43885         Avoid test-copy-file.sh failures when ACL support insufficient.
43886         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43887         TESTS_ENVIRONMENT.
43888         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43889         Reported by Jim Meyering.
43890
43891 2009-01-13  Bruno Haible  <bruno@clisp.org>
43892
43893         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43894         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43895         * modules/unistdio/u8-printf-parse (Files): Likewise.
43896         * modules/unistdio/u32-printf-parse (Files): Likewise.
43897         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43898
43899 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43900
43901         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43902         and m4/inttypes_h.m4 too.
43903
43904 2009-01-12  Eric Blake  <ebb9@byu.net>
43905
43906         tests: IRIX 6.2 cc can't compile -0.0 into .data
43907         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43908         rather than at compile-time.
43909         * tests/test-floorl.c (minus_zero): Likewise.
43910         * tests/test-frexpl.c (minus_zero): Likewise.
43911         * tests/test-isnan.c (minus_zerol): Likewise.
43912         * tests/test-isnanl.h (minus_zero): Likewise.
43913         * tests/test-ldexpl.c (minus_zero): Likewise.
43914         * tests/test-roundl.c (minus_zero): Likewise.
43915         * tests/test-signbit.c (minus_zerol): Likewise.
43916         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43917         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43918         * tests/test-truncl.c (minus_zero): Likewise.
43919         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43920         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43921         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43922
43923 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43924
43925         regex: fix glibc bug 9697
43926         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43927         handling.
43928
43929 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43930
43931         regex: fix glibc bug 697
43932         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43933         being NULL also if there are no backreferences.
43934
43935 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43936
43937         regex: merge glibc changes
43938         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43939         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43940         re_string_skip_chars, re_string_reconstruct): Likewise.
43941         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43942
43943 2009-01-07  Jim Meyering  <meyering@redhat.com>
43944
43945         poll: filter through cppi
43946         * lib/poll.c: Indent cpp directives to reflect nesting.
43947
43948 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43949
43950         poll: don't return uninitialized
43951         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43952
43953 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43954
43955         avoid compile failure on AIX 6.1
43956         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43957         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43958
43959 2009-01-04  Jim Meyering  <meyering@redhat.com>
43960
43961         remove duplicate inclusion of <stdio.h>
43962         * tests/test-fprintf-posix.c: Likewise.
43963         * tests/test-printf-posix.c: Likewise.
43964         * tests/test-snprintf-posix.c: Likewise.
43965         * tests/test-sprintf-posix.c: Likewise.
43966         * tests/test-vasprintf-posix.c: Likewise.
43967         * tests/test-vfprintf-posix.c: Likewise.
43968         * tests/test-vprintf-posix.c: Likewise.
43969         * tests/test-vsnprintf-posix.c: Likewise.
43970         * tests/test-vsprintf-posix.c: Likewise.
43971
43972 2009-01-03  Jim Meyering  <meyering@redhat.com>
43973
43974         gnulib-tool: fix sed-based filtering
43975         * gnulib-tool (func_filter_filelist): Remove extra backslash
43976         in sed_fff_filter definition.
43977
43978 2009-01-02  Jim Meyering  <meyering@redhat.com>
43979
43980         strftime: avoid compilation failure on Solaris 2.6
43981         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43982         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43983         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43984         be available.  Reported by Tom G. Christensen.  Details in
43985         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43986
43987 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43988             Bruno Haible  <bruno@clisp.org>
43989
43990         Speed up gnulib-tool by doing more string processing through shell
43991         built-ins.
43992         * gnulib-tool (fast_func_append): New variable.
43993         (func_remove_prefix, func_remove_suffix): New functions.
43994         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43995         (func_filter_filelist): New function.
43996         (func_get_dependencies): Use func_remove_suffix instead of sed.
43997         (func_get_automake_snippet): Use func_filter_filelist instead of a
43998         subshell and sed invocation.
43999
44000 2009-01-01  Bruno Haible  <bruno@clisp.org>
44001
44002         Fix a security bug.
44003         * gnulib-tool (func_import, import, update): Don't allow the characters
44004         '"', '$', '`', '\' in macro arguments that become part of commands that
44005         are evaluated.
44006
44007 2009-01-01  Bruno Haible  <bruno@clisp.org>
44008
44009         * gnulib-tool (func_reset_sigpipe): Add more comments.
44010
44011 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44012
44013         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44014         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44015         already know the answer.
44016
44017 2009-01-01  Jim Meyering  <meyering@redhat.com>
44018
44019         * lib/version-etc.c (version_etc_va): Update copyright year.
44020
44021 2008-12-30  Bruno Haible  <bruno@clisp.org>
44022
44023         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44024         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44025         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44026
44027 2008-12-29  Eric Blake  <ebb9@byu.net>
44028
44029         multiarch: avoid autoconf AC_REQUIRE bug
44030         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44031         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44032         2.63 and older.
44033         Reported by Bruno Haible, and analyzed in
44034         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44035
44036 2008-12-29  Bruno Haible  <bruno@clisp.org>
44037
44038         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44039         files in subdirectories correctly.
44040         Reported by Ralf Wildenhues.
44041
44042 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44043
44044         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44045         rather than 'join FILE -', for Solaris join.
44046
44047 2008-12-29  Bruno Haible  <bruno@clisp.org>
44048
44049         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44050         quoting.
44051         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44052         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44053         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44054         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44055         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44056         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44057         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44058         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44059         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44060         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44061         * m4/nls.m4 (AM_NLS): Likewise.
44062         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44063         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44064         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44065         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44066         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44067         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44068         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44069         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44070         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44071         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44072         * m4/xsize.m4 (gl_XSIZE): Likewise.
44073         Suggested by Jim Meyering.
44074
44075 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44076
44077         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44078         * lib/parse-duration.c: use a switch instead of cascading if's.
44079
44080 2008-12-29  Eric Blake  <ebb9@byu.net>
44081
44082         wchar.h: supply WEOF on Irix 5.3
44083         * lib/wchar.in.h (wint_t): Also supply WEOF.
44084         * lib/wctype.in.h (wint_t): Likewise.
44085         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44086         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44087         Reported by Tom G. Christensen.
44088
44089 2008-12-26  Bruno Haible  <bruno@clisp.org>
44090
44091         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44092         i486, i586, i686.
44093
44094 2008-12-26  Bruno Haible  <bruno@clisp.org>
44095
44096         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44097
44098 2008-12-26  Bruno Haible  <bruno@clisp.org>
44099
44100         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44101         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44102         not __STDC_CONSTANT_MACROS.
44103         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44104
44105 2008-12-25  Bruno Haible  <bruno@clisp.org>
44106
44107         Add support for universal builds to vasnprintf.
44108         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44109         universal builds, guess no.
44110         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44111         * modules/vasprintf-posix (Depends-on): Likewise.
44112         * modules/fprintf-posix (Depends-on): Likewise.
44113         * modules/vfprintf-posix (Depends-on): Likewise.
44114         * modules/snprintf-posix (Depends-on): Likewise.
44115         * modules/vsnprintf-posix (Depends-on): Likewise.
44116         * modules/sprintf-posix (Depends-on): Likewise.
44117         * modules/vsprintf-posix (Depends-on): Likewise.
44118         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44119         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44120         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44121         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44122         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44123         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44124         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44125
44126         Add support for universal builds to <inttypes.h>.
44127         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44128         _SCNu64_PREFIX): In Apple
44129         universal builds, define directly, using _LP64.
44130         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44131         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44132         * modules/inttypes (Depends-on): Add multiarch.
44133         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44134
44135         Add support for universal builds to <stdint.h>.
44136         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44137         universal builds, define directly, using _LP64.
44138         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44139         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44140         and size_t.
44141         * modules/stdint (Depends-on): Add multiarch.
44142         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44143
44144         New module 'multiarch'.
44145         * modules/multiarch: New file.
44146         * m4/multiarch.m4: New file.
44147
44148 2008-12-25  Bruno Haible  <bruno@clisp.org>
44149
44150         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44151
44152 2008-12-25  Bruno Haible  <bruno@clisp.org>
44153
44154         * modules/btowc (License): Relicense under LGPLv2+.
44155         * modules/mbsinit (License): Likewise.
44156         * modules/mbrtowc (License): Likewise.
44157         * modules/wcrtomb (License): Likewise.
44158         * modules/streq (License): Likewise.
44159         Reported by David Lutterkort <lutter@redhat.com>.
44160
44161 2008-12-23  Bruno Haible  <bruno@clisp.org>
44162
44163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44164
44165 2008-12-23  Bruno Haible  <bruno@clisp.org>
44166
44167         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44168         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44169         GETADDRINFO_LIB, not in LIBS.
44170         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44171         * modules/canon-host (Link): Likewise.
44172         * NEWS: Mention the change.
44173         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44174         GETADDRINFO_LIB.
44175
44176 2008-12-22  Bruno Haible  <bruno@clisp.org>
44177
44178         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44179         * doc/posix-functions/iswalpha_l.texi: Likewise.
44180         * doc/posix-functions/iswblank_l.texi: Likewise.
44181         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44182         * doc/posix-functions/iswctype_l.texi: Likewise.
44183         * doc/posix-functions/iswdigit_l.texi: Likewise.
44184         * doc/posix-functions/iswgraph_l.texi: Likewise.
44185         * doc/posix-functions/iswlower_l.texi: Likewise.
44186         * doc/posix-functions/iswprint_l.texi: Likewise.
44187         * doc/posix-functions/iswpunct_l.texi: Likewise.
44188         * doc/posix-functions/iswspace_l.texi: Likewise.
44189         * doc/posix-functions/iswupper_l.texi: Likewise.
44190         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44191         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44192         * doc/posix-functions/open_wmemstream.texi: Likewise.
44193         * doc/posix-functions/swscanf.texi: Likewise.
44194         * doc/posix-functions/towctrans_l.texi: Likewise.
44195         * doc/posix-functions/towlower.texi: Likewise.
44196         * doc/posix-functions/towlower_l.texi: Likewise.
44197         * doc/posix-functions/towupper.texi: Likewise.
44198         * doc/posix-functions/towupper_l.texi: Likewise.
44199         * doc/posix-functions/vfwprintf.texi: Likewise.
44200         * doc/posix-functions/vfwscanf.texi: Likewise.
44201         * doc/posix-functions/vswscanf.texi: Likewise.
44202         * doc/posix-functions/vwprintf.texi: Likewise.
44203         * doc/posix-functions/vwscanf.texi: Likewise.
44204         * doc/posix-functions/wcpcpy.texi: Likewise.
44205         * doc/posix-functions/wcpncpy.texi: Likewise.
44206         * doc/posix-functions/wcscasecmp.texi: Likewise.
44207         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44208         * doc/posix-functions/wcscoll_l.texi: Likewise.
44209         * doc/posix-functions/wcsdup.texi: Likewise.
44210         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44211         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44212         * doc/posix-functions/wcsnlen.texi: Likewise.
44213         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44214         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44215         * doc/posix-functions/wctrans_l.texi: Likewise.
44216         * doc/posix-functions/wctype_l.texi: Likewise.
44217         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44218         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44219         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44220         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44221         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44222         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44223         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44224         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44225         * doc/glibc-functions/wcschrnul.texi: Likewise.
44226         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44227         * doc/glibc-functions/wcstod_l.texi: Likewise.
44228         * doc/glibc-functions/wcstof_l.texi: Likewise.
44229         * doc/glibc-functions/wcstol_l.texi: Likewise.
44230         * doc/glibc-functions/wcstold_l.texi: Likewise.
44231         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44232         * doc/glibc-functions/wcstoq.texi: Likewise.
44233         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44234         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44235         * doc/glibc-functions/wcstouq.texi: Likewise.
44236         * doc/glibc-functions/wmempcpy.texi: Likewise.
44237
44238 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44239             Eric Blake  <ebb9@byu.net>
44240             Paolo Bonzini  <bonzini@gnu.org>
44241             Bruno Haible  <bruno@clisp.org>
44242
44243         Make c-stack work on Haiku.
44244         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44245         (c_stack_action): Use SA_ONSTACK flag.
44246
44247 2008-12-22  Bruno Haible  <bruno@clisp.org>
44248
44249         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44250
44251 2008-12-22  Bruno Haible  <bruno@clisp.org>
44252
44253         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44254         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44255         being overridden.
44256         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44257         New macros.
44258         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44260         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44261         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44262
44263 2008-12-22  Bruno Haible  <bruno@clisp.org>
44264
44265         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44266         from test code.
44267
44268 2008-12-22  Eric Blake  <ebb9@byu.net>
44269
44270         Avoid gcc warnings on cygwin.
44271         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44272         Avoid unused variable.
44273         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44274         Likewise.
44275
44276 2008-12-22  Bruno Haible  <bruno@clisp.org>
44277
44278         Remove HAVE_MBRTOWC conditionals.
44279         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44280         (mbscasecmp): Assume mbrtowc function.
44281         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44282         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44283         * lib/mbschr.c: Include mbuiter.h unconditionally.
44284         (mbschr): Assume mbrtowc function.
44285         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44286         (mbscspn): Assume mbrtowc function.
44287         * lib/mbslen.c: Include mbuiter.h unconditionally.
44288         (mbslen): Assume mbrtowc function.
44289         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44290         (mbsncasecmp): Assume mbrtowc function.
44291         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44292         (mbsnlen): Assume mbrtowc function.
44293         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44294         (mbspbrk): Assume mbrtowc function.
44295         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44296         (mbspcasecmp): Assume mbrtowc function.
44297         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44298         (mbsrchr): Assume mbrtowc function.
44299         * lib/mbssep.c: Include mbuiter.h unconditionally.
44300         (mbssep): Assume mbrtowc function.
44301         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44302         (mbsspn): Assume mbrtowc function.
44303         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44304         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44305         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44306         (mbstok_r): Assume mbrtowc function.
44307         * lib/propername.c: Include mbuiter.h unconditionally.
44308         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44309         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44310         (trim2): Assume mbrtowc function.
44311         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44312         (mbsnwidth): Assume mbrtowc function.
44313         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44314         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44315         fallback definitions.
44316         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44317
44318 2008-12-22  Bruno Haible  <bruno@clisp.org>
44319
44320         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44321
44322 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44323
44324         * modules/regex: Request emulations for the mb*/wc* functions we need.
44325         * m4/regex.m4: Don't look for those functions here.
44326         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44327
44328 2008-12-22  Bruno Haible  <bruno@clisp.org>
44329
44330         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44331
44332 2008-12-21  Bruno Haible  <bruno@clisp.org>
44333
44334         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44335         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44336         (Include): Remove conditionalization.
44337         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44338         (Include): Remove conditionalization.
44339         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44340         (Include): Remove conditionalization.
44341         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44342         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44343         * NEWS: Mention the change.
44344         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44345         via Sergey Poznyakoff <gray@gnu.org.ua>.
44346
44347 2008-12-21  Bruno Haible  <bruno@clisp.org>
44348
44349         * MODULES.html.sh (Extended multibyte and wide character utilities
44350         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44351         wcrtomb, wcsrtombs.
44352         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44353         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44354         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44355         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44356
44357 2008-12-21  Bruno Haible  <bruno@clisp.org>
44358
44359         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44360
44361 2008-12-21  Bruno Haible  <bruno@clisp.org>
44362
44363         * modules/wcsnrtombs-tests: New file.
44364         * tests/test-wcsnrtombs1.sh: New file.
44365         * tests/test-wcsnrtombs2.sh: New file.
44366         * tests/test-wcsnrtombs3.sh: New file.
44367         * tests/test-wcsnrtombs4.sh: New file.
44368         * tests/test-wcsnrtombs.c: New file.
44369
44370         New module 'wcsnrtombs'.
44371         * lib/wchar.in.h (wcsnrtombs): New declaration.
44372         * lib/wcsnrtombs.c: New file.
44373         * lib/wcsrtombs-state.c: New file.
44374         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44375         (internal_state): Remove variable.
44376         * m4/wcsnrtombs.m4: New file.
44377         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44378         compilation units.
44379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44380         HAVE_WCSNRTOMBS.
44381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44382         HAVE_WCSNRTOMBS.
44383         * modules/wcsnrtombs: New file.
44384         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44385         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44386
44387 2008-12-21  Bruno Haible  <bruno@clisp.org>
44388
44389         * modules/wcsrtombs-tests: New file.
44390         * tests/test-wcsrtombs1.sh: New file.
44391         * tests/test-wcsrtombs2.sh: New file.
44392         * tests/test-wcsrtombs3.sh: New file.
44393         * tests/test-wcsrtombs4.sh: New file.
44394         * tests/test-wcsrtombs.c: New file.
44395
44396         New module 'wcsrtombs'.
44397         * lib/wchar.in.h (wcsrtombs): New declaration.
44398         * lib/wcsrtombs.c: New file.
44399         * m4/wcsrtombs.m4: New file.
44400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44401         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44403         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44404         * modules/wcsrtombs: New file.
44405         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44406         bugs.
44407
44408 2008-12-21  Bruno Haible  <bruno@clisp.org>
44409
44410         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44411         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44412         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44413         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44414         if not correct.
44415         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44416         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44417         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44418         m4/locale-zh.m4, m4/codeset.m4.
44419         * doc/posix-functions/wcrtomb.texi: Document the bug.
44420
44421 2008-12-21  Bruno Haible  <bruno@clisp.org>
44422
44423         Work around a btowc() bug on IRIX 6.5.
44424         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44425         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44426         REPLACE_WTOBC if not.
44427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44428         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44429         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44430
44431 2008-12-21  Bruno Haible  <bruno@clisp.org>
44432
44433         * modules/wcrtomb-tests: New file.
44434         * tests/test-wcrtomb.sh: New file.
44435         * tests/test-wcrtomb.c: New file.
44436
44437         New module 'wcrtomb'.
44438         * lib/wchar.in.h (wcrtomb): New declaration.
44439         * lib/wcrtomb.c: New file.
44440         * m4/wcrtomb.m4: New file.
44441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44442         HAVE_WCRTOMB.
44443         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44444         HAVE_WCRTOMB.
44445         * modules/wcrtomb: New file.
44446         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44447
44448 2008-12-21  Bruno Haible  <bruno@clisp.org>
44449
44450         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44451         * modules/mbsrtowcs (Files): Likewise.
44452         * modules/wctob (Files): Likewise.
44453         * modules/c-strcase-tests (Files): Likewise.
44454         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44455         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44456         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44457         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44458         * modules/vasnprintf-posix-tests (Files): Likewise.
44459
44460 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44461
44462         gitlog-to-changelog: pass all command-line arguments to git-log
44463         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44464         it is sometimes convenient to filter the commits in various ways.
44465         gitlog-to-changelog only allows --since to specify a start date,
44466         but git-log itself supports many other filtering mechanisms.
44467         At the moment, I want to filter by branch name.  Rather than
44468         adding a --branch option to gitlog-to-changelog, it seems more
44469         flexible to simply pass all options directly to git-log and let
44470         git do the work.  Notice that this effectively makes --since a
44471         redundant option for gitlog-to-changelog, but removing it would
44472         require current usage to change since calls would then require
44473         an additional '--'.
44474
44475 2008-12-21  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/mbsnrtowcs-tests: New file.
44478         * tests/test-mbsnrtowcs1.sh: New file.
44479         * tests/test-mbsnrtowcs2.sh: New file.
44480         * tests/test-mbsnrtowcs3.sh: New file.
44481         * tests/test-mbsnrtowcs4.sh: New file.
44482         * tests/test-mbsnrtowcs.c: New file.
44483
44484         New module 'mbsnrtowcs'.
44485         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44486         * lib/mbsnrtowcs.c: New file.
44487         * lib/mbsrtowcs-state.c: New file.
44488         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44489         (internal_state): Remove variable.
44490         * m4/mbsnrtowcs.m4: New file.
44491         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44492         compilation units.
44493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44494         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44495         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44496         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44497         * modules/mbsnrtowcs: New file.
44498         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44499         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44500         portability problem.
44501
44502 2008-12-21  Bruno Haible  <bruno@clisp.org>
44503
44504         Work around mbsrtowcs bug.
44505         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44506         (gl_FUNC_MBSRTOWCS): Invoke it.
44507         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44508         m4/locale-zh.m4.
44509         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44510
44511 2008-12-21  Bruno Haible  <bruno@clisp.org>
44512
44513         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44514
44515 2008-12-21  Bruno Haible  <bruno@clisp.org>
44516
44517         Update doc for AIX.
44518         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44519         16-bit wchar_t type.
44520         * doc/posix-functions/btowc.texi: Likewise.
44521         * doc/posix-functions/fgetwc.texi: Likewise.
44522         * doc/posix-functions/fgetws.texi: Likewise.
44523         * doc/posix-functions/fputwc.texi: Likewise.
44524         * doc/posix-functions/fputws.texi: Likewise.
44525         * doc/posix-functions/fwide.texi: Likewise.
44526         * doc/posix-functions/fwprintf.texi: Likewise.
44527         * doc/posix-functions/fwscanf.texi: Likewise.
44528         * doc/posix-functions/getwchar.texi: Likewise.
44529         * doc/posix-functions/getwc.texi: Likewise.
44530         * doc/posix-functions/iswalnum.texi: Likewise.
44531         * doc/posix-functions/iswalpha.texi: Likewise.
44532         * doc/posix-functions/iswblank.texi: Likewise.
44533         * doc/posix-functions/iswcntrl.texi: Likewise.
44534         * doc/posix-functions/iswctype.texi: Likewise.
44535         * doc/posix-functions/iswdigit.texi: Likewise.
44536         * doc/posix-functions/iswgraph.texi: Likewise.
44537         * doc/posix-functions/iswlower.texi: Likewise.
44538         * doc/posix-functions/iswprint.texi: Likewise.
44539         * doc/posix-functions/iswpunct.texi: Likewise.
44540         * doc/posix-functions/iswspace.texi: Likewise.
44541         * doc/posix-functions/iswupper.texi: Likewise.
44542         * doc/posix-functions/iswxdigit.texi: Likewise.
44543         * doc/posix-functions/mbrtowc.texi: Likewise.
44544         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44545         * doc/posix-functions/mbstowcs.texi: Likewise.
44546         * doc/posix-functions/mbtowc.texi: Likewise.
44547         * doc/posix-functions/putwchar.texi: Likewise.
44548         * doc/posix-functions/putwc.texi: Likewise.
44549         * doc/posix-functions/swprintf.texi: Likewise.
44550         * doc/posix-functions/tolower.texi: Likewise.
44551         * doc/posix-functions/toupper.texi: Likewise.
44552         * doc/posix-functions/towctrans.texi: Likewise.
44553         * doc/posix-functions/ungetwc.texi: Likewise.
44554         * doc/posix-functions/vswprintf.texi: Likewise.
44555         * doc/posix-functions/wcrtomb.texi: Likewise.
44556         * doc/posix-functions/wcscat.texi: Likewise.
44557         * doc/posix-functions/wcschr.texi: Likewise.
44558         * doc/posix-functions/wcscmp.texi: Likewise.
44559         * doc/posix-functions/wcscoll.texi: Likewise.
44560         * doc/posix-functions/wcscpy.texi: Likewise.
44561         * doc/posix-functions/wcscspn.texi: Likewise.
44562         * doc/posix-functions/wcsftime.texi: Likewise.
44563         * doc/posix-functions/wcslen.texi: Likewise.
44564         * doc/posix-functions/wcsncat.texi: Likewise.
44565         * doc/posix-functions/wcsncmp.texi: Likewise.
44566         * doc/posix-functions/wcsncpy.texi: Likewise.
44567         * doc/posix-functions/wcspbrk.texi: Likewise.
44568         * doc/posix-functions/wcsrchr.texi: Likewise.
44569         * doc/posix-functions/wcsrtombs.texi: Likewise.
44570         * doc/posix-functions/wcsspn.texi: Likewise.
44571         * doc/posix-functions/wcsstr.texi: Likewise.
44572         * doc/posix-functions/wcstod.texi: Likewise.
44573         * doc/posix-functions/wcstof.texi: Likewise.
44574         * doc/posix-functions/wcstoimax.texi: Likewise.
44575         * doc/posix-functions/wcstok.texi: Likewise.
44576         * doc/posix-functions/wcstold.texi: Likewise.
44577         * doc/posix-functions/wcstoll.texi: Likewise.
44578         * doc/posix-functions/wcstol.texi: Likewise.
44579         * doc/posix-functions/wcstombs.texi: Likewise.
44580         * doc/posix-functions/wcstoull.texi: Likewise.
44581         * doc/posix-functions/wcstoul.texi: Likewise.
44582         * doc/posix-functions/wcstoumax.texi: Likewise.
44583         * doc/posix-functions/wcswidth.texi: Likewise.
44584         * doc/posix-functions/wcsxfrm.texi: Likewise.
44585         * doc/posix-functions/wctob.texi: Likewise.
44586         * doc/posix-functions/wctomb.texi: Likewise.
44587         * doc/posix-functions/wctrans.texi: Likewise.
44588         * doc/posix-functions/wctype.texi: Likewise.
44589         * doc/posix-functions/wcwidth.texi: Likewise.
44590         * doc/posix-functions/wmemchr.texi: Likewise.
44591         * doc/posix-functions/wmemcmp.texi: Likewise.
44592         * doc/posix-functions/wmemcpy.texi: Likewise.
44593         * doc/posix-functions/wmemmove.texi: Likewise.
44594         * doc/posix-functions/wmemset.texi: Likewise.
44595         * doc/posix-functions/wprintf.texi: Likewise.
44596         * doc/posix-functions/wscanf.texi: Likewise.
44597
44598 2008-12-21  Bruno Haible  <bruno@clisp.org>
44599
44600         Update doc for HP-UX 11.11.
44601         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44602         in HP-UX version 11.00, not in all versions of HP-UX 11.
44603         * doc/posix-functions/fwide.texi: Likewise.
44604         * doc/posix-functions/fwprintf.texi: Likewise.
44605         * doc/posix-functions/fwscanf.texi: Likewise.
44606         * doc/posix-functions/inet_ntop.texi: Likewise.
44607         * doc/posix-functions/inet_pton.texi: Likewise.
44608         * doc/posix-functions/mbrlen.texi: Likewise.
44609         * doc/posix-functions/mbrtowc.texi: Likewise.
44610         * doc/posix-functions/mbsinit.texi: Likewise.
44611         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44612         * doc/posix-functions/swprintf.texi: Likewise.
44613         * doc/posix-functions/swscanf.texi: Likewise.
44614         * doc/posix-functions/towctrans.texi: Likewise.
44615         * doc/posix-functions/vfwprintf.texi: Likewise.
44616         * doc/posix-functions/vswprintf.texi: Likewise.
44617         * doc/posix-functions/vwprintf.texi: Likewise.
44618         * doc/posix-functions/wcrtomb.texi: Likewise.
44619         * doc/posix-functions/wcsrtombs.texi: Likewise.
44620         * doc/posix-functions/wcsstr.texi: Likewise.
44621         * doc/posix-functions/wctob.texi: Likewise.
44622         * doc/posix-functions/wctrans.texi: Likewise.
44623         * doc/posix-functions/wmemchr.texi: Likewise.
44624         * doc/posix-functions/wmemcmp.texi: Likewise.
44625         * doc/posix-functions/wmemcpy.texi: Likewise.
44626         * doc/posix-functions/wmemmove.texi: Likewise.
44627         * doc/posix-functions/wmemset.texi: Likewise.
44628         * doc/posix-functions/wprintf.texi: Likewise.
44629         * doc/posix-functions/wscanf.texi: Likewise.
44630
44631 2008-12-21  Bruno Haible  <bruno@clisp.org>
44632
44633         Work around a portability problem.
44634         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44635         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44636
44637 2008-12-20  Bruno Haible  <bruno@clisp.org>
44638
44639         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44640         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44641         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44643         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44644
44645         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44646         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44647         set.
44648         (GNULIB_defined_mbstate_t): New macro.
44649         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44650         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44651         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44652         reuses the system's mbrtowc function but works around the bugs.
44653         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44654         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44655         macros.
44656         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44657         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44658         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44659         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44660         REPLACE_MBSINIT if mbsinit needs to be overridden.
44661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44662         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44663         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44664         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44665         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44666         m4/locale-zh.m4.
44667         (Depends): Add mbsinit.
44668         * modules/mbsinit (Depends): Add mbrtowc.
44669         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44670
44671 2008-12-20  Bruno Haible  <bruno@clisp.org>
44672
44673         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44674         so that there are no conversion errors on AIX.
44675         * tests/test-mbsrtowcs.c (main): LIkewise.
44676
44677 2008-12-20  Bruno Haible  <bruno@clisp.org>
44678
44679         Work around wctob bug on Solaris <= 9.
44680         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44681         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44682         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44683         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44684         * modules/wctob (Files): Add m4/locale-fr.m4.
44685         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44686
44687 2008-12-20  Bruno Haible  <bruno@clisp.org>
44688
44689         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44690         /dev/null.
44691         * tests/test-select-in.sh: Likewise.
44692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44693
44694 2008-12-20  Bruno Haible  <bruno@clisp.org>
44695
44696         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44697         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44698         Cygwin 1.5.x.
44699
44700 2008-12-20  Bruno Haible  <bruno@clisp.org>
44701
44702         Ensure mbstate_t is defined on HP-UX 11.11.
44703         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44704         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44705         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44706         AC_USE_SYSTEM_EXTENSIONS.
44707         * modules/fnmatch (Depends-on): Add extensions.
44708         * modules/mbrlen (Depends-on): Likewise.
44709         * modules/mbrtowc (Depends-on): Likewise.
44710         * modules/mbsinit (Depends-on): Likewise.
44711         * modules/mbsrtowcs (Depends-on): Likewise.
44712         * modules/mbswidth (Depends-on): Likewise.
44713         * modules/quotearg (Depends-on): Likewise.
44714         * modules/strftime (Depends-on): Likewise.
44715
44716 2008-12-20  Bruno Haible  <bruno@clisp.org>
44717
44718         Ensure wctob is declared on IRIX 6.5.
44719         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44720         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44721         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44723         of HAVE_WCTOB.
44724         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44725         HAVE_WCTOB.
44726         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44727
44728 2008-12-19  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/mbsrtowcs-tests: New file.
44731         * tests/test-mbsrtowcs1.sh: New file.
44732         * tests/test-mbsrtowcs2.sh: New file.
44733         * tests/test-mbsrtowcs3.sh: New file.
44734         * tests/test-mbsrtowcs4.sh: New file.
44735         * tests/test-mbsrtowcs.c: New file.
44736
44737         New module 'mbsrtowcs'.
44738         * lib/wchar.in.h (mbsrtowcs): New declaration.
44739         * lib/mbsrtowcs.c: New file.
44740         * m4/mbsrtowcs.m4: New file.
44741         * modules/mbsrtowcs: New file.
44742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44743         HAVE_MBSRTOWCS.
44744         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44745         HAVE_MBSRTOWCS.
44746         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44747
44748 2008-12-19  Bruno Haible  <bruno@clisp.org>
44749
44750         New module 'mbrlen'.
44751         * lib/wchar.in.h (mbrlen): New declaration.
44752         * lib/mbrlen.c: New file.
44753         * m4/mbrlen.m4: New file.
44754         * modules/mbrlen: New file.
44755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44756         HAVE_MBRLEN.
44757         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44758         HAVE_MBRLEN.
44759         * doc/posix-functions/mbrlen.texi: Document the new module.
44760
44761 2008-12-19  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44764         * modules/mbrtowc (Depends-on): Add verify.
44765         Suggested by Paul Eggert.
44766
44767 2008-12-18  Bruno Haible  <bruno@clisp.org>
44768
44769         * modules/mbsinit-tests: New file.
44770         * tests/test-mbsinit.sh: New file.
44771         * tests/test-mbsinit.c: New file.
44772
44773 2008-12-18  Bruno Haible  <bruno@clisp.org>
44774
44775         * modules/mbrtowc-tests: New file.
44776         * tests/test-mbrtowc1.sh: New file.
44777         * tests/test-mbrtowc2.sh: New file.
44778         * tests/test-mbrtowc3.sh: New file.
44779         * tests/test-mbrtowc4.sh: New file.
44780         * tests/test-mbrtowc.c: New file.
44781
44782         New module 'mbrtowc'.
44783         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44784         mbsinit and mbrtowc.
44785         (mbrtowc): New declaration.
44786         * lib/mbrtowc.c: New file.
44787         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44788         * modules/mbrtowc: New file.
44789         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44790         HAVE_MBRTOWC.
44791         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44792         HAVE_MBRTOWC.
44793         * doc/posix-functions/mbrtowc.texi: Document the new module.
44794
44795 2008-12-18  Bruno Haible  <bruno@clisp.org>
44796
44797         New module 'wctob'.
44798         * lib/wchar.in.h (wctob): New declaration.
44799         * lib/wctob.c: New file.
44800         * m4/wctob.m4: New file.
44801         * modules/wctob: New file.
44802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44803         HAVE_WCTOB.
44804         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44805         * doc/posix-functions/wctob.texi: Document the new module.
44806
44807 2008-12-18  Bruno Haible  <bruno@clisp.org>
44808
44809         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44810         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44811
44812 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44813
44814         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44815         G. Christensen" <tgc@jupiterrise.com>.
44816
44817         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44818         G. Christensen" <tgc@jupiterrise.com>.
44819
44820         * lib/flock.c: Need to include string.h.  Reported by "Tom
44821         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44822         <ebb9@byu.net>.
44823
44824 2008-12-18  Bruno Haible  <bruno@clisp.org>
44825
44826         * m4/locale-ja.m4: New file, from GNU gettext.
44827
44828 2008-12-17  Bruno Haible  <bruno@clisp.org>
44829
44830         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44831         Suggested by Eric Blake.
44832
44833 2008-12-17  Bruno Haible  <bruno@clisp.org>
44834
44835         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44836
44837 2008-12-17  Bruno Haible  <bruno@clisp.org>
44838
44839         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44840         * modules/mbsinit (Depends-on): Add verify.
44841         Suggested by Paul Eggert.
44842
44843 2008-12-17  Bruno Haible  <bruno@clisp.org>
44844
44845         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44846         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44847         gl_FUNC_MBRTOWC.
44848         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44849         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44850         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44851         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44852         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44853         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44854         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44855         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44856         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44857         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44858         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44859         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44860         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44861         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44862         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44863         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44864         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44865         * modules/trim (configure.ac): Likewise.
44866
44867 2008-12-17  Bruno Haible  <bruno@clisp.org>
44868
44869         * modules/btowc-tests: New file.
44870         * tests/test-btowc1.sh: New file.
44871         * tests/test-btowc2.sh: New file.
44872         * tests/test-btowc.c: New file.
44873
44874         New module 'btowc'.
44875         * lib/wchar.in.h (btowc): New declaration.
44876         * lib/btowc.c: New file.
44877         * m4/btowc.m4: New file.
44878         * modules/btowc: New file.
44879         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44880         HAVE_BTOWC.
44881         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44882         * doc/posix-functions/btowc.texi: Document the new module.
44883
44884 2008-12-17  Bruno Haible  <bruno@clisp.org>
44885
44886         New module 'mbsinit'.
44887         * lib/wchar.in.h (mbsinit): New declaration.
44888         * lib/mbsinit.c: New file.
44889         * m4/mbsinit.m4: New file.
44890         * modules/mbsinit: New file.
44891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44892         HAVE_MBSINIT.
44893         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44894         HAVE_MBSINIT.
44895         * doc/posix-functions/mbsinit.texi: Document the new module.
44896
44897 2008-12-16  Bruno Haible  <bruno@clisp.org>
44898
44899         * lib/unistd.in.h: Add comment.
44900         * tests/test-environ.c: Don't include <stdlib.h>.
44901
44902 2008-12-16  Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/parse-duration.h (parse_duration): Document return value
44905         convention.
44906         * lib/parse-duration.c: Include specification header first. Add
44907         comments.
44908         (_): Remove macro.
44909         (parse_year_month_day, parse_hour_minute_second): Move side effects
44910         outside of strchr call.
44911         (parse_non_iso8601): Move side effects outside of isspace call.
44912         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44913         call.
44914
44915 2008-12-16  Bruno Haible  <bruno@clisp.org>
44916
44917         * tests/test-parse-duration.sh: Produce no output when the test
44918         succeeds.
44919
44920 2008-12-16  Bruno Haible  <bruno@clisp.org>
44921
44922         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44923         expressions.
44924
44925 2008-12-15  Bruno Haible  <bruno@clisp.org>
44926
44927         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44928         * doc/glibc-functions/flistxattr.texi: Likewise.
44929         * doc/glibc-functions/fopencookie.texi: Likewise.
44930         * doc/glibc-functions/fremovexattr.texi: Likewise.
44931         * doc/glibc-functions/fsetxattr.texi: Likewise.
44932         * doc/glibc-functions/getxattr.texi: Likewise.
44933         * doc/glibc-functions/lgetxattr.texi: Likewise.
44934         * doc/glibc-functions/listxattr.texi: Likewise.
44935         * doc/glibc-functions/llistxattr.texi: Likewise.
44936         * doc/glibc-functions/lremovexattr.texi: Likewise.
44937         * doc/glibc-functions/lsetxattr.texi: Likewise.
44938         * doc/glibc-functions/removexattr.texi: Likewise.
44939         * doc/glibc-functions/setxattr.texi: Likewise.
44940         * doc/posix-functions/open_memstream.texi: Likewise.
44941
44942 2008-12-15  Eric Blake  <ebb9@byu.net>
44943
44944         Update doc for cygwin 1.7.
44945         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44946         functions.
44947         * doc/posix-functions/fchmodat.texi: Likewise.
44948         * doc/posix-functions/fchownat.texi: Likewise.
44949         * doc/posix-functions/fdopendir.texi: Likewise.
44950         * doc/posix-functions/fmemopen.texi: Likewise.
44951         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44952         * doc/posix-functions/fstatat.texi: Likewise.
44953         * doc/posix-functions/futimens.texi: Likewise.
44954         * doc/posix-functions/gai_strerror.texi: Likewise.
44955         * doc/posix-functions/getaddrinfo.texi: Likewise.
44956         * doc/posix-functions/getnameinfo.texi: Likewise.
44957         * doc/posix-functions/if_freenameindex.texi: Likewise.
44958         * doc/posix-functions/if_indextoname.texi: Likewise.
44959         * doc/posix-functions/if_nameindex.texi: Likewise.
44960         * doc/posix-functions/if_nametoindex.texi: Likewise.
44961         * doc/posix-functions/insque.texi: Likewise.
44962         * doc/posix-functions/linkat.texi: Likewise.
44963         * doc/posix-functions/llrint.texi: Likewise.
44964         * doc/posix-functions/llrintf.texi: Likewise.
44965         * doc/posix-functions/llrintl.texi: Likewise.
44966         * doc/posix-functions/lockf.texi: Likewise.
44967         * doc/posix-functions/lrintl.texi: Likewise.
44968         * doc/posix-functions/mkdirat.texi: Likewise.
44969         * doc/posix-functions/mkfifoat.texi: Likewise.
44970         * doc/posix-functions/mknodat.texi: Likewise.
44971         * doc/posix-functions/mq_close.texi: Likewise.
44972         * doc/posix-functions/mq_getattr.texi: Likewise.
44973         * doc/posix-functions/mq_notify.texi: Likewise.
44974         * doc/posix-functions/mq_open.texi: Likewise.
44975         * doc/posix-functions/mq_receive.texi: Likewise.
44976         * doc/posix-functions/mq_send.texi: Likewise.
44977         * doc/posix-functions/mq_setattr.texi: Likewise.
44978         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44979         * doc/posix-functions/mq_timedsend.texi: Likewise.
44980         * doc/posix-functions/mq_unlink.texi: Likewise.
44981         * doc/posix-functions/open_memstream.texi: Likewise.
44982         * doc/posix-functions/openat.texi: Likewise.
44983         * doc/posix-functions/posix_fadvise.texi: Likewise.
44984         * doc/posix-functions/posix_fallocate.texi: Likewise.
44985         * doc/posix-functions/posix_madvise.texi: Likewise.
44986         * doc/posix-functions/posix_memalign.texi: Likewise.
44987         * doc/posix-functions/posix_openpt.texi: Likewise.
44988         * doc/posix-functions/readlinkat.texi: Likewise.
44989         * doc/posix-functions/remque.texi: Likewise.
44990         * doc/posix-functions/renameat.texi: Likewise.
44991         * doc/posix-functions/rintl.texi: Likewise.
44992         * doc/posix-functions/sem_unlink.texi: Likewise.
44993         * doc/posix-functions/shm_open.texi: Likewise.
44994         * doc/posix-functions/shm_unlink.texi: Likewise.
44995         * doc/posix-functions/signgam.texi: Likewise.
44996         * doc/posix-functions/sigset.texi: Likewise.
44997         * doc/posix-functions/stpcpy.texi: Likewise.
44998         * doc/posix-functions/stpncpy.texi: Likewise.
44999         * doc/posix-functions/strerror.texi: Likewise.
45000         * doc/posix-functions/strtod.texi: Likewise.
45001         * doc/posix-functions/symlinkat.texi: Likewise.
45002         * doc/posix-functions/unlinkat.texi: Likewise.
45003         * doc/posix-functions/utimensat.texi: Likewise.
45004         * doc/glibc-functions/bindresvport.texi: Likewise.
45005         * doc/glibc-functions/dn_expand.texi: Likewise.
45006         * doc/glibc-functions/exp10.texi: Likewise.
45007         * doc/glibc-functions/exp10f.texi: Likewise.
45008         * doc/glibc-functions/fgetxattr.texi: Likewise.
45009         * doc/glibc-functions/flistxattr.texi: Likewise.
45010         * doc/glibc-functions/fopencookie.texi: Likewise.
45011         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45012         * doc/glibc-functions/fremovexattr.texi: Likewise.
45013         * doc/glibc-functions/fsetxattr.texi: Likewise.
45014         * doc/glibc-functions/getifaddrs.texi: Likewise.
45015         * doc/glibc-functions/getxattr.texi: Likewise.
45016         * doc/glibc-functions/lgetxattr.texi: Likewise.
45017         * doc/glibc-functions/listxattr.texi: Likewise.
45018         * doc/glibc-functions/llistxattr.texi: Likewise.
45019         * doc/glibc-functions/lremovexattr.texi: Likewise.
45020         * doc/glibc-functions/lsetxattr.texi: Likewise.
45021         * doc/glibc-functions/pow10.texi: Likewise.
45022         * doc/glibc-functions/pow10f.texi: Likewise.
45023         * doc/glibc-functions/rcmd_af.texi: Likewise.
45024         * doc/glibc-functions/removexattr.texi: Likewise.
45025         * doc/glibc-functions/res_init.texi: Likewise.
45026         * doc/glibc-functions/res_mkquery.texi: Likewise.
45027         * doc/glibc-functions/res_query.texi: Likewise.
45028         * doc/glibc-functions/res_querydomain.texi: Likewise.
45029         * doc/glibc-functions/res_send.texi: Likewise.
45030         * doc/glibc-functions/rresvport_af.texi: Likewise.
45031         * doc/glibc-functions/setxattr.texi: Likewise.
45032         * doc/glibc-functions/strcasestr.texi: Likewise.
45033
45034 2008-12-15  Bruno Haible  <bruno@clisp.org>
45035
45036         Fix compilation error on OSF/1 4.0.
45037         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45038         <sys/time.h>, simply delegate to the system header.
45039         Reported by Daniel Richard G. <oss@teragram.com>.
45040
45041 2008-12-15  Bruno Haible  <bruno@clisp.org>
45042
45043         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45044         * doc/posix-functions/fchmodat.texi: Likewise.
45045         * doc/posix-functions/fchownat.texi: Likewise.
45046         * doc/posix-functions/fdopendir.texi: Likewise.
45047         * doc/posix-functions/fstatat.texi: Likewise.
45048         * doc/posix-functions/mkdirat.texi: Likewise.
45049         * doc/posix-functions/unlinkat.texi: Likewise.
45050
45051 2008-12-14  Bruno Haible  <bruno@clisp.org>
45052
45053         Update doc for POSIX:2008.
45054         * doc/posix-functions/faccessat.texi: New file.
45055         * doc/posix-functions/fchmodat.texi: New file.
45056         * doc/posix-functions/fchownat.texi: New file.
45057         * doc/posix-functions/fdopendir.texi: New file.
45058         * doc/posix-functions/fstatat.texi: New file.
45059         * doc/posix-functions/futimens.texi: New file.
45060         * doc/posix-functions/linkat.texi: New file.
45061         * doc/posix-functions/mkdirat.texi: New file.
45062         * doc/posix-functions/mkfifoat.texi: New file.
45063         * doc/posix-functions/mknodat.texi: New file.
45064         * doc/posix-functions/open_wmemstream.texi: New file.
45065         * doc/posix-functions/openat.texi: New file.
45066         * doc/posix-functions/psiginfo.texi: New file.
45067         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45068         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45069         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45070         * doc/posix-functions/readlinkat.texi: New file.
45071         * doc/posix-functions/renameat.texi: New file.
45072         * doc/posix-functions/strerror_l.texi: New file.
45073         * doc/posix-functions/symlinkat.texi: New file.
45074         * doc/posix-functions/unlinkat.texi: New file.
45075         * doc/posix-functions/utimensat.texi: New file.
45076         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45077
45078 2008-12-14  Bruno Haible  <bruno@clisp.org>
45079
45080         Update doc for POSIX:2008.
45081         * doc/posix-functions/alphasort.texi: Renamed from
45082         doc/glibc-functions/alphasort.texi.
45083         * doc/posix-functions/dirfd.texi: Renamed from
45084         doc/glibc-functions/dirfd.texi.
45085         * doc/posix-functions/dprintf.texi: Renamed from
45086         doc/glibc-functions/dprintf.texi.
45087         * doc/posix-functions/duplocale.texi: Renamed from
45088         doc/glibc-functions/duplocale.texi.
45089         * doc/posix-functions/fexecve.texi: Renamed from
45090         doc/glibc-functions/fexecve.texi.
45091         * doc/posix-functions/fmemopen.texi: Renamed from
45092         doc/glibc-functions/fmemopen.texi.
45093         * doc/posix-functions/freelocale.texi: Renamed from
45094         doc/glibc-functions/freelocale.texi.
45095         * doc/posix-functions/getdate_err.texi: Renamed from
45096         doc/glibc-functions/getdate_err.texi.
45097         * doc/posix-functions/isalnum_l.texi: Renamed from
45098         doc/glibc-functions/isalnum_l.texi.
45099         * doc/posix-functions/isalpha_l.texi: Renamed from
45100         doc/glibc-functions/isalpha_l.texi.
45101         * doc/posix-functions/isblank_l.texi: Renamed from
45102         doc/glibc-functions/isblank_l.texi.
45103         * doc/posix-functions/iscntrl_l.texi: Renamed from
45104         doc/glibc-functions/iscntrl_l.texi.
45105         * doc/posix-functions/isdigit_l.texi: Renamed from
45106         doc/glibc-functions/isdigit_l.texi.
45107         * doc/posix-functions/isgraph_l.texi: Renamed from
45108         doc/glibc-functions/isgraph_l.texi.
45109         * doc/posix-functions/islower_l.texi: Renamed from
45110         doc/glibc-functions/islower_l.texi.
45111         * doc/posix-functions/isprint_l.texi: Renamed from
45112         doc/glibc-functions/isprint_l.texi.
45113         * doc/posix-functions/ispunct_l.texi: Renamed from
45114         doc/glibc-functions/ispunct_l.texi.
45115         * doc/posix-functions/isspace_l.texi: Renamed from
45116         doc/glibc-functions/isspace_l.texi.
45117         * doc/posix-functions/isupper_l.texi: Renamed from
45118         doc/glibc-functions/isupper_l.texi.
45119         * doc/posix-functions/iswalnum_l.texi: Renamed from
45120         doc/glibc-functions/iswalnum_l.texi.
45121         * doc/posix-functions/iswalpha_l.texi: Renamed from
45122         doc/glibc-functions/iswalpha_l.texi.
45123         * doc/posix-functions/iswblank_l.texi: Renamed from
45124         doc/glibc-functions/iswblank_l.texi.
45125         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45126         doc/glibc-functions/iswcntrl_l.texi.
45127         * doc/posix-functions/iswctype_l.texi: Renamed from
45128         doc/glibc-functions/iswctype_l.texi.
45129         * doc/posix-functions/iswdigit_l.texi: Renamed from
45130         doc/glibc-functions/iswdigit_l.texi.
45131         * doc/posix-functions/iswgraph_l.texi: Renamed from
45132         doc/glibc-functions/iswgraph_l.texi.
45133         * doc/posix-functions/iswlower_l.texi: Renamed from
45134         doc/glibc-functions/iswlower_l.texi.
45135         * doc/posix-functions/iswprint_l.texi: Renamed from
45136         doc/glibc-functions/iswprint_l.texi.
45137         * doc/posix-functions/iswpunct_l.texi: Renamed from
45138         doc/glibc-functions/iswpunct_l.texi.
45139         * doc/posix-functions/iswspace_l.texi: Renamed from
45140         doc/glibc-functions/iswspace_l.texi.
45141         * doc/posix-functions/iswupper_l.texi: Renamed from
45142         doc/glibc-functions/iswupper_l.texi.
45143         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45144         doc/glibc-functions/iswxdigit_l.texi.
45145         * doc/posix-functions/isxdigit_l.texi: Renamed from
45146         doc/glibc-functions/isxdigit_l.texi.
45147         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45148         doc/glibc-functions/mbsnrtowcs.texi.
45149         * doc/posix-functions/mkdtemp.texi: Renamed from
45150         doc/glibc-functions/mkdtemp.texi.
45151         * doc/posix-functions/newlocale.texi: Renamed from
45152         doc/glibc-functions/newlocale.texi.
45153         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45154         doc/glibc-functions/nl_langinfo_l.texi.
45155         * doc/posix-functions/open_memstream.texi: Renamed from
45156         doc/glibc-functions/open_memstream.texi.
45157         * doc/posix-functions/opterr.texi: Renamed from
45158         doc/glibc-functions/opterr.texi.
45159         * doc/posix-functions/optind.texi: Renamed from
45160         doc/glibc-functions/optind.texi.
45161         * doc/posix-functions/optopt.texi: Renamed from
45162         doc/glibc-functions/optopt.texi.
45163         * doc/posix-functions/psignal.texi: Renamed from
45164         doc/glibc-functions/psignal.texi.
45165         * doc/posix-functions/scandir.texi: Renamed from
45166         doc/glibc-functions/scandir.texi.
45167         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45168         doc/glibc-functions/sched_get_priority_min.texi.
45169         * doc/posix-functions/signgam.texi: Renamed from
45170         doc/glibc-functions/signgam.texi.
45171         * doc/posix-functions/stpcpy.texi: Renamed from
45172         doc/glibc-functions/stpcpy.texi.
45173         * doc/posix-functions/stpncpy.texi: Renamed from
45174         doc/glibc-functions/stpncpy.texi.
45175         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45176         doc/glibc-functions/strcasecmp_l.texi.
45177         * doc/posix-functions/strcoll_l.texi: Renamed from
45178         doc/glibc-functions/strcoll_l.texi.
45179         * doc/posix-functions/strfmon_l.texi: Renamed from
45180         doc/glibc-functions/strfmon_l.texi.
45181         * doc/posix-functions/strftime_l.texi: Renamed from
45182         doc/glibc-functions/strftime_l.texi.
45183         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45184         doc/glibc-functions/strncasecmp_l.texi.
45185         * doc/posix-functions/strndup.texi: Renamed from
45186         doc/glibc-functions/strndup.texi.
45187         * doc/posix-functions/strnlen.texi: Renamed from
45188         doc/glibc-functions/strnlen.texi.
45189         * doc/posix-functions/strsignal.texi: Renamed from
45190         doc/glibc-functions/strsignal.texi.
45191         * doc/posix-functions/strxfrm_l.texi: Renamed from
45192         doc/glibc-functions/strxfrm_l.texi.
45193         * doc/posix-functions/timer_gettime.texi: Renamed from
45194         doc/glibc-functions/timer_gettime.texi.
45195         * doc/posix-functions/tolower_l.texi: Renamed from
45196         doc/glibc-functions/tolower_l.texi.
45197         * doc/posix-functions/toupper_l.texi: Renamed from
45198         doc/glibc-functions/toupper_l.texi.
45199         * doc/posix-functions/towctrans_l.texi: Renamed from
45200         doc/glibc-functions/towctrans_l.texi.
45201         * doc/posix-functions/towlower_l.texi: Renamed from
45202         doc/glibc-functions/towlower_l.texi.
45203         * doc/posix-functions/towupper_l.texi: Renamed from
45204         doc/glibc-functions/towupper_l.texi.
45205         * doc/posix-functions/uselocale.texi: Renamed from
45206         doc/glibc-functions/uselocale.texi.
45207         * doc/posix-functions/vdprintf.texi: Renamed from
45208         doc/glibc-functions/vdprintf.texi.
45209         * doc/posix-functions/wcpcpy.texi:
45210         Renamed from doc/glibc-functions/wcpcpy.texi.
45211         * doc/posix-functions/wcpncpy.texi: Renamed from
45212         doc/glibc-functions/wcpncpy.texi.
45213         * doc/posix-functions/wcscasecmp.texi: Renamed from
45214         doc/glibc-functions/wcscasecmp.texi.
45215         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45216         doc/glibc-functions/wcscasecmp_l.texi.
45217         * doc/posix-functions/wcscoll_l.texi: Renamed from
45218         doc/glibc-functions/wcscoll_l.texi.
45219         * doc/posix-functions/wcsdup.texi: Renamed from
45220         doc/glibc-functions/wcsdup.texi.
45221         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45222         doc/glibc-functions/wcsncasecmp.texi.
45223         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45224         doc/glibc-functions/wcsncasecmp_l.texi.
45225         * doc/posix-functions/wcsnlen.texi: Renamed from
45226         doc/glibc-functions/wcsnlen.texi.
45227         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45228         doc/glibc-functions/wcsnrtombs.texi.
45229         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45230         doc/glibc-functions/wcsxfrm_l.texi.
45231         * doc/posix-functions/wctrans_l.texi: Renamed from
45232         doc/glibc-functions/wctrans_l.texi.
45233         * doc/posix-functions/wctype_l.texi: Renamed from
45234         doc/glibc-functions/wctype_l.texi.
45235         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45236         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45237         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45238         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45239         these subsections.
45240         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45241         Remove sections.
45242
45243 2008-12-14  Bruno Haible  <bruno@clisp.org>
45244
45245         Update doc for POSIX:2008.
45246         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45247
45248 2008-12-14  Bruno Haible  <bruno@clisp.org>
45249
45250         Update doc for POSIX:2008.
45251         * doc/pastposix-functions/bcmp.texi: Renamed from
45252         doc/posix-functions/bcmp.texi.
45253         * doc/pastposix-functions/bcopy.texi: Renamed from
45254         doc/posix-functions/bcopy.texi.
45255         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45256         doc/posix-functions/bsd_signal.texi.
45257         * doc/pastposix-functions/bzero.texi: Renamed from
45258         doc/posix-functions/bzero.texi.
45259         * doc/pastposix-functions/ecvt.texi: Renamed from
45260         doc/posix-functions/ecvt.texi.
45261         * doc/pastposix-functions/fcvt.texi: Renamed from
45262         doc/posix-functions/fcvt.texi.
45263         * doc/pastposix-functions/ftime.texi: Renamed from
45264         doc/posix-functions/ftime.texi.
45265         * doc/pastposix-functions/gcvt.texi: Renamed from
45266         doc/posix-functions/gcvt.texi.
45267         * doc/pastposix-functions/getcontext.texi: Renamed from
45268         doc/posix-functions/getcontext.texi.
45269         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45270         doc/posix-functions/gethostbyaddr.texi.
45271         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45272         doc/posix-functions/gethostbyname.texi.
45273         * doc/pastposix-functions/getwd.texi: Renamed from
45274         doc/posix-functions/getwd.texi.
45275         * doc/pastposix-functions/h_errno.texi: Renamed from
45276         doc/posix-functions/h_errno.texi.
45277         * doc/pastposix-functions/index.texi: Renamed from
45278         doc/posix-functions/index.texi.
45279         * doc/pastposix-functions/makecontext.texi: Renamed from
45280         doc/posix-functions/makecontext.texi.
45281         * doc/pastposix-functions/mktemp.texi: Renamed from
45282         doc/posix-functions/mktemp.texi.
45283         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45284         doc/posix-functions/pthread_attr_getstackaddr.texi.
45285         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45286         doc/posix-functions/pthread_attr_setstackaddr.texi.
45287         * doc/pastposix-functions/rindex.texi: Renamed from
45288         doc/posix-functions/rindex.texi.
45289         * doc/pastposix-functions/scalb.texi: Renamed from
45290         doc/posix-functions/scalb.texi.
45291         * doc/pastposix-functions/setcontext.texi: Renamed from
45292         doc/posix-functions/setcontext.texi.
45293         * doc/pastposix-functions/swapcontext.texi: Renamed from
45294         doc/posix-functions/swapcontext.texi.
45295         * doc/pastposix-functions/ualarm.texi: Renamed from
45296         doc/posix-functions/ualarm.texi.
45297         * doc/pastposix-functions/usleep.texi: Renamed from
45298         doc/posix-functions/usleep.texi.
45299         * doc/pastposix-functions/vfork.texi: Renamed from
45300         doc/posix-functions/vfork.texi.
45301         * doc/pastposix-functions/wcswcs.texi: Renamed from
45302         doc/posix-functions/wcswcs.texi.
45303         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45304         (Function Substitutes): Update.
45305
45306 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45307
45308         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45309         m4/strerror.m4.
45310
45311 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45312             Bruno Haible  <bruno@clisp.org>
45313
45314         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45315
45316 2008-12-13  Bruno Haible  <bruno@clisp.org>
45317
45318         * modules/strtoull (Depends-on): Remove unistd.
45319
45320 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45321
45322         * modules/strtoull (Depends-on): Add stdlib.
45323
45324 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45325
45326         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45327
45328 2008-12-10  Jim Meyering  <meyering@redhat.com>
45329
45330         gl_ASSERT: don't say assertions are disabled when they're not
45331         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45332         "checking whether to enable assertions... no", when they are in
45333         fact enabled.  This is solely a bug in the output of configure.
45334         In spite of saying "no", NDEBUG was not defined in that case.
45335         Also, as noted by Eric Blake, leave assertions enabled upon
45336         --enable-assert=INVALID.
45337
45338 2008-12-10  Bruno Haible  <bruno@clisp.org>
45339
45340         Change MODULES.html to refer to POSIX:2008 where possible.
45341         * MODULES.html.sh (POSIX2008_URL): New variable.
45342         (posix_headers): Remove sys/timeb, ucontext.
45343         (posix2001_headers): New variable.
45344         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45345         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45346         index, makecontext, mktemp, pthread_attr_getstackaddr,
45347         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45348         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45349         (posix2001_functions): New variable.
45350         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45351         otherwise.
45352
45353 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45354
45355         add missing include to parse-duration.c
45356         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45357         * modules/parse-duration (Depends-on): Add xalloc.
45358
45359         fix sed script reading maint.mk
45360         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45361         (syntax-check-rules): Use it.
45362
45363 2008-12-09  Bruno Haible  <bruno@clisp.org>
45364
45365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45366         MacOS X 10.4/PowerPC.
45367         Reported by Simon Josefsson.
45368
45369 2008-12-08  Jim Meyering  <meyering@redhat.com>
45370
45371         work around mingw's lack of some S_IF definitions
45372         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45373         Reported by Simon Josefsson.
45374
45375 2008-12-08  Bruno Haible  <bruno@clisp.org>
45376
45377         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45378         applied to variables. Needed on MacOS X 10.4/PowerPC.
45379         Reported by Simon Josefsson.
45380
45381 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45382         and Eric Blake  <ebb9@byu.net>
45383
45384         assert: honor --enable-assert
45385         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45386         order to honor --enable-assert, rather than treating it as a
45387         synonym for --disable-assert.
45388
45389 2008-12-08  Jim Meyering  <meyering@redhat.com>
45390
45391         * lib/posixtm.c: Remove now-useless declaration of mktime.
45392
45393         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45394
45395 2008-12-07  Bruno Haible  <bruno@clisp.org>
45396
45397         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45398         test_once): Mark functions as static.
45399         * tests/test-tls.c (test_tls): Likewise.
45400
45401 2008-12-07  Bruno Haible  <bruno@clisp.org>
45402
45403         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45404         iconv_register_autodetect.
45405
45406 2008-12-07  Jim Meyering  <meyering@redhat.com>
45407
45408         posixtm.c: avoid a warning
45409         * lib/posixtm.c (posixtime): Don't initialize tm0.
45410         It's no longer needed to placate gcc4's -Wuninitialized,
45411         and the attempt to placate would elicit a new warning.
45412
45413         unicodeio.c: mark unused parameters
45414         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45415         (fallback_failure_callback): Likewise.
45416
45417 2008-12-07  Bruno Haible  <bruno@clisp.org>
45418
45419         * gnulib-tool (func_create_testdir): When building the tests
45420         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45421         Reported by Simon Josefsson.
45422
45423 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45424
45425         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45426
45427 2008-12-06  Bruno Haible  <bruno@clisp.org>
45428
45429         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45430         Suggested by Eric Blake.
45431
45432 2008-12-06  Bruno Haible  <bruno@clisp.org>
45433
45434         Fix a c-stack test failure on MacOS X.
45435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45436         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45437         handler for SIGBUS as well.
45438         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45439         install a signal handler for SIGBUS as well.
45440         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45441
45442 2008-12-06  Bruno Haible  <bruno@clisp.org>
45443
45444         Advocacy documentation.
45445         * doc/gnulib-intro.texi (Benefits): New section.
45446         * doc/gnulib.texi: Update.
45447
45448 2008-12-06  Bruno Haible  <bruno@clisp.org>
45449
45450         Document the 'manywarnings' module.
45451         * doc/manywarnings.texi: New file.
45452         * doc/gnulib.texi: Include it.
45453
45454 2008-12-05  Eric Blake  <ebb9@byu.net>
45455
45456         tests: silence some gcc warnings
45457         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45458         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45459         type mismatches.
45460
45461 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45462             Bruno Haible  <bruno@clisp.org>
45463
45464         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45465
45466 2008-11-29  Jim Meyering  <meyering@redhat.com>
45467
45468         unicodeio.c: mark unused parameters
45469         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45470         (fallback_failure_callback): Likewise.
45471
45472         fts: fix a thinko
45473         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45474         (set_stat_type): Return S_IF*-valued "type" directly.
45475         Prompted by James Youngman's spotting a related bug.
45476         Confirmed by further testing through find.
45477
45478         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45479         * lib/fts.c (D_TYPE): Define.
45480         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45481         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45482         (s_ifmt_shift_bits): New function.
45483         (set_stat_type): New function.
45484         (fts_build): When not calling fts_stat, call set_stat_type
45485         to propagate dirent.d_type info to fts_read caller.
45486         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45487         fts_statp->st_mode type information may be valid.
45488
45489 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45490
45491         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45492         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45493         <sds@gnu.org>.
45494
45495 2008-11-20  Bruno Haible  <bruno@clisp.org>
45496
45497         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45498         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45499         INCLUDE_NEXT.
45500         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45501         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45502         * modules/math (Makefile.am): Substitute
45503         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45504         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45505
45506 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45507             Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/stdint.in.h: Define all type macros so that their expansion is
45510         a single typedef'ed token. Fixes a compilation failure in Boost which
45511         does "using ::int8_t;".
45512
45513 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45514
45515         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45516         gl_MANYWARN_ALL_GCC.
45517         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45518         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45519         * modules/manywarnings: New file.
45520         * MODULES.html.sh: Mention manywarnings module.
45521
45522 2008-11-18  Bruno Haible  <bruno@clisp.org>
45523
45524         * doc/gnulib-tool.texi (Unit tests): New section.
45525
45526 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45527
45528         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45529         paths like 'lib/po/foo.po'.
45530
45531 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45532
45533         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45534         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45535
45536 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45537
45538         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45539         parameter works.
45540
45541 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45542
45543         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45544
45545 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45546
45547         * modules/parse-duration-tests: New file.
45548         * tests/test-parse-duration.sh: New file.
45549         * tests/test-parse-duration.c: New file.
45550
45551         New module 'parse-duration'.
45552         * lib/parse-duration.h: New file.
45553         * lib/parse-duration.c: New file.
45554         * modules/parse-duration: New file.
45555
45556 2008-11-17  Bruno Haible  <bruno@clisp.org>
45557
45558         * tests/test-select-out.sh: Comment out the first pipe test.
45559         Reported by Simon Josefsson.
45560
45561 2008-11-17  Bruno Haible  <bruno@clisp.org>
45562
45563         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45565         gl_HOSTENT.
45566
45567 2008-11-17  Bruno Haible  <bruno@clisp.org>
45568
45569         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45570         -lnetwork and -lnet. Needed for Haiku and BeOS.
45571
45572 2008-11-16  Bruno Haible  <bruno@clisp.org>
45573
45574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45575
45576 2008-11-16  Bruno Haible  <bruno@clisp.org>
45577
45578         Avoid test failure on Haiku.
45579         * tests/test-fsync.c: Include <errno.h>.
45580         (main): Don't require that fsync (0) fails.
45581
45582 2008-11-15  Bruno Haible  <bruno@clisp.org>
45583
45584         New module 'hostent'.
45585         * modules/hostent: New file.
45586         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45587
45588 2008-11-15  Bruno Haible  <bruno@clisp.org>
45589
45590         New module 'servent'.
45591         * modules/servent: New file.
45592         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45593
45594 2008-11-15  Bruno Haible  <bruno@clisp.org>
45595
45596         Avoid generating same test program with two different rules.
45597         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45598         test-frexp to test-frexp-nolibm.
45599         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45600         test-frexpl to test-frexpl-nolibm.
45601
45602 2008-11-15  Bruno Haible  <bruno@clisp.org>
45603
45604         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45605         $(FREXPL_LIBM).
45606
45607 2008-11-15  Bruno Haible  <bruno@clisp.org>
45608
45609         * lib/netdb.in.h: Activate the definitions also when the system's
45610         <netdb.h> has 'struct addrinfo'.
45611         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45612         EAI_OVERFLOW or AI_NUMERICSERV.
45613         * doc/posix-headers/netdb.texi: Document the problem.
45614
45615 2008-11-15  Bruno Haible  <bruno@clisp.org>
45616
45617         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45618
45619         Make the 'sched' module work on platforms where <sched.h> exists but
45620         is incomplete (such as Haiku).
45621         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45622         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45623         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45624         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45625         HAVE_STRUCT_SCHED_PARAM.
45626         * modules/sched (Depends-on): Add include_next.
45627         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45628         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45629         * doc/posix-headers/sched.texi: Document the issue.
45630
45631 2008-11-13  Jim Meyering  <meyering@redhat.com>
45632
45633         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45634         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45635         test would fail due to the difference in the Report bugs to ...
45636         line.  The expected address is empty, "<>", while the actual
45637         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45638
45639 2008-11-12  Bruno Haible  <bruno@clisp.org>
45640
45641         lstat: don't compile lstat.c on systems lacking lstat
45642         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45643         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45644         Reported by Daniel P. Berrange via Jim Meyering.
45645
45646 2008-11-12  Jim Meyering  <meyering@redhat.com>
45647
45648         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45649
45650 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45651
45652         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45653         instead.
45654
45655 2008-11-12  Bruno Haible  <bruno@clisp.org>
45656
45657         * lib/unicodeio.c: Include unistr.h.
45658         (utf8_wctomb): Remove function.
45659         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45660
45661 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45662
45663         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45664         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45665         <bruno@clisp.org>.
45666         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45667
45668 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45669
45670         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45671         * doc/gnulib.texi: Add section for warnings.
45672
45673 2008-11-11  Bruno Haible  <bruno@clisp.org>
45674
45675         * lib/sockets.h: Add a comment.
45676
45677 2008-11-11  Karl Berry  <karl@gnu.org>
45678
45679         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45680
45681 2008-11-11  Eric Blake  <ebb9@byu.net>
45682
45683         fdl.texi: avoid git symlinks
45684         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45685
45686 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45687
45688         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45689
45690 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45691
45692         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45693         (gl_WARN_ADD): Substitute $2 if literal.
45694
45695 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45696
45697         * m4/warning.m4: Remove.
45698
45699 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45700
45701         * m4/warnings.m4: Almost complete rewrite. :-)
45702
45703 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45704
45705         * modules/warnings: New module.
45706         * m4/warnings.m4: New file.
45707         * MODULES.html.sh: Mention warnings module.
45708         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45709         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45710
45711 2008-11-10  Eric Blake  <ebb9@byu.net>
45712
45713         fdl.texi: make a symlink to the latest version
45714         * doc/standards.texi: Revert today's earlier change.
45715         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45716         * doc/fdl.texi: ...and replace this with a symlink to the newer
45717         fdl-1.3.texi.
45718
45719 2008-11-10  Bruno Haible  <bruno@clisp.org>
45720
45721         * tests/test-select-fd.c (main): Accept the result file name as fourth
45722         argument.
45723         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45724         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45725
45726 2008-11-10  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45729         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45730         as autoconf-substituted macros.
45731         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45733         gl_NETDB_H_DEFAULTS. Set these variables.
45734         * modules/netdb (Makefile.am): Substitute these variables.
45735
45736 2008-11-10  Eric Blake  <ebb9@byu.net>
45737
45738         standards.texi: include correct file for FDL 1.3
45739         * doc/standards.texi (GNU Free Documentation License): Change
45740         include file to pull in FDL 1.3, not 1.2.
45741
45742         fdl.texi: revert accidental change to license
45743         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45744
45745 2008-11-10  Bruno Haible  <bruno@clisp.org>
45746
45747         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45748         cross-compiling guesses also when the native compile gives no result.
45749
45750 2008-11-10  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/spawni.c (__spawni): Force variable into the stack.
45753
45754 2008-11-10  Bruno Haible  <bruno@clisp.org>
45755
45756         Add support for Haiku.
45757         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45758         glibc and BeOS, but also on Haiku.
45759         * lib/fpurge.c (fpurge): Likewise.
45760         * lib/freadable.c (freadable): Likewise.
45761         * lib/freadahead.c (freadahead): Likewise.
45762         * lib/freading.c (freading): Likewise.
45763         * lib/freadptr.c (freadptr): Likewise.
45764         * lib/freadseek.c (freadptrinc): Likewise.
45765         * lib/fseeko.c (rpl_fseeko): Likewise.
45766         * lib/fseterr.c (fseterr): Likewise.
45767         * lib/fwritable.c (fwritable): Likewise.
45768         * lib/fwriting.c (fwriting): Likewise.
45769         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45770
45771 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45772
45773         * lib/config.charset: Treat Haiku like BeOS.
45774
45775 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45776
45777         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45778         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45779
45780 2008-11-08  Bruno Haible  <bruno@clisp.org>
45781
45782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45783         AC_CACHE_CHECK.
45784
45785 2008-11-08  Bruno Haible  <bruno@clisp.org>
45786
45787         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45788
45789 2008-11-08  Bruno Haible  <bruno@clisp.org>
45790
45791         * tests/test-select-fd.c: New file.
45792         * tests/test-select-in.sh: New file.
45793         * tests/test-select-out.sh: New file.
45794         * tests/test-select-stdin.c: New file.
45795         * modules/select-tests (Files): Add the new files.
45796         (Depends-on): Add gettimeofday.
45797         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45798         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45799         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45800
45801 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45802             Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45805
45806 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45807
45808         * build-aux/pmccabe2html: Added support for C++ source files.
45809
45810 2008-11-05  Ben Pfaff  <blp@gnu.org>
45811
45812         Fix lib/close.c build on Windows.
45813         * modules/close (Files): Add lib/w32sock.h.
45814
45815 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45816
45817         Accept Bison's NEWS format.
45818         * build-aux/announce-gen (print_news_deltas): Tweak
45819         $re_prefix.
45820
45821 2008-11-04  Bruno Haible  <bruno@clisp.org>
45822
45823         * modules/random_r (Maintainer): Add glibc.
45824
45825 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45826
45827         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45828         by karl@freefriends.org (Karl Berry).
45829         * doc/alloca.texi: Likewise.
45830         * doc/c-ctype.texi: Likewise.
45831         * doc/c-strcase.texi: Likewise.
45832         * doc/c-strcaseeq.texi: Likewise.
45833         * doc/c-strcasestr.texi: Likewise.
45834         * doc/c-strstr.texi: Likewise.
45835         * doc/c-strtod.texi: Likewise.
45836         * doc/c-strtold.texi: Likewise.
45837         * doc/ctime.texi: Likewise.
45838         * doc/error.texi: Likewise.
45839         * doc/fdl.texi: Likewise.
45840         * doc/gcd.texi: Likewise.
45841         * doc/getdate.texi: Likewise.
45842         * doc/gnulib-intro.texi: Likewise.
45843         * doc/gnulib-tool.texi: Likewise.
45844         * doc/gnulib.texi: Likewise.
45845         * doc/inet_ntoa.texi: Likewise.
45846         * doc/maintain.texi: Likewise.
45847         * doc/make-stds.texi: Likewise.
45848         * doc/quote.texi: Likewise.
45849         * doc/regexprops-generic.texi: Likewise.
45850         * doc/standards.texi: Likewise.
45851         * doc/verify.texi: Likewise.
45852         * doc/visibility.texi: Likewise.
45853         * doc/gnulib.texi (GNU Free Documentation License): Include
45854         fdl-1.3.texi instead of fdl.texi.
45855
45856 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45857
45858         * doc/fdl-1.3.texi: New file, from
45859         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45860         * modules/fdl-1.3: Add.
45861         * MODULES.html.sh: Add fdl-1.3.
45862
45863 2008-11-03  Bruno Haible  <bruno@clisp.org>
45864
45865         Make determination of absolute name of header file work with AIX xlc.
45866         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45867         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45868         preprocessing.
45869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45870         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45871
45872 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45873
45874         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45875         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45876         <ludo@gnu.org>.
45877
45878 2008-11-02  Bruno Haible  <bruno@clisp.org>
45879
45880         Mark 'strpbrk' obsolete.
45881         * modules/strpbrk (Status, Notice): New sections.
45882         * modules/strtok_r (Depends-on): Add strpbrk.
45883
45884 2008-11-02  Bruno Haible  <bruno@clisp.org>
45885
45886         Mark 'strdup' obsolete.
45887         * modules/strdup (Status, Notice): New sections.
45888         * modules/findprog (Depends-on): Add strdup.
45889         * modules/getaddrinfo (Depends-on): Likewise.
45890         * modules/localename (Depends-on): Likewise.
45891         * modules/relocatable-lib (Depends-on): Likewise.
45892         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45893         * modules/relocatable-prog (Depends-on): Likewise.
45894         * modules/trim (Depends-on): Likewise.
45895         * modules/unictype/gen-ctype (Depends-on): Likewise.
45896         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45897
45898 2008-11-02  Bruno Haible  <bruno@clisp.org>
45899
45900         Mark 'strcspn' obsolete.
45901         * modules/strcspn (Status, Notice): New sections.
45902
45903 2008-11-02  Bruno Haible  <bruno@clisp.org>
45904
45905         Mark 'rmdir' obsolete.
45906         * modules/rmdir (Status, Notice): New sections.
45907         * modules/clean-temp (Depends-on): Add rmdir.
45908         * modules/openat (Depends-on): Likewise.
45909
45910 2008-11-02  Bruno Haible  <bruno@clisp.org>
45911
45912         Mark 'raise' obsolete.
45913         * modules/raise (Status, Notice): New sections.
45914         (Include): Specify <signal.h>.
45915         * modules/stdio (Depends-on): Add raise.
45916         * modules/write (Depends-on): Likewise.
45917
45918 2008-11-02  Bruno Haible  <bruno@clisp.org>
45919
45920         Mark 'memset' obsolete.
45921         * modules/memset (Status, Notice): New sections.
45922
45923 2008-11-02  Bruno Haible  <bruno@clisp.org>
45924
45925         Mark 'memmove' obsolete.
45926         * modules/memmove (Status, Notice): New sections.
45927         * modules/argp (Depends-on): Add memmove.
45928         * modules/argz (Depends-on): Likewise.
45929         * modules/canonicalize (Depends-on): Likewise.
45930         * modules/canonicalize-lgpl (Depends-on): Likewise.
45931         * modules/fts (Depends-on): Likewise.
45932         * modules/getcwd (Depends-on): Likewise.
45933         * modules/human (Depends-on): Likewise.
45934         * modules/regex (Depends-on): Likewise.
45935         * modules/striconveh (Depends-on): Likewise.
45936         * modules/trim (Depends-on): Likewise.
45937         * modules/unistr/u8-move (Depends-on): Likewise.
45938         * modules/unistr/u16-move (Depends-on): Likewise.
45939         * modules/unistr/u32-move (Depends-on): Likewise.
45940
45941 2008-11-02  Bruno Haible  <bruno@clisp.org>
45942
45943         Mark 'memcpy' obsolete.
45944         * modules/memcpy (Status, Notice): New sections.
45945
45946 2008-11-02  Bruno Haible  <bruno@clisp.org>
45947
45948         Mark 'memcmp' obsolete.
45949         * modules/memcmp (Status, Notice): New sections.
45950         * modules/argmatch (Depends-on): Add memchr.
45951         * modules/backupfile (Depends-on): Likewise.
45952         * modules/c-strcasestr (Depends-on): Likewise.
45953         * modules/crypto/des (Depends-on): Likewise.
45954         * modules/csharpcomp (Depends-on): Likewise.
45955         * modules/fnmatch (Depends-on): Likewise.
45956         * modules/git-merge-changelog (Depends-on): Likewise.
45957         * modules/isnand (Depends-on): Likewise.
45958         * modules/isnand-nolibm (Depends-on): Likewise.
45959         * modules/isnanf (Depends-on): Likewise.
45960         * modules/isnanf-nolibm (Depends-on): Likewise.
45961         * modules/isnanl (Depends-on): Likewise.
45962         * modules/isnanl-nolibm (Depends-on): Likewise.
45963         * modules/mbchar (Depends-on): Likewise.
45964         * modules/memcoll (Depends-on): Likewise.
45965         * modules/quotearg (Depends-on): Likewise.
45966         * modules/regex (Depends-on): Likewise.
45967         * modules/relocatable-prog (Depends-on): Likewise.
45968         * modules/same (Depends-on): Likewise.
45969         * modules/signbit (Depends-on): Likewise.
45970         * modules/strcasestr-simple (Depends-on): Likewise.
45971         * modules/unictype/gen-ctype (Depends-on): Likewise.
45972         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45973         * modules/uniname/uniname (Depends-on): Likewise.
45974         * modules/unistr/u8-cmp (Depends-on): Likewise.
45975
45976 2008-11-02  Bruno Haible  <bruno@clisp.org>
45977
45978         Mark 'memchr' obsolete.
45979         * modules/memchr (Status, Notice): New sections.
45980         * modules/argp (Depends-on): Add memchr.
45981         * modules/base64 (Depends-on): Likewise.
45982         * modules/c-strcasestr (Depends-on): Likewise.
45983         * modules/chdir-long (Depends-on): Likewise.
45984         * modules/fnmatch (Depends-on): Likewise.
45985         * modules/getsubopt (Depends-on): Likewise.
45986         * modules/git-merge-changelog (Depends-on): Likewise.
45987         * modules/glob (Depends-on): Likewise.
45988         * modules/strcasestr-simple (Depends-on): Likewise.
45989         * modules/strnlen (Depends-on): Likewise.
45990
45991 2008-11-02  Bruno Haible  <bruno@clisp.org>
45992
45993         Mark 'atexit' obsolete.
45994         * modules/atexit (Status, Notice): New sections.
45995         * modules/chdir-long (Depends-on): Add atexit.
45996         * modules/wait-process (Depends-on): Likewise.
45997
45998 2008-11-02  Bruno Haible  <bruno@clisp.org>
45999
46000         * gnulib-tool: New option --with-obsolete.
46001         (func_usage): Document it.
46002         (func_modules_transitive_closure): Drop obsolete dependencies if
46003         incobsolete is not true.
46004         (func_import): Read and save the incobsolete variable to the cache.
46005
46006 2008-11-02  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46009         * gnulib-tool: New option --extract-status.
46010         (func_usage): Document it.
46011         (sed_extract_prog): Recognize it.
46012         (func_get_status): New function.
46013
46014 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46015
46016         * modules/sockets (License): Change from LGPL to LGPLv2+.
46017
46018 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46019
46020         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46021
46022 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46023
46024         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46025         Mention times and sys_times.
46026         * modules/sys_times, modules/sys_times-tests: New modules.
46027         * modules/times, modules/times-tests: Likewise
46028         * m4/sys_times_h.m4: New file.
46029         * lib/sys_times.in.h: Likewise
46030         * lib/times.c: Likewise.
46031         * tests/test-sys_times.c: Likewise.
46032         * tests/test-times.c: Likewise.
46033         * doc/posix-headers/sys_times.texi: Update.
46034         * doc/posix-functions/times.texi: Update.
46035
46036 2008-10-28  Jim Meyering  <meyering@redhat.com>
46037
46038         * modules/tempname (Depends-on): Add lstat.
46039
46040         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46041
46042 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46043
46044         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46045         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46046         using idiom used elsewhere in gnulib.
46047
46048 2008-10-27  Jim Meyering  <meyering@redhat.com>
46049
46050         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46051
46052 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46053
46054         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46055         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46056         programs.
46057         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46058
46059 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46060
46061         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46062
46063 2008-10-27  Bruno Haible  <bruno@clisp.org>
46064
46065         * tests/test-lstat.c: Include <stdio.h>.
46066
46067 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46068
46069         * modules/lstat-tests: New module.
46070         * tests/test-lstat.c: New file.
46071
46072 2008-10-26  Jim Meyering  <meyering@redhat.com>
46073
46074         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46075
46076 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46077             Bruno Haible  <bruno@clisp.org>
46078
46079         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46080         * modules/configmake (Include): Add a note that the include must come
46081         after all system headers.
46082         * lib/javaversion.c: Include configmake.h after all other includes.
46083
46084 2008-10-26  Bruno Haible  <bruno@clisp.org>
46085
46086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46087         HAVE_STRUCT_RANDOM_DATA to 1.
46088         (gl_STDLIB_H): Simplify.
46089
46090 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46091
46092         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46093         substitute HAVE_STRUCT_RANDOM_DATA.
46094         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46095         random_data.
46096         * modules/stdlib (Makefile.am): Substitute
46097         HAVE_STRUCT_RANDOM_DATA.
46098
46099 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46100
46101         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46102         * doc/gnulib-intro.texi (Copyright): Likewise.
46103
46104 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46105
46106         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46107         findings.
46108
46109 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46110             Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/unistd.in.h: Include <winsock2.h>.
46113         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46114         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46115         Provide dummy declarations.
46116         (gethostname): Override.
46117         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46119         gl_PREREQ_SYS_H_WINSOCK2.
46120         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46121         * doc/posix-functions/gethostname.texi: More details.
46122
46123 2008-10-25  Bruno Haible  <bruno@clisp.org>
46124
46125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46126         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46127         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46128
46129         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46130         here ...
46131         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46132         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46133         gl_UNISTD_H_DEFAULTS.
46134
46135 2008-10-25  Eric Blake  <ebb9@byu.net>
46136
46137         signbit: avoid spurious compiler failure
46138         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46139         declarations inside function.
46140
46141 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46142             Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46145         * modules/random_r (Depends-on): Add stdint.
46146
46147 2008-10-24  Bruno Haible  <bruno@clisp.org>
46148
46149         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46150         Eggert.
46151         * modules/strerror (License): Likewise.
46152
46153 2008-10-24  Jim Meyering  <meyering@redhat.com>
46154
46155         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46156         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46157
46158 2008-10-24  Eric Blake  <ebb9@byu.net>
46159
46160         getgroups: fix compilation when getgroups is available
46161         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46162         but with <config.h> override of getgroups disabled.
46163
46164 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46165
46166         * doc/gnulib.texi (Header files): Add note about C++ problems.
46167         Explained by Bruno Haible <bruno@clisp.org>.
46168
46169 2008-10-23  Bruno Haible  <bruno@clisp.org>
46170
46171         Define a dummy SA_NODEFER macro on Interix.
46172         * lib/signal.in.h (SA_NODEFER): Define fallback.
46173         Reported by Aleksey Cheusov <cheusov@tut.by> via
46174         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46175
46176 2008-10-23  Bruno Haible  <bruno@clisp.org>
46177
46178         * modules/freadahead (License): Change to LGPLv2+.
46179         Suggested by Simon Josefsson.
46180
46181 2008-10-23  Jim Meyering  <meyering@redhat.com>
46182
46183         random_r: new module
46184         * modules/random_r: New file.
46185         * m4/random_r.m4: New file.
46186         * lib/random_r.c: New file, from glibc.
46187         * modules/random_r-tests: New file.
46188         * tests/test-random_r.c: New file.
46189         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46190          Declare.
46191         (RAND_MAX): Define.
46192         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46193         * modules/stdlib: Substitute them, too.
46194         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46195         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46196         * doc/glibc-functions/random_r.texi: Likewise.
46197         * doc/glibc-functions/setstate_r.texi: Likewise.
46198         * doc/glibc-functions/srandom_r.texi: Likewise.
46199         * config/srclist.txt: Mention it.
46200
46201 2008-10-23  David Lutterkort  <lutter@redhat.com>
46202
46203         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46204         link requirement
46205
46206 2008-10-23  Jim Meyering  <meyering@redhat.com>
46207
46208         selinux-h: mark parameters of stub functions as intentionally unused
46209         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46210         * lib/se-context.in.h: Likewise.
46211
46212 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46213
46214         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46215
46216 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46217
46218         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46219
46220 2008-10-22  Eric Blake  <ebb9@byu.net>
46221
46222         glthread/thread: avoid compiler warning
46223         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46224         Add unreachable abort to silence compiler.
46225
46226 2008-10-22  Eric Blake  <ebb9@byu.net>
46227
46228         netdb: also supply struct addrinfo for cygwin 1.5.x
46229         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46230         older cygwin.
46231         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46232         cygwin.
46233         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46234
46235 2008-10-22  Bruno Haible  <bruno@clisp.org>
46236
46237         * users.txt: Update entry about pspp.
46238
46239 2008-10-21  Bruno Haible  <bruno@clisp.org>
46240
46241         Simplification.
46242         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46243         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46244
46245         Simplification.
46246         * lib/ioctl.c (ioctl): Don't undefine.
46247         * lib/socket.c (socket): Don't undefine.
46248
46249         Remove unused module indicator macros.
46250         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46251         GNULIB_$1 as a C macro.
46252
46253         * doc/posix-functions/close.texi: Undo last change.
46254         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46255         Windows platforms.
46256
46257 2008-10-21  Bruno Haible  <bruno@clisp.org>
46258
46259         Add gethostname() declaration to <unistd.h>.
46260         * lib/unistd.in.h (gethostname): New declaration.
46261         * lib/gethostname.c: Include <unistd.h>.
46262         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46263         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46265         and HAVE_GETHOSTNAME.
46266         * modules/gethostname (Depends-on): Add unistd.
46267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46268         (Include): Specify <unistd.h>.
46269         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46270         HAVE_GETHOSTNAME.
46271         * tests/test-gethostname.c: Include <unistd.h> first.
46272
46273 2008-10-21  Bruno Haible  <bruno@clisp.org>
46274
46275         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46276         * modules/select-tests (Depends-on): Likewise.
46277         Reported by Simon Josefsson.
46278
46279 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46280
46281         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46282         * lib/accept.c: New file, based on winsock.c.
46283         * lib/bind.c: New file, based on winsock.c.
46284         * lib/connect.c: New file, based on winsock.c.
46285         * lib/getpeername.c: New file, based on winsock.c.
46286         * lib/getsockname.c: New file, based on winsock.c.
46287         * lib/getsockopt.c: New file, based on winsock.c.
46288         * lib/ioctl.c: New file, based on winsock.c.
46289         * lib/listen.c: New file, based on winsock.c.
46290         * lib/recv.c: New file, based on winsock.c.
46291         * lib/recvfrom.c: New file, based on winsock.c.
46292         * lib/send.c: New file, based on winsock.c.
46293         * lib/sendto.c: New file, based on winsock.c.
46294         * lib/setsockopt.c: New file, based on winsock.c.
46295         * lib/shutdown.c: New file, based on winsock.c.
46296         * lib/socket.c: New file, based on winsock.c.
46297         * lib/w32sock.h: New file, based on winsock.c.
46298         * lib/winsock.c: Remove file.
46299         * modules/accept: Likewise.
46300         * modules/bind: Likewise.
46301         * modules/connect: Likewise.
46302         * modules/getpeername: Likewise.
46303         * modules/getsockname: Likewise.
46304         * modules/getsockopt: Likewise.
46305         * modules/ioctl: Likewise.
46306         * modules/listen: Likewise.
46307         * modules/recv: Likewise.
46308         * modules/recvfrom: Likewise.
46309         * modules/send: Likewise.
46310         * modules/sendto: Likewise.
46311         * modules/setsockopt: Likewise.
46312         * modules/shutdown: Likewise.
46313         * modules/socket: Use socket.c instead of winsock.c.
46314         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46315         * doc/posix-functions/accept.texi: Doc fix.
46316         * doc/posix-functions/bind.texi: Doc fix.
46317         * doc/posix-functions/close.texi: Doc fix.
46318         * doc/posix-functions/connect.texi: Doc fix.
46319         * doc/posix-functions/getpeername.texi: Doc fix.
46320         * doc/posix-functions/getsockname.texi: Doc fix.
46321         * doc/posix-functions/getsockopt.texi: Doc fix.
46322         * doc/posix-functions/ioctl.texi: Doc fix.
46323         * doc/posix-functions/listen.texi: Doc fix.
46324         * doc/posix-functions/recv.texi: Doc fix.
46325         * doc/posix-functions/recvfrom.texi: Doc fix.
46326         * doc/posix-functions/send.texi: Doc fix.
46327         * doc/posix-functions/sendto.texi: Doc fix.
46328         * doc/posix-functions/setsockopt.texi: Doc fix.
46329         * doc/posix-functions/shutdown.texi: Doc fix.
46330         * doc/posix-functions/socket.texi: Doc fix.
46331
46332 2008-10-20  Bruno Haible  <bruno@clisp.org>
46333
46334         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46335         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46336         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46337         as an alias for SIGABRT.
46338         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46339         (sigaction): Map it to SIGABRT.
46340         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46341
46342 2008-10-20  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/fts.c: Don't include lstat.h.
46345         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46346
46347         Move the lstat() declaration to <sys/stat.h>.
46348         * lib/lstat.h: Remove file.
46349         * lib/sys_stat.in.h: Add special invocation convention.
46350         (lstat): New declaration.
46351         * lib/lstat.c (orig_lstat): New function.
46352         (rpl_lstat): Use orig_lstat instead of lstat.
46353         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46354         AC_C_INLINE. Set REPLACE_LSTAT.
46355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46356         and REPLACE_LSTAT.
46357         * modules/lstat (Files): Remove lib/lstat.h.
46358         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46359         (Include): Specify <sys/stat.h> instead of lstat.h.
46360         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46361         REPLACE_LSTAT.
46362         * NEWS: Mention the change.
46363
46364 2008-10-20  Bruno Haible  <bruno@clisp.org>
46365
46366         * modules/posix_spawn-tests: New file.
46367         * tests/test-posix_spawn3.c: New file.
46368
46369 2008-10-20  Bruno Haible  <bruno@clisp.org>
46370
46371         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46372         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46373         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46374         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46375         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46376
46377 2008-10-20  Bruno Haible  <bruno@clisp.org>
46378
46379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46380         of posix_spawn on AIX 5.3.
46381
46382 2008-10-20  Bruno Haible  <bruno@clisp.org>
46383
46384         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46385
46386 2008-10-20  Bruno Haible  <bruno@clisp.org>
46387
46388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46389         of AC_LANG_PROGRAM.
46390
46391 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46392
46393         * lib/netdb.in.h: Don't define GNU specific constants until they
46394         are supported or needed.  Reported by Bruno Haible
46395         <bruno@clisp.org>.
46396
46397 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46398
46399         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46400
46401 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46402
46403         * lib/getaddrinfo.h: Remove file.
46404         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46405         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46406         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46407         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46408         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46409         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46410         * tests/test-getaddrinfo.c: Likewise.
46411         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46412         * NEWS: Mention change.
46413
46414 2008-10-19  Bruno Haible  <bruno@clisp.org>
46415
46416         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46417
46418 2008-10-19  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/wait-process.c: Include simply <sys/wait.h>.
46421         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46422         WIFSTOPPED): Remove fallback definitions.
46423         * modules/wait-process (Depends-on): Add sys_wait.
46424
46425         New module 'sys_wait'.
46426         * modules/sys_wait: New file.
46427         * lib/sys_wait.in.h: New file, partially copied from
46428         lib/wait-process.c.
46429         * m4/sys_wait_h.m4: New file.
46430         * doc/posix-headers/sys_wait.texi: Mention the new module.
46431
46432 2008-10-19  Bruno Haible  <bruno@clisp.org>
46433
46434         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46435
46436 2008-10-19  Bruno Haible  <bruno@clisp.org>
46437
46438         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46439         * lib/wait-process.c (WAIT_T): Remove type.
46440         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46441         (wait_subprocess): Update.
46442
46443 2008-10-19  Bruno Haible  <bruno@clisp.org>
46444
46445         New module 'atoll'.
46446         * modules/atoll: New file.
46447         * lib/stdlib.in.h (atoll): New declaration.
46448         * lib/atoll.c: New file, from glibc with modifications.
46449         * m4/atoll.m4: New file.
46450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46451         HAVE_ATOLL.
46452         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46453         * doc/posix-functions/atoll.texi: Mention the new module.
46454
46455 2008-10-19  Bruno Haible  <bruno@clisp.org>
46456
46457         Add strtoull() declaration to <stdlib.h>.
46458         * lib/stdlib.in.h (strtoull): New declaration.
46459         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46460         Set HAVE_STRTOULL.
46461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46462         HAVE_STRTOULL.
46463         * modules/strtoull (Depends-on): Add stdlib.
46464         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46465         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46466         HAVE_STRTOULL.
46467
46468 2008-10-19  Bruno Haible  <bruno@clisp.org>
46469
46470         Add strtoll() declaration to <stdlib.h>.
46471         * lib/stdlib.in.h (strtoll): New declaration.
46472         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46473         Set HAVE_STRTOLL.
46474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46475         HAVE_STRTOLL.
46476         * modules/strtoll (Depends-on): Add stdlib.
46477         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46478         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46479
46480 2008-10-19  Bruno Haible  <bruno@clisp.org>
46481
46482         * modules/bcopy (Depends-on): Add strings.
46483         (Include): Specify <strings.h>.
46484
46485 2008-10-19  Bruno Haible  <bruno@clisp.org>
46486
46487         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46488
46489 2008-10-19  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46492         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46493         mingw.
46494
46495 2008-10-19  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/atanl.c: Don't include isnanl.h.
46498         * lib/cosl.c: Likewise.
46499         * lib/ldexpl.c: Likewise.
46500         * lib/logl.c: Likewise.
46501         * lib/sinl.c: Likewise.
46502         * lib/sqrtl.c: Likewise.
46503         * lib/tanl.c: Likewise.
46504
46505         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46506         * lib/isnanf.h: Remove file.
46507         * lib/isnand.h: Remove file.
46508         * lib/isnanl.h: Remove file.
46509         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46510         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46511         macros.
46512         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46513         HAVE_ISNANF, don't define it as a C macro.
46514         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46515         HAVE_ISNAND, don't define it as a C macro.
46516         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46517         HAVE_ISNANL, don't define it as a C macro.
46518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46519         HAVE_ISNAN[FDL].
46520         * modules/isnanf (Files): Remove lib/isnanf.h.
46521         (Depends-on): Add math.
46522         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46523         (Include): Specify <math.h> instead of isnanf.h.
46524         * modules/isnand (Files): Remove lib/isnand.h.
46525         (Depends-on): Add math.
46526         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46527         (Include): Specify <math.h> instead of isnand.h.
46528         * modules/isnanl (Files): Remove lib/isnanl.h.
46529         (Depends-on): Add math.
46530         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46531         (Include): Specify <math.h> instead of isnanl.h.
46532         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46533         HAVE_ISNAN[FDL].
46534         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46535         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46536         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46537         * NEWS: Mention the change.
46538
46539 2008-10-18  Bruno Haible  <bruno@clisp.org>
46540
46541         Add getusershell(), setusershell(), endusershell() declarations to
46542         <unistd.h>.
46543         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46544         declarations.
46545         * lib/getusershell.c: Include unistd.h.
46546         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46547         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46548         HAVE_GETUSERSHELL.
46549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46550         and HAVE_GETUSERSHELL.
46551         * modules/getusershell (Depends-on): Add unistd, extensions.
46552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46553         (Include): Specify <unistd.h>.
46554         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46555         HAVE_GETUSERSHELL.
46556
46557 2008-10-18  Bruno Haible  <bruno@clisp.org>
46558
46559         Add a getloadavg() declaration to <stdlib.h>.
46560         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46561         getloadavg declaration.
46562         (getloadavg): New declaration.
46563         * lib/getloadavg.c: Include <stdlib.h> first.
46564         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46565         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46566         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46568         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46569         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46571         (Include): Specify <stdlib.h>.
46572         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46573         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46574
46575 2008-10-18  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/dirchownmod.c: Don't include lchmod.h.
46578
46579         Move the lchmod() declaration to <sys/stat.h>.
46580         * lib/lchmod.h: Remove file.
46581         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46582         (lchmod): New declaration, moved here from lib/lchown.h.
46583         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46584         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46585         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46586         and HAVE_LCHMOD.
46587         * modules/lchmod (Files): Remove lib/lchmod.h.
46588         (Depends-on): Add sys_stat, extensions.
46589         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46590         (Include): Specify <sys/stat.h> instead of lchmod.h.
46591         * modules/sys_stat (Depends-on): Add link-warning.
46592         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46593         definition of GL_LINK_WARNING.
46594         * NEWS: Mention the change.
46595
46596 2008-10-18  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/fchdir.c: Don't include dirfd.h.
46599         * lib/fts.c: Likewise.
46600         * lib/getcwd.c: Likewise.
46601         * lib/glob.c: Likewise.
46602
46603         Move the dirfd() declaration to <dirent.h>.
46604         * lib/dirfd.h: Remove file.
46605         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46606         (dirfd): New declaration.
46607         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46608         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46609         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46610         HAVE_DECL_DIRFD.
46611         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46612         HAVE_DECL_DIRFD.
46613         * modules/dirfd (Files): Remove lib/dirfd.h.
46614         (Depends-on): Add dirent, extensions.
46615         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46616         (Include): Specify <dirent.h> instead of dirfd.h.
46617         * modules/dirent (Depends-on): Add link-warning.
46618         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46619         definition of GL_LINK_WARNING.
46620         * NEWS: Mention the change.
46621
46622 2008-10-18  Bruno Haible  <bruno@clisp.org>
46623
46624         Move the euidaccess() declaration to <unistd.h>.
46625         * lib/euidaccess.h: Remove file.
46626         * lib/unistd.in.h (euidaccess): New declaration.
46627         * lib/euidaccess.c: Don't include euidaccess.h.
46628         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46629         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46631         and HAVE_EUIDACCESS.
46632         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46633         (Depends-on): Add unistd.
46634         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46635         (Include): Specify <unistd.h> instead of euidaccess.h.
46636         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46637         HAVE_EUIDACCESS.
46638         * NEWS: Mention the change.
46639
46640 2008-10-18  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46643
46644         Move the getdomainname() declaration to <unistd.h>.
46645         * lib/getdomainname.h: Remove file.
46646         * lib/unistd.in.h (getdomainname): New declaration.
46647         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46648         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46649         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46650         HAVE_GETDOMAINNAME.
46651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46652         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46653         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46654         (Depends-on): Add unistd, extensions.
46655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46656         (Includes): Specify <unistd.h> instead of getdomainname.h.
46657         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46658         HAVE_GETDOMAINNAME.
46659         * NEWS: Mention the change.
46660
46661 2008-10-18  Bruno Haible  <bruno@clisp.org>
46662
46663         * modules/dirent: New file.
46664         * m4/dirent_h.m4: New file.
46665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46666         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46667         * modules/fchdir (Files): Remove lib/dirent.in.h.
46668         (Depends-on): Add dirent.
46669         (Makefile.am): Move rules to modules/dirent.
46670         * doc/posix-headers/dirent.texi: Mention the new module.
46671
46672 2008-10-18  Bruno Haible  <bruno@clisp.org>
46673
46674         Avoid -Wunused-parameter warnings in public gnulib header files.
46675         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46676         macro.
46677         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46678
46679 2008-10-18  Bruno Haible  <bruno@clisp.org>
46680
46681         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46682         * doc/glibc-functions/error.texi: Mention the module 'error'.
46683         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46684         * doc/glibc-functions/getdomainname.texi: Mention the module
46685         'getdomainname'.
46686         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46687         * doc/glibc-functions/getpagesize.texi: Mention the module
46688         'getpagesize'.
46689         * doc/glibc-functions/getusershell.texi: Mention the module
46690         'getusershell'.
46691         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46692         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46693         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46694         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46695         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46696         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46697         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46698         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46699         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46700         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46701         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46702         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46703         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46704         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46705
46706 2008-10-17  Bruno Haible  <bruno@clisp.org>
46707
46708         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46709         HP-UX and IRIX, use -0.0L.
46710         * tests/test-ceill.c (minus_zero): Likewise.
46711         * tests/test-floorl.c (minus_zero): Likewise.
46712         * tests/test-frexpl.c (minus_zero): Likewise.
46713         * tests/test-isnan.c (minus_zerol): Likewise.
46714         * tests/test-isnanl.h (minus_zero): Likewise.
46715         * tests/test-ldexpl.c (minus_zero): Likewise.
46716         * tests/test-roundl.c (minus_zero): Likewise.
46717         * tests/test-signbit.c (minus_zerol): Likewise.
46718         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46719         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46720         * tests/test-truncl.c (minus_zero): Likewise.
46721         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46722         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46723         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46724         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46725
46726 2008-10-17  Bruno Haible  <bruno@clisp.org>
46727
46728         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46729         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46730         that it gets activated only for gcc >= 3.0.
46731         * lib/dirent.in.h: Likewise.
46732         * lib/errno.in.h: Likewise.
46733         * lib/fcntl.in.h: Likewise.
46734         * lib/float.in.h: Likewise.
46735         * lib/iconv.in.h: Likewise.
46736         * lib/inttypes.in.h: Likewise.
46737         * lib/locale.in.h: Likewise.
46738         * lib/math.in.h: Likewise.
46739         * lib/netdb.in.h: Likewise.
46740         * lib/netinet_in.in.h: Likewise.
46741         * lib/search.in.h: Likewise.
46742         * lib/signal.in.h: Likewise.
46743         * lib/spawn.in.h: Likewise.
46744         * lib/stdarg.in.h: Likewise.
46745         * lib/stdint.in.h: Likewise.
46746         * lib/stdio.in.h: Likewise.
46747         * lib/stdlib.in.h: Likewise.
46748         * lib/string.in.h: Likewise.
46749         * lib/strings.in.h: Likewise.
46750         * lib/sys_file.in.h: Likewise.
46751         * lib/sys_ioctl.in.h: Likewise.
46752         * lib/sys_select.in.h: Likewise.
46753         * lib/sys_socket.in.h: Likewise.
46754         * lib/sys_stat.in.h: Likewise.
46755         * lib/sys_time.in.h: Likewise.
46756         * lib/sysexits.in.h: Likewise.
46757         * lib/time.in.h: Likewise.
46758         * lib/unistd.in.h: Likewise.
46759         * lib/wchar.in.h: Likewise.
46760         * lib/wctype.in.h: Likewise.
46761         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46762
46763 2008-10-17  Jim Meyering  <meyering@redhat.com>
46764
46765         ignore-value: don't depend on inline module
46766         * modules/ignore-value (Depends-on): Remove 'inline'.
46767         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46768         Suggestion from Bruno Haible.
46769
46770 2008-10-17  Bruno Haible  <bruno@clisp.org>
46771
46772         New implementation of condition variables for Win32.
46773         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46774         (gl_linked_waitqueue_t): New type.
46775         (gl_cond_t): Use it.
46776         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46777         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46778         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46779         (glthread_cond_init_func, glthread_cond_wait_func,
46780         glthread_cond_timedwait_func, glthread_cond_signal_func,
46781         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46782         Reimplemented on the basis of gl_linked_waitqueue_t.
46783         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46784         gl_waitqueue_t.
46785         (gl_rwlock_t): Update.
46786         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46787
46788 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46789
46790         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46791         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46792
46793 2008-10-17  Jim Meyering  <meyering@redhat.com>
46794
46795         ignore-value: new module
46796         * modules/ignore-value: New file.
46797         * lib/ignore-value.h: New file.
46798         * MODULES.html.sh (Compiler warning management): New section,
46799         just for this module.  More to come.
46800
46801 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46802
46803         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46804         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46805         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46806
46807 2008-10-16  Jim Meyering  <meyering@redhat.com>
46808
46809         openat-die.c: avoid 'no previous prototype' warning
46810         * lib/openat-die.c: Include "openat.h".
46811         Reported by Reuben Thomas <rrt@sc3d.org>.
46812
46813 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46814
46815         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46816         * lib/netdb.in.h: Fix typo.
46817         Reported by Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/netdb.in.h: Include sys/socket.h for platforms without
46820         netdb.h, to get structures like hostent on MinGW.
46821         * modules/netdb (Depends-on): Add sys_socket.
46822
46823 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46824
46825         * modules/netdb, modules/netdb-tests: New file.
46826         * m4/netdb_h.m4: New file.
46827         * lib/netdb.in.h: Add, currently just an empty file pending
46828         definitions.
46829         * tests/test-netdb.c: New file.
46830         * doc/posix-headers/netdb.texi: Mention that we replace it if
46831         needed.
46832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46833         netdb.
46834
46835 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46836
46837         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46838         with code.
46839
46840 2008-10-13  Bruno Haible  <bruno@clisp.org>
46841
46842         * lib/glthread/cond.c (glthread_cond_wait_func,
46843         glthread_cond_timedwait_func): Add a comment.
46844
46845 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46846
46847         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46848         * tests/test-select.c: Likewise,
46849
46850 2008-10-13  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/glthread/cond.c (glthread_cond_wait_func,
46853         glthread_cond_timedwait_func): Fix variable name.
46854         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46855
46856 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46857
46858         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46860         struct sockaddr.sa_len.
46861         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46862
46863 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46864
46865         * build-aux/pmccabe2html: Add css and css_url parameters.
46866
46867 2008-10-12  Bruno Haible  <bruno@clisp.org>
46868
46869         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46870         calling aclx_get.
46871         Reported by Rainer Tammer <tammer@tammer.net>.
46872
46873 2008-10-12  Bruno Haible  <bruno@clisp.org>
46874
46875         Use msvcrt aware primitives for creation/termination of Win32 threads.
46876         * lib/glthread/thread.c: Include <process.h>.
46877         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46878         (wrapper_func): Update signature.
46879         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46880
46881 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46882             Bruno Haible  <bruno@clisp.org>
46883
46884         Provide a Win32 implementation of the 'cond' module.
46885         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46886         * lib/glthread/cond.c (glthread_cond_init_func,
46887         glthread_cond_wait_func, glthread_cond_timedwait_func,
46888         glthread_cond_signal_func, glthread_cond_broadcast_func,
46889         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46890         * modules/cond (Dependencies): Add gettimeofday.
46891
46892 2008-10-11  Bruno Haible  <bruno@clisp.org>
46893
46894         Make sleep work on older versions of mingw.
46895         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46896         only whether it exists.
46897         * doc/posix-functions/sleep.texi: Mention the problem with older
46898         versions of mingw.
46899
46900 2008-10-11  Bruno Haible  <bruno@clisp.org>
46901
46902         New module 'shutdown'.
46903         * modules/shutdown: New file.
46904         * lib/sys_socket.in.h (shutdown): New declaration.
46905         * lib/winsock.c (shutdown): New function.
46906         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46907         GNULIB_SHUTDOWN.
46908         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46909         * doc/posix-functions/shutdown.texi: Document the new module.
46910
46911 2008-10-11  Jim Meyering  <meyering@redhat.com>
46912
46913         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46914
46915 2008-10-11  Bruno Haible  <bruno@clisp.org>
46916
46917         New module 'fclose'.
46918         * modules/fclose: New file.
46919         * lib/stdio.in.h (fclose): New declaration.
46920         * lib/fclose.c: New file.
46921         * m4/fclose.m4: New file.
46922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46923         REPLACE_FCLOSE.
46924         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46925         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46926         REPLACE_FCLOSE.
46927         * modules/close (Depends-on): fclose.
46928         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46929
46930 2008-10-11  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46933         set errno and don't call _close.
46934
46935 2008-10-10  Bruno Haible  <bruno@clisp.org>
46936
46937         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46938         ACL, not afterwards. Fixes test failure on Cygwin.
46939
46940 2008-10-09  Ben Pfaff  <blp@gnu.org>
46941
46942         * build-aux/announce-gen: Fix gnulib version related part of usage
46943         message.  Die with a useful error message if no tarballs are
46944         found.
46945
46946 2008-10-10  Jim Meyering  <meyering@redhat.com>
46947
46948         bootstrap: use git's --depth=N option only if it's supported
46949         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46950         recognize the --depth option.  Reported by Pádraig Brady.
46951
46952 2008-10-09  Bruno Haible  <bruno@clisp.org>
46953
46954         New module 'ioctl'.
46955         * modules/ioctl: New file.
46956         * lib/sys_socket.in.h (ioctl): Remove declaration.
46957         * lib/winsock.c: Include <sys/ioctl.h>.
46958         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46959         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46960         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46961         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46962         * doc/posix-functions/ioctl.texi: Mention the new module.
46963
46964 2008-10-09  Bruno Haible  <bruno@clisp.org>
46965
46966         New module 'sys_ioctl'.
46967         * lib/sys_ioctl.in.h: New file.
46968         * m4/sys_ioctl_h.m4: New file.
46969         * modules/sys_ioctl: New file.
46970         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46971
46972 2008-10-09  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46975         * lib/winsock.c: Include <stdarg.h>.
46976         (rpl_ioctl): Change to second argument 'int' and then varargs.
46977
46978 2008-10-09  Bruno Haible  <bruno@clisp.org>
46979
46980         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46981         when the sys_socket module is present and the system has <winsock2.h>.
46982
46983 2008-10-09  Bruno Haible  <bruno@clisp.org>
46984
46985         * doc/posix-functions/close.texi: Mention module 'close' instead of
46986         module 'sys_socket'.
46987
46988 2008-10-09  Bruno Haible  <bruno@clisp.org>
46989
46990         * doc/glibc-headers/sys_ioctl.texi: New file.
46991         * doc/gnulib.texi: Include it.
46992
46993 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46994             Bruno Haible  <bruno@clisp.org>
46995
46996         Combine the two replacements of 'close'.
46997         * lib/sys_socket.in.h (close): Define to a reminder to include
46998         <unistd.h>.
46999         (_gl_close_fd_maybe_socket): New declaration.
47000         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47001         * lib/winsock.c (close): Remove undefinition.
47002         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47003         needed for the gnulib module 'close'.
47004         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47005         define to an error symbol or to a warning, if suitable.
47006         * lib/close.c: Include <sys/socket.h>.
47007         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47009         UNISTD_H_HAVE_WINSOCK2_H.
47010         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47012         UNISTD_H_HAVE_WINSOCK2_H.
47013         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47014         (configure.ac): Set a module indicator.
47015         (Makefile.am): Substitute GNULIB_CLOSE.
47016         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47017         * modules/poll-tests (Depends-on): Add close.
47018         * modules/select-tests (Depends-on): Likewise.
47019
47020 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47021             Bruno Haible  <bruno@clisp.org>
47022
47023         New module 'close'.
47024         * modules/close: New file.
47025         * lib/unistd.in.h (close): Move declaration out of the
47026         FCHDIR_REPLACEMENT scope.
47027         (_gl_unregister_fd): New declaration.
47028         * lib/close.c: New file.
47029         * lib/fchdir.c (rpl_close): Remove function.
47030         * m4/close.m4: New file.
47031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47032         close.
47033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47034         REPLACE_CLOSE.
47035         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47036         REPLACE_CLOSE.
47037         * modules/fchdir (Depends-on): Add close.
47038
47039 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47040             Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/fcntl.in.h (open): Simplify conditionals.
47043         (_gl_register_fd): New declaration.
47044         * lib/fchdir.c (rpl_open): Remove function.
47045         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47046         also.
47047         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47049         open.
47050
47051 2008-10-09  Jim Meyering  <meyering@redhat.com>
47052
47053         GNUmakefile: use the more name-space-friendly "_version"
47054         * top/GNUmakefile (_dummy): Update.
47055         (_version): Rename from "version".
47056
47057 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47058             Bruno Haible  <bruno@clisp.org>
47059
47060         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47061         rpl_close.
47062         (_gl_register_fd): New function, extracted from rpl_open.
47063         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47064         (rpl_open, rpl_opendir): Use _gl_register_fd.
47065
47066 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47067
47068         Fix organization of 'open' replacement.
47069         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47070         (gl_FUNC_OPEN): Use it.
47071         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47072
47073 2008-10-08  Bruno Haible  <bruno@clisp.org>
47074
47075         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47076
47077 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47078
47079         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47080         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47081         listen).
47082
47083 2008-10-08  Eric Blake  <ebb9@byu.net>
47084
47085         GNUmakefile: add 'make version' target
47086         * top/GNUmakefile (_curr-ver): Split version update rules...
47087         (version): ...into a target.
47088
47089 2008-10-07  Bruno Haible  <bruno@clisp.org>
47090
47091         Use a more portable replacement expression for -0.0L.
47092         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47093         instead of -0.0L. Fix m4 quotation.
47094
47095         * tests/test-signbit.c: Include <float.h>.
47096         (minus_zero): New variable.
47097         (test_signbitl): Use minus_zero instead of -zero.
47098         * modules/signbit-tests (Depends-on): Add float.
47099
47100         * tests/test-ceill.c: Include <float.h>.
47101         (zero): Remove variable.
47102         (minus_zero): New variable.
47103         (main): Use minus_zero instead of -zero.
47104         * modules/ceill-tests (Depends-on): Add float.
47105
47106         * tests/test-floorl.c: Include <float.h>.
47107         (zero): Remove variable.
47108         (minus_zero): New variable.
47109         (main): Use minus_zero instead of -zero.
47110         * modules/floorl-tests (Depends-on): Add float.
47111
47112         * tests/test-roundl.c: Include <float.h>.
47113         (zero): Remove variable.
47114         (minus_zero): New variable.
47115         (main): Use minus_zero instead of -zero.
47116         * modules/roundl-tests (Depends-on): Add float.
47117
47118         * tests/test-truncl.c: Include <float.h>.
47119         (zero): Remove variable.
47120         (minus_zero): New variable.
47121         (main): Use minus_zero instead of -zero.
47122         * modules/truncl-tests (Depends-on): Add float.
47123
47124         * tests/test-frexpl.c (zero): Remove variable.
47125         (minus_zero): New variable.
47126         (main): Use minus_zero instead of -zero.
47127         * modules/frexpl-tests (Depends-on): Add float.
47128
47129         * tests/test-isnan.c (zerol): Remove variable.
47130         (minus_zerol): New variable.
47131         (test_long_double): Use minus_zerol instead of -zerol.
47132         * modules/isnan-tests (Depends-on): Add float.
47133
47134         * tests/test-isnanl.h (zero): Remove variable.
47135         (minus_zero): New variable.
47136         (main): Use minus_zero instead of -zero.
47137         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47138         * modules/isnanl-tests (Depends-on): Add float.
47139
47140         * tests/test-ldexpl.c (zero): Remove variable.
47141         (minus_zero): New variable.
47142         (main): Use minus_zero instead of -zero.
47143         * modules/ldexpl-tests (Depends-on): Add float.
47144
47145         * tests/test-snprintf-posix.h (zerol): Remove variable.
47146         (minus_zerol): New variable.
47147         (test_function): Use minus_zerol instead of -zerol.
47148         * modules/snprintf-posix-tests (Depends-on): Add float.
47149         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47150
47151         * tests/test-sprintf-posix.h (zerol): Remove variable.
47152         (minus_zerol): New variable.
47153         (test_function): Use minus_zerol instead of -zerol.
47154         * modules/sprintf-posix-tests (Depends-on): Add float.
47155         * modules/vsprintf-posix-tests (Depends-on): Add float.
47156
47157         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47158         (minus_zerol): New variable.
47159         (test_function): Use minus_zerol instead of -zerol.
47160         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47161
47162         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47163         (minus_zerol): New variable.
47164         (test_function): Use minus_zerol instead of -zerol.
47165         * modules/vasprintf-posix-tests (Depends-on): Add float.
47166
47167 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47168
47169         * MODULES.html.sh (Support for building documentation): Mention
47170         pmccabe2html.  Sort entries.
47171
47172         Add pmccabe2html module, from gnupdf.
47173         * build-aux/pmccabe.css: New file.
47174         * build-aux/pmccabe2html: New file.
47175         * m4/pmccabe2html.m4: New file.
47176         * modules/pmccabe2html: New file.
47177
47178 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47179
47180         flock: new module
47181         * MODULES.html.sh: Add to list of modules.
47182         * lib/flock.c: flock implementation for Windows and Unix systems
47183         which have fcntl.
47184         * doc/glibc-functions/flock.texi: Update documentation.
47185         * lib/sys_file.in.h: <sys/file.h> header file.
47186         * m4/flock.m4: M4 macros.
47187         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47188         * modules/flock: flock module.
47189         * modules/flock-tests: flock tests module.
47190         * modules/sys_file: sys/file.h module.
47191         * tests/test-flock.c: test suite for flock.
47192
47193 2008-10-06  Jim Meyering  <meyering@redhat.com>
47194
47195         bootstrap: check for LT_INIT more portably still ;-)
47196         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47197         Spotted by Bruno Haible.
47198
47199 2008-10-06  Eric Blake  <ebb9@byu.net>
47200
47201         test-signbit: avoid tripping Irix cc bug on -0.0L
47202         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47203         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47204         entire testsuite consistent and avoids an Irix 6.2 bug.
47205
47206 2008-10-05  Bruno Haible  <bruno@clisp.org>
47207             Jim Meyering  <jim@meyering.net>
47208
47209         Add an option for ignoring EPIPE during close_stdout.
47210         * lib/closeout.h: Include <stdbool.h>.
47211         (close_stdout_set_ignore_EPIPE): New declaration.
47212         * lib/closeout.c: Include <stdbool.h>.
47213         (ignore_EPIPE): New variable.
47214         (close_stdout_set_ignore_EPIPE): New function.
47215         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47216         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47217         failure.
47218         * modules/closeout (Depends-on): Add stdbool.
47219
47220 2008-10-05  Bruno Haible  <bruno@clisp.org>
47221
47222         * modules/accept: New file.
47223         * modules/bind: New file.
47224         * modules/connect: New file.
47225         * modules/getpeername: New file.
47226         * modules/getsockname: New file.
47227         * modules/getsockopt: New file.
47228         * modules/listen: New file.
47229         * modules/recv: New file.
47230         * modules/recvfrom: New file.
47231         * modules/send: New file.
47232         * modules/sendto: New file.
47233         * modules/setsockopt: New file.
47234         * modules/socket: New file.
47235         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47236         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47237         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47238         the particular module is requested. Add a link warning when the
47239         particular module is not requested.
47240         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47241         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47242         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47243         the particular module is requested.
47244         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47245         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47246         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47247         * modules/sys_socket (Depends-on): Add link-warning.
47248         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47249         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47250         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47251         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47252         GL_LINK_WARNING.
47253         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47254         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47255         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47256         * doc/posix-functions/getpeername.texi: Mention the new module
47257         'getpeername'.
47258         * doc/posix-functions/getsockname.texi: Mention the new module
47259         'getsockname'.
47260         * doc/posix-functions/getsockopt.texi: Mention the new module
47261         'getsockopt'.
47262         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47263         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47264         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47265         * doc/posix-functions/send.texi: Mention the new module 'send'.
47266         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47267         * doc/posix-functions/setsockopt.texi: Mention the new module
47268         'setsockopt'.
47269         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47270         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47271         listen, connect, accept.
47272         * modules/select-tests (Depends-on): Likewise.
47273
47274 2008-10-05  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/winsock.c (strerror): Remove unused #undef.
47277         (rpl_close): Remove unused local variable.
47278
47279         * modules/sys_socket (Depends-on); Add errno.
47280
47281 2008-10-05  Bruno Haible  <bruno@clisp.org>
47282
47283         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47284         (select): Add a link warning when the 'select' module is not used.
47285         * modules/sys_select (Depends-on): Add link-warning.
47286         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47287         Suggested by Paolo Bonzini.
47288
47289 2008-10-05  Jim Meyering  <meyering@redhat.com>
47290
47291         bootstrap: check for LT_INIT more portably
47292         * build-aux/bootstrap: Avoid using grep -E, since it's not
47293         portable enough.  Suggestion from Bruno Haible.
47294
47295 2008-10-05  Bruno Haible  <bruno@clisp.org>
47296
47297         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47298         as being fixed by gnulib.
47299
47300 2008-10-05  Bruno Haible  <bruno@clisp.org>
47301
47302         * modules/select-tests: New file, mostly copied from
47303         modules/sys_select-tests.
47304         * tests/test-select.c: New file, mostly copied from
47305         tests/test-sys_select.c.
47306         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47307         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47308         (Makefile.am): Remove test_sys_select_LDADD.
47309
47310         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47311         to an undefined symbol, for an error message.
47312         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47313         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47314         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47315         winsock-select.c here.
47316         * modules/sys_select (Files): Remove lib/winsock-select.c.
47317         (Depends-on): Remove alloca.
47318         (Makefile.am): Substitute GNULIB_SELECT.
47319         * modules/select: New file.
47320         * doc/posix-functions/select.texi: Update.
47321
47322 2008-10-05  Bruno Haible  <bruno@clisp.org>
47323
47324         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47325         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47326         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47327         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47328         getdtablesize.
47329         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47330         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47331
47332 2008-10-05  Bruno Haible  <bruno@clisp.org>
47333
47334         * modules/getdtablesize-tests: New file.
47335         * tests/test-getdtablesize.c: New file.
47336
47337         New module 'getdtablesize'.
47338         * lib/unistd.in.h (getdtablesize): New declaration.
47339         * lib/getdtablesize.c: New file.
47340         * m4/getdtablesize.m4: New file.
47341         * modules/getdtablesize: New file.
47342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47343         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47344         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47345         HAVE_GETDTABLESIZE.
47346         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47347
47348 2008-10-05  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/sched (Makefile.am): Fix typo.
47351         Reported by Simon Josefsson.
47352
47353 2008-10-05  Jim Meyering  <meyering@redhat.com>
47354
47355         bootstrap: check for LT_INIT, too
47356         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47357         are deprecated.  Suggestion from Ralf Wildenhues.
47358
47359 2008-10-05  Bruno Haible  <bruno@clisp.org>
47360
47361         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47362         overriding them by ours.
47363         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47364
47365 2008-10-05  Jim Meyering  <meyering@redhat.com>
47366
47367         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47368         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47369         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47370
47371 2008-10-04  Bruno Haible  <bruno@clisp.org>
47372
47373         * modules/dup2 (License): Change to LGPLv2+.
47374         * modules/sleep (License): Likewise.
47375         * modules/perror (License): Likewise.
47376         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47377         Blake.
47378         * modules/signal (License): Likewise.
47379         * modules/sigprocmask (License): Likewise.
47380         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47381         Meyering.
47382
47383 2008-10-04  Bruno Haible  <bruno@clisp.org>
47384
47385         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47386         Reported by Rainer Tammer <tammer@tammer.net>.
47387
47388 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47389             Bruno Haible  <bruno@clisp.org>
47390
47391         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47392         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47393         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47394
47395 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47396
47397         filevercmp: new module
47398         * lib/filevercmp.h: New function filevercmp comparing version strings.
47399         * lib/filevercmp.c: Implementation of filevercmp function.
47400         * modules/filevercmp: Module metadata.
47401         * tests/test-filevercmp.c: Unit test for new module.
47402         * modules/filevercmp-tests: Unit test metadata.
47403         * MODULES.html.sh: Add filevercmp module.
47404
47405 2008-10-03  Bruno Haible  <bruno@clisp.org>
47406
47407         * lib/c-ctype.h: Add comment.
47408         Reported by Jim Meyering.
47409
47410 2008-10-02  Bruno Haible  <bruno@clisp.org>
47411
47412         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47413
47414 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47415
47416         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47417         name of bootstrap.conf accordingly.
47418
47419 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47420
47421         * build-aux/bootstrap: Install git-merge-changelog configuration
47422         items into .gitconfig if needed.
47423
47424 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47425
47426         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47427         git repository, and initialize/update it accordingly.
47428
47429 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47430
47431         * modules/fsync-tests: New file.
47432         * tests/test-fsync.c: New file.
47433
47434         New module 'fsync'.
47435         * lib/fsync.c: New file.
47436         * m4/fsync.m4: New file.
47437         * modules/fsync: New file.
47438         * lib/unistd.in.h (fsync): New declaration.
47439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47440         GNULIB_FSYNC and HAVE_FSYNC.
47441         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47442         * MODULES.html.sh (posix_functions): Add fsync.
47443         * doc/posix-functions/fsync.texi: Mention the new module.
47444
47445 2008-10-02  Jim Meyering  <meyering@redhat.com>
47446
47447         fts.c: sync with similar code from coreutils' remove.c
47448         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47449         Guard also with "#if defined __linux__", since for now at least,
47450         this code is Linux-kernel-specific.
47451
47452 2008-10-02  Jim Meyering  <meyering@redhat.com>
47453
47454         fts: bug fixes
47455         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47456         Include <sys/vfs.h>, not <sys/statfs.h>.
47457
47458         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47459         Include <sys/vfs.h>, not <sys/statfs.h>.
47460
47461 2008-10-01  Bruno Haible  <bruno@clisp.org>
47462
47463         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47464         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47465         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47466         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47467         * doc/posix-functions/posix_spawnp.texi: Likewise.
47468         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47469         whether posix_spawn actually works.
47470         * m4/pipe.m4 (gl_PIPE): Likewise.
47471         * modules/execute (Files): Add m4/posix_spawn.m4.
47472         * modules/pipe (Files): Add m4/posix_spawn.m4.
47473         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47474
47475 2008-10-01  Jim Meyering  <meyering@redhat.com>
47476
47477         remove trailing spaces
47478         * NEWS: Likewise.
47479         * lib/poll.c (poll): Likewise.
47480         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47481         * lib/winsock.c (rpl_close): Likewise.
47482         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47483         * modules/yield: Likewise.
47484         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47485         * tests/test-sys_select.c (connect_to_socket): Likewise.
47486
47487         fts.c: adjust a new interface to be more generally useful
47488         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47489         (fts_build): Adjust caller.
47490
47491 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47492
47493         * modules/cond-tests: New file.
47494         * tests/test-cond.c: New file.
47495
47496 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47497             Bruno Haible  <bruno@clisp.org>
47498
47499         * modules/cond (Dependencies): Add errno, time.
47500         * lib/glthread/cond.h: Include <time.h>.
47501         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47502         across platforms.
47503
47504 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47505             Bruno Haible  <bruno@clisp.org>
47506
47507         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47508
47509 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47510             Bruno Haible  <bruno@clisp.org>
47511
47512         * modules/tls-tests (Depends-on): Add thread, yield.
47513         (configure.ac): Remove all checks.
47514         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47515         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47516         gl_thread_self): Remove definitions. Include glthread/thread.h and
47517         glthread/yield.h instead.
47518         (test_tls): Pass an additional NULL argument to gl_thread_join.
47519
47520 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47521             Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/lock-tests (Depends-on): Add thread, yield.
47524         (configure.ac): Remove all checks.
47525         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47526         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47527         gl_thread_self): Remove definitions. Include glthread/thread.h and
47528         glthread/yield.h instead.
47529         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47530         additional NULL argument to gl_thread_join.
47531
47532 2008-09-30  Bruno Haible  <bruno@clisp.org>
47533
47534         Fix the Win32 implementation of the 'thread' module.
47535         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47536         pointer type.
47537         (gl_thread_self): Invoke gl_thread_self_func.
47538         (gl_thread_self_func): New declaration.
47539         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47540         (do_init_self_key, init_self_key): New functions.
47541         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47542         Remove some fields.
47543         (running_threads, running_lock): Remove variables.
47544         (get_current_thread_handle): New function.
47545         (gl_thread_self_func, wrapper_func, glthread_create_func,
47546         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47547         simplified.
47548
47549 2008-09-30  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47552         files.
47553
47554 2008-09-30  Jim Meyering  <meyering@redhat.com>
47555
47556         fts.m4: correct the test for statfs.f_type
47557         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47558         when checking for statfs.f_type.
47559
47560 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47561
47562         tests: avoid some compiler warnings
47563         * tests/test-memchr.c (main): Pass NULL indirectly.
47564         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47565
47566 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47567
47568         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47569         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47570         exactly specified dayshifts.
47571         (dayshift): New rule.
47572         (rel): Add dayshift.
47573         (relative_time_table) [tomorrow, yesterday, today, now]:
47574         Use tDAY_SHIFT in place of tDAY_UNIT.
47575         * tests/test-getdate.c: Add tests for now-disallowed countable
47576         dayshifts, e.g., "4 yesterday ago".
47577
47578 2008-09-29  Bruno Haible  <bruno@clisp.org>
47579
47580         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47581         * tests/test-posix_spawn1.in.sh: Renamed from
47582         tests/test-posix_spawn.in.sh.
47583         * tests/test-posix_spawn2.c: New file.
47584         * tests/test-posix_spawn2.in.sh: New file.
47585         * modules/posix_spawnp-tests (Files): Update.
47586         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47587
47588 2008-09-29  Bruno Haible  <bruno@clisp.org>
47589
47590         Propagate effects of putenv/setenv/unsetenv to child processes.
47591         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47592         * lib/pipe.c (create_pipe): Likewise.
47593
47594 2008-09-29  Bruno Haible  <bruno@clisp.org>
47595
47596         Enable use of shell scripts as executables in mingw.
47597         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47598         run the program as a shell script.
47599         * lib/pipe.c (create_pipe): Likewise.
47600         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47601         resulting array.
47602
47603 2008-09-29  Eric Blake  <ebb9@byu.net>
47604
47605         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47606
47607 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47608
47609         * doc/posix-functions/accept.texi: Update mingw problems.
47610         * doc/posix-functions/bind.texi: Update mingw problems.
47611         * doc/posix-functions/close.texi: Update mingw problems.
47612         * doc/posix-functions/connect.texi: Update mingw problems.
47613         * doc/posix-functions/getpeername.texi: Update mingw problems.
47614         * doc/posix-functions/getsockname.texi: Update mingw problems.
47615         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47616         * doc/posix-functions/ioctl.texi: Update mingw problems.
47617         * doc/posix-functions/listen.texi: Update mingw problems.
47618         * doc/posix-functions/recv.texi: Update mingw problems.
47619         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47620         * doc/posix-functions/select.texi: Update mingw problems.
47621         * doc/posix-functions/send.texi: Update mingw problems.
47622         * doc/posix-functions/sendto.texi: Update mingw problems.
47623         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47624         * doc/posix-functions/socket.texi: Update mingw problems.
47625
47626 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47627             Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/sys_select.in.h: Include sys/time.h.
47630         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47631         * modules/sys_select: Depend on sys_time.
47632         * tests/test-sys_select.c: Test that sys/select.h defines struct
47633         timeval fully.
47634
47635 2008-09-29  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47638         * lib/sys_select.in.h: Likewise.
47639
47640 2008-09-29  Bruno Haible  <bruno@clisp.org>
47641
47642         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47643
47644 2008-09-29  Bruno Haible  <bruno@clisp.org>
47645
47646         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47647         Set LIBSOCKET instead of augmenting LIBS.
47648         * modules/sockets (Link): New section.
47649         * modules/sockets-tests (test_sockets_LDADD): New variable.
47650         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47651         * modules/poll-tests (test_poll_LDADD): New variable.
47652         * NEWS: Document the change.
47653
47654 2008-09-29  Bruno Haible  <bruno@clisp.org>
47655
47656         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47657         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47658         ARPA_INET_H directly.
47659         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47660
47661 2008-09-28  Bruno Haible  <bruno@clisp.org>
47662
47663         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47664         from gl_HEADER_SYS_SOCKET.
47665         (gl_HEADER_SYS_SOCKET): Invoke it.
47666         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47667
47668 2008-09-28  Bruno Haible  <bruno@clisp.org>
47669
47670         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47671         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47672         Needed on OSF/1 4.0.
47673
47674 2008-09-28  Bruno Haible  <bruno@clisp.org>
47675
47676         Override open more carefully.
47677         * lib/open.c (orig_open): New function.
47678         (rpl_open): Use orig_open instead of open.
47679         * lib/fcntl.in.h: Add special invocation convention.
47680         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47681         (gl_FUNC_OPEN): Invoke it.
47682
47683         Override freopen more carefully.
47684         * lib/freopen.c (orig_freopen): New function.
47685         (rpl_freopen): Use orig_freopen instead of freopen.
47686         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47687         (gl_FUNC_FREOPEN): Invoke it.
47688
47689         Override fopen more carefully.
47690         * lib/fopen.c (orig_fopen): New function.
47691         (rpl_fopen): Use orig_fopen instead of fopen.
47692         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47693         (gl_FUNC_FOPEN): Invoke it.
47694         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47695
47696 2008-09-28  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47699         SIGPIPE.
47700
47701 2008-09-28  Bruno Haible  <bruno@clisp.org>
47702
47703         * tests/test-sigaction.c (handler, main): Disable the check whether
47704         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47705         glibc systems with LinuxThreads.
47706
47707 2008-09-28  Bruno Haible  <bruno@clisp.org>
47708
47709         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47710
47711         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47712         with AIX xlc.
47713         * lib/fcntl.in.h (open): Likewise.
47714         Reported by Rainer Tammer <tammer@tammer.net>.
47715
47716 2008-09-28  Bruno Haible  <bruno@clisp.org>
47717
47718         * modules/posix_spawnp-tests: New file.
47719         * tests/test-posix_spawn.c: New file.
47720         * tests/test-posix_spawn.in.sh: New file.
47721
47722         New module 'posix_spawnp'.
47723         * modules/posix_spawnp: New file.
47724         * lib/spawnp.c: New file, from GNU libc with modifications.
47725         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47726
47727         New module 'posix_spawn'.
47728         * modules/posix_spawn: New file.
47729         * lib/spawn.c: New file, from GNU libc with modifications.
47730         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47731
47732         New module 'posix_spawnattr_destroy'.
47733         * modules/posix_spawnattr_destroy: New file.
47734         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47735         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47736         module.
47737
47738         New module 'posix_spawnattr_setsigmask'.
47739         * modules/posix_spawnattr_setsigmask: New file.
47740         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47741         modifications.
47742         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47743         new module.
47744
47745         New module 'posix_spawnattr_getsigmask'.
47746         * modules/posix_spawnattr_getsigmask: New file.
47747         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47748         modifications.
47749         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47750         new module.
47751
47752         New module 'posix_spawnattr_setsigdefault'.
47753         * modules/posix_spawnattr_setsigdefault: New file.
47754         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47755         modifications.
47756         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47757         new module.
47758
47759         New module 'posix_spawnattr_getsigdefault'.
47760         * modules/posix_spawnattr_getsigdefault: New file.
47761         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47762         modifications.
47763         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47764         new module.
47765
47766         New module 'posix_spawnattr_setschedpolicy'.
47767         * modules/posix_spawnattr_setschedpolicy: New file.
47768         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47769         modifications.
47770         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47771         new module.
47772
47773         New module 'posix_spawnattr_getschedpolicy'.
47774         * modules/posix_spawnattr_getschedpolicy: New file.
47775         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47776         modifications.
47777         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47778         new module.
47779
47780         New module 'posix_spawnattr_setschedparam'.
47781         * modules/posix_spawnattr_setschedparam: New file.
47782         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47783         modifications.
47784         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47785         new module.
47786
47787         New module 'posix_spawnattr_getschedparam'.
47788         * modules/posix_spawnattr_getschedparam: New file.
47789         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47790         modifications.
47791         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47792         new module.
47793
47794         New module 'posix_spawnattr_setpgroup'.
47795         * modules/posix_spawnattr_setpgroup: New file.
47796         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47797         modifications.
47798         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47799         module.
47800
47801         New module 'posix_spawnattr_getpgroup'.
47802         * modules/posix_spawnattr_getpgroup: New file.
47803         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47804         modifications.
47805         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47806         module.
47807
47808         New module 'posix_spawnattr_setflags'.
47809         * modules/posix_spawnattr_setflags: New file.
47810         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47811         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47812         module.
47813
47814         New module 'posix_spawnattr_getflags'.
47815         * modules/posix_spawnattr_getflags: New file.
47816         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47817         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47818         module.
47819
47820         New module 'posix_spawnattr_init'.
47821         * modules/posix_spawnattr_init: New file.
47822         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47823         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47824         module.
47825
47826         New module 'posix_spawn_file_actions_destroy'.
47827         * modules/posix_spawn_file_actions_destroy: New file.
47828         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47829         modifications.
47830         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47831         the new module.
47832
47833         New module 'posix_spawn_file_actions_addopen'.
47834         * modules/posix_spawn_file_actions_addopen: New file.
47835         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47836         modifications.
47837         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47838         the new module.
47839
47840         New module 'posix_spawn_file_actions_adddup2'.
47841         * modules/posix_spawn_file_actions_adddup2: New file.
47842         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47843         modifications.
47844         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47845         the new module.
47846
47847         New module 'posix_spawn_file_actions_addclose'.
47848         * modules/posix_spawn_file_actions_addclose: New file.
47849         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47850         modifications.
47851         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47852         the new module.
47853
47854         New module 'posix_spawn_file_actions_init'.
47855         * modules/posix_spawn_file_actions_init: New file.
47856         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47857         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47858         new module.
47859
47860         New module 'posix_spawn-internal'.
47861         * modules/posix_spawn-internal: New file.
47862         * lib/spawn_int.h: New file, from GNU libc with modifications.
47863         * lib/spawni.c: New file, from GNU libc with modifications.
47864         * m4/posix_spawn.m4: New file.
47865
47866         New module 'spawn'.
47867         * modules/spawn: New file.
47868         * lib/spawn.in.h: New file, from GNU libc with modifications.
47869         * m4/spawn_h.m4: New file.
47870         * doc/posix-headers/spawn.texi: Mention the new module.
47871
47872 2008-09-28  Bruno Haible  <bruno@clisp.org>
47873
47874         * modules/sched-tests: New file.
47875         * tests/test-sched.c: New file.
47876
47877         New module 'sched'.
47878         * modules/sched: New file.
47879         * lib/sched.in.h: New file.
47880         * m4/sched_h.m4: New file.
47881         * doc/posix-headers/sched.texi: Mention the new module.
47882
47883 2008-09-27  Eric Blake  <ebb9@byu.net>
47884
47885         Fix previous patch, and tweak references to $0.
47886         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47887         (func_version, func_gnulib_dir): Don't call this program
47888         gnulib-tool.
47889         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47890         with using $0 in function.
47891         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47892         (func_fatal_error): Reuse the name the user invoked us with.
47893
47894 2008-09-27  Bruno Haible  <bruno@clisp.org>
47895
47896         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47897         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47898         (gl_ICONV_H): Not here.
47899         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47900         instead of assigning ICONV_H directly.
47901
47902         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47904         WCHAR_H directly.
47905
47906 2008-09-27  Bruno Haible  <bruno@clisp.org>
47907
47908         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47909         * modules/arpa_inet (Depends-on): Add link-warning.
47910         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47911         * modules/unistd (Makefile.am): Likewise.
47912
47913 2008-09-26  Bruno Haible  <bruno@clisp.org>
47914
47915         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47916         variables.
47917         (func_version): Essentially copied from gnulib-tool.
47918         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47919         func_readlink): Copied from gnulib-tool.
47920
47921 2008-09-26  Bruno Haible  <bruno@clisp.org>
47922
47923         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47924         invoking git-version-gen.
47925
47926 2008-09-26  Bruno Haible  <bruno@clisp.org>
47927
47928         * posix-modules: Update to directory names changed on 2008-01-19.
47929         Remove commas in output before splitting into words. No more need to
47930         avoid 'ftruncate' since 2007-02-19.
47931
47932 2008-09-26  Bruno Haible  <bruno@clisp.org>
47933
47934         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47935
47936 2008-09-26  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47939         * modules/fwriteerror (Depends-on): Add errno.
47940
47941 2008-09-26  Bruno Haible  <bruno@clisp.org>
47942
47943         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47944         * tests/test-vc-list-files-cvs.sh: Likewise.
47945
47946 2008-09-26  Bruno Haible  <bruno@clisp.org>
47947
47948         * doc/posix-headers/sys_resource.texi: Reorder items.
47949
47950 2008-09-26  Jim Meyering  <meyering@redhat.com>
47951
47952         fts: tweak inode comparison function
47953         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47954         inode numbers, as documented.
47955
47956         fts: sort dirent entries on inode number before traversing
47957         This avoids a quadratic, seek-related performance penalty when
47958         operating on a directory containing many entries (measurable at 10k;
47959         3.5 hours at 2 million entries with a cold cache) on certain types
47960         of file systems, including ext3 and ext4, but not tmpfs.
47961         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47962         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47963         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47964         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47965         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47966         (fts_build): Set the stat.st_ino member from D_INO.
47967         If it is likely to be useful, sort dirent entries on inode number.
47968
47969         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47970         and the struct statfs.f_type member.
47971         * modules/fts (Depends-on): Add d-ino.
47972
47973 2008-09-26  Bruno Haible  <bruno@clisp.org>
47974
47975         * modules/sigpipe-die (Depends-on): Add sigpipe.
47976
47977         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47978         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47979         and GNULIB_STDIO_H_SIGPIPE are set.
47980         * lib/stdio-write.c: New file.
47981         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47982         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47983         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47984         REPLACE_STDIO_WRITE_FUNCS.
47985         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47986         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47987         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47988         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47989         * modules/stdio (Files): Add lib/stdio-write.c.
47990         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47991         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47992         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47993         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47994         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47995         REPLACE_FPRINTF_POSIX.
47996         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47997         REPLACE_PRINTF_POSIX.
47998         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47999         REPLACE_VFPRINTF_POSIX.
48000         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48001         REPLACE_VPRINTF_POSIX.
48002         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48003         SIGPIPE issue.
48004         * doc/posix-functions/fputc.texi: Likewise.
48005         * doc/posix-functions/fputs.texi: Likewise.
48006         * doc/posix-functions/fwrite.texi: Likewise.
48007         * doc/posix-functions/printf.texi: Likewise.
48008         * doc/posix-functions/putc.texi: Likewise.
48009         * doc/posix-functions/putchar.texi: Likewise.
48010         * doc/posix-functions/puts.texi: Likewise.
48011         * doc/posix-functions/vfprintf.texi: Likewise.
48012         * doc/posix-functions/vprintf.texi: Likewise.
48013
48014         * modules/safe-write (Depends-on): Add write.
48015
48016         * modules/sigpipe-tests: New file.
48017         * tests/test-sigpipe.c: New file.
48018         * tests/test-sigpipe.sh: New file.
48019
48020         * modules/write: New file.
48021         * lib/unistd.in.h: Include <sys/types.h>.
48022         (write): New declaration.
48023         * lib/write.c: New file.
48024         * m4/write.m4: New file.
48025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48026         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48027         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48028         GNULIB_WRITE, REPLACE_WRITE.
48029         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48030         and the SIGPIPE issue.
48031
48032         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48033         (raise): New declaration.
48034         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48035         (ext_signal): New function.
48036         (rpl_raise): New function.
48037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48038         GNULIB_SIGNAL_H_SIGPIPE.
48039         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48040         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48041
48042         * modules/sigpipe: New file.
48043         * m4/sigpipe.m4: New file.
48044
48045 2008-09-25  Derek Price  <derek@ximbiot.com>
48046             Bruno Haible  <bruno@clisp.org>
48047
48048         * gnulib-tool (func_import): Report all license incompatibilities, not
48049         just the first one.
48050
48051 2008-09-25  Bruno Haible  <bruno@clisp.org>
48052
48053         * gnulib-tool (func_import): When computing the edits, consider not
48054         only the Makefile.ams that exist but also those that will be generated.
48055
48056 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48057
48058         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48059         fixes gnulib-tool --test warning about duplicate dependency.
48060
48061 2008-09-25  Bruno Haible  <bruno@clisp.org>
48062
48063         * gnulib-tool: Don't ask the user to perform edits in the generated
48064         Makefile.ams.
48065         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48066         apply to the Makefile.am being generated.
48067         (func_emit_tests_Makefile_am): Execute edits that apply to the
48068         Makefile.am being generated.
48069         (func_import): Setup list of Makefile.am edits before emitting the
48070         Makefile.ams, not at the end.
48071         (func_create_testdir): Update.
48072         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48073
48074 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48075
48076         * gnulib-tool (func_import): Store the --tests-base option in the
48077         comment in gnulib-cache.m4.
48078
48079 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48080
48081         * NEWS: Document increased portability that sys_select now provides.
48082
48083         * lib/sys_select.in.h: Install select wrapper.
48084         * lib/sys_socket.in.h: Use more descriptive name when there is no
48085         select wrapper.
48086         * lib/winsock-select.c: New.
48087         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48088         Require gl_HEADER_SYS_SOCKET.
48089         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48090         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48091         * tests/test-sys_select.c: Add functional tests.
48092
48093 2008-09-24  Eric Blake  <ebb9@byu.net>
48094
48095         open, fopen: close fd leak in last patch
48096         * lib/open.c (rpl_open): Close fd before returning error.
48097         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48098         * doc/posix-functions/open.texi (open): Document that Irix also
48099         has the bug.
48100         * doc/posix-functions/fopen.texi (fopen): Likewise.
48101         Reported by Paolo Bonzini.
48102
48103 2008-09-24  Bruno Haible  <bruno@clisp.org>
48104
48105         Ensure that a filename ending in a slash cannot be used to access a
48106         non-directory.
48107         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48108         to check whether it's really a directory.
48109         * lib/fopen.c: Include fcntl.h, unistd.h.
48110         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48111         and fdopen().
48112         * modules/fopen (Depends-on): Add unistd.
48113         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48114         * tests/test-fopen.c (main): Likewise.
48115         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48116         * doc/posix-functions/fopen.texi: Likewise.
48117         Reported by Eric Blake.
48118
48119 2008-09-23  Eric Blake  <ebb9@byu.net>
48120
48121         c-stack: avoid compiler optimizations when provoking overflow
48122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48123         recursion harder to optimize, to ensure a stack overflow occurs.
48124         * tests/test-c-stack.c (recurse): Likewise.
48125         Borrowed from libsigsegv.
48126
48127         c-stack: work around Irix sigaltstack bug
48128         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48129         whether sigaltstack uses wrong end of stack_t (copied in part from
48130         libsigsegv).
48131         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48132         Irix bug, without requiring an over-allocation.
48133         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48134         bug.
48135
48136         fopen: document mingw bug on directories
48137         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48138         not allowing a stream visiting a directory, even though reading
48139         from such a stream is not portable.
48140
48141 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48142
48143         * lib/poll.c: Rewrite.
48144         * modules/poll: Depend on alloca.
48145
48146 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48147
48148         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48149         instead define prototypes for a full set of wrappers.  Ensure
48150         that Cygwin does not use the compatibility code, which is only
48151         for MinGW.
48152         * lib/winsock.c: New.
48153         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48154         * modules/sys_socket: Add lib/winsock.c.
48155
48156         * modules/poll-tests: Add errno and perror.
48157         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48158
48159 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48160
48161         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48162
48163 2008-09-23  Bruno Haible  <bruno@clisp.org>
48164
48165         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48166         * doc/glibc-functions/*: Likewise.
48167
48168 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48169
48170         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48171         success.
48172
48173 2008-09-22  Eric Blake  <ebb9@byu.net>
48174             Bruno Haible  <bruno@clisp.org>
48175
48176         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48177         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48178         supply %A but mishandle pseudo-NaN.
48179         Reported by Simon Josefsson.
48180
48181 2008-09-21  Bruno Haible  <bruno@clisp.org>
48182
48183         * tests/test-lock.c (main): Tweak skip message.
48184         * tests/test-tls.c (main): Likewise.
48185
48186 2008-09-21  Bruno Haible  <bruno@clisp.org>
48187
48188         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48189         whether 'struct sigaction' has sa_sigaction here...
48190         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48191         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48192
48193 2008-09-21  Bruno Haible  <bruno@clisp.org>
48194
48195         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48196         section.
48197         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48198         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48199         the new section.
48200         (Support for obsolete systems lacking POSIX:2001): New section.
48201         (String handling <string.h>): Move strdup to the new section.
48202         Suggested by Simon Josefsson and Paolo Bonzini.
48203
48204 2008-09-21  Bruno Haible  <bruno@clisp.org>
48205
48206         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48207         exponents in %e and %g results on 'long double'. Needed for mingw's
48208         improved *printf functions.
48209         * tests/test-vasprintf-posix.c (test_function): Likewise.
48210         * tests/test-snprintf-posix.h (test_function): Likewise.
48211         * tests/test-sprintf-posix.h (test_function): Likewise.
48212         Reported by Eric Blake.
48213
48214 2008-09-21  Bruno Haible  <bruno@clisp.org>
48215
48216         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48217         * tests/test-sprintf-posix.h (test_function): Likewise.
48218
48219 2008-09-21  Bruno Haible  <bruno@clisp.org>
48220
48221         * modules/getpass (Depends-on): Add strdup-posix.
48222
48223         New module 'strdup-posix'.
48224         * modules/strdup-posix: New file.
48225         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48226         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48228         REPLACE_STRDUP.
48229         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48230         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48231         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48232         strdup-posix.
48233
48234         * modules/strdup (Depends-on): Remove malloc-posix.
48235
48236 2008-09-20  Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48239         Wildenhues.
48240
48241 2008-09-20  Bruno Haible  <bruno@clisp.org>
48242
48243         Ensure that wint_t gets defined on IRIX 5.3.
48244         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48245         * lib/wctype.in.h (wint_t): Likewise.
48246         (__wctype_wint_t): Remove type.
48247         (isw*): Use wint_t instead of __wctype_wint_t.
48248         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48249         * modules/wchar (Files): Add m4/wint_t.m4.
48250         (Makefile.am): Substitute HAVE_WINT_T.
48251         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48252         * tests/test-wctype.c: Check that wint_t is defined.
48253         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48254         * doc/posix-headers/wctype.texi: Likewise.
48255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48256
48257 2008-09-18  Bruno Haible  <bruno@clisp.org>
48258
48259         * gnulib-tool (func_exit): Update comment.
48260
48261 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48262
48263         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48264         assumes strdup exists and does not depend on strdup to return
48265         ENOMEM on out of memory conditions.
48266
48267 2008-09-18  Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48270         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48271         digits for the exponent.
48272
48273 2008-09-18  Jim Meyering  <meyering@redhat.com>
48274             Bruno Haible  <bruno@clisp.org>
48275
48276         * lib/vasnprintf.c (decimal_point_char): Define also if
48277         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48278
48279 2008-09-16  Bruno Haible  <bruno@clisp.org>
48280         and Eric Blake  <ebb9@byu.net>
48281
48282         vasnprintf: support Irix 5.3
48283         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48284         that mishandle long double infinity.
48285         Reported by Tom G. Christensen.
48286
48287 2008-09-16  Bruno Haible  <bruno@clisp.org>
48288
48289         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48290         Solaris 9.
48291         * doc/glibc-functions/alphasort.texi: Likewise.
48292         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48293
48294 2008-09-16  Jim Meyering  <meyering@redhat.com>
48295
48296         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48297         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48298         a umask modification leak out of a subshell.  Otherwise, the
48299         opensolaris /bin/sh would be accepted and thus cause unwarranted
48300         failures in the coreutils test suite.
48301
48302 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48303
48304         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48305         to succeed.
48306
48307 2008-09-16  Jim Meyering  <meyering@redhat.com>
48308
48309         avoid spurious test failure when library is built without ACL support
48310         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48311         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48312         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48313         * tests/test-copy-acl.sh: Likewise.
48314
48315 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48316
48317         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48318         based on character occurrence counts.
48319
48320 2008-09-15  Eric Blake  <ebb9@byu.net>
48321
48322         tests: avoid some compiler warnings
48323         * tests/test-memchr.c (main): Pass NULL indirectly.
48324         * tests/test-closein.c (main): Avoid unused variable.
48325
48326 2008-09-15  Bruno Haible  <bruno@clisp.org>
48327
48328         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48329         are missing on OpenBSD 4.0 individually.
48330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48331
48332 2008-09-15  Bruno Haible  <bruno@clisp.org>
48333
48334         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48335         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48336         * doc/posix-functions/perror.texi: Likewise.
48337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48338         is missing.
48339         Reported by Eric Blake.
48340
48341         * lib/errno.in.h: Use replacement values >= 2000.
48342         Reported by Eric Blake.
48343
48344 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48345
48346         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48347         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48348         limit.
48349         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48350         compareseq was aborted.
48351
48352 2008-09-14  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48355         yvec_edit_count.
48356         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48357         (fstrcmp_bounded): Simplify result computation accordingly.
48358
48359 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48360
48361         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48362         (fstrcmp): Define in terms of fstrcmp_bounded.
48363         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48364         lower_bound argument.
48365         Return quickly if the result is certainly < lower_bound.
48366         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48367
48368 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48369
48370         * lib/diffseq.h (EARLY_ABORT): New macro.
48371         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48372         evaluates to true.
48373
48374 2008-09-14  Bruno Haible  <bruno@clisp.org>
48375
48376         * modules/perror-tests: New file.
48377         * tests/test-perror.sh: New file.
48378         * tests/test-perror.c: New file.
48379
48380         New module 'perror'.
48381         * lib/stdio.in.h (perror): New declaration.
48382         * lib/perror.c: New file.
48383         * m4/perror.m4: New file.
48384         * modules/perror: New file.
48385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48386         * doc/posix-functions/perror.texi: Mention the perror module.
48387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48388         REPLACE_PERROR.
48389         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48390         REPLACE_PERROR.
48391
48392 2008-09-14  Bruno Haible  <bruno@clisp.org>
48393
48394         * modules/stdio (Makefile.am): Reorder to match the order in
48395         lib/stdio.in.h.
48396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48397
48398 2008-09-13  Bruno Haible  <bruno@clisp.org>
48399
48400         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48401
48402 2008-09-13  Bruno Haible  <bruno@clisp.org>
48403
48404         Extend strerror to cover the added errno values.
48405         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48406         (rpl_strerror): Provide error messages for the added errno values and
48407         for the WSA* values.
48408         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48409         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48410         strerror.
48411         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48412         * modules/strerror (Depends-on): Add errno.
48413         * doc/posix-functions/strerror.texi: Document the change.
48414         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48415         and EOVERFLOW.
48416
48417 2008-09-13  Bruno Haible  <bruno@clisp.org>
48418
48419         * modules/EOVERFLOW: Remove file.
48420         * m4/eoverflow.m4: Remove file.
48421         * modules/EOVERFLOW-tests: Remove file.
48422         * tests/test-EOVERFLOW.c: Remove file.
48423         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48424         * modules/ftell (Depends-on): Likewise.
48425         * modules/getdelim (Depends-on): Likewise.
48426         * modules/getugroups (Depends-on): Likewise.
48427         * modules/poll (Depends-on): Likewise.
48428         * modules/snprintf (Depends-on): Likewise.
48429         * modules/sprintf-posix (Depends-on): Likewise.
48430         * modules/vasnprintf (Depends-on): Likewise.
48431         * modules/vasprintf (Depends-on): Likewise.
48432         * modules/vfprintf-posix (Depends-on): Likewise.
48433         * modules/vsnprintf (Depends-on): Likewise.
48434         * modules/vsprintf-posix (Depends-on): Likewise.
48435         * modules/xvasprintf (Depends-on): Likewise.
48436         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48437         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48438         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48439         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48440         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48441         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48442         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48443         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48444         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48445         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48446         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48447         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48448         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48449         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48450         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48451         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48452         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48453         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48454         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48455         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48456         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48457         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48458         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48459         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48460         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48461         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48462         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48463         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48464         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48465         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48466         * MODULES.html.sh: Remove EOVERFLOW.
48467         * NEWS: Mention the change.
48468
48469 2008-09-13  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/errno-tests: New file.
48472         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48473
48474         * lib/errno.in.h: New file.
48475         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48476         * modules/errno: New file.
48477         * doc/posix-headers/errno.texi: Update documentation.
48478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48479
48480 2008-09-13  Bruno Haible  <bruno@clisp.org>
48481
48482         * tests/test-poll.c: Use #if for native Windows, rather than testing
48483         __MSVCRT__.
48484
48485 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48486             Bruno Haible  <bruno@clisp.org>
48487
48488         * lib/glob.c: Don't include <pwd.h> on native Windows.
48489         (WINDOWS32): New macro.
48490         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48491
48492 2008-09-13  Bruno Haible  <bruno@clisp.org>
48493
48494         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48495         (ETIMEDOUT): Remove macro.
48496         (glthread_cond_timedwait_multithreaded): New declaration.
48497         (glthread_cond_timedwait): Use it.
48498         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48499         (glthread_cond_timedwait_multithreaded): New function.
48500
48501 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48502
48503         * modules/poll-tests: Do not check for io.h.
48504         * tests/test-poll.c: Check for __MSVCRT__ instead.
48505
48506 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48507
48508         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48509         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48510         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48511
48512 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48513
48514         * modules/poll-tests: New.
48515         * tests/test-poll.c: New.
48516
48517 2008-09-12  Eric Blake  <ebb9@byu.net>
48518
48519         frexp: test for NetBSD failure on -0.0
48520         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48521         not all, bugs from NetBSD 3.0 have been fixed.
48522         * doc/posix-functions/frexp.texi (frexp): Document bug.
48523         Reported by Thomas Klausner.
48524
48525         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48526         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48527         literal -0.0.
48528         Reported by Jonathan C. Patschke <jp@centtech.com>.
48529
48530 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48531
48532         * lib/glthread/cond.h: Use dummy implementation also if
48533         USE_WIN32_THREADS.
48534
48535 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48536
48537         * modules/fnmatch-posix (License): Change to LGPLv2+.
48538         * modules/fnmatch-gnu (License): Likewise.
48539
48540 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48541
48542         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48543
48544 2008-09-11  Jim Meyering  <meyering@redhat.com>
48545
48546         * users.txt: Add gtk-vnc.
48547
48548 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48549
48550         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48551         rotate amounts.
48552
48553         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48554         required for 16-bit and 8-bit rotates.
48555         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48556         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48557         UINT8_MAX instead of hard-coded constants.
48558         Suggested by Paul Eggert.
48559
48560 2008-09-07  Bruno Haible  <bruno@clisp.org>
48561
48562         * tests/test-striconveh.c (main): Check behaviour when converting from
48563         UTF-7.
48564
48565         Make striconveh work better with stateful encodings.
48566         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48567         that iconv does not increment the inptr when returning -1/EINVAL.
48568
48569 2008-09-07  Bruno Haible  <bruno@clisp.org>
48570
48571         * build-aux/config.rpath: Update according to libtool-2.2.6.
48572         * build-aux/config.libpath: Likewise.
48573
48574 2008-09-06  Bruno Haible  <bruno@clisp.org>
48575
48576         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48577         * lib/freadptr.c (freadptr): Likewise.
48578         * lib/freadseek.c (freadptrinc): Likewise.
48579         Reported by Simon Josefsson.
48580
48581 2008-09-06  Bruno Haible  <bruno@clisp.org>
48582
48583         * modules/freadptr (License): Change to LGPLv2+.
48584         * modules/freadseek (License): Likewise.
48585         Suggested by Eric Blake.
48586
48587         * modules/memchr2 (License): Change to LGPLv2+.
48588         Approved by Eric Blake.
48589
48590 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48591             Bruno Haible  <bruno@clisp.org>
48592
48593         Make gnulib-tool work with native 'sed' on AIX.
48594         * gnulib-tool (sed_noop): New variable.
48595         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48596         func_add_or_update, func_create_testdir): Use it to initialize sed
48597         script variables.
48598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48599
48600 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48601             Bruno Haible  <bruno@clisp.org>
48602
48603         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48604         also works after #include directives.
48605
48606 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48607
48608         getdate.y: reject an out-of-range timezone value
48609         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48610         the range [-24...+24].  When specified with only one or two digits,
48611         * tests/test-getdate.c: Tests for the fix.
48612         * doc/getdate.texi: Document this change.
48613
48614 2008-09-03  Bruno Haible  <bruno@clisp.org>
48615
48616         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48617
48618 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48619
48620         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48621         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48622         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48623         Blake <ebb9@byu.net>.
48624
48625         * tests/test-bitrotate.c: Add more test vectors.
48626
48627 2008-09-02  Eric Blake  <ebb9@byu.net>
48628
48629         vasnprintf-posix: handle large precision via %.*d
48630         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48631         when handling it ourselves.
48632         * tests/test-vasnprintf-posix.c (test_function): Add test.
48633         * tests/test-snprintf-posix.h (test_function): Likewise.
48634         * tests/test-sprintf-posix.h (test_function): Likewise.
48635         * tests/test-vasprintf-posix.c (test_function): Likewise.
48636         Reported by Alain Guibert.
48637
48638 2008-09-01  Eric Blake  <ebb9@byu.net>
48639
48640         c-stack: make configure-time check more robust
48641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48642         successful sigaction call.
48643         Reported by Tom G. Christensen.
48644
48645 2008-09-01  Bruno Haible  <bruno@clisp.org>
48646
48647         New module 'findprog-lgpl'.
48648         * modules/findprog-lgpl: New file.
48649         * lib/findprog-lgpl.c: New file.
48650         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48651         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48652         to decide whether to use strdup or xstrdup, concatenated_filename or
48653         xconcatenated_filename.
48654
48655 2008-09-01  Bruno Haible  <bruno@clisp.org>
48656
48657         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48658         'xconcat-filename' (GPL).
48659         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48660         (License): Change to LGPLv2+.
48661         * modules/xconcat-filename: New file.
48662         * lib/concat-filename.h (concatenated_filename): Change specification.
48663         (xconcatenated_filename): New declaration.
48664         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48665         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48666         memory situations.
48667         * lib/xconcat-filename.c: New file.
48668         * NEWS: Mention the change.
48669         * lib/findprog.c: Include concat-filename.h, not filename.h.
48670         (find_in_path): Use xconcatenated_filename instead of
48671         concatenated_filename.
48672         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48673         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48674         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48675         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48676         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48677         instead of concatenated_filename.
48678         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48679         (execute_java_class): Use xconcatenated_filename instead of
48680         concatenated_filename.
48681         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48682         * modules/javacomp (Depends-on): Likewise.
48683         * modules/javaexec (Depends-on): Likewise.
48684
48685 2008-09-01  Bruno Haible  <bruno@clisp.org>
48686
48687         Split module 'filename' into 'filename' and 'concat-filename'.
48688         * modules/filename: Keep only lib/filename.h.
48689         (License): Change to LGPLv2+.
48690         * modules/concat-filename: New file, extracted from modules/filename.
48691         * lib/filename.h (concatenated_filename): Remove declaration.
48692         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48693         * lib/concat-filename.c: Include concat-filename.h.
48694         * NEWS: Mention the change.
48695
48696 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48697
48698         * lib/bitrotate.h (rotl8, rotr8): Add.
48699
48700         * modules/bitrotate (configure.ac): Need
48701         AC_REQUIRE([AC_C_INLINE]).
48702         (Description): Mention stdint.h.  Reported by Bruno Haible
48703         <bruno@clisp.org>.
48704
48705         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48706         Paolo Bonzini <bonzini@gnu.org>.
48707
48708 2008-08-31  Bruno Haible  <bruno@clisp.org>
48709
48710         Assume Solaris specific bi-arch conventions on Solaris systems.
48711         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48712         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48713         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48714         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48715         like acl_libdirstem.
48716         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48717         acl_libdirstem.
48718         * NEWS: Mention the change.
48719         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48720
48721 2008-08-31  Jim Meyering  <meyering@redhat.com>
48722
48723         * lib/strftime.h: Add comments describing the two added arguments.
48724
48725         remove duplicate #include directives
48726         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48727         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48728
48729 2008-08-31  Bruno Haible  <bruno@clisp.org>
48730
48731         New module 'sigpipe-die'.
48732         * modules/sigpipe-die: New file.
48733         * lib/sigpipe-die.h: New file.
48734         * lib/sigpipe-die.c: New file.
48735         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48736
48737 2008-08-31  Bruno Haible  <bruno@clisp.org>
48738
48739         Don't override previously installed signal handlers.
48740         * lib/fatal-signal.c (saved_sigactions): New variable.
48741         (uninstall_handlers): Reset the signal to the saved handler, not
48742         to SIG_DFL (except when ignored).
48743         (install_handlers): Save the previous handlers.
48744
48745 2008-08-30  Bruno Haible  <bruno@clisp.org>
48746
48747         * gnulib-tool (func_reset_sigpipe): New function.
48748         (func_get_automake_snippet, func_modules_transitive_closure,
48749         func_import): Invoke it before a join command that reads from stdin,
48750         to avoid "echo: write error: Broken pipe" error messages on stderr.
48751         Reported by Sam Steingold <sds@gnu.org>.
48752
48753 2008-08-30  Bruno Haible  <bruno@clisp.org>
48754
48755         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48756         Code copied from m4/open.m4.
48757         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48758         access and the filename ends in a slash. Code copied from lib/open.c.
48759         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48760         * tests/test-fopen.c (main): Check against bug with trailing slash.
48761
48762 2008-08-29  Bruno Haible  <bruno@clisp.org>
48763
48764         Avoid some "gcc -pedantic" warnings.
48765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48766         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48767         * lib/dirent.in.h: Likewise.
48768         * lib/fcntl.in.h: Likewise.
48769         * lib/float.in.h: Likewise.
48770         * lib/iconv.in.h: Likewise.
48771         * lib/inttypes.in.h: Likewise.
48772         * lib/locale.in.h: Likewise.
48773         * lib/math.in.h: Likewise.
48774         * lib/netinet_in.in.h: Likewise.
48775         * lib/search.in.h: Likewise.
48776         * lib/signal.in.h: Likewise.
48777         * lib/stdarg.in.h: Likewise.
48778         * lib/stdint.in.h: Likewise.
48779         * lib/stdio.in.h: Likewise.
48780         * lib/stdlib.in.h: Likewise.
48781         * lib/string.in.h: Likewise.
48782         * lib/strings.in.h: Likewise.
48783         * lib/sys_select.in.h: Likewise.
48784         * lib/sys_socket.in.h: Likewise.
48785         * lib/sys_stat.in.h: Likewise.
48786         * lib/sys_time.in.h: Likewise.
48787         * lib/sysexits.in.h: Likewise.
48788         * lib/time.in.h: Likewise.
48789         * lib/unistd.in.h: Likewise.
48790         * lib/wchar.in.h: Likewise.
48791         * lib/wctype.in.h: Likewise.
48792         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48793         * modules/fchdir (Makefile.am): Likewise.
48794         * modules/fcntl (Makefile.am): Likewise.
48795         * modules/float (Makefile.am): Likewise.
48796         * modules/iconv_open (Makefile.am): Likewise.
48797         * modules/inttypes (Makefile.am): Likewise.
48798         * modules/locale (Makefile.am): Likewise.
48799         * modules/math (Makefile.am): Likewise.
48800         * modules/netinet_in (Makefile.am): Likewise.
48801         * modules/search (Makefile.am): Likewise.
48802         * modules/signal (Makefile.am): Likewise.
48803         * modules/stdarg (Makefile.am): Likewise.
48804         * modules/stdint (Makefile.am): Likewise.
48805         * modules/stdio (Makefile.am): Likewise.
48806         * modules/stdlib (Makefile.am): Likewise.
48807         * modules/string (Makefile.am): Likewise.
48808         * modules/strings (Makefile.am): Likewise.
48809         * modules/sys_select (Makefile.am): Likewise.
48810         * modules/sys_socket (Makefile.am): Likewise.
48811         * modules/sys_stat (Makefile.am): Likewise.
48812         * modules/sys_time (Makefile.am): Likewise.
48813         * modules/sysexits (Makefile.am): Likewise.
48814         * modules/time (Makefile.am): Likewise.
48815         * modules/unistd (Makefile.am): Likewise.
48816         * modules/wchar (Makefile.am): Likewise.
48817         * modules/wctype (Makefile.am): Likewise.
48818         Reported by Reuben Thomas <rrt@sc3d.org>.
48819
48820 2008-08-29  Bruno Haible  <bruno@clisp.org>
48821
48822         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48823         any more.
48824
48825 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48826
48827         * MODULES.html.sh (Misc): Add bitrotate.
48828
48829         * modules/bitrotate: New file.
48830
48831         * lib/bitrotate.h: New file.
48832
48833         * modules/bitrotate-tests: New file.
48834
48835         * tests/test-bitrotate.c: New file.
48836
48837         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48838         on the bitrotate module.
48839
48840         * lib/arctwo.c: Use new bitrotate module.
48841
48842 2008-08-29  Jim Meyering  <meyering@redhat.com>
48843
48844         bootstrap: merge changes from coreutils
48845         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48846         of copied files.  Remove a kludge, now that this is fixed.
48847         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48848         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48849         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48850
48851 2008-08-29  Bruno Haible  <bruno@clisp.org>
48852
48853         * MODULES.html.sh: Remove --cvs-urls option.
48854
48855 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48856
48857         maint.mk: adjust to file name change
48858         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48859
48860 2008-08-28  Jim Meyering  <meyering@redhat.com>
48861
48862         * modules/getndelim2 (License): Relicense to LGPLv2+.
48863         Approved by Richard Stallman for the version of 1995, and by
48864         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48865
48866 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48867
48868         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48869         dummy if one is not available.  Do not touch them if
48870         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48871         (getc_maybe_unlocked): New.
48872         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48873
48874 2008-08-26  Eric Blake  <ebb9@byu.net>
48875
48876         doc/INSTALL: resync from autoconf
48877         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48878         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48879         moving...
48880         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48881         * INSTALL: Regenerate.
48882         * INSTALL.ISO: New file.
48883         * INSTALL.UTF-8: Likewise.
48884
48885 2008-08-26  Jim Meyering  <meyering@redhat.com>
48886
48887         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48888         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48889         these definitions conditional, so that they may be overridden, too.
48890
48891 2008-08-26  Bruno Haible  <bruno@clisp.org>
48892
48893         Generate INSTALL file variants with prettier quotes.
48894         * doc/Makefile (INSTALL_PRELUDE): New macro.
48895         (INSTALL): Use it.
48896         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48897
48898 2008-08-26  Bruno Haible  <bruno@clisp.org>
48899
48900         Run makeinfo in an English locale.
48901         * doc/Makefile (MAKEINFO): New variable.
48902
48903 2008-08-26  Bruno Haible  <bruno@clisp.org>
48904
48905         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48906         Suggested by Eric Blake.
48907
48908 2008-08-25  Bruno Haible  <bruno@clisp.org>
48909
48910         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48911
48912 2008-08-25  Eric Blake  <ebb9@byu.net>
48913
48914         c-stack: test that stack overflow can be caught
48915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48916         that platform allows handling stack overflow; at least OS/2 EMX
48917         has sigaltstack, but crashes before transferring control to
48918         handler on stack overflow.
48919         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48920         check for HAVE_STACK_OVERFLOW_HANDLING.
48921         Reported by Elbert Pol.
48922
48923 2008-08-25  Bruno Haible  <bruno@clisp.org>
48924
48925         * doc/posix-functions/strftime.texi: Fix description of strftime
48926         module.
48927
48928 2008-08-24  Bruno Haible  <bruno@clisp.org>
48929
48930         * tests/uniwidth/test-uc_width2.c: New file.
48931         * tests/uniwidth/test-uc_width2.sh: New file.
48932         * modules/uniwidth/width-tests (Files): Add the new files.
48933         (TESTS): Add uniwidth/test-uc_width2.sh.
48934         (TESTS_ENVIRONMENT): New variable.
48935         (check_PROGRAMS): Add test-uc_width2.
48936         (test_uc_width2_SOURCES): New variable.
48937
48938         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48939         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48940         not 0x00AB.
48941         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48942
48943 2008-08-22  Eric Blake  <ebb9@byu.net>
48944
48945         test-lock, test-tls: mention why a test is skipped
48946         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48947         skipped.
48948         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48949
48950         count-one-bits: relax license
48951         * modules/count-one-bits (License): Relicense to LGPLv2+.
48952         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48953
48954 2008-08-22  Andreas Schwab  <schwab@suse.de>
48955
48956         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48957         Remove spurious space in assignment.
48958
48959 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48960
48961         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48962         Paul Eggert <eggert@CS.UCLA.EDU>.
48963
48964 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48965
48966         * modules/gettext: Add m4/threadlib.m4.
48967
48968 2008-08-19  Eric Blake  <ebb9@byu.net>
48969
48970         test-c-stack: fix compilation failure on FreeBSD 5.0
48971         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48972         headers before <sys/resource.h>.
48973         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48974         the bug.
48975         Reported by Nelson H. F. Beebe.
48976
48977         strverscmp: migrate from "strverscmp.h" to <string.h>
48978         * modules/string (Makefile.am): Add new hooks.
48979         * modules/strverscmp (Files): Remove strverscmp.h.
48980         (Depends-on): Add string.
48981         (configure.ac): Add indicator.
48982         (Include): Mention new header.
48983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48984         defaults.
48985         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48986         results.
48987         * lib/strverscmp.h: Delete.
48988         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48989         * tests/test-strverscmp.c (includes): Adjust client.
48990         * lib/check-version.c (includes): Likewise.
48991         * NEWS: Document the change.
48992
48993         strverscmp: add unit test
48994         * modules/strverscmp-tests: New file.
48995         * tests/test-strverscmp.c: Likewise.
48996
48997 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48998
48999         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49000         regarding Windows crypto stuff, from Mono.
49001
49002 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49003
49004         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49005         if present, for intel RND.  Return error on failures.
49006
49007 2008-08-18  Ben Pfaff  <blp@gnu.org>
49008
49009         gitlog-to-changelog: give better diagnostic for failed pipe-open
49010         * build-aux/gitlog-to-changelog: Improve error message: suggest
49011         that the version of Git may be too old.
49012
49013 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49014
49015         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49016         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49017
49018 2008-08-18  Bruno Haible  <bruno@clisp.org>
49019
49020         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49021         pthread_in_use().
49022
49023 2008-08-18  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/glthread/threadlib.c: Include <pthread.h>.
49026
49027 2008-08-18  Bruno Haible  <bruno@clisp.org>
49028
49029         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49030         glthread_recursive_lock_* macros.
49031         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49032         Fix syntax error.
49033
49034 2008-08-18  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/glthread/thread.c: Avoid forcing a context switch right after
49037         thread creation.
49038
49039 2008-08-17  Bruno Haible  <bruno@clisp.org>
49040
49041         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49042         * lib/glthread/thread.h: Provide Win32 specific implementation.
49043         * modules/thread (Files): Add lib/glthread/thread.c.
49044         (Depends-on): Add lock.
49045         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49046
49047 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49048
49049         New module 'yield'.
49050         * modules/yield: New file.
49051         * lib/glthread/yield.h: New file.
49052         * m4/yield.m4: New file.
49053         * MODULES.html.sh (Multithreading): Add yield.
49054
49055 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49056
49057         New module 'thread'.
49058         * modules/thread: New file.
49059         * lib/glthread/thread.h: New file.
49060         * m4/thread.m4: New file.
49061         * MODULES.html.sh (Multithreading): Add thread.
49062
49063 2008-08-17  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/glthread/lock.h: Include <stdlib.h> always.
49066         * lib/glthread/tls.h: Likewise.
49067         * lib/glthread/cond.h: Likewise.
49068
49069 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49070
49071         New module 'cond'.
49072         * modules/cond: New file.
49073         * lib/glthread/cond.h: New file.
49074         * lib/glthread/cond.c: New file.
49075         * m4/cond.m4: New file.
49076         * MODULES.html.sh (Multithreading): Add cond.
49077
49078 2008-08-16  Eric Blake  <ebb9@byu.net>
49079
49080         c-stack: fix regression on Irix 5.3 from 2008-06-21
49081         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49082         sa_sigaction...
49083         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49084         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49085         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49086         * modules/signal (Makefile.am): Use the value.
49087         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49088         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49089         * doc/posix-headers/signal.texi (signal.h): Document this
49090         portability issue.
49091         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49092         Reported by Tom G. Christensen.
49093
49094 2008-08-17  Bruno Haible  <bruno@clisp.org>
49095
49096         New module 'threadlib'.
49097         * modules/threadlib: New file.
49098         * lib/glthread/threadlib.c: New file, extracted from
49099         lib/glthread/lock.c.
49100         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49101         functions.
49102         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49103         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49104         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49105         macros.
49106         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49107         (gl_DISABLE_THREADS): Remove macro.
49108         * modules/lock (Files): Remove build-aux/config.rpath.
49109         (Depends-on): Remove havelib. Add threadlib.
49110         (configure.ac-early): Remove section.
49111         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49112         * modules/tls (Depends-on): Remove lock. Add threadlib.
49113         (Link): New section, copied from threadlib.
49114         * MODULES.html.sh (Multithreading): Add threadlib.
49115
49116 2008-08-14  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49119         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49120         glthread_rwlock_unlock, glthread_rwlock_destroy,
49121         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49122         glthread_recursive_lock_destroy): Define as macros always.
49123         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49124         glthread_lock_lock.
49125         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49126         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49127         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49128         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49129         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49130         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49131         (glthread_recursive_lock_lock_func): Renamed from
49132         glthread_recursive_lock_lock.
49133         (glthread_recursive_lock_unlock_func): Renamed from
49134         glthread_recursive_lock_unlock.
49135         (glthread_recursive_lock_destroy_func): Renamed from
49136         glthread_recursive_lock_destroy.
49137
49138 2008-08-14  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/glthread/lock.h: Renamed from lib/lock.h.
49141         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49142         * lib/glthread/tls.h: Renamed from lib/tls.h.
49143         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49144         * lib/fstrcmp.c: Update includes.
49145         * lib/strsignal.c: Update includes.
49146         * modules/lock (Files, Makefile.am): Update.
49147         (Include): Change to "glthread/lock.h".
49148         * modules/tls (Files, Makefile.am): Update.
49149         (Include): Change to "glthread/tls.h".
49150         * tests/test-lock.c: Update includes.
49151         * tests/test-tls.c: Update includes.
49152         * NEWS: Mention the renamed header files.
49153
49154 2008-08-11  Jim Meyering  <meyering@redhat.com>
49155
49156         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49157
49158 2008-08-11  Eric Blake  <ebb9@byu.net>
49159
49160         test-c-stack: avoid C99-ism
49161         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49162         before statement.
49163         Reported by Alain Guibert.
49164
49165 2008-08-10  Jim Meyering  <meyering@redhat.com>
49166
49167         ensure that return value of uinttostr et al are not ignored
49168         * lib/inttostr.h (__GNUC_PREREQ): Define.
49169         (__attribute_warn_unused_result__): Define.
49170         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49171
49172 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49173
49174         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49175         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49176
49177 2008-08-07  Jim Meyering  <meyering@redhat.com>
49178
49179         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49180
49181         * modules/mkstemp (License): Relicense under LGPLv2+.
49182         * modules/tempname (License): Likewise.
49183
49184 2008-08-06  Bruno Haible  <bruno@clisp.org>
49185
49186         * lib/poll.c (poll): Further micro-optimization.
49187
49188 2008-08-06  Jim Meyering  <meyering@redhat.com>
49189
49190         inet_pton.c: use locale-independent tolower
49191         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49192         (inet_pton6): Use c_tolower rather than tolower.
49193         * modules/inet_pton (Depends-on): Add c-ctype.
49194
49195 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49196
49197         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49198         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49199
49200 2008-08-06  Jim Meyering  <meyering@redhat.com>
49201
49202         * modules/inet_pton (License): Relicense under LGPLv2+.
49203
49204 2008-08-03  Bruno Haible  <bruno@clisp.org>
49205
49206         Additional non-aborting API for lock and tls.
49207         * lib/lock.h: Include <errno.h>.
49208         (glthread_lock_init): New macro/function.
49209         (gl_lock_init): Define as wrapper around glthread_lock_init.
49210         (glthread_lock_lock): New macro/function.
49211         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49212         (glthread_lock_unlock): New macro/function.
49213         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49214         (glthread_lock_destroy): New macro/function.
49215         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49216         (glthread_rwlock_init): New macro/function.
49217         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49218         (glthread_rwlock_rdlock): New macro/function.
49219         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49220         (glthread_rwlock_wrlock): New macro/function.
49221         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49222         (glthread_rwlock_unlock): New macro/function.
49223         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49224         (glthread_rwlock_destroy): New macro/function.
49225         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49226         (glthread_recursive_lock_init): New macro/function.
49227         (gl_recursive_lock_init): Define as wrapper around
49228         glthread_recursive_lock_init.
49229         (glthread_recursive_lock_lock): New macro/function.
49230         (gl_recursive_lock_lock): Define as wrapper around
49231         glthread_recursive_lock_lock.
49232         (glthread_recursive_lock_unlock): New macro/function.
49233         (gl_recursive_lock_unlock): Define as wrapper around
49234         glthread_recursive_lock_unlock.
49235         (glthread_recursive_lock_destroy): New macro/function.
49236         (gl_recursive_lock_destroy): Define as wrapper around
49237         glthread_recursive_lock_destroy.
49238         (glthread_once): New macro/function.
49239         (gl_once): Define as wrapper around glthread_once.
49240         Update function declarations.
49241         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49242         glthread_rwlock_init. Return error code.
49243         (glthread_rwlock_rdlock_multithreaded): Renamed from
49244         glthread_rwlock_rdlock. Return error code.
49245         (glthread_rwlock_wrlock_multithreaded): Renamed from
49246         glthread_rwlock_wrlock. Return error code.
49247         (glthread_rwlock_unlock_multithreaded): Renamed from
49248         glthread_rwlock_unlock. Return error code.
49249         (glthread_rwlock_destroy_multithreaded): Renamed from
49250         glthread_rwlock_destroy. Return error code.
49251         (glthread_recursive_lock_init_multithreaded): Renamed from
49252         glthread_recursive_lock_init. Return error code.
49253         (glthread_recursive_lock_lock_multithreaded): Renamed from
49254         glthread_recursive_lock_lock. Return error code.
49255         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49256         glthread_recursive_lock_unlock. Return error code.
49257         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49258         glthread_recursive_lock_destroy. Return error code.
49259         (glthread_once_call): Make static.
49260         (glthread_once_multithreaded): Renamed from glthread_once.
49261         * lib/tls.h: Include <errno.h>.
49262         (glthread_tls_key_init): New macro/function.
49263         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49264         (glthread_tls_set): New macro/function.
49265         (gl_tls_set): Define as wrapper around glthread_tls_set.
49266         (glthread_tls_key_destroy): New macro/function.
49267         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49268         Update function declarations.
49269         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49270         glthread_tls_get.
49271         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49272
49273 2008-08-04  Eric Blake  <ebb9@byu.net>
49274
49275         gnumakefile: use space, not TAB, outside of targets
49276         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49277
49278 2008-08-02  Jim Meyering  <meyering@redhat.com>
49279
49280         getdate.y: avoid locale-dependent date parsing failure
49281         In Turkish locales, getdate would fail to recognize keywords
49282         containing a lowercase "i".  The solution is not to rely on
49283         locale-sensitive case-conversion.
49284         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49285         (lookup_word): Use c_toupper in place of toupper.
49286         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49287         Reported by Vefa Bicakci <bicave@superonline.com> in
49288         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49289         * modules/getdate (Depends-on): Add c-ctype.
49290
49291 2008-08-02  Bruno Haible  <bruno@clisp.org>
49292
49293         * gnulib-tool (func_import): When updating or creating a .gitignore
49294         file, prepend each added line with a slash, and ignore leading slashes
49295         from the existing lines.
49296         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49297
49298 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49299
49300         Portability fix for GNU make 3.79.1.
49301         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49302         versions do not understand.
49303
49304 2008-08-01  Bruno Haible  <bruno@clisp.org>
49305
49306         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49307         * tests/test-isnanf.h (zero): New variable.
49308         (main): Avoid literal -0.0f.
49309         * tests/test-isnand.h (zero): New variable.
49310         (main): Avoid literal -0.0.
49311         * tests/test-isnanl.h (zero): New variable.
49312         (main): Avoid literal -0.0L.
49313         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49314         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49315         -0.0, -0.0L.
49316         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49317         (test_signbitd): Avoid literal -0.0.
49318         (test_signbitl): Avoid literal -0.0L.
49319         * tests/test-ceilf1.c (zero): New variable.
49320         (main): Avoid literal -0.0f.
49321         * tests/test-ceill.c (zero): New variable.
49322         (main): Avoid literal -0.0L.
49323         * tests/test-floorf1.c (zero): New variable.
49324         (main): Avoid literal -0.0f.
49325         * tests/test-floorl.c (zero): New variable.
49326         (main): Avoid literal -0.0L.
49327         * tests/test-roundf1.c (zero): New variable.
49328         (main): Avoid literal -0.0f.
49329         * tests/test-round1.c (zero): New variable.
49330         (main): Avoid literal -0.0.
49331         * tests/test-roundl.c (zero): New variable.
49332         (main): Avoid literal -0.0L.
49333         * tests/test-truncf1.c (zero): New variable.
49334         (main): Avoid literal -0.0f.
49335         * tests/test-trunc1.c (zero): New variable.
49336         (main): Avoid literal -0.0.
49337         * tests/test-truncl.c (zero): New variable.
49338         (main): Avoid literal -0.0L.
49339         * tests/test-frexp.c (zero): New variable.
49340         (main): Avoid literal -0.0.
49341         * tests/test-frexpl.c (zero): New variable.
49342         (main): Avoid literal -0.0L.
49343         * tests/test-ldexpl.c (zero): New variable.
49344         (main): Avoid literal -0.0L.
49345         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49346         (zerod, zerol): New variables.
49347         (test_function): Avoid literals -0.0, -0.0L.
49348         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49349         (zerod, zerol): New variables.
49350         (test_function): Avoid literals -0.0, -0.0L.
49351         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49352         (zerod, zerol): New variables.
49353         (test_function): Avoid literals -0.0, -0.0L.
49354         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49355         (zerod, zerol): New variables.
49356         (test_function): Avoid literals -0.0, -0.0L.
49357         * tests/test-strtod.c (zero): New variable.
49358         (main): Avoid literal -0.0.
49359         Reported by Jonathan C. Patschke <jp@centtech.com>.
49360
49361 2008-07-31  Jim Meyering  <meyering@redhat.com>
49362
49363         sha256.h: correct definition of SHA224_DIGEST_SIZE
49364         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49365         Reported by Paulie Pena IV <paulie4@gmail.com>.
49366         Define as 224 / 8, rather than as a literal.
49367         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49368         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49369         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49370
49371 2008-07-31  Bruno Haible  <bruno@clisp.org>
49372
49373         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49374         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49375         Reported by Jonathan Patschke <jp@centtech.com>.
49376
49377 2008-07-31  Bruno Haible  <bruno@clisp.org>
49378
49379         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49380         Reported by Paolo Bonzini <bonzini@gnu.org>.
49381
49382 2008-07-30  Eric Blake  <ebb9@byu.net>
49383
49384         test-strtod: allow compilation without -lm
49385         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49386         Reported by Dennis Clarke <blastwave@gmail.com>.
49387
49388 2008-07-28  Jim Meyering  <meyering@redhat.com>
49389
49390         bootstrap: work also when there are no .po files in po/
49391         * build-aux/bootstrap (update_po_files): Complete the change
49392         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49393
49394 2008-07-27  Jim Meyering  <meyering@redhat.com>
49395
49396         * users.txt: Add zile.
49397
49398 2008-07-26  Ben Pfaff  <blp@gnu.org>
49399
49400         Add missing dependencies on new m4/exponent[fdl].m4 files.
49401         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49402         * modules/isnand-nolibm: Add m4/exponentd.m4.
49403         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49404         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49405         m4/isnan[fdl].m4, because the macros actually used moved.
49406         Reported by Jim Meyering.
49407
49408 2008-07-14  Ben Pfaff  <blp@gnu.org>
49409
49410         Add isinf module.
49411         * lib/isinf.c: New file.
49412         * lib/math.in.h: Define isinf macro if we have decided to replace
49413         it.
49414         * m4/isinf.m4: New file.
49415         * m4/math_h.m4: Initialize and substitute variables for isinf
49416         module.
49417         * modules/isinf: New file.
49418         * modules/isinf-tests: New file.
49419         * modules/math: Add substitutions for new module.
49420         * tests/test-isinf.c: New file.
49421         * doc/posix-functions/isinf.texi: Mention new module.
49422         * MODULES.html.sh: Mention new module.
49423
49424 2008-07-14  Ben Pfaff  <blp@gnu.org>
49425
49426         Factor out some macros for use by additional modules.
49427         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49428         exponentf.m4.
49429         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49430         exponentd.m4.
49431         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49432         file exponentl.m4.
49433         * m4/exponentf.m4: New file.
49434         * m4/exponentd.m4: New file.
49435         * m4/exponentl.m4: New file.
49436         * modules/isnanf: Use new file m4/exponentf.m4.
49437         * modules/isnand: Use new file m4/exponentd.m4.
49438         * modules/isnanl: Use new file m4/exponentl.m4.
49439
49440 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49441
49442         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49443         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49444         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49445         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49446
49447         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49448         readlink on platforms without PATH_MAX.
49449
49450 2008-07-21  Eric Blake  <ebb9@byu.net>
49451
49452         Warn, not fail, on stale version.
49453         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49454
49455         Don't allow installation with stale devel version number.
49456         * top/GNUmakefile (_is-install-target): New macro.
49457         (_curr-ver): Forbid installation with stale version number.
49458
49459 2008-07-20  Bruno Haible  <bruno@clisp.org>
49460
49461         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49462         TESTS_ENVIRONMENT.
49463         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49464
49465 2008-07-20  Bruno Haible  <bruno@clisp.org>
49466
49467         * lib/c-stack.h (c_stack_action): Add documentation.
49468         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49469
49470 2008-07-20  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49473         * modules/readlink (License): Likewise.
49474
49475 2008-07-17  Eric Blake  <ebb9@byu.net>
49476
49477         * modules/c-stack (Link): Fix typo.
49478
49479         Make c-stack use libsigsegv, when available.
49480         * modules/c-stack (Depends-on): Add libsigsegv.
49481         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49482         needed.
49483         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49484         (segv_handler, overflow_handler, c_stack_action)
49485         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49486         implementation when libsigsegv is available, but only when using
49487         the library is necessary.
49488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49489         comment, explaining why XSI check fails on Linux.
49490         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49491         * tests/test-c-stack2.sh: Tweak skip message.
49492         * NEWS: Document new link-time requirements.
49493
49494 2008-07-16  Eric Blake  <ebb9@byu.net>
49495
49496         c-stack: Expose false positives when not using libsigsegv.
49497         * modules/c-stack-tests (Files): Expand test.
49498         * tests/test-c-stack.c (main): Add means to conditionally trigger
49499         non-overflow SIGSEGV.
49500         * tests/test-c-stack2.sh: New file.
49501
49502 2008-07-14  Bruno Haible  <bruno@clisp.org>
49503
49504         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49505         Reported by Eric Blake.
49506
49507 2008-07-14  Sam Steingold  <sds@gnu.org>
49508             Bruno Haible  <bruno@clisp.org>
49509
49510         New module libsigsegv.
49511         * modules/libsigsegv: New file.
49512         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49513         modifications.
49514         * MODULES.html.sh (Signal handling): New section.
49515
49516 2008-07-14  Bruno Haible  <bruno@clisp.org>
49517
49518         * modules/unictype/ctype-* (Description): Add the word "function".
49519         Improves the resulting doc in MODULES.html.
49520
49521 2008-07-12  Ben Pfaff  <blp@gnu.org>
49522
49523         Add longlong module.
49524         * modules/longlong: New file.
49525
49526 2008-07-12  Bruno Haible  <bruno@clisp.org>
49527
49528         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49529         to empty.
49530
49531 2008-07-10  Ben Pfaff  <blp@gnu.org>
49532
49533         Add isnan module.
49534         * doc/posix-functions/isnan.texi: Mention new module.
49535         * lib/math.in.h: Define isnan macro if we have decided to replace
49536         it.
49537         * m4/isnan.m4: New file.
49538         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49539         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49540         also.
49541         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49542         redundancy.
49543         * m4/math_h.m4: Initialize and substitute variables for isnan
49544         module.
49545         * modules/isnan: New file.
49546         * modules/isnan-tests: New file.
49547         * modules/math: Add substitutions for new module.
49548         * tests/test-isnan.c: New file.
49549         * MODULES.html.sh: Mention new module.
49550
49551 2008-07-10  Ben Pfaff  <blp@gnu.org>
49552
49553         Add isnanf module.
49554         * lib/isnanf.m4: New file.
49555         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49556         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49557         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49558         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49559         * modules/isnanf: New file.
49560         * modules/isnanf-tests: New file.
49561         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49562         files.
49563         * tests/test-isnanf-nolibm.c: factored most of its contents into
49564         new file tests/test-isnanf.h.
49565         * tests/test-isnanf.h: New file.
49566         * tests/test-isnanf.c: New file.
49567         * MODULES.html.sh: Mention new module.
49568         * doc/glibc-functions/isnanf.texi: Mention new module.
49569
49570 2008-07-10  Ben Pfaff  <blp@gnu.org>
49571
49572         Add isnand module.
49573         * lib/isnand.h: New file.
49574         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49575         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49576         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49577         functionality also.
49578         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49579         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49580         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49581         * modules/isnand: New file.
49582         * modules/isnand-tests: New file.
49583         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49584         files.
49585         * tests/test-isnand-nolibm.c: factored most of its contents into
49586         new file tests/test-isnand.h.
49587         * tests/test-isnand.h: New file.
49588         * tests/test-isnand.c: New file.
49589         * MODULES.html.sh: Mention new module.
49590
49591 2008-07-10  Ben Pfaff  <blp@gnu.org>
49592
49593         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49594         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49595         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49596         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49597         * modules/isnanf-nolibm: Update references to renamed files.
49598         * modules/isnand-nolibm: Likewise.
49599         * modules/isnanf-nolibm-tests: Likewise.
49600         * modules/isnand-nolibm-tests: Likewise.
49601         * lib/frexp.c: Likewise.
49602         * lib/isfinite.c: Likewise.
49603         * lib/signbitd.c: Likewise.
49604         * lib/signbitf.c: Likewise.
49605         * lib/vasnprintf.c: Likewise.
49606         * tests/test-ceilf1.c: Likewise.
49607         * tests/test-ceilf2.c: Likewise.
49608         * tests/test-floorf1.c: Likewise.
49609         * tests/test-floorf2.c: Likewise.
49610         * tests/test-frexp.c: Likewise.
49611         * tests/test-round1.c: Likewise.
49612         * tests/test-round2.c: Likewise.
49613         * tests/test-roundf1.c: Likewise.
49614         * tests/test-strtod.c: Likewise.
49615         * tests/test-trunc1.c: Likewise.
49616         * tests/test-trunc2.c: Likewise.
49617         * tests/test-truncf1.c: Likewise.
49618         * tests/test-truncf2.c: Likewise.
49619         * NEWS: Mention the renamed header files.
49620
49621 2008-07-11  Jim Meyering  <meyering@redhat.com>
49622
49623         vc-list-files: make the last-resort awk code more portable
49624         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49625         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49626         does not support it.
49627
49628 2008-07-10  Eric Blake  <ebb9@byu.net>
49629
49630         Work with tar's bootstrap.
49631         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49632         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49633         an m4 comment.
49634
49635 2008-07-09  Jim Meyering  <meyering@redhat.com>
49636
49637         posix-shell.m4: fix typo that made this test malfunction
49638         * m4/posix-shell.m4: Remove capitalization in variable name.
49639
49640 2008-07-08  Bruno Haible  <bruno@clisp.org>
49641
49642         * m4/onceonly.m4: Update comments.
49643         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49644
49645 2008-07-04  Jim Meyering  <meyering@redhat.com>
49646
49647         * users.txt: Add vc-dwim.
49648         (bison, coreutils): Use the gitweb URL.
49649
49650 2008-07-03  Jim Meyering  <meyering@redhat.com>
49651
49652         * users.txt: Add libffcall.  From Sam Steingold.
49653
49654 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49655
49656         getdate.y: do not ignore TZ with relative day, month or year offset
49657         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49658         relative-date-handling, since otherwise, the latter would clobber the
49659         sole output (an updated Start value) of the tz-handling block.
49660         * tests/test-getdate.c: Tests for the fix
49661
49662 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49663
49664         Recognize 'foo_LIBRARIES += libgnu.a'.
49665         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49666         makefile snippet has already specified an installation location,
49667         also using '+='.
49668
49669 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49670
49671         getdate.y: factor out common actions
49672         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49673         Use them in place of open-coded actions.
49674
49675 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49676
49677         Add self-test for getdate module.
49678         * modules/getdate-tests: New file.
49679         * tests/test-getdate.c: New file.
49680
49681 2008-06-29  Bruno Haible  <bruno@clisp.org>
49682
49683         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49684         .gitignore.
49685         Reported by Sylvain Beucler <beuc@beuc.net>.
49686
49687 2008-06-29  Bruno Haible  <bruno@clisp.org>
49688
49689         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49690         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49691
49692 2008-06-29  Bruno Haible  <bruno@clisp.org>
49693
49694         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49695         EXTRA_DIST.
49696         Reported by Sylvain Beucler <beuc@beuc.net>.
49697
49698 2008-06-26  Jim Meyering  <meyering@redhat.com>
49699
49700         make several modules depend on the "open" module
49701         This provides slightly increased consistency when opening-for-write
49702         the name of a non-directory spelled with a trailing slash.
49703         * modules/chdir-safer: Likewise.
49704         * modules/chown: Likewise.
49705         * modules/clean-temp: Likewise.
49706         * modules/copy-file: Likewise.
49707         * modules/fchdir: Likewise.
49708         * modules/fcntl-safer: Likewise.
49709         * modules/pipe: Likewise.
49710         * modules/utime: Likewise.
49711         Prompted by Eric Blake and Bruno Haible.
49712
49713 2008-06-24  Andreas Schwab  <schwab@suse.de>
49714
49715         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49716         literals can be used as initializers for global variables.
49717
49718 2008-06-23  Eric Blake  <ebb9@byu.net>
49719
49720         Make gnulib-cache.m4 easier to diff.
49721         * gnulib-tool (func_import): Allow newlines when reading cached
49722         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49723
49724 2008-06-23  Bruno Haible  <bruno@clisp.org>
49725
49726         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49727         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49728         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49729         m4/signalblocking.m4.
49730         (gl_PREREQ_SIGACTION): Don't invoke it.
49731         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49732         gl_PREREQ_SIG_HANDLER_H.
49733         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49734         Don't check for sigaction here.
49735
49736 2008-06-23  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49739         (install_handlers): Don't set the SA_RESETHAND flag.
49740
49741 2008-06-23  Bruno Haible  <bruno@clisp.org>
49742
49743         * m4/sigaction.m4: Comment fixes.
49744         * lib/signal.in.h: Likewise.
49745
49746 2008-06-23  Eric Blake  <ebb9@byu.net>
49747
49748         Fix typo.
49749         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49750
49751         Avoid SA_ namespace.
49752         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49753         Reported by Ralf Wildenhues.
49754
49755         Avoid test failure due to SA_RESTORER.
49756         * tests/test-sigaction.c (SA_MASK): New macro.
49757         (main): Avoid failing due to extension flags being set.
49758         Reported by Jim Meyering.
49759
49760         Revert use of sig-handler.h in sigprocmask.c.
49761         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49762         it requires the existence of struct sigaction.
49763         * lib/sigprocmask.c (handler_t): Restore typedef.
49764         (rpl_signal, old_handlers): Use local type.
49765
49766 2008-06-22  Bruno Haible  <bruno@clisp.org>
49767
49768         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49769         conditionally.
49770         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49771
49772 2008-06-22  Bruno Haible  <bruno@clisp.org>
49773
49774         * doc/posix-functions/siginterrupt.texi: Move note.
49775
49776         * lib/signal.in.h (SA_RESTART): New macro.
49777         * lib/sigaction.c: Update comment.
49778
49779         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49780
49781         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49782         (gl_PREREQ_SIGPROCMASK): Invoke it.
49783         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49784
49785         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49786
49787         * lib/sigprocmask.c: Update a comment.
49788
49789 2008-06-21  Eric Blake  <ebb9@byu.net>
49790
49791         Use sigaction module rather than signal().
49792         * modules/c-stack (Depends-on): Add sigaction.
49793         * modules/fatal-signal (Depends-on): Likewise.
49794         * modules/nanosleep (Depends-on): Likewise.
49795         * modules/sigprocmask (Files): Add sig-handler.h.
49796         * modules/sigaction (Files): Likewise.
49797         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49798         Eggert.
49799         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49800         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49801         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49802         (init_fatal_signals): Likewise.
49803         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49804         (siginterrupt): Delete fallback.
49805         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49806         instead.
49807         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49808         siginterrupt.
49809
49810         New module sigaction, for mingw.
49811         * modules/sigaction: New module...
49812         * modules/sigaction-tests: ...and its test.
49813         * m4/sigaction.m4: New file.
49814         * lib/sigaction.c: Likewise.
49815         * tests/test-sigaction.c: Likewise.
49816         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49817         * modules/signal (Makefile.am): Likewise.
49818         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49819         needed.
49820         * doc/posix-headers/signal.texi (signal.h): Mention provided
49821         types.
49822         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49823         that sigaction is preferable.
49824         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49825         module.
49826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49827         sigaction.
49828
49829         Improve robustness of sigprocmask by overriding signal.
49830         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49831         is in use.
49832         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49833         (SIGKILL, SIGSTOP): Provide fallbacks.
49834         (rpl_signal): Implement.
49835         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49836         signal can be called inside handlers.
49837
49838         Fix nanosleep module on mingw.
49839         * modules/nanosleep (Depends-on): Add sys_select.
49840         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49841
49842         Fix licensing of sigprocmask.
49843         * modules/raise (License): Relicense as LGPL.
49844
49845 2008-06-21  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49848         result if it contains question marks.
49849         Reported by Michael Geng <linux@michaelgeng.de>.
49850
49851 2008-06-19  Bruno Haible  <bruno@clisp.org>
49852
49853         Fix CVS-ism.
49854         * doc/gnulib.texi: Include updated-stamp.texi.
49855         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49856         (updated-stamp.texi): New rule.
49857         (gnulib.info): Depend on it.
49858         * doc/.gitignore: Add updated-stamp.texi.
49859         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49860
49861 2008-06-19  Bruno Haible  <bruno@clisp.org>
49862
49863         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49864         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49865
49866 2008-06-19  Eric Blake  <ebb9@byu.net>
49867
49868         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49869         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49870         Reported by Stepan Kasal.
49871
49872 2008-06-18  Bruno Haible  <bruno@clisp.org>
49873
49874         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49875         Reported by Eric Blake.
49876
49877 2008-06-18  Eric Blake  <ebb9@byu.net>
49878
49879         Work around cygwin 1.5.25 strsignal bug.
49880         * tests/test-strsignal.c: Allow for const char *.
49881         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49882
49883 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49884
49885         * users.txt: Update URL to article and add author/date
49886         information.
49887
49888 2008-06-17  Bruno Haible  <bruno@clisp.org>
49889
49890         New macro gl_DISABLE_THREADS.
49891         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49892         if the user did not pass --enable-threads or --disable-threads option.
49893         (gl_DISABLE_THREADS): New macro.
49894         Reported by Eric Blake <ebb9@byu.net>.
49895
49896 2008-06-17  Bruno Haible  <bruno@clisp.org>
49897
49898         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49899         when the macro ignores it.
49900         Based on a patch by Eric Blake <ebb9@byu.net>.
49901
49902 2008-06-17  Bruno Haible  <bruno@clisp.org>
49903
49904         * modules/tls (License): Change to LGPLv2+.
49905         Reported by Eric Blake.
49906
49907 2008-06-17  Eric Blake  <ebb9@byu.net>
49908
49909         Simplify c-stack prerequisites.
49910         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49912         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49913         check.
49914         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49915         <sys/resource.h>.
49916
49917         Move c-stack test into testsuite.
49918         * modules/c-stack-tests: New file.
49919         * lib/c-stack.c [DEBUG]: Move test program...
49920         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49921         fail test if sigaltstack is lacking.
49922         * tests/test-c-stack.sh: New driver file.
49923
49924 2008-06-16  Eric Blake  <ebb9@byu.net>
49925
49926         Use raise module consistently.
49927         * modules/fatal-signal (Depends-on): Add raise.
49928         * modules/sigprocmask (Depends-on): Likewise.
49929         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49930         * lib/sigprocmask.c (sigprocmask): Likewise.
49931         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49932         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49933
49934         Fix compliance bug in sigpending.
49935         * lib/sigprocmask.c (sigpending): Return pending array via
49936         parameter, not return value.
49937
49938 2008-06-14  Eric Blake  <ebb9@byu.net>
49939
49940         Improve obstack-printf test code.
49941         * tests/test-obstack-printf.c (test_function): Fix comment, and
49942         simplify usage of obstack_* in macros.  Add a test for coverage.
49943         Reported by Bruno Haible.
49944
49945 2008-06-14  Bruno Haible  <bruno@clisp.org>
49946
49947         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49948         array size as a constant, not as a const variable.
49949         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49950         AC_USE_SYSTEM_EXTENSIONS.
49951         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49952         Test whether the obstack_printf function actually exists.
49953         * modules/obstack-printf (Depends-on): Add extensions.
49954         (Include): Remove obstack.h.
49955         * modules/obstack-printf-posix (Depends-on): Add extensions.
49956         (Include): Remove obstack.h.
49957
49958 2008-06-13  Eric Blake  <ebb9@byu.net>
49959
49960         Add obstack-printf and obstack-printf-posix modules.
49961         * modules/obstack-printf: New file.
49962         * modules/obstack-printf-posix: Likewise.
49963         * MODULES.html.sh (Misc): Mention them.
49964         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49965         Likewise.
49966         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49967         Likewise.
49968         * modules/stdio (Makefile.am): Accomodate new modules.
49969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49970         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49971         Declare.
49972         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49973         functions.
49974         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49975         (gl_REPLACE_OBSTACK_PRINTF): New macros
49976         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49977         * tests/test-obstack-printf.c: New file.
49978         * modules/obstack-printf-tests: Likewise.
49979         * modules/obstack-printf-posix-tests: Likewise.
49980
49981 2008-06-11  Bruno Haible  <bruno@clisp.org>
49982
49983         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49984         * lib/open.c: Include errno.h.
49985         (open): Fail when attempting to write to a file that has a trailing
49986         slash.
49987         * tests/test-open.c (main): Test against trailing slash bug.
49988         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49989
49990 2008-06-10  Bruno Haible  <bruno@clisp.org>
49991
49992         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49993         for $? to work inside the trap command, with various /bin/sh-s.
49994         * tests/test-vc-list-files-cvs.sh: Likewise.
49995
49996 2008-06-10  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/acl-internal.h: Don't include gettext.h here.
49999         * lib/set-mode-acl.c: Include gettext.h here.
50000         * lib/copy-acl.c: Likewise.
50001
50002 2008-06-10  Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50005         * lib/wait-process.c (wait_subprocess): Likewise.
50006         * lib/execute.h (execute): Add termsigp argument.
50007         * lib/execute.c (execute): Likewise.
50008         * lib/csharpcomp.c (compile_csharp_using_pnet,
50009         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50010         * lib/csharpexec.c (execute_csharp_using_pnet,
50011         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50012         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50013         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50014         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50015         is_jikes_present): Update.
50016         * lib/javaexec.c (execute_java_class): Update.
50017         * lib/javaversion.c (execute_and_read_line): Update.
50018         * NEWS: Document the changes.
50019         Reported by Eric Blake.
50020
50021 2008-06-10  Eric Blake  <ebb9@byu.net>
50022
50023         Add missing include.
50024         * tests/test-strstr.c (includes): Add <signal.h>.
50025         * tests/test-strcasestr.c (includes): Likewise.
50026         * tests/test-memmem.c (includes): Likewise.
50027
50028 2008-06-10  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/wait-process.c (wait_subprocess): Add an assertion.
50031
50032 2008-06-10  Bruno Haible  <bruno@clisp.org>
50033
50034         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50035
50036 2008-06-10  Bruno Haible  <bruno@clisp.org>
50037
50038         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50039         using alarm().
50040         * tests/test-strcasestr.c (main): Likewise.
50041         * tests/test-strstr.c (main): Likewise.
50042
50043 2008-06-09  Bruno Haible  <bruno@clisp.org>
50044
50045         Work around the Solaris 10 ACE ACLs ABI change.
50046         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50047         declare if ACL_NO_TRIVIAL is present.
50048         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50049         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50050         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50051         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50052         define if ACL_NO_TRIVIAL is present.
50053         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50054         and use the current ABI.
50055         (file_has_acl): Use same #if condition as elsewhere.
50056         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50057         in use, and use the current ABI.
50058         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50059         Reported by Jim Meyering.
50060
50061 2008-06-09  Eric Blake  <ebb9@byu.net>
50062
50063         Work around environments that (stupidly) ignore SIGALRM.
50064         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50065         before using alarm().
50066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50068         Reported by Ian Beckwith <ianb@erislabs.net>.
50069
50070         Produce autobuild blurb earlier in log.
50071         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50072
50073 2008-06-09  Jim Meyering  <meyering@redhat.com>
50074         and OndÅ™ej Vašík  <ovasik@redhat.com>
50075
50076         utimens.c: correct kernel bug work-around
50077         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50078         failure, not success, and the kernel bug we're trying to work
50079         around affects not just the utimensat call, but also the fallback
50080         futimens call.
50081         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50082         not success.
50083         [HAVE_FUTIMENS]: Use the same work-around, here.
50084
50085 2008-06-09  Jim Meyering  <meyering@redhat.com>
50086
50087         add more guards around definition of ACE_-related code
50088         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50089         ALLOW and ACE_OWNER are also defined.
50090
50091 2008-06-08  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/acl-internal.h: Add me as co-author.
50094         * lib/file-has-acl.c: Likewise.
50095         * lib/set-mode-acl.c: Likewise.
50096         * lib/copy-acl.c: Likewise.
50097
50098 2008-06-08  Bruno Haible  <bruno@clisp.org>
50099
50100         Add support for AIX ACLs.
50101         * lib/acl-internal.h (acl_nontrivial): New declaration.
50102         * lib/file-has-acl.c (acl_nontrivial): New function.
50103         (file_has_acl): Add implementation using AIX 4 ACL API.
50104         * lib/set-mode-acl.c (qset_acl): Likewise.
50105         * lib/copy-acl.c (qcopy_acl): Likewise.
50106
50107 2008-06-08  Bruno Haible  <bruno@clisp.org>
50108
50109         Add support for HP-UX ACLs.
50110         * lib/acl-internal.h (acl_nontrivial): New declaration.
50111         * lib/file-has-acl.c (acl_nontrivial): New function.
50112         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50113         * lib/set-mode-acl.c (qset_acl): Likewise.
50114         * lib/copy-acl.c (qcopy_acl): Likewise.
50115
50116 2008-06-08  Bruno Haible  <bruno@clisp.org>
50117
50118         Add support for Cygwin ACLs.
50119         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50120         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50121         the chmod_or_fchmod call.
50122         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50123
50124 2008-06-08  Bruno Haible  <bruno@clisp.org>
50125
50126         Fix bug with setuid modes in Solaris 10+ code.
50127         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50128         succeeded, when the mode contains some special bits.
50129
50130 2008-06-08  Bruno Haible  <bruno@clisp.org>
50131
50132         Add support for Solaris 7..10 ACLs.
50133         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50134         declarations.
50135         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50136         functions.
50137         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50138         * lib/set-mode-acl.c (qset_acl): Likewise.
50139         * lib/copy-acl.c (qcopy_acl): Likewise.
50140
50141 2008-06-08  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50144         declaration.
50145         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50146         (acl_access_nontrivial): Remove MacOS X case.
50147         (file_has_acl): Use acl_extended_nontrivial.
50148         * lib/copy-acl.c (qcopy_acl): Likewise.
50149
50150 2008-06-08  Bruno Haible  <bruno@clisp.org>
50151
50152         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50153
50154 2008-06-08  Jim Meyering  <meyering@redhat.com>
50155
50156         * modules/acl (Maintainer): Add Bruno Haible.
50157
50158 2008-06-07  Bruno Haible  <bruno@clisp.org>
50159
50160         Improve support for Tru64 ACLs.
50161         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50162         ACL on OSF/1.
50163
50164 2008-06-07  Bruno Haible  <bruno@clisp.org>
50165
50166         Add support for MacOS X ACLs.
50167         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50168         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50169         * lib/set-mode-acl.c (qset_acl): Likewise.
50170         * lib/copy-acl.c (qcopy_acl): Likewise.
50171
50172 2008-06-07  Bruno Haible  <bruno@clisp.org>
50173
50174         Fix memory leak introduced on 2008-05-22.
50175         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50176         use.
50177
50178 2008-06-07  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50181         to construct an empty ACL.
50182
50183 2008-06-07  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50186         precisely.
50187         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50188
50189 2008-06-07  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50192         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50193
50194 2008-06-07  Bruno Haible  <bruno@clisp.org>
50195
50196         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50197         regardless of POSIX.
50198         * doc/posix-functions/_longjmp.texi: Likewise.
50199         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50200         SystemV platform in this case.
50201
50202 2008-06-06  Eric Blake  <ebb9@byu.net>
50203
50204         Document abort() bugs.
50205         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50206
50207         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50208         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50209         sigsetjmp.
50210         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50211         siglongjmp, but only as a macro.
50212         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50213         is obsolete.
50214         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50215
50216         Tweak documentation to cover cygwin argz bugs.
50217         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50218         argz bug fix; no code change needed since no cygwin releases
50219         occurred between the last fix and the bug being tested.
50220         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50221         module and recently fixed cygwin bugs.
50222         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50223         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50224         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50225         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50226         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50227         Likewise.
50228         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50229         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50230         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50231         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50232         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50233         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50234         Likewise.
50235
50236         Avoid gcc warning on cygwin.
50237         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50238         !ACL_NO_TRIVIAL]: Avoid unused variable.
50239
50240 2008-06-05  Eric Blake  <ebb9@byu.net>
50241
50242         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50243         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50244         git-version-gen fails to come up with a version.
50245         Reported by Simon Josefsson.
50246
50247 2008-06-05  Jim Meyering  <meyering@redhat.com>
50248             Paul Eggert  <eggert@cs.ucla.edu>
50249
50250         utimens.c: work around a probable Linux kernel bug
50251         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50252         appears to be a kernel bug that causes utimensat to return 280
50253         instead of 0, indicating success.
50254
50255 2008-06-04  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50258         2008-06-01 commit.
50259
50260 2008-06-04  Bruno Haible  <bruno@clisp.org>
50261
50262         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50263         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50264         (file_has_acl): Use it. Save errno afterwards.
50265         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50266
50267 2008-06-03  Bruno Haible  <bruno@clisp.org>
50268
50269         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50270         draft code. Simplify #ifs.
50271         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50272         Put Solaris code after POSIX-draft code. Fix comments regarding
50273         Solaris 10, HP-UX. Mention Cygwin.
50274         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50275
50276 2008-06-03  Eric Blake  <ebb9@byu.net>
50277
50278         Provide fallback for older kernels.
50279         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50280         Provide runtime fallback if kernel lacks support.
50281         Reported by Mike Frysinger.
50282
50283 2008-06-02  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50286         it exists.
50287
50288 2008-06-02  Bruno Haible  <bruno@clisp.org>
50289
50290         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50291         * lib/copy-acl.c (qcopy_acl): Update comment.
50292
50293 2008-06-02  Bruno Haible  <bruno@clisp.org>
50294
50295         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50296         like ACL APIs.
50297
50298 2008-06-02  Bruno Haible  <bruno@clisp.org>
50299
50300         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50301         * tests/test-set-mode-acl.sh: Likewise.
50302         * tests/test-copy-acl.sh: Likewise.
50303         * tests/test-copy-file.sh: Likewise.
50304
50305 2008-06-02  Bruno Haible  <bruno@clisp.org>
50306
50307         * tests/test-file-has-acl.sh: Remove unused code.
50308
50309 2008-06-01  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50312         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50313         messages.
50314         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50315
50316 2008-06-01  Bruno Haible  <bruno@clisp.org>
50317
50318         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50319         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50320         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50321         APIs.
50322         * modules/acl-tests (configure.ac): Remove tests now contained in
50323         m4/acl.m4.
50324
50325 2008-06-02  Jim Meyering  <meyering@redhat.com>
50326
50327         announce-gen: use a better key-server host name
50328         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50329         it may be more consistently reliable.  Suggested by Werner Koch
50330         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50331
50332 2008-06-01  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50335         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50336
50337 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50338
50339         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50340
50341 2008-06-01  Bruno Haible  <bruno@clisp.org>
50342
50343         New ACL tests.
50344         * tests/test-file-has-acl.sh: New file.
50345         * tests/test-file-has-acl.c: New file.
50346         * tests/test-set-mode-acl.sh: New file.
50347         * tests/test-set-mode-acl.c: New file.
50348         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50349         * tests/test-copy-acl.c: New file.
50350         * modules/acl-tests: New file, based on modules/copy-file-tests.
50351         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50352         (Depends-on): Add acl-tests.
50353         (configure.ac): Remove checks.
50354         (Makefile.am): Don't create test-sameacls program here any more.
50355
50356 2008-06-01  Bruno Haible  <bruno@clisp.org>
50357
50358         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50359         * tests/test-sameacls.c: Include progname.h.
50360         (main): Invoke set_program_name. Portability fixes for MacOS X,
50361         Solaris, HP-UX.
50362
50363 2008-06-01  Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50366         function.
50367         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50368
50369 2008-06-01  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/rpmatch (Depends-on): Add strdup.
50372
50373 2008-06-01  Bruno Haible  <bruno@clisp.org>
50374
50375         * lib/pipe.c: Include unistd-safer.h.
50376         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50377         * modules/pipe (Depends-on): Add unistd-safer.
50378
50379 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50380
50381         * modules/autobuild (configure.ac): Call AB_INIT.
50382
50383 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50384
50385         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50386         Suggested by Bruno Haible <bruno@clisp.org>.
50387
50388 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50389
50390         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50391         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50392         <bruno@clisp.org>.
50393
50394 2008-05-29  Eric Blake  <ebb9@byu.net>
50395
50396         Prefer new POSIX 200x interfaces over futimesat.
50397         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50398         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50399         when available.
50400         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50401
50402 2008-05-28  Bruno Haible  <bruno@clisp.org>
50403
50404         * modules/stpcpy (License): Change to LGPLv2+.
50405         Requested by David Lutterkort <dlutter@redhat.com>.
50406
50407 2008-05-27  Bruno Haible  <bruno@clisp.org>
50408
50409         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50410         current mingw.
50411         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50412
50413 2008-05-27  Bruno Haible  <bruno@clisp.org>
50414
50415         * modules/iconv_open (Link): New section, from module 'iconv'.
50416         * modules/striconv (Link): Likewise.
50417         * modules/striconveh (Link): Likewise.
50418         * modules/xstriconv (Link): Likewise.
50419         * modules/unicodeio (Link): Likewise.
50420         * modules/propername (Link): Likewise.
50421         Reported by Jim Meyering.
50422
50423 2008-05-26  Jim Meyering  <meyering@redhat.com>
50424
50425         sha256: do not artificially restrict buffer length to be < 2^32
50426         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50427         uint32_t to size_t.
50428         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50429         to match.
50430
50431         avoid unaligned access errors, e.g., on sparc
50432         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50433         direct access through a possibly-unaligned uint64* pointer.
50434         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50435         direct access through a possibly-unaligned uint32* pointer.
50436         Prompted by this patch from Tom "spot" Callaway:
50437         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50438
50439         sha512.c: fix typo in comment
50440         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50441
50442 2008-05-25  Bruno Haible  <bruno@clisp.org>
50443
50444         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50445         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50446         (Makefile.am): Update lib_SOURCES.
50447
50448 2008-05-25  Bruno Haible  <bruno@clisp.org>
50449
50450         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50451
50452 2008-05-25  Jim Meyering  <meyering@redhat.com>
50453
50454         useless-if-before-free: freed expr may have white-space differences
50455         * build-aux/useless-if-before-free: Recognize cases in which the
50456         freed expression differs from the tested one in embedded white
50457         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50458         $1 was used, so we can't make any regexp shy.  Improved tests now
50459         detect this.
50460
50461         useless-if-before-free: accept white space in the expression.
50462         * build-aux/useless-if-before-free: For now, any white space
50463         in the expression must be identical in the free argument.
50464
50465         useless-if-before-free: efficiency tweak
50466         * build-aux/useless-if-before-free: Make the expression-matching
50467         regexp "shy".
50468         Make the *outer* regexp shy, not the expr-matching one.
50469
50470         update code-in-comment to accept cast of free arg
50471         * build-aux/useless-if-before-free: Update regexp.
50472
50473 2008-05-25  Bruno Haible  <bruno@clisp.org>
50474
50475         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50476         * modules/copy-file-tests (Files, Makefile.am): Update.
50477         * tests/test-copy-file.c (func_test_copy): Update.
50478
50479 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50480
50481         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50482
50483 2008-05-23  Bruno Haible  <bruno@clisp.org>
50484
50485         Improve support for ACLs on OSF/1.
50486         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50487         Remove fallback for unknown flavors of ACLs.
50488
50489 2008-05-22  Bruno Haible  <bruno@clisp.org>
50490
50491         Add support for ACLs on OSF/1.
50492         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50493         replacements.
50494         (acl_free_text): New macro fallback.
50495         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50496         acl_free.
50497         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50498         acl_free_text function. Require AC_C_INLINE.
50499
50500 2008-05-22  Bruno Haible  <bruno@clisp.org>
50501
50502         Make copy_acl work on MacOS X 10.5.
50503         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50504         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50505         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50506         If MODE_INSIDE_ACL, don't assume that every system has the same text
50507         representation for ACLs as FreeBSD.
50508         * lib/copy-acl.c (copy_acl): Add support for platforms with
50509         !MODE_INSIDE_ACL.
50510         * lib/file-has-acl.c (file_has_acl): Likewise.
50511         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50512         FreeBSD, MacOS X, or IRIX, respectively.
50513
50514 2008-05-22  Bruno Haible  <bruno@clisp.org>
50515
50516         * lib/acl.h: Don't include <sys/acl.h>.
50517         (GETACLCNT): Move fallback to lib/acl-internal.h.
50518         * lib/acl-internal.h: Include <sys/acl.h> here.
50519         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50520
50521 2008-05-22  Bruno Haible  <bruno@clisp.org>
50522
50523         Split off copy_acl function to separate file.
50524         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50525         * lib/acl.c (copy_acl): Moved function to separate file.
50526         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50527         * modules/acl (Files): Add lib/copy-acl.c.
50528         (Makefiles.am): Augment lib_SOURCES.
50529
50530 2008-05-22  Bruno Haible  <bruno@clisp.org>
50531
50532         * modules/copy-file-tests: New file.
50533         * tests/test-copy-file.sh: New file.
50534         * tests/test-copy-file.c: New file.
50535         * tests/test-copy-file-sameacls.c: New file.
50536
50537 2008-05-22  Eric Blake  <ebb9@byu.net>
50538
50539         Avoid gcc warning.
50540         * tests/test-memcmp.c (main): Pass NULL indirectly.
50541
50542 2008-05-21  Bruno Haible  <bruno@clisp.org>
50543
50544         Add reference doc about ACLs.
50545         * doc/acl-resources.txt: New file.
50546         * doc/acl-cygwin.txt: New file.
50547
50548 2008-05-21  Bruno Haible  <bruno@clisp.org>
50549
50550         Avoid one more warning from gcc.
50551         * lib/vasnprintf.c (IF_LINT): Update comments.
50552         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50553
50554 2008-05-21  Jim Meyering  <meyering@redhat.com>
50555
50556         avoid a warning from gcc
50557         * lib/vasnprintf.c (IF_LINT): Define.
50558         (scale10_round_decimal_long_double):
50559         Use it to avoid a "may be used uninitialized" warning.
50560         (scale10_round_decimal_double): Likewise.
50561
50562 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50563
50564         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50565         declared.
50566
50567 2008-05-20  Bruno Haible  <bruno@clisp.org>
50568
50569         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50570         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50571
50572 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50573
50574         * modules/memcmp-tests: New file.
50575         * tests/test-memcmp.c: New file.
50576
50577 2008-05-19  Bruno Haible  <bruno@clisp.org>
50578
50579         * modules/propername (Notice, configure.ac): Put quoted "..." into
50580         --keyword option.
50581         * lib/propername.h: Update comments accordingly.
50582         Reported by Eric Blake.
50583
50584 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50585
50586         * modules/getpass-gnu (Depends-on): Add fseeko.
50587
50588 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50589
50590         * modules/base64-tests: New file.
50591
50592 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50593
50594         * lib/base64.c (base64_decode_ctx): If a decode context structure
50595         was passed in use it to ignore newlines.  If a context structure
50596         was _not_ passed in, continue to treat newlines as garbage (this
50597         is the historical behavior).  Formerly base64_decode.
50598         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50599         takes a decode context structure.
50600         * lib/base64.h (base64_decode): Macro for four-argument calls.
50601         (base64_decode_alloc): Likewise.
50602         * lib/base64.c (base64_decode_ctx): If a decode context structure
50603         was passed in use it to ignore newlines.  If a context structure
50604         was _not_ passed in, continue to treat newlines as garbage (this
50605         is the historical behavior).  Formerly base64_decode.
50606         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50607         takes a decode context structure.
50608         * lib/base64.h (base64_decode): Macro for four-argument calls.
50609         (base64_decode_alloc): Likewise.
50610
50611 2008-05-19  Jim Meyering  <meyering@redhat.com>
50612
50613         avoid a warning from gcc
50614         * lib/trim.c (IF_LINT): Define.
50615         (trim2): Use it to avoid a "may be used uninitialized" warning.
50616
50617         Fix doc typo.
50618         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50619
50620 2008-05-19  Bruno Haible  <bruno@clisp.org>
50621
50622         * doc/glibc-functions/getpass.texi: Document limits of other
50623         implementations.
50624
50625 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50626             Bruno Haible <bruno@clisp.org>
50627
50628         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50629
50630 2008-05-18  Bruno Haible  <bruno@clisp.org>
50631
50632         * modules/propername: New file, from GNU gettext.
50633         * lib/propername.h: New file, from GNU gettext.
50634         * lib/propername.c: New file, from GNU gettext.
50635         * MODULES.html.sh (Internationalization functions): Add propername.
50636
50637 2008-05-16  Jim Meyering  <meyering@redhat.com>
50638             Bruno Haible  <bruno@clisp.org>
50639
50640         Avoid some warnings from "gcc -Wshadow".
50641         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50642
50643 2008-05-15  Eric Blake  <ebb9@byu.net>
50644
50645         Extend previous patch to cygwin 1.7.0.
50646         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50647         fast implementation in cygwin >= 1.7.0.
50648         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50650
50651 2008-05-15  Bruno Haible  <bruno@clisp.org>
50652
50653         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50654         implementation in glibc >= 2.9.
50655         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50657
50658 2008-05-15  Bruno Haible  <bruno@clisp.org>
50659
50660         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50661         (Unicode string functions): Add unilbrk/*.
50662         Reported by Karl Berry.
50663
50664 2008-05-15  Eric Blake  <ebb9@byu.net>
50665
50666         Fix violation of <stdbool.h> replacement in regex.
50667         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50668         * lib/regexec.c (re_search_internal): Likewise.
50669         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50670
50671 2008-05-15  Jim Meyering  <meyering@redhat.com>
50672
50673         avoid distracting test output when git or cvs is not found
50674         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50675         * tests/test-vc-list-files-git.sh: Likewise.
50676
50677 2008-05-15  Eric Blake  <ebb9@byu.net>
50678
50679         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50680         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50681         glibc version.
50682         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50683         * doc/posix-functions/strstr.texi (strstr): Likewise.
50684         * lib/str-two-way.h (MAX): Sychronize with glibc.
50685
50686 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50687
50688         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50689         opr.ctx_type.
50690         (calc_first): Initialize constraint field.
50691         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50692         Fix grammar.
50693         (duplicate_node): Merge constraint field for all node types.
50694         (calc_eclosure_iter): Look at constraint field for all node types.
50695         * lib/regex_internal.c (create_cd_newstate): Don't look at
50696         opr.ctx_type.
50697
50698 2008-05-14  Bruno Haible  <bruno@clisp.org>
50699
50700         Help GCC to do better code generation.
50701         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50702         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50703         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50704         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50705         Declare with attribute 'malloc' if supported.
50706
50707 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50708
50709         use "echo STR|wc -c" rather than unportable "expr length STR"
50710         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50711         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50712
50713 2008-05-14  Jim Meyering  <meyering@redhat.com>
50714
50715         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50716         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50717         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50718         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50719         via Collin Lasse.
50720
50721 2008-05-14  Eric Blake  <ebb9@byu.net>
50722
50723         Avoid quadratic growth in gl_LIBSOURCES.
50724         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50725         Suggested by Bruno Haible.
50726
50727         Test xmemdup0.
50728         * modules/xmemdup0-tests: New file.
50729         * tests/test-xmemdup0.c: Likewise.
50730
50731 2008-05-13  Eric Blake  <ebb9@byu.net>
50732
50733         Split xmemdup0 into its own module.
50734         * modules/xmemdup0: New file.
50735         * lib/xmemdup0.h: Likewise.
50736         * lib/xmemdup0.c: Likewise.
50737         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50738         * lib/xalloc.h (xmemdup0): Remove.
50739         * lib/xmalloc.c (xmemdup0): Likewise.
50740
50741 2008-05-13  Eric Blake  <ebb9@byu.net>
50742             Bruno Haible  <bruno@clisp.org>
50743
50744         Reduce number of forks required during autoconf.
50745         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50746         and gl_LIBSOURCES_DIR.
50747         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50748         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50749         m4_syscmd per file.
50750         <m4_foreach_w>: Move...
50751         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50752
50753 2008-05-13  Eric Blake  <ebb9@byu.net>
50754
50755         * gnulib-tool: Fix various comment typos.
50756
50757 2008-05-12  Bruno Haible  <bruno@clisp.org>
50758
50759         Tailor the linebreaking algorithm.
50760         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50761
50762 2008-05-12  Bruno Haible  <bruno@clisp.org>
50763
50764         Update to Unicode 5.0.0.
50765         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50766         LBP_JV, LBP_JT. Redistribute values.
50767         (unilbrk_table): Change size.
50768         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50769         Unicode TR#14 rev. 22.
50770         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50771         LBP_JV, LBP_JT. Redistribute values.
50772         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50773         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50774         Update.
50775         * lib/unilbrk/lbrkprop1.h: Regenerated.
50776         * lib/unilbrk/lbrkprop2.h: Regenerated.
50777         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50778         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50779         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50780         Likewise.
50781         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50782         Likewise.
50783         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50784         result.
50785         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50786         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50787         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50788         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50789         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50790         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50791
50792 2008-05-11  Bruno Haible  <bruno@clisp.org>
50793
50794         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50795
50796 2008-05-11  Bruno Haible  <bruno@clisp.org>
50797
50798         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50799         * modules/unilbrk/gen-lbrk: New file.
50800
50801 2008-05-11  Bruno Haible  <bruno@clisp.org>
50802
50803         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50804         * m4/sha512.m4 (gl_SHA512): Likewise.
50805
50806 2008-05-11  Jim Meyering  <meyering@redhat.com>
50807
50808         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50809         * modules/crypto/sha256: New file.
50810         * modules/crypto/sha512: Likewise.
50811         * lib/sha256.c: Likewise.
50812         * lib/sha256.h: Likewise.
50813         * lib/sha512.c: Likewise.
50814         * lib/sha512.h: Likewise.
50815         * lib/u64.h: Likewise.
50816         * m4/sha256.m4: Likewise.
50817         * m4/sha512.m4: Likewise.
50818         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50819
50820 2008-05-10  Bruno Haible  <bruno@clisp.org>
50821
50822         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50823         (Input/Output <stdio.h>): Add xprintf.
50824         (Signal handling <signal.h>): Add strsignal.
50825         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50826         (Core language properties): Add func.
50827         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50828         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50829         strings.
50830         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50831         (Input/output): New section.
50832         (File system functions): Add openat-die, stat-macros.
50833         (Networking functions): Add sockets.
50834         (Unicode string functions): Add unictype/*.
50835         (Support for building libraries and executables): Add gperf.
50836         (Support for building documentation): Add agpl-3.0.
50837         (Misc): Add nocrash.
50838
50839 2008-05-10  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/unictype/gen-ctype: New file.
50842
50843 2008-05-10  Jim Meyering  <meyering@redhat.com>
50844
50845         Make chdir-safer.c more efficient on a system with no symlinks.
50846         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50847         also if ELOOP is zero.  Suggested by Bruno Haible.
50848
50849         Make chdir-safer.c slightly safer.
50850         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50851         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50852
50853         Avoid compile failure on systems without ELOOP (like mingw).
50854         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50855         Reported by Bruno Haible.
50856
50857 2008-05-10  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50860         (is_utf8_encoding): Use a case-insensitive comparison.
50861         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50862         streq.
50863
50864 2008-05-10  Bruno Haible  <bruno@clisp.org>
50865
50866         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50867         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50868         * lib/unilbrk/ulc-common.h (iconv_string_length,
50869         iconv_string_keeping_offsets): Remove declarations.
50870         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50871         Don't include <iconv.h>, streq.h, xsize.h.
50872         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50873         conversion.
50874         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50875         <iconv.h>, streq.h, xsize.h.
50876         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50877         conversion.
50878         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50879         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50880         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50881         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50882
50883 2008-05-10  Bruno Haible  <bruno@clisp.org>
50884
50885         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50886         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50887
50888         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50889         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50890
50891         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50892         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50893
50894         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50895         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50896
50897         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50898         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50899
50900         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50901         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50902
50903         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50904         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50905
50906         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50907         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50908
50909 2008-05-10  Bruno Haible  <bruno@clisp.org>
50910
50911         Split up 'linebreak' module.
50912         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50913         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50914         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50915         modifications.
50916         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50917         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50918         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50919         lib/linebreak.c.
50920         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50921         lib/linebreak.c.
50922         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50923         lib/linebreak.c.
50924         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50925         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50926         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50927         lib/linebreak.c.
50928         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50929         lib/linebreak.c.
50930         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50931         lib/linebreak.c.
50932         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50933         lib/linebreak.c.
50934         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50935         lib/linebreak.c.
50936         * modules/unilbrk/base: New file.
50937         * modules/unilbrk/tables: New file.
50938         * modules/unilbrk/u8-possible-linebreaks: New file.
50939         * modules/unilbrk/u16-possible-linebreaks: New file.
50940         * modules/unilbrk/u32-possible-linebreaks: New file.
50941         * modules/unilbrk/ulc-common: New file.
50942         * modules/unilbrk/ulc-possible-linebreaks: New file.
50943         * modules/unilbrk/u8-width-linebreaks: New file.
50944         * modules/unilbrk/u16-width-linebreaks: New file.
50945         * modules/unilbrk/u32-width-linebreaks: New file.
50946         * modules/unilbrk/ulc-width-linebreaks: New file.
50947         * lib/linebreak.h: Remove file.
50948         * lib/linebreak.c: Remove file.
50949         * m4/linebreak.m4: Remove file.
50950         * modules/linebreak: Remove file.
50951         * NEWS: Mention the changes.
50952
50953 2008-05-09  Eric Blake  <ebb9@byu.net>
50954
50955         Add xmemdup0.
50956         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50957         implementation.
50958         * lib/xmalloc.c (xmemdup0): New C implementation.
50959
50960 2008-05-08  Bruno Haible  <bruno@clisp.org>
50961
50962         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50963
50964 2008-05-07  Eric Blake  <ebb9@byu.net>
50965
50966         Support cross-compilation of <wctype.h>.
50967         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50968         AC_CACHE_CHECK.
50969
50970 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50971
50972         * build-aux/vc-list-files: Add support for bzr.
50973
50974 2008-05-03  Jim Meyering  <meyering@redhat.com>
50975
50976         avoid failed assertion with tight malloc
50977         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50978
50979 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50980
50981         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50982         are needed from arpa/inet.h.
50983         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50984         Reported by Bruno Haible.
50985
50986 2008-05-02  Jim Meyering  <meyering@redhat.com>
50987
50988         avoid compilation error on FreeBSD 6
50989         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50990
50991 2008-05-01  Jim Meyering  <meyering@redhat.com>
50992
50993         useless-if-before-free: correct --help's exit status description
50994         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50995         for one or more matches, etc.  Reported by Bruno Haible.
50996
50997         vc-list-files: make the stand-alone gnulib test work
50998         * modules/vc-list-files-tests (configure.ac):
50999         Define and AC_SUBST abs_aux_dir.
51000         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51001         $(abs_top_srcdir) to each script and having each of them
51002         duplicate the work of setting PATH, set PATH here, using
51003         the new variable, abs_aux_dir instead.
51004         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51005         * tests/test-vc-list-files-git.sh: Likewise.
51006         Reported by Bruno Haible.
51007
51008 2008-05-01  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51011         reallocation. Rename 'done' to 'found_delimiter'.
51012
51013 2008-05-01  Jim Meyering  <meyering@redhat.com>
51014
51015         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51016         * build-aux/vc-list-files: Use `...`, not $(...).
51017
51018 2008-04-30  Jim Meyering  <meyering@redhat.com>
51019
51020         add tests for vc-list-files
51021         * modules/vc-list-files-tests: New module.
51022         * tests/test-vc-list-files-cvs.sh: New file.
51023         * tests/test-vc-list-files-git.sh: New file.
51024
51025         avoid a warning from gcc
51026         * lib/getndelim2.c (IF_LINT): Define.
51027         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51028
51029         vc-list-files: work properly with build-aux/cvsu, too
51030         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51031         to all cvs-based clauses.
51032
51033         vc-list-files: work properly in the CVS+awk case, too
51034         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51035
51036         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51037         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51038         take more than one file argument, so .  Add quotes, just in case $dir
51039         ever contains a shell meta-character.  Prompted by Soren Hansen in
51040         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51041
51042 2008-04-29  Eric Blake  <ebb9@byu.net>
51043
51044         Optimize getndelim2 to use block operations when possible.
51045         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51046         freadseek, and memchr2.
51047         * lib/getndelim2.c (getndelim2): Use them for block reads.
51048
51049 2008-04-29  Bruno Haible  <bruno@clisp.org>
51050
51051         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51052         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51053         * modules/inet_ntop (Depends-on): Add extensions.
51054         * modules/inet_pton (Depends-on): Likewise.
51055         Reported by Simon Josefsson.
51056
51057 2008-04-29  Jim Meyering  <meyering@redhat.com>
51058
51059         When the is more than one match in a block, match all of them.
51060         * build-aux/useless-if-before-free: Iterate through each block
51061         until there are no more matches.
51062
51063         Fix broken useless-if-before-free script.
51064         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51065         the expression to match cast of argument to free-like function.
51066
51067 2008-04-29  Eric Blake  <ebb9@byu.net>
51068
51069         Use new header.
51070         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51071
51072 2008-04-29  Jim Meyering  <meyering@redhat.com>
51073
51074         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51075         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51076         by gnulib to exist and to declare e.g., inet_ntop.
51077         Don't include "inet_ntop.h", now removed.
51078
51079         * m4/arpa_inet_h.m4: Remove trailing blanks.
51080
51081 2008-04-29  Eric Blake  <ebb9@byu.net>
51082
51083         Silence valgrind on safe reads beyond potential array bounds.
51084         * lib/rawmemchr.valgrind: New file.
51085         * lib/strchrnul.valgrind: Likewise.
51086         * modules/rawmemchr (Files): Distribute new file.
51087         * modules/strchrnul (Files): Likewise.
51088         Suggested by Bruno Haible.
51089
51090 2008-04-29  Bruno Haible  <bruno@clisp.org>
51091
51092         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51093         (inet_ntop, inet_pton): Change portability warning's wording.
51094         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51095         Invoke gl_CHECK_NEXT_HEADERS.
51096         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51097         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51098         set ARPA_INET_H.
51099         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51100         * modules/arpa_inet (Description): No longer only for systems that
51101         lack it.
51102         (Depends-on): Add include_next.
51103         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51104         HAVE_ARPA_INET_H.
51105
51106 2008-04-29  Jim Meyering  <meyering@redhat.com>
51107
51108         * modules/mkdir (License): Re-license as LGPLv2+.
51109
51110 2008-04-29  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/rawmemchr (Maintainer): Set to Eric.
51113         * modules/strchrnul (Maintainer): Likewise.
51114
51115 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51116
51117         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51118         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51119
51120         * modules/arpa_inet (arpa/inet.h): Use them.
51121
51122 2008-04-28  Eric Blake  <ebb9@byu.net>
51123
51124         Test getndelim2.
51125         * modules/getndelim2-tests: New file.
51126         * tests/test-getndelim2.c: Likewise.
51127         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51128         stream.
51129         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51130
51131         * MODULES.html.sh: Document new module.
51132
51133 2008-04-20  Bruno Haible  <bruno@clisp.org>
51134
51135         * lib/c-stack.c (die): Use raise.
51136         * modules/c-stack (Depends-on): Add raise.
51137
51138 2008-04-28  Bruno Haible  <bruno@clisp.org>
51139
51140         Expect rpmatch to be declared.
51141         * lib/yesno.c (rpmatch): Remove declaration.
51142
51143         Declare rpmatch.
51144         * lib/stdlib.in.h (rpmatch): New declaration.
51145         * lib/rpmatch.c: Include <stdlib.h> first.
51146         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51147         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51149         HAVE_RPMATCH.
51150         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51152         (Include): Set to <stdlib.h>.
51153         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51154         HAVE_RPMATCH.
51155         * NEWS: Document the change.
51156
51157 2008-04-28  Bruno Haible  <bruno@clisp.org>
51158
51159         Change rpmatch to use nl_langinfo when appropriate.
51160         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51161         (N_): New macro.
51162         (localized_pattern): New function/macro.
51163         (try): Remove match, nomatch arguments. Copy the pattern into safe
51164         memory before caching it.
51165         (rpmatch): Use localized_pattern. Add translator comments.
51166         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51167         Suggested by Eric Blake.
51168         * modules/rpmatch (Depends-on): Add stdbool.
51169
51170 2008-04-28  Eric Blake  <ebb9@byu.net>
51171
51172         Add rawmemchr module, matching glibc.
51173         * modules/string (Makefile.am): New indicator.
51174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51175         * lib/string.in.h (rawmemchr): Declare when appropriate.
51176         * modules/rawmemchr: New file.
51177         * m4/rawmemchr.m4: Likewise.
51178         * lib/rawmemchr.c: Likewise.
51179         * modules/rawmemchr-tests: Likewise.
51180         * tests/test-rawmemchr.c: Likewise.
51181         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51182         module.
51183         * modules/strchrnul (Depends-on): Add rawmemchr.
51184         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51185
51186         Whitespace cleanup.
51187         * tests/test-strchrnul.c: Reindent.
51188         * lib/strchrnul.c: Likewise.
51189
51190         Optimize and test strchrnul.
51191         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51192         * modules/strchrnul-tests: New file.
51193         * tests/test-strchrnul.c: Likewise.
51194
51195         Remove intprops dependency.
51196         * modules/memchr (Depends-on): Remove intprops.
51197         * modules/memrchr (Depends-on): Likewise.
51198         * modules/memchr2 (Depends-on): Likewise.
51199         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51200         * lib/memrchr.c (__memrchr): Likewise.
51201         * lib/memrchr2.c (memchr2): Likewise.
51202         Reported by Simon Josefsson.
51203
51204 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51205
51206         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51207         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51208
51209 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51210
51211         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51212
51213         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51214
51215         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51216
51217         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51218         declarations.
51219         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51220
51221         * m4/inet_pton.m4: Don't check for header files.
51222
51223         * m4/inet_ntop.m4: Don't check for header files.
51224
51225 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51226
51227         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51228         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51229         trigger for cygwin).
51230         Reported by Bruno Haible  <bruno@clisp.org>.
51231
51232 2008-04-28  Bruno Haible  <bruno@clisp.org>
51233
51234         * doc/posix-functions/strdup.texi: Mention mingw problem.
51235
51236 2008-04-27  Bruno Haible  <bruno@clisp.org>
51237
51238         * modules/stat-time-tests (Depends-on): Add sleep.
51239         * tests/test-stat-time.c (force_unlink): New function.
51240         (cleanup): Use it.
51241         (test_mtime): Remove the ctime related tests.
51242         (test_ctime): New function, containing the ctime related tests.
51243         (main): Call test_ctime, except on native Windows platforms.
51244
51245 2008-04-27  Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/rpmatch.c (rpmatch): Add some comments.
51248         Reported by James Youngman <jay@gnu.org>.
51249
51250 2008-04-27  Bruno Haible  <bruno@clisp.org>
51251
51252         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51253         quiet NaNs.
51254
51255 2008-04-27  Bruno Haible  <bruno@clisp.org>
51256
51257         Make test-yesno.sh work on mingw.
51258         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51259         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51260         (main): Set stdin to binary mode.
51261         * modules/yesno-tests (Depends-on): Add binary-io.
51262
51263 2008-04-27  Bruno Haible  <bruno@clisp.org>
51264
51265         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51266         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51267         argument that lie outside the IEEE 854 domain.
51268         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51269         (gl_ISFINITE): Use it.
51270         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51271
51272 2008-04-27  Bruno Haible  <bruno@clisp.org>
51273
51274         Allow local renaming in config.h.
51275         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51276
51277 2008-04-27  Bruno Haible  <bruno@clisp.org>
51278
51279         * lib/memchr.c (__memchr): Change type of 'i'.
51280         * lib/memchr2.c (memchr2): Likewise.
51281
51282 2008-04-26  Eric Blake  <ebb9@byu.net>
51283         and Bruno Haible  <bruno@clisp.org>
51284
51285         Optimize and test memrchr.
51286         * modules/memrchr (Depends-on): Add intprops.
51287         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51288         * modules/memrchr-tests: New file.
51289         * tests/test-memrchr.c: New file.
51290
51291 2008-04-26  Bruno Haible  <bruno@clisp.org>
51292
51293         Add tentative support for DragonFly BSD.
51294         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51295         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51296         fp.
51297         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51298         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51299         * lib/fpurge.c (fpurge): Likewise.
51300         * lib/freadable.c (freaadable): Likewise.
51301         * lib/freadahead.c (freadahead): Likewise.
51302         * lib/freading.c (freading): Likewise.
51303         * lib/freadptr.c (freadptr): Likewise.
51304         * lib/freadseek.c (freadptrinc): Likewise.
51305         * lib/fseeko.c (fseeko): Likewise.
51306         * lib/fseterr.c (fseterr): Likewise.
51307         * lib/fwritable.c (fwritable): Likewise.
51308         * lib/fwriting.c (fwriting): Likewise.
51309
51310 2008-04-26  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/stdio-impl.h: New file.
51313         * lib/fbufmode.c: Include stdio-impl.h.
51314         (fbufmode): Use fp_, remove redundant #defines.
51315         * lib/fflush.c: Include stdio-impl.h.
51316         (clear_ungetc_buffer): Remove redundant #defines.
51317         * lib/fpurge.c: Include stdio-impl.h.
51318         (fpurge): Remove redundant #defines.
51319         * lib/freadable.c: Include stdio-impl.h.
51320         (freadable): Remove redundant #defines.
51321         * lib/freadahead.c: Include stdio-impl.h.
51322         (freadahead): Remove redundant #defines.
51323         * lib/freading.c: Include stdio-impl.h.
51324         (freading): Remove redundant #defines.
51325         * lib/freadptr.c: Include stdio-impl.h.
51326         (freadptr): Remove redundant #defines.
51327         * lib/freadseek.c: Include stdio-impl.h.
51328         (freadptrinc): Remove redundant #defines.
51329         * lib/fseeko.c: Include stdio-impl.h.
51330         (rpl_fseeko): Remove redundant #defines.
51331         * lib/fseterr.c: Include stdio-impl.h.
51332         (fseterr): Remove redundant #defines.
51333         * lib/fwritable.c: Include stdio-impl.h.
51334         (fwritable: Remove redundant #defines.
51335         * lib/fwriting.c: Include stdio-impl.h.
51336         (fwriting): Remove redundant #defines.
51337         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51338         * modules/fflush (Files): Likewise.
51339         * modules/fpurge (Files): Likewise.
51340         * modules/freadable (Files): Likewise.
51341         * modules/freadahead (Files): Likewise.
51342         * modules/freading (Files): Likewise.
51343         * modules/freadptr (Files): Likewise.
51344         * modules/freadseek (Files): Likewise.
51345         * modules/fseeko (Files): Likewise.
51346         * modules/fseterr (Files): Likewise.
51347         * modules/fwritable (Files): Likewise.
51348         * modules/fwriting (Files): Likewise.
51349
51350 2008-04-26  Bruno Haible  <bruno@clisp.org>
51351
51352         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51353         restore_seek_optimization, update_fpos_cache): New functions, extracted
51354         from rpl_fflush.
51355         (rpl_fflush): Use them.
51356         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51357         (gl_REPLACE_FFLUSH): Use it.
51358
51359 2008-04-26  Bruno Haible  <bruno@clisp.org>
51360
51361         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51362         on Solaris.
51363         * tests/test-xstrtoimax.sh: Likewise.
51364         * tests/test-xstrtoumax.sh: Likewise.
51365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51366
51367 2008-04-26  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/memchr-tests: New file.
51370         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51371
51372 2008-04-26  Eric Blake  <ebb9@byu.net>
51373             Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/memchr.c: Include intprops.h.
51376         (__memchr): Optimize parallel detection of matching bytes. Rename local
51377         variables. Add explanatory comments.
51378
51379 2008-04-26  Bruno Haible  <bruno@clisp.org>
51380
51381         Fix module 'memchr', broken since 2000-10-28.
51382         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51383
51384 2008-04-26  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51387         comments.
51388
51389 2008-04-25  Eric Blake  <ebb9@byu.net>
51390
51391         Use native fstatat on cygwin 1.7.0.
51392         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51393         first.
51394
51395 2008-04-23  Eric Blake  <ebb9@byu.net>
51396
51397         Improve memchr2 performance.
51398         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51399         NUL bytes.
51400         * modules/memchr2 (Depends-on): Use intprops.h.
51401
51402 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51403
51404         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51405         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51406         <blp@cs.stanford.edu>.
51407
51408 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51409
51410         * lib/arpa_inet.in.h: New file.
51411
51412         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51413         (Makefile.am): Sed in substitute header file.
51414
51415         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51416         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51417
51418         * modules/inet_ntop (configure.ac): Use
51419         gl_ARPA_INET_MODULE_INDICATOR.
51420
51421         * modules/inet_pton (configure.ac): Use
51422         gl_ARPA_INET_MODULE_INDICATOR.
51423
51424 2008-04-22  Jim Meyering  <meyering@redhat.com>
51425
51426         * modules/verify (License): Re-license as LGPLv2+.
51427
51428 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51429
51430         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51431         parameter to void* as per POSIX standard (MinGW uses char*).
51432
51433 2008-04-21  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51436         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51437         Define to replacements if REPLACE_ISWCNTRL is 1.
51438         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51439         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51440         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51441         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51442         what it fixes.
51443         * doc/posix-functions/iswalpha.texi: Likewise.
51444         * doc/posix-functions/iswblank.texi: Likewise.
51445         * doc/posix-functions/iswcntrl.texi: Likewise.
51446         * doc/posix-functions/iswdigit.texi: Likewise.
51447         * doc/posix-functions/iswgraph.texi: Likewise.
51448         * doc/posix-functions/iswlower.texi: Likewise.
51449         * doc/posix-functions/iswprint.texi: Likewise.
51450         * doc/posix-functions/iswpunct.texi: Likewise.
51451         * doc/posix-functions/iswspace.texi: Likewise.
51452         * doc/posix-functions/iswupper.texi: Likewise.
51453         * doc/posix-functions/iswxdigit.texi: Likewise.
51454         Reported by Alain Guibert.
51455
51456 2008-04-21  Bruno Haible  <bruno@clisp.org>
51457
51458         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51459         Patch by Alain Guibert.
51460
51461 2008-04-21  Bruno Haible  <bruno@clisp.org>
51462
51463         Fix test failures on mingw.
51464         * tests/test-xstrtol.c (print_no_progname): New function.
51465         (main): Install it in error_print_progname hook.
51466         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51467         * tests/test-xstrtoimax.sh: Likewise.
51468         * tests/test-xstrtoumax.sh: Likewise.
51469
51470 2008-04-21  Bruno Haible  <bruno@clisp.org>
51471
51472         Fix test failure on mingw.
51473         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51474
51475 2008-04-21  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51478         Actually assign a value.
51479
51480 2008-04-20  Bruno Haible  <bruno@clisp.org>
51481
51482         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51483         take 2.
51484         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51485         'canonicalize-lgpl' module is also used.
51486         * lib/canonicalize-lgpl.c: Undo last change.
51487         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51488
51489 2008-04-20  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51492         config.h. Provide _mkdir based fallback for mingw.
51493         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51494         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51495         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51496         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51497         rather than defining mkdir in config.h.
51498         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51499         (gl_SYS_STAT_H_DEFAULTS): New macro.
51500         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51501         HAVE_IO_H any more.
51502         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51503         HAVE_DECL_MKDIR and HAVE_IO_H.
51504
51505 2008-04-20  Bruno Haible  <bruno@clisp.org>
51506
51507         * lib/isapipe.c: Port to native Windows platforms.
51508
51509 2008-04-20  Bruno Haible  <bruno@clisp.org>
51510
51511         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51512
51513 2008-04-21  Eric Blake  <ebb9@byu.net>
51514
51515         Work around preprocessors that don't handle UINTMAX_MAX.
51516         * lib/memchr2.c (memchr2): Avoid embedded #if.
51517         Reported by Alain Guibert, fix suggested by Bruno Haible.
51518
51519 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51520
51521         * doc/posix-functions/strftime.texi (strftime): Explain better
51522         Windows incompatibility.  Suggested by Micah Cowan
51523         <micah@cowan.name>.
51524
51525 2008-04-20  Bruno Haible  <bruno@clisp.org>
51526
51527         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51528         unistr/u8-mblen.
51529
51530 2008-04-20  Bruno Haible  <bruno@clisp.org>
51531
51532         Fix test failure on platforms with non-GNU iconv.
51533         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51534         (U_TO_U8): Use it, rather than u16_to_u8.
51535         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51536         units at the end of the input string.
51537         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51538
51539 2008-04-20  Bruno Haible  <bruno@clisp.org>
51540
51541         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51542         when the resulting length is 0.
51543         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51544
51545 2008-04-20  Bruno Haible  <bruno@clisp.org>
51546
51547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51548         works.
51549         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51550
51551 2008-04-20  Bruno Haible  <bruno@clisp.org>
51552
51553         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51554         * modules/tsearch-tests (configure.ac): Test for initstate function.
51555
51556 2008-04-20  Bruno Haible  <bruno@clisp.org>
51557
51558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51559         for nlink_t if missing.
51560         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51561
51562 2008-04-19  Bruno Haible  <bruno@clisp.org>
51563
51564         Work around snprintf bug on Linux libc5.
51565         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51567         gl_SNPRINTF_SIZE1.
51568         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51569         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51570         that test failed.
51571         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51572         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51573         * modules/snprintf (Files): Add m4/printf.m4.
51574         * modules/vsnprintf (Files): Likewise.
51575         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51576         * doc/posix-functions/vsnprintf.texi: Likewise.
51577
51578 2008-04-19  Bruno Haible  <bruno@clisp.org>
51579
51580         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51581         from 0.0058 to less than 10^-7.
51582
51583 2008-04-19  Bruno Haible  <bruno@clisp.org>
51584
51585         Fix rounding when a precision is given.
51586         * lib/vasnprintf.c (is_borderline): New function.
51587         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51588         9...9x.
51589         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51590         %e, %g.
51591         * tests/test-vasprintf-posix.c (test_function): Likewise.
51592         * tests/test-snprintf-posix.h (test_function): Likewise.
51593         * tests/test-sprintf-posix.h (test_function): Likewise.
51594         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51595         * tests/test-printf-posix.h (test_function): Likewise.
51596         * tests/test-printf-posix.output: Update.
51597         Reported by John Darrington <john@darrington.wattle.id.au> via
51598         Ben Pfaff <blp@cs.stanford.edu>.
51599
51600 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51601
51602         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51603         Suggested by Bruno Haible <bruno@clisp.org>.
51604
51605 2008-04-17  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51608         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51609         implementation.
51610         Patch by Bruce Merry <bmerry@gmail.com>.
51611
51612 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51613
51614         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51615         doesn't work under Windows.
51616
51617 2008-04-16  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51620         New macros.
51621         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51622         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51623         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51624         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51625         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51626         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51627         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51628         macros.
51629         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51630         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51631         Northern Sotho, Uighur.
51632
51633 2008-04-16  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51636         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51637         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51638         Reported by Daniel Bergström <daniel@octocode.com>.
51639
51640 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51641             Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51644         function.
51645         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51646         New functions, mostly extracted from gl_locale_name_default.
51647         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51648
51649 2008-04-16  Eric Blake  <ebb9@byu.net>
51650
51651         Adjust strtod detection to catch glibc 2.7 bug.
51652         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51653         Reported by John Gatewood Ham.
51654
51655 2008-04-16  Bruno Haible  <bruno@clisp.org>
51656
51657         Add tentative support for Linux libc5.
51658         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51659         * lib/fpurge.c (fpurge): Likewise.
51660         * lib/freadable.c (freadable): Likewise.
51661         * lib/freadahead.c (freadahead): Likewise.
51662         * lib/freading.c (freading): Likewise.
51663         * lib/freadptr.c (freadptr): Likewise.
51664         * lib/freadseek.c (freadptrinc): Likewise.
51665         * lib/fseeko.c (rpl_fseeko): Likewise.
51666         * lib/fseterr.c (fseterr): Likewise.
51667         * lib/fwritable.c (fwritable): Likewise.
51668         * lib/fwriting.c (fwriting): Likewise.
51669         Reported by Alain Guibert <alguibert+bts@free.fr>.
51670
51671 2008-04-15  Bruno Haible  <bruno@clisp.org>
51672
51673         * modules/mathl (configure.ac): Define module indicator.
51674
51675 2008-04-15  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/logl.c (logl): Remove unused variables.
51678
51679 2008-04-15  Bruno Haible  <bruno@clisp.org>
51680
51681         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51682         fails.
51683
51684 2008-04-15  Bruno Haible  <bruno@clisp.org>
51685
51686         * lib/trim.c (trim2): Fix argument of isspace() macro.
51687
51688 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51689
51690         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51691         to 0.
51692         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51693
51694 2008-04-14  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51697         AC_LANG_PROGRAM argument.
51698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51699         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51701         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51702         * m4/math_h.m4 (gl_MATH_H): Likewise.
51703         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51704         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51705         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51706         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51707         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51708         * m4/regex.m4 (gl_REGEX): Likewise.
51709         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51710         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51713         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51714         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51716         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51717
51718 2008-04-14  Jim Meyering  <meyering@redhat.com>
51719
51720         test-strtod: fix typos: s/abs/fabs/
51721         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51722
51723 2008-04-13  Bruno Haible  <bruno@clisp.org>
51724
51725         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51726         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51727         module is also used and while not building the reloc-wrapper.
51728
51729 2008-04-13  Bruno Haible  <bruno@clisp.org>
51730
51731         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51732
51733 2008-04-13  Bruno Haible  <bruno@clisp.org>
51734
51735         Fix AIX compilation failure introduced on 2008-04-02.
51736         * tests/test-frexp.c (exp): Undefine before redefining.
51737         * tests/test-frexpl.c (exp): Likewise.
51738
51739 2008-04-13  Bruno Haible  <bruno@clisp.org>
51740
51741         Work around a HP-UX stdio bug.
51742         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51743         * tests/test-ftello.c (main): Likewise.
51744         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51745         * doc/posix-functions/ftello.texi: Likewise.
51746
51747 2008-04-13  Bruno Haible  <bruno@clisp.org>
51748
51749         Make test-signbit pass on HP-UX/hppa.
51750         * tests/test-signbit.c (minus_zerol): New variable.
51751         (test_signbitl): Use it.
51752
51753 2008-04-13  Bruno Haible  <bruno@clisp.org>
51754
51755         Make truncl work on OSF/1 4.0.
51756         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51757         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51758         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51760         HAVE_DECL_TRUNCL.
51761         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51762         HAVE_DECL_TRUNCL.
51763         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51764
51765 2008-04-13  Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51768
51769 2008-04-13  Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51772         expression, so as to avoid HP-UX 11 cc compiler bug.
51773
51774 2008-04-13  Bruno Haible  <bruno@clisp.org>
51775
51776         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51777
51778 2008-04-13  Bruno Haible  <bruno@clisp.org>
51779
51780         * lib/git-merge-changelog.c: Remove empty declaration outside of
51781         functions.
51782
51783 2008-04-13  Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51786
51787 2008-04-13  Bruno Haible  <bruno@clisp.org>
51788
51789         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51790         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51791         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51792         also if it exists but lacks definitions of the SHUT_* macros.
51793         * modules/sys_socket (Description): Update.
51794         Reported by Elbert Pol <e.pol@chello.nl>.
51795
51796 2008-04-13  Bruno Haible  <bruno@clisp.org>
51797
51798         * lib/localcharset.c (OS2): Don't redefine if already defined.
51799         Reported by Elbert Pol <e.pol@chello.nl>.
51800
51801 2008-04-13  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/binary-io.h [__EMX__]: Include <io.h>.
51804         Reported by Elbert Pol <e.pol@chello.nl>.
51805
51806 2008-04-12  Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/fpucw.h: Enable the definitions also for x86_64.
51809         Needed for NetBSD/x86_64.
51810         Reported by Thomas Klausner <tk@giga.or.at>.
51811
51812 2008-04-12  Bruno Haible  <bruno@clisp.org>
51813
51814         * tests/test-strtod.c: Include isnand.h.
51815         (main): Use isnand instead of isnan.
51816         Reported by Jim Meyering.
51817
51818 2008-04-12  Bruno Haible  <bruno@clisp.org>
51819
51820         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51821         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51822
51823 2008-04-12  Jim Meyering  <meyering@redhat.com>
51824
51825         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51826
51827 2008-04-12  Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51830         Reported by Elbert Pol <e.pol@chello.nl>.
51831
51832 2008-04-12  Eric Blake  <ebb9@byu.net>
51833
51834         Work around Solaris 10 math.h bug.
51835         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51836         (gl_MATH_H_DEFAULTS): Set up default.
51837         * modules/math (Makefile.am): Replace new indicators.
51838         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51839         * tests/test-math.c (main): Test this.
51840         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51841         * doc/posix-headers/math.texi (math.h): Mention bug.
51842         Reported by Nelson H. F. Beebe and Jim Meyering.
51843
51844 2008-04-11  Bruno Haible  <bruno@clisp.org>
51845
51846         Adapt to future versions of Apple GCC.
51847         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51848         Reported by Peter O'Gorman <peter@pogma.com>.
51849
51850 2008-04-11  Bruno Haible  <bruno@clisp.org>
51851
51852         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51853
51854 2008-04-11  Bruno Haible  <bruno@clisp.org>
51855
51856         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51857
51858         * modules/getaddrinfo-tests (Makefile.am): Define
51859         test_getaddrinfo_LDADD.
51860
51861 2008-04-11  Bruno Haible  <bruno@clisp.org>
51862
51863         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51864         (init): Fix syntax error.
51865         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51866         is declared.
51867
51868 2008-04-11  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51871         * modules/glob (Depends-on): Add stdbool.
51872
51873 2008-04-11  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/trim.c: Include <string.h>.
51876
51877 2008-04-11  Eric Blake  <ebb9@byu.net>
51878
51879         Avoid compile failure on OS/2.
51880         * lib/regex_internal.h (internal_function): Disable optimization
51881         on OS/2 (__EMX__), where it caused compiler error.
51882         Reported by Elbert Pol.
51883
51884 2008-04-11  Bruno Haible  <bruno@clisp.org>
51885
51886         Flush the standard error stream before aborting. Needed on mingw.
51887         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51888         * tests/test-array_list.c (ASSERT): Likewise.
51889         * tests/test-array_oset.c (ASSERT): Likewise.
51890         * tests/test-avltree_list.c (ASSERT): Likewise.
51891         * tests/test-avltree_oset.c (ASSERT): Likewise.
51892         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51893         * tests/test-binary-io.c (ASSERT): Likewise.
51894         * tests/test-byteswap.c (ASSERT): Likewise.
51895         * tests/test-c-ctype.c (ASSERT): Likewise.
51896         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51897         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51898         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51899         * tests/test-c-strstr.c (ASSERT): Likewise.
51900         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51901         * tests/test-canonicalize.c (ASSERT): Likewise.
51902         * tests/test-carray_list.c (ASSERT): Likewise.
51903         * tests/test-ceilf1.c (ASSERT): Likewise.
51904         * tests/test-ceilf2.c (ASSERT): Likewise.
51905         * tests/test-ceill.c (ASSERT): Likewise.
51906         * tests/test-count-one-bits.c (ASSERT): Likewise.
51907         * tests/test-fbufmode.c (ASSERT): Likewise.
51908         * tests/test-fflush2.c (ASSERT): Likewise.
51909         * tests/test-floorf1.c (ASSERT): Likewise.
51910         * tests/test-floorf2.c (ASSERT): Likewise.
51911         * tests/test-floorl.c (ASSERT): Likewise.
51912         * tests/test-fopen.c (ASSERT): Likewise.
51913         * tests/test-fpending.c (ASSERT): Likewise.
51914         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51915         * tests/test-fpurge.c (ASSERT): Likewise.
51916         * tests/test-freadable.c (ASSERT): Likewise.
51917         * tests/test-freadahead.c (ASSERT): Likewise.
51918         * tests/test-freading.c (ASSERT): Likewise.
51919         * tests/test-freadptr.c (ASSERT): Likewise.
51920         * tests/test-freadptr2.c (ASSERT): Likewise.
51921         * tests/test-freadseek.c (ASSERT): Likewise.
51922         * tests/test-freopen.c (ASSERT): Likewise.
51923         * tests/test-frexp.c (ASSERT): Likewise.
51924         * tests/test-frexpl.c (ASSERT): Likewise.
51925         * tests/test-fseek.c (ASSERT): Likewise.
51926         * tests/test-fseeko.c (ASSERT): Likewise.
51927         * tests/test-fstrcmp.c (ASSERT): Likewise.
51928         * tests/test-ftell.c (ASSERT): Likewise.
51929         * tests/test-ftello.c (ASSERT): Likewise.
51930         * tests/test-func.c (ASSERT): Likewise.
51931         * tests/test-fwritable.c (ASSERT): Likewise.
51932         * tests/test-fwriting.c (ASSERT): Likewise.
51933         * tests/test-getdelim.c (ASSERT): Likewise.
51934         * tests/test-getline.c (ASSERT): Likewise.
51935         * tests/test-i-ring.c (ASSERT): Likewise.
51936         * tests/test-iconv-utf.c (ASSERT): Likewise.
51937         * tests/test-iconv.c (ASSERT): Likewise.
51938         * tests/test-isfinite.c (ASSERT): Likewise.
51939         * tests/test-isnand.c (ASSERT): Likewise.
51940         * tests/test-isnanf.c (ASSERT): Likewise.
51941         * tests/test-isnanl.h (ASSERT): Likewise.
51942         * tests/test-ldexpl.c (ASSERT): Likewise.
51943         * tests/test-linked_list.c (ASSERT): Likewise.
51944         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51945         * tests/test-localename.c (ASSERT): Likewise.
51946         * tests/test-lseek.c (ASSERT): Likewise.
51947         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51948         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51949         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51950         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51951         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51952         * tests/test-mbschr.c (ASSERT): Likewise.
51953         * tests/test-mbscspn.c (ASSERT): Likewise.
51954         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51955         * tests/test-mbspbrk.c (ASSERT): Likewise.
51956         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51957         * tests/test-mbsrchr.c (ASSERT): Likewise.
51958         * tests/test-mbsspn.c (ASSERT): Likewise.
51959         * tests/test-mbsstr1.c (ASSERT): Likewise.
51960         * tests/test-mbsstr2.c (ASSERT): Likewise.
51961         * tests/test-mbsstr3.c (ASSERT): Likewise.
51962         * tests/test-memchr2.c (ASSERT): Likewise.
51963         * tests/test-memmem.c (ASSERT): Likewise.
51964         * tests/test-open.c (ASSERT): Likewise.
51965         * tests/test-printf-frexp.c (ASSERT): Likewise.
51966         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51967         * tests/test-printf-posix.c (ASSERT): Likewise.
51968         * tests/test-quotearg.c (ASSERT): Likewise.
51969         * tests/test-rbtree_list.c (ASSERT): Likewise.
51970         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51971         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51972         * tests/test-round1.c (ASSERT): Likewise.
51973         * tests/test-roundf1.c (ASSERT): Likewise.
51974         * tests/test-roundl.c (ASSERT): Likewise.
51975         * tests/test-signbit.c (ASSERT): Likewise.
51976         * tests/test-sleep.c (ASSERT): Likewise.
51977         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51978         * tests/test-snprintf.c (ASSERT): Likewise.
51979         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51980         * tests/test-stat-time.c (ASSERT): Likewise.
51981         * tests/test-strcasestr.c (ASSERT): Likewise.
51982         * tests/test-strerror.c (ASSERT): Likewise.
51983         * tests/test-striconv.c (ASSERT): Likewise.
51984         * tests/test-striconveh.c (ASSERT): Likewise.
51985         * tests/test-striconveha.c (ASSERT): Likewise.
51986         * tests/test-strsignal.c (ASSERT): Likewise.
51987         * tests/test-strstr.c (ASSERT): Likewise.
51988         * tests/test-strtod.c (ASSERT): Likewise.
51989         * tests/test-trunc1.c (ASSERT): Likewise.
51990         * tests/test-trunc2.c (ASSERT): Likewise.
51991         * tests/test-truncf1.c (ASSERT): Likewise.
51992         * tests/test-truncf2.c (ASSERT): Likewise.
51993         * tests/test-truncl.c (ASSERT): Likewise.
51994         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51995         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51996         * tests/test-vasnprintf.c (ASSERT): Likewise.
51997         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51998         * tests/test-vasprintf.c (ASSERT): Likewise.
51999         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52000         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52001         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52002         * tests/test-vsnprintf.c (ASSERT): Likewise.
52003         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52004         * tests/test-wcwidth.c (ASSERT): Likewise.
52005         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52006         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52007         * tests/test-xvasprintf.c (ASSERT): Likewise.
52008         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52009         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52010         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52011         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52012         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52013         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52014         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52015         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52016         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52017         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52018         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52019         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52020         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52021         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52022         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52023         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52024         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52025         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52026         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52027         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52028         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52029         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52030         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52031         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52032         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52033         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52034         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52035         * tests/unictype/test-combining.c (ASSERT): Likewise.
52036         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52037         * tests/unictype/test-digit.c (ASSERT): Likewise.
52038         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52039         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52040         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52041         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52042         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52043         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52044         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52045         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52046         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52047         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52048         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52049         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52050         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52051         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52052         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52053         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52054         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52055         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52056         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52057         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52058         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52059         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52060         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52061         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52062         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52063         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52064         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52065         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52066         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52067         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52068         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52069         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52070         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52071         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52072         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52073         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52074         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52075         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52076         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52077         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52078         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52079         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52080         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52081         Reported by Eric Blake.
52082
52083 2008-04-11  Bruno Haible  <bruno@clisp.org>
52084
52085         * lib/wchar.in.h: Tweak comment.
52086
52087 2008-04-11  Bruno Haible  <bruno@clisp.org>
52088
52089         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52090         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52091         gl_COMMON.
52092         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52093
52094 2008-04-11  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52097
52098 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52099
52100         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52101         of attempting to use non-existing /dev/*random.  Based on patch
52102         from Adam Strzelecki <ono@java.pl> in
52103         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52104
52105 2008-04-08  Bruno Haible  <bruno@clisp.org>
52106
52107         Add tentative support for emx+gcc.
52108         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52109         * lib/fpurge.c (fpurge): Likewise.
52110         * lib/freadable.c (freadable): Likewise.
52111         * lib/freadahead.c (freadahead): Likewise.
52112         * lib/freading.c (freading): Likewise.
52113         * lib/freadptr.c (freadptr): Likewise.
52114         * lib/freadseek.c (freadptrinc): Likewise.
52115         * lib/fseeko.c (rpl_fseeko): Likewise.
52116         * lib/fseterr.c (fseterr): Likewise.
52117         * lib/fwritable.c (fwritable): Likewise.
52118         * lib/fwriting.c (fwriting): Likewise.
52119         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52120
52121 2008-04-09  Eric Blake  <ebb9@byu.net>
52122
52123         Avoid some autoconf warnings.
52124         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52125         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52126         * m4/afs.m4 (gl_AFS): Likewise.
52127         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52128         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52129         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52130         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52131         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52132         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52133         (AC_CHECK_DECLS_ONCE): Likewise.
52134         Rename file...
52135         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52136         gnulib-tool requires autoconf 2.59 or better.
52137         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52138
52139 2008-04-08  Eric Blake  <ebb9@byu.net>
52140
52141         Use 'git describe --match' if present (added in git 1.5.5).
52142         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52143         if possible.
52144
52145 2008-04-08  Bruno Haible  <bruno@clisp.org>
52146
52147         Add tentative support for OpenServer.
52148         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52149         _ptr, _cnt.
52150         * lib/fpurge.c (fpurge): Likewise.
52151         * lib/freadable.c (freadable): Likewise.
52152         * lib/freadahead.c (freadahead): Likewise.
52153         * lib/freading.c (freading): Likewise.
52154         * lib/freadptr.c (freadptr): Likewise.
52155         * lib/freadseek.c (freadptrinc): Likewise.
52156         * lib/fseeko.c (rpl_fseeko): Likewise.
52157         * lib/fseterr.c (fseterr): Likewise.
52158         * lib/fwritable.c (fwritable): Likewise.
52159         * lib/fwriting.c (fwriting): Likewise.
52160         Reported by Roger Cornelius <rac@tenzing.org> and
52161         Brian K. White <brian@aljex.com>.
52162
52163 2008-04-06  Jim Meyering  <meyering@redhat.com>
52164
52165         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52166
52167 2008-04-06  Bruno Haible  <bruno@clisp.org>
52168
52169         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52170         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52171         * tests/test-printf-posix.sh: Likewise.
52172         * tests/test-vfprintf-posix.sh: Likewise.
52173         * tests/test-vprintf-posix.sh: Likewise.
52174         * tests/test-xprintf-posix.sh: Likewise.
52175
52176 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52177
52178         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52179         hide error from 'ls', needed on OS/2.
52180         Report by Elbert Pol <elbert.pol@gmail.com>.
52181
52182 2008-04-04  Eric Blake  <ebb9@byu.net>
52183
52184         Make test-fseeko.c failures meaningful.
52185         * tests/test-fseeko.c: Print line number on failure.
52186         * tests/test-fseek.c: Likewise.
52187         Reported by Nelson H. F. Beebe.
52188
52189         Improve strtod bug detection check.
52190         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52191         required for Solaris 10.
52192         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52193
52194 2008-04-04  Bruno Haible  <bruno@clisp.org>
52195
52196         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52197         by m4/setenv.m4.
52198
52199 2008-04-03  Eric Blake  <ebb9@byu.net>
52200
52201         Ensure sane .version contents.
52202         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52203         version string.
52204         * build-aux/git-version-gen: Improve documentation.
52205
52206         Make GNU make output nicer.
52207         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52208         MAKECMDGOALS to enforce message for all command line targets.  Set
52209         srcdir for use in maint.mk.
52210
52211         Another maintainer tweak.
52212         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52213         a target that regenerates version.
52214
52215 2008-04-03  Jim Meyering  <meyering@redhat.com>
52216
52217         vc-list-files: don't cause coreutils "make po-check" failure
52218         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52219
52220 2008-04-03  Eric Blake  <ebb9@byu.net>
52221
52222         Allow VPATH usage of vc-list-files.
52223         * build-aux/vc-list-files (scriptversion): Add timestamp.
52224         (options): Add --help, --version, -C.
52225         (CVS): Support installed cvsu.
52226
52227 2008-04-02  Bruno Haible  <bruno@clisp.org>
52228
52229         Avoid some "statement with no effect" warnings from gcc.
52230         * tests/test-wctype.c (main): Explicitly ignore unused values.
52231         Reported by Jim Meyering.
52232
52233 2008-04-02  Jim Meyering  <meyering@redhat.com>
52234
52235         Avoid some warnings from "gcc -Wshadow".
52236         * tests/test-frexp.c (exp): Define to a different identifier.
52237         * tests/test-frexpl.c (exp): Likewise.
52238
52239 2008-04-03  Jim Meyering  <meyering@redhat.com>
52240
52241         bootstrap: remove dangling *.[ch] symlinks from lib
52242         * build-aux/bootstrap [dangling symlink removal]: Move find's
52243         -depth option to precede all others, to avoid a warning.
52244         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52245
52246 2008-04-02  Bruno Haible  <bruno@clisp.org>
52247
52248         Avoid some warnings from "gcc -Wshadow".
52249         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52250         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52251         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52252         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52253         Reported by Jim Meyering.
52254
52255 2008-04-01  Bruno Haible  <bruno@clisp.org>
52256
52257         Fix test to work on IRIX 6.5 with cc.
52258         * tests/test-math.c (numeric_equal): New function.
52259         (main): Use it.
52260
52261 2008-04-01  Bruno Haible  <bruno@clisp.org>
52262
52263         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52264
52265 2008-04-01  Bruno Haible  <bruno@clisp.org>
52266
52267         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52268         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52269         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52270         (Depends-on): Remove math.
52271
52272         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52273         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52274         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52275         (Depends-on): Remove math.
52276
52277         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52278         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52279         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52280         (Depends-on): Remove math.
52281         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52282         (Depends-on): Remove math.
52283
52284         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52285         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52286         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52287         (Depends-on): Remove math.
52288         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52289         (Depends-on): Remove math.
52290
52291         * tests/test-round1.c: Include nan.h.
52292         (main): Use NaNd instead of NAN.
52293         * modules/round-tests (Files): Add tests/nan.h.
52294
52295         * tests/test-trunc1.c: Include nan.h.
52296         (main): Use NaNd instead of NAN.
52297         * modules/trunc-tests (Files): Add tests/nan.h.
52298
52299         * tests/test-roundf1.c: Include nan.h.
52300         (main): Use NaNf instead of NAN.
52301         * modules/roundf-tests (Files): Add tests/nan.h.
52302
52303         * tests/test-truncf1.c: Include nan.h.
52304         (main): Use NaNf instead of NAN.
52305         * modules/truncf-tests (Files): Add tests/nan.h.
52306
52307         * tests/test-ceilf1.c: Include nan.h.
52308         (main): Use NaNf instead of NAN.
52309         * modules/ceilf-tests (Files): Add tests/nan.h.
52310
52311         * tests/test-floorf1.c: Include nan.h.
52312         (main): Use NaNf instead of NAN.
52313         * modules/floorf-tests (Files): Add tests/nan.h.
52314
52315         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52316         (main): Use NaNf instead of NAN.
52317         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52318
52319         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52320         (main): Use NaNd instead of NAN.
52321         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52322
52323         * tests/test-frexp.c: Include nan.h.
52324         (main): Use NaNd instead of NAN.
52325         * modules/frexp-tests (Files): Add tests/nan.h.
52326
52327         * lib/isnan.c: Don't include <math.h>.
52328         (FUNC): Don't use NAN macro.
52329         * modules/isnand-nolibm (Depends-on): Remove math.
52330         * modules/isnanf-nolibm (Depends-on): Remove math.
52331         * modules/isnanl (Depends-on): Remove math.
52332         * modules/isnanl-nolibm (Depends-on): Remove math.
52333
52334         * tests/nan.h: New file.
52335
52336 2008-04-01  Eric Blake  <ebb9@byu.net>
52337
52338         Fix typos.
52339         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52340         values to be the right type.
52341
52342         For now, cater to gnulib strtod inaccuracies.
52343         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52344         fractional results.  While not as nice from a QoI perspective, it
52345         is a quicker patch than correctly implementing decimal to binary
52346         rounding.
52347
52348 2008-03-31  Eric Blake  <ebb9@byu.net>
52349
52350         Guarantee a definition of NAN.
52351         * lib/math.in.h (NAN): Define if missing.
52352         * tests/test-math.c (main): Test it.
52353         * doc/posix-headers/math.texi (math.h): Document this.
52354         * lib/isnan.c (rpl_isnand): Use it.
52355         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52356         * tests/test-floorf1.c (NaN): Likewise.
52357         * tests/test-frexp.c (NaN): Likewise.
52358         * tests/test-isnand.c (NaN): Likewise.
52359         * tests/test-isnanf.c (NaN): Likewise.
52360         * tests/test-round1.c (NaN): Likewise.
52361         * tests/test-roundf1.c (NaN): Likewise.
52362         * tests/test-snprintf-posix.h (NaN): Likewise.
52363         * tests/test-sprintf-posix.h (NaN): Likewise.
52364         * tests/test-trunc1.c (NaN): Likewise.
52365         * tests/test-truncf1.c (NaN): Likewise.
52366         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52367         * tests/test-vasprintf-posix.c (NaN): Likewise.
52368         * modules/isnand-nolibm (Depends-on): Add math.
52369         * modules/isnanf-nolibm (Depends-on): Likewise.
52370         * modules/isnanl (Depends-on): Likewise.
52371         * modules/isnanl-nolibm (Depends-on): Likewise.
52372         * modules/snprintf-posix-tests (Depends-on): Likewise.
52373         * modules/sprintf-posix-tests (Depends-on): Likewise.
52374         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52375         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52376         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52377         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52378
52379 2008-03-31  Bruno Haible  <bruno@clisp.org>
52380
52381         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52382         * doc/posix-functions/strtod.texi: Likewise.
52383
52384 2008-03-31  Bruno Haible  <bruno@clisp.org>
52385
52386         * tests/test-strtod.c (main): Don't use C99 syntax.
52387
52388 2008-03-31  Bruno Haible  <bruno@clisp.org>
52389
52390         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52391         Reported by Eric Blake.
52392
52393 2008-03-31  Jim Meyering  <meyering@redhat.com>
52394
52395         Don't compare actual signbit return values.
52396         * tests/test-strtod.c (main): Rather, compare only their
52397         zero/non-zero nature.
52398
52399 2008-03-31  Eric Blake  <ebb9@byu.net>
52400
52401         More strtod documentation.
52402         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52403         failures as distinct bugs.
52404
52405 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52406
52407         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52408         Problem reported by Erik Benada in
52409         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52410
52411 2008-03-30  Bruno Haible  <bruno@clisp.org>
52412
52413         * tests/test-strtod.c: Add comments about which assertion fails on which
52414         platform.
52415         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52416
52417 2008-03-30  Eric Blake  <ebb9@byu.net>
52418
52419         Test signbit behavior on zeros.
52420         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52421         (test_signbitd, test_signbitl): Likewise.
52422
52423         More strtod touchups.
52424         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52425         sign of negative underflow, for now.  Use .5, not .1.
52426         * doc/posix-functions/strtod.texi (strtod): Mention these
52427         limitations.
52428         Reported by Jim Meyering.
52429
52430 2008-03-30  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52433         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52434
52435 2008-03-30  Bruno Haible  <bruno@clisp.org>
52436
52437         Avoid failure when attempting to return empty iconv results on some
52438         platforms.
52439         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52440         allocation, don't report ENOMEM when the resulting string is empty.
52441
52442 2008-03-30  Bruno Haible  <bruno@clisp.org>
52443
52444         Fix buffer overrun.
52445         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52446         Don't consider the width for tmp_length. Check count against tmp_length
52447         before doing the padding. Ensure enough allocation during padding.
52448
52449 2008-03-30  Eric Blake  <ebb9@byu.net>
52450
52451         strtod touchups.
52452         * lib/strtod.c (strtod): Avoid compiler warnings.
52453         Reported by Jim Meyering.
52454
52455 2008-03-30  Bruno Haible  <bruno@clisp.org>
52456
52457         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52458         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52459         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52460         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52461         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52462         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52463         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52464         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52465
52466         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52467         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52468         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52469         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52470         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52471         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52472         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52473         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52474
52475         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52476         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52477         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52478         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52479         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52480         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52481         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52482         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52483
52484         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52485         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52486
52487         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52488         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52489
52490         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52491         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52492
52493         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52495         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52496
52497         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52499         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52500
52501         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52503         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52504
52505         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52507         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52508
52509         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52510         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52512         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52513         (Depends-on): Add EOVERFLOW.
52514         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52515         (Depends-on): Add EOVERFLOW.
52516         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52517         (Depends-on): Add EOVERFLOW.
52518         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52519         (Depends-on): Add EOVERFLOW.
52520         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52521         (Depends-on): Add EOVERFLOW.
52522         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52523         (Depends-on): Add EOVERFLOW.
52524         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52525         (Depends-on): Add EOVERFLOW.
52526         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52527         (Depends-on): Add EOVERFLOW.
52528
52529         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52531         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52532
52533         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52535         * modules/snprintf (Depends-on): Add EOVERFLOW.
52536
52537         * lib/poll.c (EOVERFLOW): Remove fallback.
52538         * modules/poll (Depends-on): Add EOVERFLOW.
52539
52540         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52541         * modules/getugroups (Depends-on): Add EOVERFLOW.
52542
52543         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52544         * modules/getdelim (Depends-on): Add EOVERFLOW.
52545
52546         * lib/ftell.c (EOVERFLOW): Remove fallback.
52547         * modules/ftell (Depends-on): Add EOVERFLOW.
52548
52549         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52551         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52552
52553         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52554
52555         * modules/EOVERFLOW-tests: New file.
52556         * tests/test-EOVERFLOW.c: New file.
52557
52558         * modules/EOVERFLOW: New file.
52559         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52560
52561 2008-03-30  Bruno Haible  <bruno@clisp.org>
52562
52563         Fix bug introduced on 2007-06-10.
52564         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52565         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52566
52567 2008-03-30  Bruno Haible  <bruno@clisp.org>
52568
52569         Improve freadseek's efficiency after ungetc.
52570         * lib/freadseek.c: Include freadahead.h.
52571         (freadptrinc): New function, extracted from freadseek.
52572         (freadseek): Use it in a loop. Use freadahead to determine the number
52573         of loop iterations.
52574         * modules/freadseek (Depends-on): Add freadahead.
52575         (configure.ac): Require AC_C_INLINE.
52576
52577 2008-03-30  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/freadseek.c (freadseek): Don't ignore the return value of
52580         freadptr.
52581
52582 2008-03-29  Eric Blake  <ebb9@byu.net>
52583
52584         Add hex float support.
52585         * modules/strtod (Depends-on): Add c-ctype.
52586         (Link): Mention POW_LIB.
52587         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52588         whitespace between 'e' and exponent.
52589         * tests/test-strtod.c (main): Enable hex float tests.
52590         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52591         now provides.
52592
52593         Document various strtod bugs, with some fixes.
52594         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52595         "-0x", "inf", "nan", and hex constants.
52596         * doc/posix-functions/atof.texi (atof): Likewise.
52597         * modules/stdlib (Makefile.am): Support strtod.
52598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52599         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52600         detect additional strtod bugs.
52601         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52602         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52603         bool where appropriate.  Parse 'inf' and 'nan'.
52604         * tests/test-strtod.c: New file.
52605         * modules/strtod (Depends-on): Add stdbool, stdlib.
52606         (configure.ac): Turn on module indicator.
52607         * modules/strtod-tests: New module.
52608
52609 2008-03-29  Eric Blake  <ebb9@byu.net>
52610
52611         Fix ftell on mingw.
52612         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52613         * modules/ftell-tests (Depends-on): Add binary-io.
52614         * modules/ftello-tests (Depends-on): Likewise.
52615         * tests/test-ftell.c (main): Enhance test to cover behavior after
52616         ungetc.  Enforce binary mode.
52617         * tests/test-ftello.c (main): Likewise.
52618
52619         Pass test-freadseek on cygwin.
52620         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52621         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52622         ungetc buffer.
52623
52624         * tests/test-fflush2.c (main): Fix typo.
52625
52626 2008-03-29  Bruno Haible  <bruno@clisp.org>
52627
52628         * tests/test-fflush2.c (main): Temporarily disable the contents of
52629         this test.
52630         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52631         Reported by Eric Blake.
52632
52633 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52634
52635         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52636         (GC_SHA224_DIGEST_SIZE): Add.
52637
52638         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52639         (gc_hash_digest_length): Likewise.
52640         (gc_hash_buffer): Likewise.
52641
52642 2008-03-25  Bruno Haible  <bruno@clisp.org>
52643
52644         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52645         detail which gettext release to use.
52646         Reported by Simon Josefsson.
52647
52648 2008-03-26  Jim Meyering  <meyering@redhat.com>
52649
52650         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52651         * modules/gnumakefile (clean-GNUmakefile): Also, use
52652         test ... && ... || : syntax rather than if-then ... fi.
52653
52654         gnumakefile: Don't double-quote-expand $(VPATH) value.
52655         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52656
52657 2008-03-24  Eric Blake  <ebb9@byu.net>
52658
52659         Alter GNUmakefile to install into top directory.
52660         * modules/maintainer-makefile: Split, and add dependency...
52661         * modules/gnumakefile: to this new module.
52662         * build-aux/GNUmakefile: Move...
52663         * top/GNUmakefile: ...here.
52664         * build-aux/maint.mk: Move...
52665         * top/maint.mk: ...here.
52666         * MODULES.html.sh (Support for maintaining...): Document new
52667         module.
52668
52669 2008-03-23  Bruno Haible  <bruno@clisp.org>
52670
52671         * gnulib-tool: New options --vc-files, --no-vc-files.
52672         (func_usage): Document them.
52673         (vc_files): New variable.
52674         (func_import): Consider vc_files.
52675         (func_create_testdir): Set vc_files to empty.
52676         Suggested by Jim Meyering and Karl Berry.
52677
52678 2008-03-23  Bruno Haible  <bruno@clisp.org>
52679
52680         Fix regex compilation error on HP-UX 11.
52681         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52682         * modules/regex (Files): Add m4/mbstate_t.m4.
52683         Reported by Ton Voon <ton.voon@altinity.com>.
52684
52685 2008-03-23  Bruno Haible  <bruno@clisp.org>
52686
52687         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52688
52689 2008-03-23  Eric Blake  <ebb9@byu.net>
52690             Bruno Haible  <bruno@clisp.org>
52691
52692         Install files from top/ in the destination directory.
52693         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52694         augmentation also for the files from top/.
52695         (func_import, func_create_testdir): Rewrite file names:
52696         top/filename -> filename.
52697
52698 2008-03-23  Bruno Haible  <bruno@clisp.org>
52699
52700         Tweak "gnulib --version" output.
52701         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52702
52703 2008-03-23  Bruno Haible  <bruno@clisp.org>
52704
52705         Tweak "gnulib --version" output.
52706         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52707         rather than contents of ChangeLog, when possible.
52708
52709 2008-03-21  Eric Blake  <ebb9@byu.net>
52710
52711         More --version tweaks.
52712         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52713         date of last ChangeLog entry.
52714
52715 2008-03-21  Jim Meyering  <meyering@redhat.com>
52716
52717         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52718
52719 2008-03-20  Eric Blake  <ebb9@byu.net>
52720
52721         VPATH fix.
52722         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52723
52724 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52725
52726         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52727         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52728
52729 2008-03-20  Eric Blake  <ebb9@byu.net>
52730
52731         Sync GNUmakefile with coreutils.
52732         * build-aux/GNUmakefile (have-Makefile): Rename...
52733         (_have-Makefile): ...to this, for namespace consideration.
52734         (GNUmakefile.cfg): Include, if present.
52735         (_autoreconf): Define a default.
52736         (_is-dist-target): New rule for rebuilds to pick up intra-release
52737         version.
52738         (maint-cfg.mk): Rename...
52739         (cfg.mk): ...to this.
52740
52741 2008-03-18  Jim Meyering  <meyering@redhat.com>
52742
52743         New script and module: mktempd
52744         * MODULES.html.sh (maint+release support): Add mktempd.
52745         * build-aux/mktempd: New file.
52746         * modules/mktempd: New file.
52747
52748 2008-03-15  Jim Meyering  <meyering@redhat.com>
52749
52750         Undo last change.
52751         * lib/sha1.c, lib/md5.c: 63 != ~63.
52752         Reported by Andreas Schwab.
52753
52754         sha1.c, md5.c: Hoist a redundant expression.
52755         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52756         "ctx->buflen" only once, before calling *_process_block.
52757         * lib/md5.c (md5_process_bytes): Likewise.
52758
52759 2008-03-14  Eric Blake  <ebb9@byu.net>
52760
52761         Bump copyright year in files generated by gnulib-tool.
52762         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52763         gnulib-tool, rather than hard-coding it.
52764
52765         Fix 'gnulib-tool --version' output to work with git.
52766         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52767         (startup): ...here.
52768         (func_version): Use it to invoke git-version-gen, rather than
52769         relying on CVS keyword expansion.  Modernize wording.
52770         (cvsdatestamp, last_checkin_date, version): Kill unused
52771         variables.
52772
52773 2008-03-12  Jim Meyering  <meyering@redhat.com>
52774
52775         Recognize optional cast of the argument to free.
52776         * build-aux/useless-if-before-free: Update regexps.
52777
52778         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52779
52780 2008-03-11  Bruno Haible  <bruno@clisp.org>
52781
52782         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52783         by a single package.
52784         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52785         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52786         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52787         Reported by Sam Steingold <sds@gnu.org>.
52788
52789 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52790
52791         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52792         repositories.
52793
52794 2008-03-11  Bruno Haible  <bruno@clisp.org>
52795
52796         Avoid conflicts between local macro definitions.
52797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52798         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52799
52800 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52801             Bruno Haible  <bruno@clisp.org>
52802
52803         Make va_copy work with some version of xlc on AIX 5.1.
52804         * lib/stdarg.in.h: New file.
52805         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52806         On AIX, use a <stdarg.h> file substitute.
52807         * modules/stdarg (Files): Add lib/stdarg.in.h.
52808         (Depends-on): Add include_next.
52809         (Makefile.am): Build a stdarg.h substitute if requested.
52810         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52811
52812 2008-03-10  Bruno Haible  <bruno@clisp.org>
52813
52814         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52816         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52817
52818 2008-03-10  Bruno Haible  <bruno@clisp.org>
52819
52820         * modules/stdlib (Depends-on): Add include_next, remove
52821         absolute-header.
52822
52823 2008-03-09  Bruno Haible  <bruno@clisp.org>
52824
52825         * lib/freadahead.h (freadahead): Document more precisely.
52826         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52827         the sum of both buffer sizes.
52828         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52829         * NEWS: Document the change.
52830
52831 2008-03-09  Bruno Haible  <bruno@clisp.org>
52832
52833         Extend freadptr to return also the buffer size.
52834         * lib/freadptr.h (freadptr): Add sizep argument.
52835         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52836         (freadptr): Add sizep argument. Determine buffer size like freadahead
52837         does.
52838         * tests/test-freadptr.c: Don't include freadahead.h.
52839         (main): Adapt for new calling convention of freadptr.
52840         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52841         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52842         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52843         tests/test-freadptr2.sh.
52844         (Depends): Remove freadahead.
52845         (TESTS): Add test-freadptr2.sh.
52846         (check_PROGRAMS): Add test-freadptr2.
52847
52848 2008-03-09  Bruno Haible  <bruno@clisp.org>
52849
52850         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52851         Report and solution by Simon Josefsson.
52852
52853 2008-03-06  Bruno Haible  <bruno@clisp.org>
52854
52855         Make fflush after ungetc work on BSD platforms.
52856         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52857         * tests/test-fflush2.c: New file.
52858         * tests/test-fflush2.sh: New file.
52859         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52860         tests/test-fflush2.c.
52861         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52862         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52863
52864 2008-03-06  Eric Blake  <ebb9@byu.net>
52865
52866         Likewise for ftello.
52867         * modules/ftello (Dependencies): Add extensions.
52868         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52869
52870 2008-03-06  Bruno Haible  <bruno@clisp.org>
52871
52872         * modules/fseeko (Dependencies): Add extensions.
52873         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52874         Needed on glibc systems.
52875
52876 2008-03-06  Bruno Haible  <bruno@clisp.org>
52877
52878         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52879         email address.
52880         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52881
52882 2008-03-06  Bruno Haible  <bruno@clisp.org>
52883
52884         * users.txt: Add libgnupdf.
52885
52886 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52887
52888         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52889         (Header File Substitutes, Function Substitutes,
52890         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52891         (Build robot for gnulib): Fix typo.
52892
52893 2008-03-06  Bruno Haible  <bruno@clisp.org>
52894
52895         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52896         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52897
52898 2008-03-06  Bruno Haible  <bruno@clisp.org>
52899
52900         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52901         * doc/gnulib.texi: Include it.
52902
52903 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52904
52905         * modules/func (License): Change license to unlimited; there was
52906         no LGPL parts in the module anyway.
52907
52908 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52909
52910         * modules/__func__: Renamed to modules/func.
52911         * modules/__func__-tests: Renamed to modules/func-tests.
52912         * tests/test-__func__.c: Renamed to tests/test-func.c.
52913         * m4/__func__.m4: Renamed to m4/func.m4.
52914         * doc/gnulib.texi (__func__): Section renamed to func.
52915         Suggested by Eric Blake <ebb9@byu.net>.
52916
52917 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52918
52919         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52920         about __func__.  Make example self-contained.  Suggested by Eric
52921         Blake <ebb9@byu.net>.
52922
52923         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52924         Suggested by Eric Blake <ebb9@byu.net>.
52925
52926 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52927
52928         * modules/__func__: New file.
52929         * modules/__func__-tests: New file.
52930         * tests/test-__func__.c: New file.
52931         * m4/__func__.m4: New file.
52932         * doc/gnulib.texi (__func__): Document __func__ module.
52933
52934 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52935
52936         * modules/byteswap (License): Re-license as LGPLv2+.
52937
52938 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52939
52940         * doc/Makefile: Add pdf target.
52941
52942 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52943
52944         * modules/inline (License): Use 'unlimited', since there are only
52945         *.m4 files in this module.
52946
52947 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52948             Bruno Haible  <bruno@clisp.org>
52949
52950         Add support for HP C 7.1 on OpenVMS 8.3.
52951         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52952
52953 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52954
52955         Update VMS specifics.
52956         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52957
52958 2008-03-02  Jim Meyering  <meyering@redhat.com>
52959
52960         Remove the last dependency on the "free" module.
52961         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52962         Reported by Bob Proulx.
52963
52964         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52965
52966         Remove useless "if" tests before free.  Deprecate "free" module.
52967         * doc/posix-functions/free.texi: Mention that this
52968         module is no longer useful.
52969         * modules/free (Notice): Say this module is obsolete.
52970         * modules/readutmp (Depends-on): Remove free.
52971         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52972         * lib/putenv.c (putenv): Likewise.
52973         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52974         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52975         * tests/test-c-strcasestr.c (main): Likewise.
52976         * tests/test-c-strstr.c (main): Likewise.
52977         * tests/test-mbscasestr1.c (main): Likewise.
52978         * tests/test-mbscasestr2.c (main): Likewise.
52979         * tests/test-mbsstr1.c (main): Likewise.
52980         * tests/test-mbsstr2.c (main): Likewise.
52981         * tests/test-memmem.c (main): Likewise.
52982         * tests/test-strcasestr.c (main): Likewise.
52983         * tests/test-striconv.c (main): Likewise.
52984         * tests/test-striconveh.c (main): Likewise.
52985         * tests/test-striconveha.c (main): Likewise.
52986         * tests/test-strstr.c (main): Likewise.
52987
52988         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52989
52990         bootstrap: sync from coreutils again
52991         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52992
52993 2008-03-01  Jim Meyering  <meyering@redhat.com>
52994
52995         bootstrap: sync from coreutils
52996         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52997         also when the target doesn't exist.
52998
52999 2008-03-01  Eric Blake  <ebb9@byu.net>
53000
53001         Fix bugs in last patch.
53002         * lib/memchr2.c (memchr2): Fix typo.
53003         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53004         extension.
53005         Reported by Bruce Korb.
53006
53007         New module 'memchr2'.
53008         * modules/memchr2: New file.
53009         * modules/memchr2-tests: Likewise.
53010         * lib/memchr2.h: Likewise.
53011         * lib/memchr2.c: Likewise, based on memchr.c.
53012         * tests/test-memchr2.c: New test.
53013         * MODULES.html.sh (String handling): Add memchr2.
53014
53015 2008-02-29  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/freadseek-tests: New file.
53018         * tests/test-freadseek.sh: New file.
53019         * tests/test-freadseek.c: New file.
53020
53021         New module 'freadseek'.
53022         * modules/freadseek: New file.
53023         * lib/freadseek.h: New file.
53024         * lib/freadseek.c: New file.
53025         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53026
53027 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53028
53029         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53030         wydawca.
53031
53032         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53033         program_invocation_name and program_invocation_short_name are
53034         present.
53035
53036 2008-02-28  Bruno Haible  <bruno@clisp.org>
53037
53038         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53039         * tests/test-freadptr.sh: Also test non-seekable stdin.
53040
53041 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53042
53043         * build-aux/bootstrap (source_base, m4_base)
53044         (doc_base, tests_base): New variables.
53045         (gnulib_tool_options): Do not hardcode base directories, use
53046         the above variables instead.
53047
53048 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53049
53050         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53051
53052 2008-02-28  Bruno Haible  <bruno@clisp.org>
53053
53054         * modules/freadptr-tests: New file.
53055         * tests/test-freadptr.sh: New file.
53056         * tests/test-freadptr.c: New file.
53057
53058         New module 'freadptr'.
53059         * modules/freadptr: New file.
53060         * lib/freadptr.h: New file.
53061         * lib/freadptr.c: New file.
53062         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53063
53064 2008-02-26  Karl Berry  <karl@freefriends.org>
53065
53066         Sync from Libtool:
53067         * libltdl/argz.c (argz_add, argz_count): New functions.
53068         * libltdl/argz.in.h: Declare them.
53069         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53070
53071 2008-02-22  Bruno Haible  <bruno@clisp.org>
53072
53073         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53074         is a pointer type.  Needed for HP-UX 10.
53075         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53076         * doc/posix-functions/gmtime_r.texi: Likewise.
53077         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53078
53079 2008-02-24  Bruno Haible  <bruno@clisp.org>
53080
53081         * modules/environ-tests: New file.
53082         * tests/test-environ.c: New file.
53083
53084         New module 'environ'.
53085         * modules/environ: New file.
53086         * lib/unistd.in.h (environ): New declaration.
53087         * m4/environ.m4: New file.
53088         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53089         after use.
53090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53091         HAVE_DECL_ENVIRON.
53092         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53093         HAVE_DECL_ENVIRON.
53094         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53095         wrong claim that 'environ' is missing on some systems.
53096         * modules/execute (Depends-on): Add environ.
53097         * lib/execute.c (environ): Remove fallback declaration.
53098         * modules/pipe (Depends-on): Add environ.
53099         * lib/pipe.c (environ): Remove fallback declaration.
53100         * modules/setenv (Depends-on): Add environ.
53101         * lib/setenv.c (environ): Remove fallback declaration.
53102         * modules/unsetenv (Depends-on): Add environ.
53103         * lib/unsetenv.c (environ): Remove fallback declaration.
53104         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53105         m4/environ.m4.
53106         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53107         (gl_PREREQ_UNSETENV): Likewise.
53108
53109 2008-02-24  Bruno Haible  <bruno@clisp.org>
53110
53111         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53112
53113 2008-02-20  Bob Proulx  <bob@proulx.com>
53114
53115         Enable use of older two part flavor 'git describe'.
53116         * build-aux/git-version-gen: If using the older two part flavor of
53117         git version then recreate the third part now present in the
53118         newer three part flavor of git describe.
53119
53120 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53121
53122         * lib/fts.c (fts_build): Typo correction to comment.
53123
53124 2008-02-17  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53127         generating no-op conflicts.
53128
53129 2008-02-17  Bruno Haible  <bruno@clisp.org>
53130
53131         Speed up by 10%.
53132         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53133         result_entries, rather than an index-based loop.
53134
53135 2008-02-17  Bruno Haible  <bruno@clisp.org>
53136
53137         Speed up by 25%.
53138         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53139         'hashcode_cached'.
53140         (entry_create): New function.
53141         (entry_hashcode): Use the cached hashcode if possible.
53142         (read_changelog_file, try_split_merged_entry): Use entry_create.
53143
53144 2008-02-17  Bruno Haible  <bruno@clisp.org>
53145
53146         Speed up from O(n^2) to O(n) for long ChangeLog files.
53147         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53148         (read_changelog_file): Change implementation of entries_reversed list
53149         to rbtreehash.
53150         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53151
53152 2008-02-17  Bruno Haible  <bruno@clisp.org>
53153
53154         New option --split-merged-entry.
53155         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53156         (find_paragraph_end, try_split_merged_entry): New functions.
53157         (long_options): Add option --split-merged-entry.
53158         (usage): Document option --split-merged-entry.
53159         (main): Implement option --split-merged-entry.
53160         Reported by Eric Blake.
53161
53162 2008-02-17  Bruno Haible  <bruno@clisp.org>
53163
53164         * lib/git-merge-changelog.c: Include c-strstr.h.
53165         (main): Support the "git pull --rebase" situation.
53166         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53167         Reported by Eric Blake.
53168
53169 2008-02-16  Eric Blake  <ebb9@byu.net>
53170
53171         Avoid doubling \ in common case of "c-maybe" quoting style.
53172         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53173         eliding outer quotes.
53174         * lib/quotearg.h: Document this.
53175         * tests/test-quotearg.c (result_strings, inputs, results_g)
53176         (flag_results, locale_results): Test it by adding a new string to
53177         each test group.
53178         (compare_strings): Test new string.
53179
53180 2008-02-13  Eric Blake  <ebb9@byu.net>
53181
53182         Avoid trigraph quoting in default output.
53183         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53184         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53185         unless explicitly requested.
53186         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53187
53188 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53189
53190         Don't rely on signed integer overflowing to negative value.
53191         * lib/getugroups.c (getugroups): Include <limits.h>.
53192         Instead, compare against INT_MAX, and increment only if the test passes.
53193
53194 2008-02-13  Jim Meyering  <meyering@redhat.com>
53195         and Eric Blake  <ebb9@byu.net>
53196
53197         Avoid shadowing warning and compile errors on Linux.
53198         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53199         forwarding macros on Linux.
53200         (dcgettext): Define a stub, for Linux.
53201         (results_g, main): Avoid warnings.
53202
53203 2008-02-12  Eric Blake  <ebb9@byu.net>
53204
53205         Silence warning in last patch.
53206         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53207
53208         Quotearg part 4: add tests, fix c-maybe colon quoting.
53209         * lib/quotearg.h: Improve documentation.
53210         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53211         escapes when adding outer quotes.  When quoting trigraphs, use
53212         valid C notation.  When quoting NUL, omit extra characters if next
53213         character is not digit.  Alter prototype.
53214         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53215         callers.
53216         * modules/quotearg-tests: New module.
53217         * tests/test-quotearg.c: New test.
53218
53219 2008-02-07  Eric Blake  <ebb9@byu.net>
53220
53221         Quotearg part 3: add flag to control outer quote elision.
53222         * lib/quotearg.h (c_maybe_quoting_style): New style.
53223         (enum quoting_flags): Better documentation of flags.
53224         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53225         c-maybe style.
53226         (quotearg_buffer_restyled): Handle new flag to elide outer
53227         quotes.
53228
53229         Quotearg part 2: add flag that can control NUL elision.
53230         * lib/quotearg.h (set_quoting_flags): New prototype.
53231         * lib/quotearg.c (struct quoting_options): Add flag field.
53232         (set_quoting_flags): New function.
53233         (quotearg_buffer_restyled): Add flags parameter.
53234         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53235         (quotearg_n_options): Set the flag, since length cannot be
53236         returned.
53237         (quoting_options_from_style): Default flags correctly.
53238
53239         Quotearg part 1: more wrappers, restore quotearg_char state.
53240         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53241         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53242         (quotearg_colon_mem): New wrappers.
53243         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53244         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53245         functions.
53246         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53247         (quotearg_colon_mem): New functions.
53248
53249 2008-02-11  Bruno Haible  <bruno@clisp.org>
53250
53251         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53252         library in the current directory: it does not work with parallel make.
53253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53254
53255 2008-02-11  Bruno Haible  <bruno@clisp.org>
53256
53257         * .gitattributes: New file.
53258
53259 2008-02-11  Jim Meyering  <meyering@redhat.com>
53260
53261         useless-if-before-free: Fix reversed exit values.
53262         * build-aux/useless-if-before-free: Use correct values
53263         for EXIT_MATCH and EXIT_NO_MATCH.
53264
53265         * build-aux/useless-if-before-free: Close stdout carefully.
53266
53267 2008-02-10  Bruno Haible  <bruno@clisp.org>
53268
53269         New module 'git-merge-changelog'.
53270         * modules/git-merge-changelog: New file.
53271         * lib/git-merge-changelog.c: New file.
53272
53273 2008-02-10  Jim Meyering  <meyering@redhat.com>
53274
53275         useless-if-before-free: New option: --list (-l).
53276
53277         useless-if-before-free: Don't exit immediately upon open failure.
53278         * build-aux/useless-if-before-free: Exit 2 for errors.
53279         Upon failure to open a file, don't exit immediately.
53280         Rather, just warn and continue with any remaining files.
53281
53282 2008-02-10  Bruno Haible  <bruno@clisp.org>
53283
53284         New abstract list operation 'node_set_value'.
53285         * lib/gl_list.h (gl_list_node_set_value): New function.
53286         (struct gl_list_implementation): New field node_set_value.
53287         * lib/gl_list.c (gl_list_node_set_value): New function.
53288         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53289         (gl_array_list_implementation): Update.
53290         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53291         (gl_carray_list_implementation): Update.
53292         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53293         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53294         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53295         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53296         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53297         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53298         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53299         Update.
53300         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53301         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53302         (gl_sublist_list_implementation): Update.
53303
53304 2008-02-10  Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53307         Needed when ELEMENT is #defined to 'some_type *'.
53308
53309 2008-02-10  Jim Meyering  <meyering@redhat.com>
53310
53311         New script and module: useless-if-before-free
53312         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53313         * build-aux/useless-if-before-free: New file.
53314         * modules/useless-if-before-free: New file.
53315
53316         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53317
53318         xstrtol_error: Fix typo.
53319         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53320         s/exit_failure/exit_status/.
53321
53322 2008-02-09  Jim Meyering  <meyering@redhat.com>
53323
53324         New script and module: gitlog-to-changelog
53325         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53326         * modules/gitlog-to-changelog: New file.
53327         * build-aux/gitlog-to-changelog: New file.
53328
53329 2008-02-08  Jim Meyering  <meyering@redhat.com>
53330
53331         Avoid two "parameter unused" warnings.
53332         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53333         Mark "st" as used.
53334
53335         Use "git COMMAND", not "git-COMMAND".
53336         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53337         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53338         * build-aux/git-version-gen: Use "git status", not "git-status".
53339
53340 2008-02-07  Bruno Haible  <bruno@clisp.org>
53341
53342         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53343         Avoids a crash on Windows Vista.
53344         Reported by Adam Strzelecki <ono@java.pl> via
53345         Simon Josefsson <simon@josefsson.org>.
53346
53347 2008-02-06  Bruno Haible  <bruno@clisp.org>
53348
53349         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53350         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53351         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53353         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53355         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53356         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53364         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53365         left-adjust flag.
53366         * tests/test-snprintf-posix.h (test_function): Likewise.
53367         * tests/test-sprintf-posix.h (test_function): Likewise.
53368         * tests/test-vasprintf-posix.c (test_function): Likewise.
53369         * doc/posix-functions/fprintf.texi: Update.
53370         * doc/posix-functions/printf.texi: Update.
53371         * doc/posix-functions/snprintf.texi: Update.
53372         * doc/posix-functions/sprintf.texi: Update.
53373         * doc/posix-functions/vfprintf.texi: Update.
53374         * doc/posix-functions/vprintf.texi: Update.
53375         * doc/posix-functions/vsnprintf.texi: Update.
53376         * doc/posix-functions/vsprintf.texi: Update.
53377         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53378
53379 2008-02-06  Bruno Haible  <bruno@clisp.org>
53380
53381         Fix bug introduced on 2008-01-26.
53382         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53383
53384 2008-02-06  Bruno Haible  <bruno@clisp.org>
53385
53386         Fix bug introduced on 2007-06-10.
53387         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53388         !NEED_PRINTF_FLAG_ZERO.
53389
53390 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53391
53392         getloadavg: use libperfstat on AIX5
53393         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53394
53395 2008-02-03  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/diffseq.h: Add comments about required #includes.
53398         Reported by Michael Biggs <gnulib@doubleplum.net>.
53399
53400 2008-02-01  Bruno Haible  <bruno@clisp.org>
53401
53402         * users.txt: Add gnuit.
53403
53404 2008-01-31  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/md4.c (set_uint32): Mark as inline.
53407         * lib/md5.c (set_uint32): Likewise.
53408         * lib/sha1.c (set_uint32): Likewise.
53409         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53410         * m4/md5.m4 (gl_MD5): Likewise.
53411         * m4/sha1.m4 (gl_SHA1): Likewise.
53412
53413 2008-01-31  Jim Meyering  <meyering@redhat.com>
53414
53415         Use "sizeof VAR", rather than a literal "4".
53416         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53417         * lib/md4.c (md4_read_ctx): Likewise.
53418         * lib/sha1.c (sha1_read_ctx): Likewise.
53419
53420 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53421
53422         * tests/test-sha1.c: New file, based on test-md5.c.
53423
53424         * modules/crypto/sha1-tests: New file.
53425
53426 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53427
53428         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53429
53430 2008-01-31  Jim Meyering  <meyering@redhat.com>
53431
53432         Prefer "sizeof v" over the equivalent "4".
53433         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53434         * lib/md5.c (set_uint32): Likewise.
53435         * lib/sha1.c (set_uint32): Likewise.
53436
53437 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53438
53439         * lib/sha1.c (set_uint32): Mark function as static.
53440
53441 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53442
53443         md2: clarify comments to say that alignment is not required.
53444         * lib/md2.h: Remove warning about alignment in comment.
53445         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53446         never been required.
53447
53448 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53449
53450         md4: adapt alignment constraint fix from sha1.
53451         * lib/md4.c (set_uint32): New function, from sha1.c
53452         (md4_read_ctx): Use it.
53453         (md4_finish_ctx): Doc fix.
53454         * lib/md4.h: Doc fix.
53455
53456 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53457
53458         md5: adapt alignment constraint fix from sha1.
53459         * lib/md5.c (set_uint32): New function, from sha1.c
53460         (md5_read_ctx): Use it.
53461         (md5_finish_ctx): Doc fix.
53462         * lib/md5.h: Doc fix.
53463
53464 2008-01-30  Peter Palfrader  <weasel@debian.org>
53465
53466         sha1: remove the result buffer alignment constraint
53467         * lib/sha1.c (set_uint32): New function.
53468         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53469         constraint.
53470         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53471         * lib/sha1.h: Likewise.
53472
53473 2008-01-30  Andreas Schwab  <schwab@suse.de>
53474             Bruno Haible  <bruno@clisp.org>
53475
53476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53477         correct definition of LDBL_MIN_EXP.
53478
53479 2008-01-30  Karl Berry  <karl@gnu.org>
53480
53481         * config/srclist-update: try to preserve x bit on updates.
53482         * config/srclistvars.sh: update for karl.
53483
53484 2008-01-29  Jim Meyering  <meyering@redhat.com>
53485
53486         vasnprintf.c: Avoid warning about unused label
53487         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53488         "overflow" label definition and associated code with the
53489         same cpp condition that guards the sole use of that label.
53490
53491 2008-01-26  Bruno Haible  <bruno@clisp.org>
53492
53493         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53494         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53495         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53496         * lib/isnanl-nolibm.h (isnanl): Likewise.
53497         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53498
53499 2008-01-26  Bruno Haible  <bruno@clisp.org>
53500
53501         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53502         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53503
53504 2008-01-26  Bruno Haible  <bruno@clisp.org>
53505
53506         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53507         GCC >= 4.0 built-in.
53508         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53509
53510 2008-01-26  Bruno Haible  <bruno@clisp.org>
53511
53512         Rename isnan, applicable to 'double' only, to isnand.
53513         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53514         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53515         (configure.ac): Update.
53516         (Include): Replace "isnan.h" with "isnand.h".
53517         * m4/isnand.m4: Renamed from m4/isnan.m4.
53518         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53519         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53520         instead of isnan.c.
53521         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53522         instead of HAVE_ISNAN_IN_LIBC.
53523         (isnand): Renamed from isnan.
53524         * lib/isnand.c: New file.
53525         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53526         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53527         (Makefile.am): Update.
53528         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53529         Include isnand.h instead of isnan.h.
53530         (main): Test isnand instead of isnan.
53531         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53532         isnan-nolibm.
53533         * modules/frexp (Depends-on): Likewise.
53534         * modules/frexp-tests (Depends-on): Likewise.
53535         * modules/frexp-nolibm (Depends-on): Likewise.
53536         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53537         * modules/isfinite (Depends-on): Likewise.
53538         * modules/round-tests (Depends-on): Likewise.
53539         * modules/signbit (Depends-on): Likewise.
53540         * modules/signbit-tests (Depends-on): Likewise.
53541         * modules/snprintf-posix (Depends-on): Likewise.
53542         * modules/sprintf-posix (Depends-on): Likewise.
53543         * modules/trunc-tests (Depends-on): Likewise.
53544         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53545         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53546         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53547         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53548         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53549         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53550         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53551         * modules/vasnprintf-posix (Depends-on): Likewise.
53552         * modules/vasprintf-posix (Depends-on): Likewise.
53553         * modules/vfprintf-posix (Depends-on): Likewise.
53554         * modules/vsnprintf-posix (Depends-on): Likewise.
53555         * modules/vsprintf-posix (Depends-on): Likewise.
53556         * lib/frexp.c: Include isnand.h instead of isnan.h.
53557         (ISNAN): Set to isnand instead of isnan.
53558         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53559         (gl_isfinited): Use isnand instead of isnan.
53560         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53561         (gl_signbitd): Use isnand instead of isnan.
53562         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53563         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53564         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53565         (main): Use isnand instead of isnan.
53566         * tests/test-round1.c: Include isnand.h.
53567         (main): Use isnand instead of isnan.
53568         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53569         (ISNAN): Set to isnand instead of isnan.
53570         * tests/test-trunc1.c: Include isnand.h.
53571         (main): Use isnand instead of isnan.
53572         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53573         (equal): Use isnand instead of isnan.
53574         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53575         isnand-nolibm.
53576         * NEWS: Mention the change.
53577
53578 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53579             Bruno Haible  <bruno@clisp.org>
53580
53581         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53582         the GCC builtins for signbits are present and set
53583         REPLACE_SIGNBIT_USING_GCC if so.
53584         * lib/math.in.h (signbit): Define using GCC builtins if
53585         REPLACE_SIGNBIT_USING_GCC is set.
53586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53587         REPLACE_SIGNBIT_USING_GCC.
53588         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53589
53590 2008-01-25  Jim Meyering  <meyering@redhat.com>
53591
53592         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53593         * lib/poll.c: Include <config.h>, not "config.h".
53594         * tests/test-getaddrinfo.c: Likewise.
53595
53596 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53597
53598         * modules/sockets-tests: New file.
53599
53600 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53601
53602         * modules/sockets: New module, can be used to call WSA_Startup and
53603         WSA_Cleanup when needed.
53604
53605         * lib/sockets.h, lib/sockets.c: New files.
53606
53607         * m4/sockets.m4: New file.
53608
53609         * tests/test-sockets.c: New file.
53610
53611 2008-01-19  Bruno Haible  <bruno@clisp.org>
53612
53613         * doc/posix-headers: Renamed from doc/headers.
53614         * doc/posix-functions: Renamed from doc/functions.
53615         * doc/gnulib.texi: Update.
53616
53617 2008-01-19  Bruno Haible  <bruno@clisp.org>
53618
53619         * doc/glibc-functions/strcasestr.texi: Include contents of
53620         doc/functions/strcasestr.texi, fixing the list of platforms.
53621         * doc/functions/strcasestr.texi: Remove file.
53622
53623 2008-01-19  Bruno Haible  <bruno@clisp.org>
53624
53625         * doc/glibc-functions/memmem.texi: Include contents of
53626         doc/functions/memmem.texi.
53627         * doc/functions/memmem.texi: Remove file.
53628
53629 2008-01-18  Bruno Haible  <bruno@clisp.org>
53630
53631         * doc/glibc-functions/*.texi: New files.
53632         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53633         to use the new files.
53634
53635 2008-01-17  Bruno Haible  <bruno@clisp.org>
53636
53637         * tests/test-gethostname.c (main): Fix printf statement.
53638
53639 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53640
53641         * modules/gethostname-tests: New file.
53642
53643         * tests/test-gethostname.c: New file.
53644
53645 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53646
53647         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53648         used by the UNAME case.  Reported by Bruno Haible
53649         <bruno@clisp.org>.
53650
53651 2008-01-17  Eric Blake  <ebb9@byu.net>
53652
53653         Convert c-strcasestr to be more efficient.
53654         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53655         (Depends-on): Add c-strcase, remove malloca, strnlen.
53656         * tests/test-c-strcasestr.c (main): Enhance test.
53657         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53658
53659 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53660
53661         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53662         Use it in creating po/Makevars.
53663
53664 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53665
53666         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53667         Applications that requires it should initialize libgcrypt
53668         manually.
53669
53670 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53671
53672         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53673
53674 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         Fix problem with getdate on mingw32 reported by Simon Josefsson
53677         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53678         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53679         tzname", when deciding whether to declare tzname.
53680         * lib/strftime.c (tzname): Likewise.
53681
53682 2008-01-15  Bruno Haible  <bruno@clisp.org>
53683
53684         Work around a MacOS X 10.5 bug in frexpl().
53685         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53686         * doc/functions/frexpl.texi: Document the bug.
53687         Reported by Elias Pipping <pipping@gentoo.org>.
53688
53689 2008-01-14  Eric Blake  <ebb9@byu.net>
53690
53691         Touch up previous patch.
53692         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53693         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53694
53695         Convert strcasestr module to use Two-Way algorithm.
53696         * modules/strcasestr-simple: New module, based on the old
53697         strcasestr, but with Two-Way rather than KMP.
53698         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53699         * lib/string.in.h (rpl_strcasestr): Declare.
53700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53701         performance.
53702         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53703         * modules/string (Makefile.am): Support strcasestr.
53704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53705         * modules/strcasestr-tests (Depends-on): Check for alarm.
53706         * tests/test-strcasestr.c: Augment test.
53707         * lib/str-two-way.h: Clean up stray macro.
53708         * NEWS: Document new module.
53709         * MODULES.html.sh (string handling): Likewise.
53710         * doc/functions/strcasestr.texi: New file.
53711         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53712         here, since it is not a POSIX function.
53713
53714 2008-01-14  Colin Watson  <cjwatson@debian.org>
53715             Bruno Haible  <bruno@clisp.org>
53716
53717         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53718         works fine; if not, set REPLACE_STRSIGNAL.
53719         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53721         REPLACE_STRSIGNAL.
53722         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53723         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53724         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53725
53726 2008-01-14  Bruno Haible  <bruno@clisp.org>
53727
53728         * modules/strsignal (Include): Change to <string.h>.
53729
53730 2008-01-14  Colin Watson  <cjwatson@debian.org>
53731
53732         * modules/argp (Notice): Add a notice recommending to change
53733         XGETTEXT_OPTIONS.
53734         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53735
53736 2008-01-13  Colin Watson  <cjwatson@debian.org>
53737
53738         * modules/strsignal-tests: New file.
53739         * tests/test-strsignal.c: New file.
53740
53741         * lib/strsignal.c: New file, from glibc with modifications.
53742         * lib/siglist.h: New file, from glibc with modifications.
53743         * lib/string.in.h (strsignal): New declaration.
53744         * m4/strsignal.m4: New file.
53745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53746         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53747         * modules/strsignal: New file.
53748         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53749         HAVE_DECL_STRSIGNAL.
53750
53751 2008-01-13  Bruno Haible  <bruno@clisp.org>
53752
53753         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53754         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53755         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53756         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53757
53758 2008-01-13  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53761         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53762         * lib/argp.h (__attribute__): Likewise.
53763         * lib/c-stack.c (__attribute__): Likewise.
53764         * lib/error.h (__attribute__): Likewise.
53765         * lib/fts.c (__attribute__): Likewise.
53766         * lib/openat.h (__attribute__): Likewise.
53767         * lib/stdio.in.h (__attribute__): Likewise.
53768         * lib/string.in.h (__attribute__): Likewise.
53769         * lib/utimens.c (__attribute__): Likewise.
53770         * lib/vasnprintf.h (__attribute__): Likewise.
53771         * lib/xalloc.h (__attribute__): Likewise.
53772         * lib/xprintf.h (__attribute__): Likewise.
53773         * lib/xstrtol.h (__attribute__): Likewise.
53774         * lib/xvasprintf.h (__attribute__): Likewise.
53775
53776 2008-01-12  Bruno Haible  <bruno@clisp.org>
53777
53778         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53779         * doc/glibc-headers/a.out.texi: New file.
53780         * doc/glibc-headers/aliases.texi: New file.
53781         * doc/glibc-headers/alloca.texi: New file.
53782         * doc/glibc-headers/ar.texi: New file.
53783         * doc/glibc-headers/argp.texi: New file.
53784         * doc/glibc-headers/argz.texi: New file.
53785         * doc/glibc-headers/byteswap.texi: New file.
53786         * doc/glibc-headers/crypt.texi: New file.
53787         * doc/glibc-headers/endian.texi: New file.
53788         * doc/glibc-headers/envz.texi: New file.
53789         * doc/glibc-headers/err.texi: New file.
53790         * doc/glibc-headers/error.texi: New file.
53791         * doc/glibc-headers/execinfo.texi: New file.
53792         * doc/glibc-headers/fpu_control.texi: New file.
53793         * doc/glibc-headers/fstab.texi: New file.
53794         * doc/glibc-headers/fts.texi: New file.
53795         * doc/glibc-headers/getopt.texi: New file.
53796         * doc/glibc-headers/ieee754.texi: New file.
53797         * doc/glibc-headers/ifaddrs.texi: New file.
53798         * doc/glibc-headers/libintl.texi: New file.
53799         * doc/glibc-headers/mcheck.texi: New file.
53800         * doc/glibc-headers/mntent.texi: New file.
53801         * doc/glibc-headers/obstack.texi: New file.
53802         * doc/glibc-headers/paths.texi: New file.
53803         * doc/glibc-headers/printf.texi: New file.
53804         * doc/glibc-headers/pty.texi: New file.
53805         * doc/glibc-headers/resolv.texi: New file.
53806         * doc/glibc-headers/shadow.texi: New file.
53807         * doc/glibc-headers/sysexits.texi: New file.
53808         * doc/glibc-headers/ttyent.texi: New file.
53809
53810 2008-01-12  Jim Meyering  <meyering@redhat.com>
53811
53812         announce-gen: emit Gnulib's git-based version string.
53813         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53814         New option --gnulib-version=V, where V is expected to be
53815         the output of running git describe in the gnulib directory.
53816         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53817         not useful, and plan to stop publishing an xdelta file with each
53818         coreutils release.
53819
53820         * build-aux/announce-gen: Also check for lzma-compressed files.
53821
53822 2008-01-11  Bruno Haible  <bruno@clisp.org>
53823
53824         * tests/test-memmem.c (main): Increase maximum allowed time.
53825         * tests/test-strstr.c (main): Likewise.
53826
53827 2008-01-11  Bruno Haible  <bruno@clisp.org>
53828
53829         * doc/functions/memmem.texi: Add more precisions about platforms.
53830         * doc/functions/strstr.texi: Likewise.
53831
53832 2008-01-10  Eric Blake  <ebb9@byu.net>
53833
53834         * m4/strstr.m4: Delete cruft from copy-n-paste.
53835         Reported by Bruno Haible.
53836
53837 2008-01-10  Bruno Haible  <bruno@clisp.org>
53838
53839         Make c-strstr rely on strstr.
53840         * lib/c-strstr.c: Don't include str-kmp.h.
53841         (c_strstr): Define in terms of strstr.
53842         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53843         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53844
53845 2008-01-10  Bruno Haible  <bruno@clisp.org>
53846
53847         * doc/gnulib.texi (String Functions in C Locale): New section.
53848         * doc/c-ctype.texi: New file.
53849         * doc/c-strcase.texi: New file.
53850         * doc/c-strcaseeq.texi: New file.
53851         * doc/c-strcasestr.texi: New file.
53852         * doc/c-strstr.texi: New file.
53853         * doc/c-strtod.texi: New file.
53854         * doc/c-strtold.texi: New file.
53855
53856 2008-01-10  Eric Blake  <ebb9@byu.net>
53857
53858         * lib/relocatable.h: Fix a comment.
53859
53860 2008-01-10  Eric Blake  <ebb9@byu.net>
53861
53862         Share two-way algorithm.
53863         * lib/str-two-way.h: New file, merged from...
53864         * lib/memmem.c: ...here...
53865         * lib/strstr.c: ...and here.
53866         * modules/memmem (Files): Use it.
53867         * modules/strstr (Files): Likewise.
53868
53869         Avoid quadratic strstr implementations.
53870         * lib/strstr.c: New file.
53871         * m4/strstr.m4: Likewise.
53872         * modules/strstr: Likewise.
53873         * modules/strstr-tests: Likewise.
53874         * tests/test-strstr.c: Likewise.
53875         * lib/string.in.h (rpl_strstr): Declare.
53876         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53878         * modules/string (Makefile.am): Likewise.
53879         * MODULES.html.sh (string handling): Mention new module.
53880         * doc/functions/strstr.texi (strstr): Document the bug.
53881
53882 2008-01-10  Bruno Haible  <bruno@clisp.org>
53883
53884         * lib/relocatable.h (relocate): State whether result is freshly
53885         allocated or not.
53886         * lib/relocatable.c (relocate): Return a freshly allocated string
53887         instead of a pointer to a privately held string.
53888         Reported by Sylvain Beucler <beuc@gnu.org>.
53889
53890 2008-01-10  Colin Watson  <cjwatson@debian.org>
53891
53892         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53893         s/S_ISNLK/S_ISLNK/.
53894
53895 2008-01-09  Bruno Haible  <bruno@clisp.org>
53896
53897         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53898         and other files.
53899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53900         if it's only a guess.
53901         * modules/memmem: Simplify by depending on memmem-simple.
53902
53903 2008-01-09  Bruno Haible  <bruno@clisp.org>
53904
53905         Work around OpenBSD 4.0 tdelete() bug.
53906         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53907         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53908         macros and don't redefine the enum values.
53909         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53910         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53911         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53912
53913 2008-01-09  Bruno Haible  <bruno@clisp.org>
53914
53915         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53916         (main): Don't perform the tests if setlocale did not install a UTF-8
53917         locale. Needed on OpenBSD 4.0.
53918         * modules/wcwidth-tests (Depends-on): Add localcharset.
53919
53920 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53921
53922         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53923         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53924         * NEWS: announce this.
53925         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53926
53927 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53928         and Eric Blake  <ebb9@byu.net>
53929
53930         Add memmem-simple module.
53931         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53932         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53933         * modules/memmem-simple: New file.
53934         * modules/memmem (Description): Tweak.
53935         * MODULES.html.sh (string handling): Mention new module.
53936         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53937         addressed by memmem-simple.
53938         * NEWS: Document the difference.
53939
53940 2008-01-09  Eric Blake  <ebb9@byu.net>
53941
53942         Give gcc some memmem optimization hints.
53943         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53944         (strcasestr): Declare as pure.
53945         * modules/memmem (Maintainer): Claim my implementation.
53946
53947 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53948
53949         Support AIX 6.1 and higher.
53950         * build-aux/config.libpath: Likewise.
53951         * build-aux/config.rpath: Likewise.
53952
53953 2008-01-08  Jim Meyering  <meyering@redhat.com>
53954             Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53957         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53958         Reported by Peter Fales in
53959         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53960
53961 2008-01-08  Bruno Haible  <bruno@clisp.org>
53962
53963         * modules/unictype/category-of (Depends-on): Add
53964         unictype/category-none.
53965         * modules/unictype/category-and-tests (Depends-on): Add
53966         unictype/category-{L,N,Lu,Nd}.
53967         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53968         * modules/unictype/category-or-tests (Depends-on): Add
53969         unictype/category-{L,N}.
53970         * modules/unictype/category-name-tests (Depends-on): Add
53971         unictype/category-{Z,Nl}.
53972         Reported by Simon Josefsson.
53973
53974 2008-01-08  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53977         convention better.
53978         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53979         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53980         Reported by Peter Miller <millerp@canb.auug.org.au>.
53981
53982 2008-01-08  Eric Blake  <ebb9@byu.net>
53983
53984         Rewrite memmem to guarantee linear complexity without malloc.
53985         * lib/memmem.c (memmem): Use Two-Way rather than
53986         Knuth-Morris-Pratt, to allow O(1) space usage.
53987         (critical_factorization, two_way_short_needle)
53988         (two_way_long_needle): New functions.
53989         (knuth_morris_pratt): Delete.
53990         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53991         Add stdint.
53992         * tests/test-memmem.c (main): Add tests for periodic needle and
53993         sublinear performance.
53994         * doc/functions/memmem.texi (memmem): Document other deficiencies
53995         in cygwin and older glibc.
53996
53997 2008-01-08  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54000         augmentation.
54001
54002 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54003
54004         Add a configure time option: --disable-acl.
54005         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54006         AC_ARG_ENABLE(acl).
54007
54008 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54009
54010         * tests/test-localename.c: Don't include obsolete "setenv.h".
54011
54012         * modules/localename-tests (Depends-on): Need unsetenv.
54013
54014 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54015
54016         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54017
54018 2008-01-06  Colin Watson  <cjwatson@debian.org>
54019
54020         * users.txt: Add man-db.
54021
54022 2008-01-07  Bruno Haible  <bruno@clisp.org>
54023
54024         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54025         previous section name.
54026
54027 2008-01-07  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/progname.c (set_program_name): Don't strip off a leading
54030         "lt-" prefix outside a .libs directory.
54031         Suggested by Paul Eggert.
54032
54033 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54034             Bruno Haible  <bruno@clisp.org>
54035
54036         Improve memory cleanup in 'relocatable' module.
54037         * lib/relocatable.h (compute_curr_prefix): Change return type to
54038         'char *'.
54039         * lib/relocatable.c (compute_curr_prefix): Change return type to
54040         'char *'. Free curr_installdir after use.
54041         (relocate): Free curr_prefix_better after use.
54042         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54043
54044 2008-01-01  Bruno Haible  <bruno@clisp.org>
54045
54046         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54047         failure on older glibc systems.
54048         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54049
54050 2008-01-05  Eric Blake  <ebb9@byu.net>
54051
54052         Avoid quadratic system memmem.
54053         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54054         Reported by Ralf Wildenhues.
54055
54056         Fix memmem test for mingw.
54057         * modules/memmem-tests (configure.ac): Check for alarm.
54058         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54059         it.
54060         * doc/functions/memmem.texi: New file.
54061         * doc/gnulib.texi (Function Substitutes): Add memmem.
54062         Reported by Bruno Haible.
54063
54064 2008-01-04  Bruno Haible  <bruno@clisp.org>
54065
54066         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54067         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54068         gl_HEADER_STRING_H_DEFAULTS.
54069
54070 2008-01-04  Eric Blake  <ebb9@byu.net>
54071
54072         Shorten duration of memmem test.
54073         * tests/test-memmem.c (main): Use alarm to declare failure if test
54074         is taking too long.
54075         Reported by Ralf Wildenhues.
54076
54077 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54078
54079         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54080         string, needed by strerror.
54081
54082 2008-01-03  Colin Watson  <cjwatson@debian.org>
54083             Bruno Haible  <bruno@clisp.org>
54084
54085         * doc/gnulib-tool.texi (Localization): New section.
54086
54087 2008-01-02  Bruno Haible  <bruno@clisp.org>
54088
54089         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54090         variables to 'unsigned char *' type.
54091         Reported by Paul Eggert.
54092
54093 2008-01-02  Jim Meyering  <jim@meyering.net>
54094
54095         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54096
54097 2007-12-31  Jim Meyering  <jim@meyering.net>
54098
54099         Avoid use of private FTS type name.
54100         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54101
54102 2007-12-30  Karl Berry  <karl@gnu.org>
54103
54104         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54105         work around defect in Texinfo and/or the standalone Info browser.
54106
54107 2007-12-30  Bruno Haible  <bruno@clisp.org>
54108
54109         Unify 5 copies of the KMP code.
54110         * lib/str-kmp.h: New file.
54111         * lib/c-strcasestr.c: Include str-kmp.h.
54112         (knuth_morris_pratt): Remove function.
54113         (c_strcasestr): Update.
54114         * lib/c-strstr.c: Include str-kmp.h.
54115         (knuth_morris_pratt): Remove function.
54116         (c_strcasestr): Update.
54117         * lib/mbscasestr.c: Include str-kmp.h.
54118         (knuth_morris_pratt_unibyte): Remove function.
54119         * lib/mbsstr.c: Include str-kmp.h.
54120         (knuth_morris_pratt_unibyte): Remove function.
54121         * lib/strcasestr.c: Include str-kmp.h.
54122         (knuth_morris_pratt): Remove function.
54123         (strcasestr): Update.
54124         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54125         * modules/c-strstr (Files): Likewise.
54126         * modules/mbscasestr (Files): Likewise.
54127         * modules/mbsstr (Files): Likewise.
54128         * modules/strcasestr (Files): Likewise.
54129         Suggested by Paul Eggert.
54130
54131 2007-12-30  Bruno Haible  <bruno@clisp.org>
54132
54133         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54134         defined.
54135
54136 2007-12-30  Bruno Haible  <bruno@clisp.org>
54137
54138         * lib/xmalloca.h: Include xalloc.h.
54139         (xnmalloca): New macro.
54140
54141 2007-12-30  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/malloca.h (nmalloca): New macro.
54144         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54145         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54146         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54147         knuth_morris_pratt_multibyte): Likewise.
54148         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54149         knuth_morris_pratt_multibyte): Likewise.
54150         * lib/memmem.c (knuth_morris_pratt): Likewise.
54151         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54152
54153 2007-12-25  Bruno Haible  <bruno@clisp.org>
54154
54155         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54156         * lib/glob.c: Don't include openat.h.
54157         (link_exists2_p): Add back the code that deals with the
54158         !GLOB_ALTDIRFUNC case.
54159         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54160         let it do the filename concatenation.
54161         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54162         * modules/glob (Depends-on): Remove openat.
54163
54164 2007-12-31  Bruno Haible  <bruno@clisp.org>
54165
54166         * modules/dirfd (License): Change to LGPLv2+.
54167         Approved by Jim Meyering.
54168
54169 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54170
54171         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54172         when multiplying M by sizeof (size_t).
54173
54174 2007-12-10  Martin Lambers  <marlam@marlam.de>
54175
54176         Override getpagesize on mingw.
54177         * lib/getpagesize.c: New file.
54178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54179         * modules/getpagesize (Files): Add lib/getpagesize.c.
54180         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54182         REPLACE_GETPAGESIZE.
54183         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54184
54185 2007-12-25  Bruno Haible  <bruno@clisp.org>
54186
54187         * modules/localcharset (Notice): New field.
54188         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54189         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54190
54191 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54192             Bruno Haible  <bruno@clisp.org>
54193
54194         Avoid using the syntax symbol() in formatted documentation.
54195         * MODULES.html.sh (func_module): When replacing symbol() with a
54196         hyperlink, remove the parentheses. Show an error if some remain.
54197         Recognize and render the '...' syntax.
54198         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54199         Rework. Add paragraph about GCC's inlining.
54200         * doc/alloca.texi: Likewise.
54201         * doc/error.texi: Remove parentheses from symbol reference.
54202         * doc/gnulib-intro.texi: Likewise.
54203         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54204         * modules/fnmatch (Description): Reword to say "the ... function".
54205         * modules/full-read (Description): Likewise.
54206         * modules/full-write (Description): Likewise.
54207         * modules/safe-read (Description): Likewise.
54208         * modules/safe-write (Description): Likewise.
54209         * modules/strchrnul (Description): Likewise.
54210         * modules/trim (Description): Likewise.
54211         * modules/error (Description): Remove parentheses from symbol
54212         references.
54213         * modules/verror (Description): Likewise.
54214         Reported by Karl Berry.
54215
54216 2007-12-25  Bruno Haible  <bruno@clisp.org>
54217
54218         Fixup after 2007-10-16 commit.
54219         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54220
54221 2007-12-24  Bruno Haible  <bruno@clisp.org>
54222
54223         Make --enable-relocatable work with DESTDIR.
54224         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54225         to compute installdir from destprog.
54226         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54227         also set the RELOC_DESTDIR variable.
54228         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54229
54230 2007-12-24  Bruno Haible  <bruno@clisp.org>
54231
54232         Fix link error due to xalloc_die().
54233         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54234         of xreadlink.
54235         * lib/relocwrapper.c: Update comments.
54236         * build-aux/install-reloc: Remove xreadlink.c from file list.
54237         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54238         xreadlink.c.
54239         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54240
54241 2007-12-24  Bruno Haible  <bruno@clisp.org>
54242
54243         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54244         * lib/setenv.h: Remove file.
54245         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54246         lib/setenv.h.
54247         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54248         (Depends-on): Add stdlib.
54249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54250         gl_FUNC_UNSETENV.
54251         (Include): Replace setenv.h with <stdlib.h>.
54252         * modules/unsetenv: New file.
54253         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54254         * lib/unsetenv.c: Include <stdlib.h> first.
54255         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54256         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54257         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54258         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54259         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54260         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54262         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54263         * doc/functions/unsetenv.texi: Update.
54264         * modules/xsetenv (Depends-on): Add unsetenv.
54265         * modules/getdate (Depends-on): Likewise.
54266         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54267         * lib/xsetenv.c: Don't include setenv.h.
54268         * lib/getdate.y: Likewise.
54269         * lib/relocwrapper.c: Likewise.
54270         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54271         (Depends-on): Add stdlib.
54272         * NEWS: Mention the changes.
54273         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54274
54275 2007-12-23  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54278         indentation.
54279
54280 2007-12-23  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/c-strcasestr.c: Add more comments.
54283         * lib/c-strstr.c: Likewise.
54284         * lib/mbscasestr.c: Likewise.
54285         * lib/mbsstr.c: Likewise.
54286         * lib/strcasestr.c: Likewise.
54287         * lib/memmem.c: Likewise.
54288
54289 2007-12-23  Bruno Haible  <bruno@clisp.org>
54290
54291         * tests/test-memmem.c: Include <string.h> first.
54292
54293 2007-12-22  Bruno Haible  <bruno@clisp.org>
54294
54295         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54296         the contents of $testsbase.
54297         Reported by Ralf Wildenhues.
54298
54299 2007-12-22  Bruno Haible  <bruno@clisp.org>
54300
54301         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54302         two variables local_ldadd_before, local_ldadd_last.
54303
54304 2007-12-20  Eric Blake  <ebb9@byu.net>
54305
54306         Work around circular library issue when cross-compiling.
54307         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54308         that progname.o does not need to pull in rpl_memcmp.
54309
54310 2007-12-19  Eric Blake  <ebb9@byu.net>
54311
54312         Fix memmem to avoid O(n^2) worst-case complexity.
54313         * lib/memmem.c (knuth_morris_pratt): New function.
54314         (memmem): Use it if first few naive iterations fail.
54315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54316         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54317         * modules/memchr (License): Likewise.
54318         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54319         malloca.
54320         * tests/test-memmem.c: Rewrite, borrowing ideas from
54321         test-mbsstr1.c; the old version wouldn't even compile!
54322         * modules/memmem-tests: New file.
54323         * lib/string.in.h (rpl_memmem): Add declaration.
54324         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54326         REPLACE_MEMMEM.
54327
54328 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54331         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54332         before any system include files, and undef after them all.  This
54333         should fix a problem on VMS reported by John E. Malmberg in
54334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54335
54336 2007-12-17  Eric Blake  <ebb9@byu.net>
54337
54338         Revert addition of verify, for BSD/OS.
54339         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54340         can't handle large files, for the sake of obsolete platforms.
54341         * modules/fseeko (Depends-on): Remove verify.
54342         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54343         * doc/functions/ftello.texi (ftello): Likewise.
54344         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54345         Reported by Larry Jones.
54346
54347 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54348
54349         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54350         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54351
54352 2007-12-17  Jim Meyering  <meyering@redhat.com>
54353
54354         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54355         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54356         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54357         * modules/getcwd (Depends-on): Add openat.
54358         Reported by Petr Salinger.
54359
54360 2007-12-17  Bruno Haible  <bruno@clisp.org>
54361
54362         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54363         avoid a segmentation fault of the configure test on x86_64 systems.
54364
54365 2007-12-15  Jim Meyering  <meyering@redhat.com>
54366
54367         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54368
54369 2007-12-13  Eric Blake  <ebb9@byu.net>
54370
54371         Another fseek test.
54372         * tests/test-fseek.c (main): Also test ungetc handling.
54373         * tests/test-fseeko.c (main): Likewise.
54374         * modules/fseeko (Depends-on): Add verify.
54375         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54376         large.
54377         Reported by Larry Jones.
54378
54379         Fix fseeko on mingw.
54380         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54381         seek.
54382
54383         Beef up fseek tests.
54384         * tests/test-fseek.c (main): Also test eof handling.
54385         * tests/test-fseeko.c (main): Likewise.
54386         Reported by Larry Jones.
54387
54388 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54389
54390         Fix fseeko on BSD-based platforms.
54391         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54392         successful seek.
54393
54394 2007-12-12  Eric Blake  <ebb9@byu.net>
54395
54396         Allow circular dependency of separate libtests.a
54397         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54398         when use_libtests.
54399
54400 2007-12-11  Eric Blake  <ebb9@byu.net>
54401
54402         Fix bug with -0.0L in previous patch.
54403         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54404         * tests/test-isnan.c (main): Also test on zeroes.
54405         * tests/test-isnanf.c (main): Likewise.
54406         * tests/test-isnanl.h (main): Likewise.
54407
54408         Detect pseudo-denormals on x86 even when cross-compiling.
54409         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54410         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54411         invalid bit patterns that happen to satisfy ==.
54412
54413         Avoid link failures with separate libtests.a.
54414         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54415         last, to satisfy circular dependencies.
54416
54417 2007-12-11  Eric Blake  <ebb9@byu.net>
54418         and Bruno Haible  <bruno@clisp.org>
54419
54420         Fix OpenBSD 4.0 <float.h> handling of long double.
54421         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54422         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54423         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54424
54425 2007-12-11  Jim Meyering  <meyering@redhat.com>
54426
54427         * users.txt: Add libvirt.
54428
54429         Support versions of autoconf prior to 2.59c.
54430         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54431         if it is not already defined.
54432
54433 2007-12-09  Bruno Haible  <bruno@clisp.org>
54434
54435         Let 'gnulib-tool --import' collect sources needed for the tests in
54436         tests/ rather than in lib/.
54437         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54438         argument. If true, add rules to generate libtests.a, and put libtests.a
54439         into $(LDADD). Consider source files in subdirectories and set
54440         uses_subdirs.
54441         (func_emit_initmacro_start, func_emit_initmacro_end,
54442         func_emit_initmacro_done): Pass all arguments explicitly.
54443         (func_import): Determine two module lists main_modules,
54444         testsrelated_modules. Determine use_libtests. Determine two variables
54445         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54446         instead of just sed_transform_lib_file. Determine two variables
54447         main_files and testsrelated_files. Compute 'files' as the union of
54448         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54449         func_add_or_update. In the generated gnulib-comp.m4, collect the
54450         object files for tests/ in different variables than those for lib/.
54451         Substitute LIBTESTS_LIBDEPS.
54452         (func_create_testdir): Combine the uses_subdirs results from
54453         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54454
54455 2007-12-09  Bruno Haible  <bruno@clisp.org>
54456
54457         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54458         the build-aux directory.
54459
54460 2007-12-09  Bruno Haible  <bruno@clisp.org>
54461
54462         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54463         introduced on 2006-09-09.
54464
54465 2007-12-07  Jim Meyering  <meyering@redhat.com>
54466
54467         Let these macros work also with autoconf-2.59.
54468         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54469         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54470         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54471
54472 2007-12-06  Jim Meyering  <meyering@redhat.com>
54473
54474         Avoid a configure-time syntax error in gl_FUNC_ACL.
54475         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54476         function in each branch, before testing the cache variable.
54477
54478 2007-12-04  Eric Blake  <ebb9@byu.net>
54479
54480         Make scripts executable.
54481         * build-aux/config.guess: Add execute permissions.
54482         * build-aux/config.sub: Likewise.
54483         * build-aux/gendocs.sh: Likewise.
54484
54485         Fix frexp on mingw.
54486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54487         cross-compiling.
54488         * doc/functions/frexp.texi (frexp): Document the bug.
54489
54490         Make cygwin fseeko check more reliable.
54491         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54492         version numbers, rather than unrelated feature check.
54493         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54494         * doc/functions/ftello.texi (ftello): Likewise.
54495         Reported by Bruno Haible.
54496
54497         * m4/strerror.m4: Bump version number.
54498
54499 2007-12-03  Bruno Haible  <bruno@clisp.org>
54500
54501         * doc/functions/mprotect.texi: Mention the mingw problem.
54502
54503 2007-12-03  Eric Blake  <ebb9@byu.net>
54504
54505         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54506         REPLACE_STRERROR is initialized before this macro.
54507
54508 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54509
54510         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54511         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54512         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54513         put -lsec in even for programs other than 'ls'.  This fixes a problem
54514         for gettext reported by Bruno Haible in
54515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54516         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54517         Add support for Solaris 10.  This isn't efficient, but should get the
54518         job done for now.
54519
54520 2007-12-03  James Youngman  <jay@gnu.org>
54521
54522         * doc/regexprops-generic.texi: change "an close-group" to "a
54523         close-group" and "illegal" to "not allowed".
54524
54525 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54526
54527         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54528         pr_byname.h. Needed for the rare case when the maintainer has done
54529         "make maintainer-clean" in the source directory and then attempts a
54530         build outside the source directory.
54531         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54532         scripts_byname.h.
54533
54534 2007-12-02  Martin Lambers <marlam@marlam.de>
54535             Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/getpagesize.h: Remove file.
54538         * lib/unistd.in.h: Include declaration of getpagesize here.
54539         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54540         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54541         HAVE_SYS_PARAM_H.
54542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54543         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54544         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54545         (Depends-on): Add unistd.
54546         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54547         (Include): Use <unistd.h> instead of getpagesize.h.
54548         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54549         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54550         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54551         gl_GETPAGESIZE invocation, already handled by module dependency.
54552         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54553
54554 2007-12-02  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/strings-tests: New file.
54557         * tests/test-strings.c: New file.
54558
54559         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54560         * lib/strings.in.h: New file.
54561         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54562         * m4/strings_h.m4: New file.
54563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54564         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54565         * modules/strings: New file.
54566         * modules/string (Makefile.am): Update.
54567         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54568         Reported by Karl Berry.
54569
54570 2007-12-01  Eric Blake  <ebb9@byu.net>
54571
54572         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54573         accomodate fix in cygwin 1.5.25.
54574
54575 2007-12-01  Jim Meyering  <meyering@redhat.com>
54576
54577         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54578         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54579         that would inhibit utf8-optimization of a regexp containing line-
54580         or buffer-anchors, e.g., `^', `$'.
54581
54582 2007-11-30  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54585         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54586         glthread_recursive_lock_init.
54587         * lib/lock.c (glthread_recursive_lock_init)
54588         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54589         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54590
54591 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         New function qset_acl, like set_acl but with syscall semantics.
54594         * lib/acl.h (qset_acl): New decl.
54595         * lib/acl.c (qset_acl): New function.
54596         (set_acl): Use new function.  Use more-consistent diagnostics.
54597
54598 2007-11-28  Jim Meyering  <meyering@redhat.com>
54599
54600         * modules/physmem (License): Change from GPL to LGPLv2+.
54601
54602 2007-11-26  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54605         'long double' type has excess precision.
54606         Reported by Jim Meyering in
54607         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54608
54609 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54610
54611         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54612         Sync from <http://gnu.org/licenses>.
54613         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54614         with license text from same location.
54615         * doc/maintain.texi, doc/standards.texi:  Sync from
54616         <http://savannah.gnu.org/projects/gnustandards>.
54617
54618 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54619         and Jim Meyering  <meyering@redhat.com>
54620
54621         Adjust getdate' grammar to accept a slightly more regular language.
54622         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54623         Before, the former was rejected.
54624         * lib/getdate.y (digits_to_date_time): New function, factored
54625         out of ...
54626         (number): ...here.  Just call digits_to_date_time.
54627         (hybrid): New non-terminal to handle an <unsigned number,
54628         signed relative offset> sequence consistently.
54629
54630 2007-11-18  Jim Meyering  <meyering@redhat.com>
54631
54632         Pull my changes from coreutils:
54633         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54634         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54635         use of $gnulib_tool_option_extras, so that it's separated from the
54636         preceding argument.
54637
54638         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54639         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54640         parent destination directories before copying a file into place.
54641
54642 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54643
54644         bootstrap: work also with 4-argument variant of AC_INIT
54645         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54646
54647 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         Port test-getaddrinfo to Solaris.
54650         Problem reported by Bruno Haible in
54651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54652         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54653         explanation of setting 'hints'.
54654         Don't reject an implementation merely because it returns EAI_SERVICE.
54655         (EAI_SERVICE): Define to 0 if not defined.
54656
54657 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54658
54659         The license of gnu-make and posix-shell is now "GPLed build tool".
54660         * modules/gnu-make (License): Likewise.
54661         * modules/posix-shell (License): Likewise.
54662
54663         New module posix-shell, for determining a POSIX shell
54664         or perhaps something that is close enough to a POSIX shell.
54665         * m4/posix-shell.m4: New file.
54666         * modules/posix-shell: New file.
54667
54668         * MODULES.html.sh: Mention new module.
54669
54670         New module gnu-make, for determining whether we're using GNU Make.
54671         * m4/gnu-make.m4: New file.
54672         * modules/gnu-make: New file.
54673         * MODULES.html.sh: Mention new module.
54674
54675 2007-11-14  Jim Meyering  <meyering@redhat.com>
54676
54677         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54678         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54679         use this macro to create a function _definition_.
54680         Remove useless "#undef ARGMATCH_DIE".
54681
54682 2007-11-14  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/config.charset: Update for OpenBSD 4.1.
54685         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54686
54687 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         Document 64-bit #if problems in stdint.texi.
54690         * doc/headers/stdint.texi (stdint.h): Mention problems with
54691         64-bit-#if, and how to work around them.
54692
54693         Don't insist on 'long long int' support in the preprocessor.  It
54694         breaks too many things.  For example, PRIdMAX still uses a 'long
54695         long int' format with the latest Sun compiler, even though
54696         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54697         preprocessor problem.  This causes the latest coreutils to dump
54698         core on Solaris 10 sparc with the Sun C compiler.
54699         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54700         the troublesome expressions at configure-time, not at #if-time.
54701         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54702         preprocessor.
54703         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54704         compile-time C checks, done at 'configure'-time.
54705         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54706         * modules/inttypes (Makefile): Substitute the new symbols that
54707         gl_INTTYPES_H now generates.
54708         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54709
54710 2007-11-12  Bruno Haible  <bruno@clisp.org>
54711
54712         Tests for Unicode character classification functions.
54713
54714         * modules/unictype/bidicategory-byname-tests: New file.
54715         * modules/unictype/bidicategory-name-tests: New file.
54716         * modules/unictype/bidicategory-of-tests: New file.
54717         * modules/unictype/bidicategory-test-tests: New file.
54718         * modules/unictype/block-list-tests: New file.
54719         * modules/unictype/block-of-tests: New file.
54720         * modules/unictype/block-test-tests: New file.
54721         * modules/unictype/category-C-tests: New file.
54722         * modules/unictype/category-Cc-tests: New file.
54723         * modules/unictype/category-Cf-tests: New file.
54724         * modules/unictype/category-Cn-tests: New file.
54725         * modules/unictype/category-Co-tests: New file.
54726         * modules/unictype/category-Cs-tests: New file.
54727         * modules/unictype/category-L-tests: New file.
54728         * modules/unictype/category-Ll-tests: New file.
54729         * modules/unictype/category-Lm-tests: New file.
54730         * modules/unictype/category-Lo-tests: New file.
54731         * modules/unictype/category-Lt-tests: New file.
54732         * modules/unictype/category-Lu-tests: New file.
54733         * modules/unictype/category-M-tests: New file.
54734         * modules/unictype/category-Mc-tests: New file.
54735         * modules/unictype/category-Me-tests: New file.
54736         * modules/unictype/category-Mn-tests: New file.
54737         * modules/unictype/category-N-tests: New file.
54738         * modules/unictype/category-Nd-tests: New file.
54739         * modules/unictype/category-Nl-tests: New file.
54740         * modules/unictype/category-No-tests: New file.
54741         * modules/unictype/category-P-tests: New file.
54742         * modules/unictype/category-Pc-tests: New file.
54743         * modules/unictype/category-Pd-tests: New file.
54744         * modules/unictype/category-Pe-tests: New file.
54745         * modules/unictype/category-Pf-tests: New file.
54746         * modules/unictype/category-Pi-tests: New file.
54747         * modules/unictype/category-Po-tests: New file.
54748         * modules/unictype/category-Ps-tests: New file.
54749         * modules/unictype/category-S-tests: New file.
54750         * modules/unictype/category-Sc-tests: New file.
54751         * modules/unictype/category-Sk-tests: New file.
54752         * modules/unictype/category-Sm-tests: New file.
54753         * modules/unictype/category-So-tests: New file.
54754         * modules/unictype/category-Z-tests: New file.
54755         * modules/unictype/category-Zl-tests: New file.
54756         * modules/unictype/category-Zp-tests: New file.
54757         * modules/unictype/category-Zs-tests: New file.
54758         * modules/unictype/category-and-not-tests: New file.
54759         * modules/unictype/category-and-tests: New file.
54760         * modules/unictype/category-byname-tests: New file.
54761         * modules/unictype/category-name-tests: New file.
54762         * modules/unictype/category-none-tests: New file.
54763         * modules/unictype/category-of-tests: New file.
54764         * modules/unictype/category-or-tests: New file.
54765         * modules/unictype/category-test-withtable-tests: New file.
54766         * modules/unictype/combining-class-tests: New file.
54767         * modules/unictype/ctype-alnum-tests: New file.
54768         * modules/unictype/ctype-alpha-tests: New file.
54769         * modules/unictype/ctype-blank-tests: New file.
54770         * modules/unictype/ctype-cntrl-tests: New file.
54771         * modules/unictype/ctype-digit-tests: New file.
54772         * modules/unictype/ctype-graph-tests: New file.
54773         * modules/unictype/ctype-lower-tests: New file.
54774         * modules/unictype/ctype-print-tests: New file.
54775         * modules/unictype/ctype-punct-tests: New file.
54776         * modules/unictype/ctype-space-tests: New file.
54777         * modules/unictype/ctype-upper-tests: New file.
54778         * modules/unictype/ctype-xdigit-tests: New file.
54779         * modules/unictype/decimal-digit-tests: New file.
54780         * modules/unictype/digit-tests: New file.
54781         * modules/unictype/mirror-tests: New file.
54782         * modules/unictype/numeric-tests: New file.
54783         * modules/unictype/property-alphabetic-tests: New file.
54784         * modules/unictype/property-ascii-hex-digit-tests: New file.
54785         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54786         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54787         * modules/unictype/property-bidi-block-separator-tests: New file.
54788         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54789         * modules/unictype/property-bidi-common-separator-tests: New file.
54790         * modules/unictype/property-bidi-control-tests: New file.
54791         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54792         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54793         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54794         * modules/unictype/property-bidi-european-digit-tests: New file.
54795         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54796         * modules/unictype/property-bidi-left-to-right-tests: New file.
54797         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54798         * modules/unictype/property-bidi-other-neutral-tests: New file.
54799         * modules/unictype/property-bidi-pdf-tests: New file.
54800         * modules/unictype/property-bidi-segment-separator-tests: New file.
54801         * modules/unictype/property-bidi-whitespace-tests: New file.
54802         * modules/unictype/property-byname-tests: New file.
54803         * modules/unictype/property-combining-tests: New file.
54804         * modules/unictype/property-composite-tests: New file.
54805         * modules/unictype/property-currency-symbol-tests: New file.
54806         * modules/unictype/property-dash-tests: New file.
54807         * modules/unictype/property-decimal-digit-tests: New file.
54808         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54809         * modules/unictype/property-deprecated-tests: New file.
54810         * modules/unictype/property-diacritic-tests: New file.
54811         * modules/unictype/property-extender-tests: New file.
54812         * modules/unictype/property-format-control-tests: New file.
54813         * modules/unictype/property-grapheme-base-tests: New file.
54814         * modules/unictype/property-grapheme-extend-tests: New file.
54815         * modules/unictype/property-grapheme-link-tests: New file.
54816         * modules/unictype/property-hex-digit-tests: New file.
54817         * modules/unictype/property-hyphen-tests: New file.
54818         * modules/unictype/property-id-continue-tests: New file.
54819         * modules/unictype/property-id-start-tests: New file.
54820         * modules/unictype/property-ideographic-tests: New file.
54821         * modules/unictype/property-ids-binary-operator-tests: New file.
54822         * modules/unictype/property-ids-trinary-operator-tests: New file.
54823         * modules/unictype/property-ignorable-control-tests: New file.
54824         * modules/unictype/property-iso-control-tests: New file.
54825         * modules/unictype/property-join-control-tests: New file.
54826         * modules/unictype/property-left-of-pair-tests: New file.
54827         * modules/unictype/property-line-separator-tests: New file.
54828         * modules/unictype/property-logical-order-exception-tests: New file.
54829         * modules/unictype/property-lowercase-tests: New file.
54830         * modules/unictype/property-math-tests: New file.
54831         * modules/unictype/property-non-break-tests: New file.
54832         * modules/unictype/property-not-a-character-tests: New file.
54833         * modules/unictype/property-numeric-tests: New file.
54834         * modules/unictype/property-other-alphabetic-tests: New file.
54835         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54836         * modules/unictype/property-other-grapheme-extend-tests: New file.
54837         * modules/unictype/property-other-id-continue-tests: New file.
54838         * modules/unictype/property-other-id-start-tests: New file.
54839         * modules/unictype/property-other-lowercase-tests: New file.
54840         * modules/unictype/property-other-math-tests: New file.
54841         * modules/unictype/property-other-uppercase-tests: New file.
54842         * modules/unictype/property-paired-punctuation-tests: New file.
54843         * modules/unictype/property-paragraph-separator-tests: New file.
54844         * modules/unictype/property-pattern-syntax-tests: New file.
54845         * modules/unictype/property-pattern-white-space-tests: New file.
54846         * modules/unictype/property-private-use-tests: New file.
54847         * modules/unictype/property-punctuation-tests: New file.
54848         * modules/unictype/property-quotation-mark-tests: New file.
54849         * modules/unictype/property-radical-tests: New file.
54850         * modules/unictype/property-sentence-terminal-tests: New file.
54851         * modules/unictype/property-soft-dotted-tests: New file.
54852         * modules/unictype/property-space-tests: New file.
54853         * modules/unictype/property-terminal-punctuation-tests: New file.
54854         * modules/unictype/property-test-tests: New file.
54855         * modules/unictype/property-titlecase-tests: New file.
54856         * modules/unictype/property-unassigned-code-value-tests: New file.
54857         * modules/unictype/property-unified-ideograph-tests: New file.
54858         * modules/unictype/property-uppercase-tests: New file.
54859         * modules/unictype/property-variation-selector-tests: New file.
54860         * modules/unictype/property-white-space-tests: New file.
54861         * modules/unictype/property-xid-continue-tests: New file.
54862         * modules/unictype/property-xid-start-tests: New file.
54863         * modules/unictype/property-zero-width-tests: New file.
54864         * modules/unictype/scripts-tests: New file.
54865         * modules/unictype/syntax-c-ident-tests: New file.
54866         * modules/unictype/syntax-c-whitespace-tests: New file.
54867         * modules/unictype/syntax-java-ident-tests: New file.
54868         * modules/unictype/syntax-java-whitespace-tests: New file.
54869         * tests/unictype/test-bidi_byname.c: New file.
54870         * tests/unictype/test-bidi_name.c: New file.
54871         * tests/unictype/test-bidi_of.c: New file.
54872         * tests/unictype/test-bidi_test.c: New file.
54873         * tests/unictype/test-block_list.c: New file.
54874         * tests/unictype/test-block_of.c: New file.
54875         * tests/unictype/test-block_test.c: New file.
54876         * tests/unictype/test-categ_and.c: New file.
54877         * tests/unictype/test-categ_and_not.c: New file.
54878         * tests/unictype/test-categ_byname.c: New file.
54879         * tests/unictype/test-categ_name.c: New file.
54880         * tests/unictype/test-categ_none.c: New file.
54881         * tests/unictype/test-categ_of.c: New file.
54882         * tests/unictype/test-categ_or.c: New file.
54883         * tests/unictype/test-categ_test_withtable.c: New file.
54884         * tests/unictype/test-combining.c: New file.
54885         * tests/unictype/test-decdigit.c: New file.
54886         * tests/unictype/test-digit.c: New file.
54887         * tests/unictype/test-mirror.c: New file.
54888         * tests/unictype/test-numeric.c: New file.
54889         * tests/unictype/test-pr_byname.c: New file.
54890         * tests/unictype/test-pr_test.c: New file.
54891         * tests/unictype/test-predicate-part1.h: New file.
54892         * tests/unictype/test-predicate-part2.h: New file.
54893         * tests/unictype/test-scripts.c: New file.
54894         * tests/unictype/test-sy_c_ident.c: New file.
54895         * tests/unictype/test-sy_java_ident.c: New file.
54896
54897         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54898         for Unicode 5.0.0.
54899         * tests/unictype/test-categ_Cc.c: Likewise.
54900         * tests/unictype/test-categ_Cf.c: Likewise.
54901         * tests/unictype/test-categ_Cn.c: Likewise.
54902         * tests/unictype/test-categ_Co.c: Likewise.
54903         * tests/unictype/test-categ_Cs.c: Likewise.
54904         * tests/unictype/test-categ_L.c: Likewise.
54905         * tests/unictype/test-categ_Ll.c: Likewise.
54906         * tests/unictype/test-categ_Lm.c: Likewise.
54907         * tests/unictype/test-categ_Lo.c: Likewise.
54908         * tests/unictype/test-categ_Lt.c: Likewise.
54909         * tests/unictype/test-categ_Lu.c: Likewise.
54910         * tests/unictype/test-categ_M.c: Likewise.
54911         * tests/unictype/test-categ_Mc.c: Likewise.
54912         * tests/unictype/test-categ_Me.c: Likewise.
54913         * tests/unictype/test-categ_Mn.c: Likewise.
54914         * tests/unictype/test-categ_N.c: Likewise.
54915         * tests/unictype/test-categ_Nd.c: Likewise.
54916         * tests/unictype/test-categ_Nl.c: Likewise.
54917         * tests/unictype/test-categ_No.c: Likewise.
54918         * tests/unictype/test-categ_P.c: Likewise.
54919         * tests/unictype/test-categ_Pc.c: Likewise.
54920         * tests/unictype/test-categ_Pd.c: Likewise.
54921         * tests/unictype/test-categ_Pe.c: Likewise.
54922         * tests/unictype/test-categ_Pf.c: Likewise.
54923         * tests/unictype/test-categ_Pi.c: Likewise.
54924         * tests/unictype/test-categ_Po.c: Likewise.
54925         * tests/unictype/test-categ_Ps.c: Likewise.
54926         * tests/unictype/test-categ_S.c: Likewise.
54927         * tests/unictype/test-categ_Sc.c: Likewise.
54928         * tests/unictype/test-categ_Sk.c: Likewise.
54929         * tests/unictype/test-categ_Sm.c: Likewise.
54930         * tests/unictype/test-categ_So.c: Likewise.
54931         * tests/unictype/test-categ_Z.c: Likewise.
54932         * tests/unictype/test-categ_Zl.c: Likewise.
54933         * tests/unictype/test-categ_Zp.c: Likewise.
54934         * tests/unictype/test-categ_Zs.c: Likewise.
54935         * tests/unictype/test-ctype_alnum.c: Likewise.
54936         * tests/unictype/test-ctype_alpha.c: Likewise.
54937         * tests/unictype/test-ctype_blank.c: Likewise.
54938         * tests/unictype/test-ctype_cntrl.c: Likewise.
54939         * tests/unictype/test-ctype_digit.c: Likewise.
54940         * tests/unictype/test-ctype_graph.c: Likewise.
54941         * tests/unictype/test-ctype_lower.c: Likewise.
54942         * tests/unictype/test-ctype_print.c: Likewise.
54943         * tests/unictype/test-ctype_punct.c: Likewise.
54944         * tests/unictype/test-ctype_space.c: Likewise.
54945         * tests/unictype/test-ctype_upper.c: Likewise.
54946         * tests/unictype/test-ctype_xdigit.c: Likewise.
54947         * tests/unictype/test-decdigit.h: Likewise.
54948         * tests/unictype/test-digit.h: Likewise.
54949         * tests/unictype/test-numeric.h: Likewise.
54950         * tests/unictype/test-pr_alphabetic.c: Likewise.
54951         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54952         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54953         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54954         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54955         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54956         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54957         * tests/unictype/test-pr_bidi_control.c: Likewise.
54958         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54959         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54960         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54961         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54962         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54963         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54964         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54965         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54966         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54967         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54968         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54969         * tests/unictype/test-pr_combining.c: Likewise.
54970         * tests/unictype/test-pr_composite.c: Likewise.
54971         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54972         * tests/unictype/test-pr_dash.c: Likewise.
54973         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54974         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54975         * tests/unictype/test-pr_deprecated.c: Likewise.
54976         * tests/unictype/test-pr_diacritic.c: Likewise.
54977         * tests/unictype/test-pr_extender.c: Likewise.
54978         * tests/unictype/test-pr_format_control.c: Likewise.
54979         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54980         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54981         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54982         * tests/unictype/test-pr_hex_digit.c: Likewise.
54983         * tests/unictype/test-pr_hyphen.c: Likewise.
54984         * tests/unictype/test-pr_id_continue.c: Likewise.
54985         * tests/unictype/test-pr_id_start.c: Likewise.
54986         * tests/unictype/test-pr_ideographic.c: Likewise.
54987         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54988         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54989         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54990         * tests/unictype/test-pr_iso_control.c: Likewise.
54991         * tests/unictype/test-pr_join_control.c: Likewise.
54992         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54993         * tests/unictype/test-pr_line_separator.c: Likewise.
54994         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54995         * tests/unictype/test-pr_lowercase.c: Likewise.
54996         * tests/unictype/test-pr_math.c: Likewise.
54997         * tests/unictype/test-pr_non_break.c: Likewise.
54998         * tests/unictype/test-pr_not_a_character.c: Likewise.
54999         * tests/unictype/test-pr_numeric.c: Likewise.
55000         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55001         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55002         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55003         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55004         * tests/unictype/test-pr_other_id_start.c: Likewise.
55005         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55006         * tests/unictype/test-pr_other_math.c: Likewise.
55007         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55008         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55009         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55010         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55011         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55012         * tests/unictype/test-pr_private_use.c: Likewise.
55013         * tests/unictype/test-pr_punctuation.c: Likewise.
55014         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55015         * tests/unictype/test-pr_radical.c: Likewise.
55016         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55017         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55018         * tests/unictype/test-pr_space.c: Likewise.
55019         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55020         * tests/unictype/test-pr_titlecase.c: Likewise.
55021         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55022         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55023         * tests/unictype/test-pr_uppercase.c: Likewise.
55024         * tests/unictype/test-pr_variation_selector.c: Likewise.
55025         * tests/unictype/test-pr_white_space.c: Likewise.
55026         * tests/unictype/test-pr_xid_continue.c: Likewise.
55027         * tests/unictype/test-pr_xid_start.c: Likewise.
55028         * tests/unictype/test-pr_zero_width.c: Likewise.
55029         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55030         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55031
55032 2007-11-12  Bruno Haible  <bruno@clisp.org>
55033
55034         Unicode character classification functions.
55035         * lib/unictype.h: New file.
55036         * modules/unictype/base: New file.
55037         * modules/unictype/category-L: New file.
55038         * modules/unictype/category-Lu: New file.
55039         * modules/unictype/category-Ll: New file.
55040         * modules/unictype/category-Lt: New file.
55041         * modules/unictype/category-Lm: New file.
55042         * modules/unictype/category-Lo: New file.
55043         * modules/unictype/category-M: New file.
55044         * modules/unictype/category-Mn: New file.
55045         * modules/unictype/category-Mc: New file.
55046         * modules/unictype/category-Me: New file.
55047         * modules/unictype/category-N: New file.
55048         * modules/unictype/category-Nd: New file.
55049         * modules/unictype/category-Nl: New file.
55050         * modules/unictype/category-No: New file.
55051         * modules/unictype/category-P: New file.
55052         * modules/unictype/category-Pc: New file.
55053         * modules/unictype/category-Pd: New file.
55054         * modules/unictype/category-Ps: New file.
55055         * modules/unictype/category-Pe: New file.
55056         * modules/unictype/category-Pi: New file.
55057         * modules/unictype/category-Pf: New file.
55058         * modules/unictype/category-Po: New file.
55059         * modules/unictype/category-S: New file.
55060         * modules/unictype/category-Sm: New file.
55061         * modules/unictype/category-Sc: New file.
55062         * modules/unictype/category-Sk: New file.
55063         * modules/unictype/category-So: New file.
55064         * modules/unictype/category-Z: New file.
55065         * modules/unictype/category-Zs: New file.
55066         * modules/unictype/category-Zl: New file.
55067         * modules/unictype/category-Zp: New file.
55068         * modules/unictype/category-C: New file.
55069         * modules/unictype/category-Cc: New file.
55070         * modules/unictype/category-Cf: New file.
55071         * modules/unictype/category-Cs: New file.
55072         * modules/unictype/category-Co: New file.
55073         * modules/unictype/category-Cn: New file.
55074         * modules/unictype/category-or: New file.
55075         * modules/unictype/category-of: New file.
55076         * modules/unictype/category-test: New file.
55077         * modules/unictype/category-test-withtable: New file.
55078         * modules/unictype/category-byname: New file.
55079         * modules/unictype/category-none: New file.
55080         * modules/unictype/category-and: New file.
55081         * modules/unictype/category-and-not: New file.
55082         * modules/unictype/category-name: New file.
55083         * modules/unictype/combining-class: New file.
55084         * modules/unictype/category-all: New file.
55085         * modules/unictype/bidicategory-all: New file.
55086         * modules/unictype/bidicategory-byname: New file.
55087         * modules/unictype/bidicategory-name: New file.
55088         * modules/unictype/bidicategory-of: New file.
55089         * modules/unictype/bidicategory-test: New file.
55090         * modules/unictype/decimal-digit: New file.
55091         * modules/unictype/digit: New file.
55092         * modules/unictype/numeric: New file.
55093         * modules/unictype/mirror: New file.
55094         * modules/unictype/property-white-space: New file.
55095         * modules/unictype/property-alphabetic: New file.
55096         * modules/unictype/property-other-alphabetic: New file.
55097         * modules/unictype/property-not-a-character: New file.
55098         * modules/unictype/property-default-ignorable-code-point: New file.
55099         * modules/unictype/property-other-default-ignorable-code-point: New
55100         file.
55101         * modules/unictype/property-deprecated: New file.
55102         * modules/unictype/property-logical-order-exception: New file.
55103         * modules/unictype/property-variation-selector: New file.
55104         * modules/unictype/property-private-use: New file.
55105         * modules/unictype/property-unassigned-code-value: New file.
55106         * modules/unictype/property-uppercase: New file.
55107         * modules/unictype/property-other-uppercase: New file.
55108         * modules/unictype/property-lowercase: New file.
55109         * modules/unictype/property-other-lowercase: New file.
55110         * modules/unictype/property-titlecase: New file.
55111         * modules/unictype/property-soft-dotted: New file.
55112         * modules/unictype/property-id-start: New file.
55113         * modules/unictype/property-other-id-start: New file.
55114         * modules/unictype/property-id-continue: New file.
55115         * modules/unictype/property-other-id-continue: New file.
55116         * modules/unictype/property-xid-start: New file.
55117         * modules/unictype/property-xid-continue: New file.
55118         * modules/unictype/property-pattern-white-space: New file.
55119         * modules/unictype/property-pattern-syntax: New file.
55120         * modules/unictype/property-join-control: New file.
55121         * modules/unictype/property-grapheme-base: New file.
55122         * modules/unictype/property-grapheme-extend: New file.
55123         * modules/unictype/property-other-grapheme-extend: New file.
55124         * modules/unictype/property-grapheme-link: New file.
55125         * modules/unictype/property-bidi-control: New file.
55126         * modules/unictype/property-bidi-left-to-right: New file.
55127         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55128         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55129         * modules/unictype/property-bidi-european-digit: New file.
55130         * modules/unictype/property-bidi-eur-num-separator: New file.
55131         * modules/unictype/property-bidi-eur-num-terminator: New file.
55132         * modules/unictype/property-bidi-arabic-digit: New file.
55133         * modules/unictype/property-bidi-common-separator: New file.
55134         * modules/unictype/property-bidi-block-separator: New file.
55135         * modules/unictype/property-bidi-segment-separator: New file.
55136         * modules/unictype/property-bidi-whitespace: New file.
55137         * modules/unictype/property-bidi-non-spacing-mark: New file.
55138         * modules/unictype/property-bidi-boundary-neutral: New file.
55139         * modules/unictype/property-bidi-pdf: New file.
55140         * modules/unictype/property-bidi-embedding-or-override: New file.
55141         * modules/unictype/property-bidi-other-neutral: New file.
55142         * modules/unictype/property-hex-digit: New file.
55143         * modules/unictype/property-ascii-hex-digit: New file.
55144         * modules/unictype/property-ideographic: New file.
55145         * modules/unictype/property-unified-ideograph: New file.
55146         * modules/unictype/property-radical: New file.
55147         * modules/unictype/property-ids-binary-operator: New file.
55148         * modules/unictype/property-ids-trinary-operator: New file.
55149         * modules/unictype/property-zero-width: New file.
55150         * modules/unictype/property-space: New file.
55151         * modules/unictype/property-non-break: New file.
55152         * modules/unictype/property-iso-control: New file.
55153         * modules/unictype/property-format-control: New file.
55154         * modules/unictype/property-dash: New file.
55155         * modules/unictype/property-hyphen: New file.
55156         * modules/unictype/property-punctuation: New file.
55157         * modules/unictype/property-line-separator: New file.
55158         * modules/unictype/property-paragraph-separator: New file.
55159         * modules/unictype/property-quotation-mark: New file.
55160         * modules/unictype/property-sentence-terminal: New file.
55161         * modules/unictype/property-terminal-punctuation: New file.
55162         * modules/unictype/property-currency-symbol: New file.
55163         * modules/unictype/property-math: New file.
55164         * modules/unictype/property-other-math: New file.
55165         * modules/unictype/property-paired-punctuation: New file.
55166         * modules/unictype/property-left-of-pair: New file.
55167         * modules/unictype/property-combining: New file.
55168         * modules/unictype/property-composite: New file.
55169         * modules/unictype/property-decimal-digit: New file.
55170         * modules/unictype/property-numeric: New file.
55171         * modules/unictype/property-diacritic: New file.
55172         * modules/unictype/property-extender: New file.
55173         * modules/unictype/property-ignorable-control: New file.
55174         * modules/unictype/property-test: New file.
55175         * modules/unictype/property-byname: New file.
55176         * modules/unictype/property-all: New file.
55177         * modules/unictype/scripts: New file.
55178         * modules/unictype/scripts-all: New file.
55179         * modules/unictype/block-of: New file.
55180         * modules/unictype/block-test: New file.
55181         * modules/unictype/block-list: New file.
55182         * modules/unictype/block-all: New file.
55183         * modules/unictype/syntax-c-whitespace: New file.
55184         * modules/unictype/syntax-java-whitespace: New file.
55185         * modules/unictype/syntax-c-ident: New file.
55186         * modules/unictype/syntax-java-ident: New file.
55187         * modules/unictype/ctype-alnum: New file.
55188         * modules/unictype/ctype-alpha: New file.
55189         * modules/unictype/ctype-cntrl: New file.
55190         * modules/unictype/ctype-digit: New file.
55191         * modules/unictype/ctype-graph: New file.
55192         * modules/unictype/ctype-lower: New file.
55193         * modules/unictype/ctype-print: New file.
55194         * modules/unictype/ctype-punct: New file.
55195         * modules/unictype/ctype-space: New file.
55196         * modules/unictype/ctype-upper: New file.
55197         * modules/unictype/ctype-xdigit: New file.
55198         * modules/unictype/ctype-blank: New file.
55199         * lib/unictype/bidi_byname.c: New file.
55200         * lib/unictype/bidi_name.c: New file.
55201         * lib/unictype/bidi_of.c: New file.
55202         * lib/unictype/bidi_test.c: New file.
55203         * lib/unictype/bitmap.h: New file.
55204         * lib/unictype/block_test.c: New file.
55205         * lib/unictype/blocks.c: New file.
55206         * lib/unictype/categ_C.c: New file.
55207         * lib/unictype/categ_Cc.c: New file.
55208         * lib/unictype/categ_Cf.c: New file.
55209         * lib/unictype/categ_Cn.c: New file.
55210         * lib/unictype/categ_Co.c: New file.
55211         * lib/unictype/categ_Cs.c: New file.
55212         * lib/unictype/categ_L.c: New file.
55213         * lib/unictype/categ_Ll.c: New file.
55214         * lib/unictype/categ_Lm.c: New file.
55215         * lib/unictype/categ_Lo.c: New file.
55216         * lib/unictype/categ_Lt.c: New file.
55217         * lib/unictype/categ_Lu.c: New file.
55218         * lib/unictype/categ_M.c: New file.
55219         * lib/unictype/categ_Mc.c: New file.
55220         * lib/unictype/categ_Me.c: New file.
55221         * lib/unictype/categ_Mn.c: New file.
55222         * lib/unictype/categ_N.c: New file.
55223         * lib/unictype/categ_Nd.c: New file.
55224         * lib/unictype/categ_Nl.c: New file.
55225         * lib/unictype/categ_No.c: New file.
55226         * lib/unictype/categ_P.c: New file.
55227         * lib/unictype/categ_Pc.c: New file.
55228         * lib/unictype/categ_Pd.c: New file.
55229         * lib/unictype/categ_Pe.c: New file.
55230         * lib/unictype/categ_Pf.c: New file.
55231         * lib/unictype/categ_Pi.c: New file.
55232         * lib/unictype/categ_Po.c: New file.
55233         * lib/unictype/categ_Ps.c: New file.
55234         * lib/unictype/categ_S.c: New file.
55235         * lib/unictype/categ_Sc.c: New file.
55236         * lib/unictype/categ_Sk.c: New file.
55237         * lib/unictype/categ_Sm.c: New file.
55238         * lib/unictype/categ_So.c: New file.
55239         * lib/unictype/categ_Z.c: New file.
55240         * lib/unictype/categ_Zl.c: New file.
55241         * lib/unictype/categ_Zp.c: New file.
55242         * lib/unictype/categ_Zs.c: New file.
55243         * lib/unictype/categ_and.c: New file.
55244         * lib/unictype/categ_and_not.c: New file.
55245         * lib/unictype/categ_byname.c: New file.
55246         * lib/unictype/categ_name.c: New file.
55247         * lib/unictype/categ_none.c: New file.
55248         * lib/unictype/categ_of.c: New file.
55249         * lib/unictype/categ_or.c: New file.
55250         * lib/unictype/categ_test.c: New file.
55251         * lib/unictype/combining.c: New file.
55252         * lib/unictype/ctype_alnum.c: New file.
55253         * lib/unictype/ctype_alpha.c: New file.
55254         * lib/unictype/ctype_blank.c: New file.
55255         * lib/unictype/ctype_cntrl.c: New file.
55256         * lib/unictype/ctype_digit.c: New file.
55257         * lib/unictype/ctype_graph.c: New file.
55258         * lib/unictype/ctype_lower.c: New file.
55259         * lib/unictype/ctype_print.c: New file.
55260         * lib/unictype/ctype_punct.c: New file.
55261         * lib/unictype/ctype_space.c: New file.
55262         * lib/unictype/ctype_upper.c: New file.
55263         * lib/unictype/ctype_xdigit.c: New file.
55264         * lib/unictype/decdigit.c: New file.
55265         * lib/unictype/digit.c: New file.
55266         * lib/unictype/identsyntaxmap.h: New file.
55267         * lib/unictype/mirror.c: New file.
55268         * lib/unictype/numeric.c: New file.
55269         * lib/unictype/pr_alphabetic.c: New file.
55270         * lib/unictype/pr_ascii_hex_digit.c: New file.
55271         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55272         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55273         * lib/unictype/pr_bidi_block_separator.c: New file.
55274         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55275         * lib/unictype/pr_bidi_common_separator.c: New file.
55276         * lib/unictype/pr_bidi_control.c: New file.
55277         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55278         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55279         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55280         * lib/unictype/pr_bidi_european_digit.c: New file.
55281         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55282         * lib/unictype/pr_bidi_left_to_right.c: New file.
55283         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55284         * lib/unictype/pr_bidi_other_neutral.c: New file.
55285         * lib/unictype/pr_bidi_pdf.c: New file.
55286         * lib/unictype/pr_bidi_segment_separator.c: New file.
55287         * lib/unictype/pr_bidi_whitespace.c: New file.
55288         * lib/unictype/pr_byname.c: New file.
55289         * lib/unictype/pr_byname.gperf: New file.
55290         * lib/unictype/pr_combining.c: New file.
55291         * lib/unictype/pr_composite.c: New file.
55292         * lib/unictype/pr_currency_symbol.c: New file.
55293         * lib/unictype/pr_dash.c: New file.
55294         * lib/unictype/pr_decimal_digit.c: New file.
55295         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55296         * lib/unictype/pr_deprecated.c: New file.
55297         * lib/unictype/pr_diacritic.c: New file.
55298         * lib/unictype/pr_extender.c: New file.
55299         * lib/unictype/pr_format_control.c: New file.
55300         * lib/unictype/pr_grapheme_base.c: New file.
55301         * lib/unictype/pr_grapheme_extend.c: New file.
55302         * lib/unictype/pr_grapheme_link.c: New file.
55303         * lib/unictype/pr_hex_digit.c: New file.
55304         * lib/unictype/pr_hyphen.c: New file.
55305         * lib/unictype/pr_id_continue.c: New file.
55306         * lib/unictype/pr_id_start.c: New file.
55307         * lib/unictype/pr_ideographic.c: New file.
55308         * lib/unictype/pr_ids_binary_operator.c: New file.
55309         * lib/unictype/pr_ids_trinary_operator.c: New file.
55310         * lib/unictype/pr_ignorable_control.c: New file.
55311         * lib/unictype/pr_iso_control.c: New file.
55312         * lib/unictype/pr_join_control.c: New file.
55313         * lib/unictype/pr_left_of_pair.c: New file.
55314         * lib/unictype/pr_line_separator.c: New file.
55315         * lib/unictype/pr_logical_order_exception.c: New file.
55316         * lib/unictype/pr_lowercase.c: New file.
55317         * lib/unictype/pr_math.c: New file.
55318         * lib/unictype/pr_non_break.c: New file.
55319         * lib/unictype/pr_not_a_character.c: New file.
55320         * lib/unictype/pr_numeric.c: New file.
55321         * lib/unictype/pr_other_alphabetic.c: New file.
55322         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55323         * lib/unictype/pr_other_grapheme_extend.c: New file.
55324         * lib/unictype/pr_other_id_continue.c: New file.
55325         * lib/unictype/pr_other_id_start.c: New file.
55326         * lib/unictype/pr_other_lowercase.c: New file.
55327         * lib/unictype/pr_other_math.c: New file.
55328         * lib/unictype/pr_other_uppercase.c: New file.
55329         * lib/unictype/pr_paired_punctuation.c: New file.
55330         * lib/unictype/pr_paragraph_separator.c: New file.
55331         * lib/unictype/pr_pattern_syntax.c: New file.
55332         * lib/unictype/pr_pattern_white_space.c: New file.
55333         * lib/unictype/pr_private_use.c: New file.
55334         * lib/unictype/pr_punctuation.c: New file.
55335         * lib/unictype/pr_quotation_mark.c: New file.
55336         * lib/unictype/pr_radical.c: New file.
55337         * lib/unictype/pr_sentence_terminal.c: New file.
55338         * lib/unictype/pr_soft_dotted.c: New file.
55339         * lib/unictype/pr_space.c: New file.
55340         * lib/unictype/pr_terminal_punctuation.c: New file.
55341         * lib/unictype/pr_test.c: New file.
55342         * lib/unictype/pr_titlecase.c: New file.
55343         * lib/unictype/pr_unassigned_code_value.c: New file.
55344         * lib/unictype/pr_unified_ideograph.c: New file.
55345         * lib/unictype/pr_uppercase.c: New file.
55346         * lib/unictype/pr_variation_selector.c: New file.
55347         * lib/unictype/pr_white_space.c: New file.
55348         * lib/unictype/pr_xid_continue.c: New file.
55349         * lib/unictype/pr_xid_start.c: New file.
55350         * lib/unictype/pr_zero_width.c: New file.
55351         * lib/unictype/scripts.c: New file.
55352         * lib/unictype/sy_c_ident.c: New file.
55353         * lib/unictype/sy_c_whitespace.c: New file.
55354         * lib/unictype/sy_java_ident.c: New file.
55355         * lib/unictype/sy_java_whitespace.c: New file.
55356
55357         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55358         Unicode 5.0.0.
55359         * lib/unictype/blocks.h: Likewise.
55360         * lib/unictype/categ_C.h: Likewise.
55361         * lib/unictype/categ_Cc.h: Likewise.
55362         * lib/unictype/categ_Cf.h: Likewise.
55363         * lib/unictype/categ_Cn.h: Likewise.
55364         * lib/unictype/categ_Co.h: Likewise.
55365         * lib/unictype/categ_Cs.h: Likewise.
55366         * lib/unictype/categ_L.h: Likewise.
55367         * lib/unictype/categ_Ll.h: Likewise.
55368         * lib/unictype/categ_Lm.h: Likewise.
55369         * lib/unictype/categ_Lo.h: Likewise.
55370         * lib/unictype/categ_Lt.h: Likewise.
55371         * lib/unictype/categ_Lu.h: Likewise.
55372         * lib/unictype/categ_M.h: Likewise.
55373         * lib/unictype/categ_Mc.h: Likewise.
55374         * lib/unictype/categ_Me.h: Likewise.
55375         * lib/unictype/categ_Mn.h: Likewise.
55376         * lib/unictype/categ_N.h: Likewise.
55377         * lib/unictype/categ_Nd.h: Likewise.
55378         * lib/unictype/categ_Nl.h: Likewise.
55379         * lib/unictype/categ_No.h: Likewise.
55380         * lib/unictype/categ_P.h: Likewise.
55381         * lib/unictype/categ_Pc.h: Likewise.
55382         * lib/unictype/categ_Pd.h: Likewise.
55383         * lib/unictype/categ_Pe.h: Likewise.
55384         * lib/unictype/categ_Pf.h: Likewise.
55385         * lib/unictype/categ_Pi.h: Likewise.
55386         * lib/unictype/categ_Po.h: Likewise.
55387         * lib/unictype/categ_Ps.h: Likewise.
55388         * lib/unictype/categ_S.h: Likewise.
55389         * lib/unictype/categ_Sc.h: Likewise.
55390         * lib/unictype/categ_Sk.h: Likewise.
55391         * lib/unictype/categ_Sm.h: Likewise.
55392         * lib/unictype/categ_So.h: Likewise.
55393         * lib/unictype/categ_Z.h: Likewise.
55394         * lib/unictype/categ_Zl.h: Likewise.
55395         * lib/unictype/categ_Zp.h: Likewise.
55396         * lib/unictype/categ_Zs.h: Likewise.
55397         * lib/unictype/categ_of.h: Likewise.
55398         * lib/unictype/combining.h: Likewise.
55399         * lib/unictype/ctype_alnum.h: Likewise.
55400         * lib/unictype/ctype_alpha.h: Likewise.
55401         * lib/unictype/ctype_blank.h: Likewise.
55402         * lib/unictype/ctype_cntrl.h: Likewise.
55403         * lib/unictype/ctype_digit.h: Likewise.
55404         * lib/unictype/ctype_graph.h: Likewise.
55405         * lib/unictype/ctype_lower.h: Likewise.
55406         * lib/unictype/ctype_print.h: Likewise.
55407         * lib/unictype/ctype_punct.h: Likewise.
55408         * lib/unictype/ctype_space.h: Likewise.
55409         * lib/unictype/ctype_upper.h: Likewise.
55410         * lib/unictype/ctype_xdigit.h: Likewise.
55411         * lib/unictype/decdigit.h: Likewise.
55412         * lib/unictype/digit.h: Likewise.
55413         * lib/unictype/mirror.h: Likewise.
55414         * lib/unictype/numeric.h: Likewise.
55415         * lib/unictype/pr_alphabetic.h: Likewise.
55416         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55417         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55418         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55419         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55420         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55421         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55422         * lib/unictype/pr_bidi_control.h: Likewise.
55423         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55424         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55425         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55426         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55427         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55428         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55429         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55430         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55431         * lib/unictype/pr_bidi_pdf.h: Likewise.
55432         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55433         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55434         * lib/unictype/pr_combining.h: Likewise.
55435         * lib/unictype/pr_composite.h: Likewise.
55436         * lib/unictype/pr_currency_symbol.h: Likewise.
55437         * lib/unictype/pr_dash.h: Likewise.
55438         * lib/unictype/pr_decimal_digit.h: Likewise.
55439         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55440         * lib/unictype/pr_deprecated.h: Likewise.
55441         * lib/unictype/pr_diacritic.h: Likewise.
55442         * lib/unictype/pr_extender.h: Likewise.
55443         * lib/unictype/pr_format_control.h: Likewise.
55444         * lib/unictype/pr_grapheme_base.h: Likewise.
55445         * lib/unictype/pr_grapheme_extend.h: Likewise.
55446         * lib/unictype/pr_grapheme_link.h: Likewise.
55447         * lib/unictype/pr_hex_digit.h: Likewise.
55448         * lib/unictype/pr_hyphen.h: Likewise.
55449         * lib/unictype/pr_id_continue.h: Likewise.
55450         * lib/unictype/pr_id_start.h: Likewise.
55451         * lib/unictype/pr_ideographic.h: Likewise.
55452         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55453         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55454         * lib/unictype/pr_ignorable_control.h: Likewise.
55455         * lib/unictype/pr_iso_control.h: Likewise.
55456         * lib/unictype/pr_join_control.h: Likewise.
55457         * lib/unictype/pr_left_of_pair.h: Likewise.
55458         * lib/unictype/pr_line_separator.h: Likewise.
55459         * lib/unictype/pr_logical_order_exception.h: Likewise.
55460         * lib/unictype/pr_lowercase.h: Likewise.
55461         * lib/unictype/pr_math.h: Likewise.
55462         * lib/unictype/pr_non_break.h: Likewise.
55463         * lib/unictype/pr_not_a_character.h: Likewise.
55464         * lib/unictype/pr_numeric.h: Likewise.
55465         * lib/unictype/pr_other_alphabetic.h: Likewise.
55466         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55467         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55468         * lib/unictype/pr_other_id_continue.h: Likewise.
55469         * lib/unictype/pr_other_id_start.h: Likewise.
55470         * lib/unictype/pr_other_lowercase.h: Likewise.
55471         * lib/unictype/pr_other_math.h: Likewise.
55472         * lib/unictype/pr_other_uppercase.h: Likewise.
55473         * lib/unictype/pr_paired_punctuation.h: Likewise.
55474         * lib/unictype/pr_paragraph_separator.h: Likewise.
55475         * lib/unictype/pr_pattern_syntax.h: Likewise.
55476         * lib/unictype/pr_pattern_white_space.h: Likewise.
55477         * lib/unictype/pr_private_use.h: Likewise.
55478         * lib/unictype/pr_punctuation.h: Likewise.
55479         * lib/unictype/pr_quotation_mark.h: Likewise.
55480         * lib/unictype/pr_radical.h: Likewise.
55481         * lib/unictype/pr_sentence_terminal.h: Likewise.
55482         * lib/unictype/pr_soft_dotted.h: Likewise.
55483         * lib/unictype/pr_space.h: Likewise.
55484         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55485         * lib/unictype/pr_titlecase.h: Likewise.
55486         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55487         * lib/unictype/pr_unified_ideograph.h: Likewise.
55488         * lib/unictype/pr_uppercase.h: Likewise.
55489         * lib/unictype/pr_variation_selector.h: Likewise.
55490         * lib/unictype/pr_white_space.h: Likewise.
55491         * lib/unictype/pr_xid_continue.h: Likewise.
55492         * lib/unictype/pr_xid_start.h: Likewise.
55493         * lib/unictype/pr_zero_width.h: Likewise.
55494         * lib/unictype/scripts.h: Likewise.
55495         * lib/unictype/scripts_byname.gperf: Likewise.
55496         * lib/unictype/sy_c_ident.h: Likewise.
55497         * lib/unictype/sy_c_whitespace.h: Likewise.
55498         * lib/unictype/sy_java_ident.h: Likewise.
55499         * lib/unictype/sy_java_whitespace.h: Likewise.
55500
55501         * lib/unictype/Makefile: New file.
55502         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55503         glibc.
55504         * lib/unictype/3level.h: New file, copied from glibc.
55505         * lib/unictype/3levelbit.h: New file.
55506
55507 2007-11-11  Bruno Haible  <bruno@clisp.org>
55508
55509         * modules/gperf: New file.
55510         * modules/iconv_open (Depends-on): Add it.
55511         (Makefile.am): Remove the GPERF definition.
55512
55513 2007-11-11  Bruno Haible  <bruno@clisp.org>
55514
55515         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55516         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55517
55518 2007-11-11  Bruno Haible  <bruno@clisp.org>
55519
55520         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55521         (usage): Remove function.
55522
55523 2007-11-11  Bruno Haible  <bruno@clisp.org>
55524
55525         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55526         gl_FUNC_CEILF_LIBS.
55527         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55528         gl_FUNC_CEIL_LIBS.
55529         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55530         gl_FUNC_CEILL_LIBS.
55531         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55532         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55533         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55534
55535 2007-11-11  Bruno Haible  <bruno@clisp.org>
55536
55537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55538         roundf were declared but do not exist on functions.
55539         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55540         roundl were declared but do not exist on functions.
55541         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55542         HAVE_FLOORL_AND_CEILL, respectively.
55543         Needed for Sun C on Solaris 10.
55544
55545 2007-11-11  Bruno Haible  <bruno@clisp.org>
55546
55547         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55548         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55549         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55550         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55551         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55552         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55553         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55554         HAVE_DECL_ROUNDF.
55555         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55556         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55558         of HAVE_DECL_ROUND*.
55559         * modules/math (Makefile.am): Update.
55560
55561 2007-11-10  Bruno Haible  <bruno@clisp.org>
55562
55563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55564         ptrdiff_t as m4/intl.m4.
55565
55566 2007-11-10  Jim Meyering  <meyering@redhat.com>
55567
55568         Avoid link failure for the argmatch test.
55569         * tests/test-argmatch.c (usage): Define function to avoid a link
55570         failure: argmatch_die requires a usage function.
55571
55572 2007-11-09  Bruno Haible  <bruno@clisp.org>
55573
55574         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55575         * doc/functions/vsnprintf.texi: Likewise.
55576         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55577         with a size argument < 2.
55578
55579 2007-11-09  Bruno Haible  <bruno@clisp.org>
55580
55581         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55582         buffer. Fixes an inefficiency introduced on 2007-11-03.
55583
55584 2007-11-09  Bruno Haible  <bruno@clisp.org>
55585
55586         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55587         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55588
55589 2007-11-08  Jim Meyering  <meyering@redhat.com>
55590
55591         Change cache variable name prefix "jm_" to "gl_" everywhere.
55592         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55593         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55594         * m4/uptime.m4: s/gl_/jm_/
55595
55596 2007-11-07  Bruno Haible  <bruno@clisp.org>
55597
55598         Update to GNU gettext 0.17.
55599         * m4/intl.m4: Update to GNU gettext 0.17.
55600         * m4/po.m4: Likewise.
55601         * modules/gettext (Files): Remove m4/ulonglong.m4.
55602         (configure.ac): Require gettext infrastructure from version 0.17.
55603
55604 2007-11-06  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55607         symbolic values are not defined in a public header.
55608         * lib/freadable.c (freadable) [QNX]: Likewise.
55609         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55610         * lib/freading.c (freading) [QNX]: Likewise.
55611         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55612         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55613         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55614         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55615         Reported by Alain Magloire.
55616
55617         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55618
55619 2007-11-05  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55622         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55623         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55624         Reported by Eric Blake.
55625
55626 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55627             Bruno Haible  <bruno@clisp.org>
55628
55629         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55630         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55631         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55632         (malloc): Undefine also before including <stdlib.h>.
55633         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55634         Needed on OSF/1 4.0.
55635
55636 2007-11-05  Jim Meyering  <meyering@redhat.com>
55637
55638         git-version-gen: sync from coreutils.
55639         * build-aux/git-version-gen: Add comments.
55640         Change the first '-' to '.' in the snapshot version string,
55641         e.g., 6.9-377-08144 -> 6.9.377-08144
55642         Remove first parameter.
55643         Don't declare a version "-dirty" merely because a time
55644         stamp has changed.
55645
55646 2007-11-04  Bruno Haible  <bruno@clisp.org>
55647
55648         * lib/lock.h: Protect all macro definitions containing an 'if'
55649         statement through a "do { ... } while (0)".
55650         * lib/tls.h: Likewise.
55651
55652 2007-11-04  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55655
55656 2007-11-04  Bruno Haible  <bruno@clisp.org>
55657
55658         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55659         * modules/fprintf-posix (Depends-on): Add nocrash.
55660         * modules/snprintf-posix (Depends-on): Likewise.
55661         * modules/sprintf-posix (Depends-on): Likewise.
55662         * modules/vasnprintf-posix (Depends-on): Likewise.
55663         * modules/vasprintf-posix (Depends-on): Likewise.
55664         * modules/vfprintf-posix (Depends-on): Likewise.
55665         * modules/vsnprintf-posix (Depends-on): Likewise.
55666         * modules/vsprintf-posix (Depends-on): Likewise.
55667         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55668         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55669         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55670         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55671         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55672         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55673         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55674
55675 2007-11-04  Bruno Haible  <bruno@clisp.org>
55676
55677         * modules/nocrash: New file.
55678         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55679         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55680
55681 2007-11-04  Bruno Haible  <bruno@clisp.org>
55682
55683         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55684         precision handling.
55685         * tests/test-vasprintf-posix.c (test_function): Likewise.
55686         * tests/test-snprintf-posix.h (test_function): Likewise.
55687         * tests/test-sprintf-posix.h (test_function): Likewise.
55688
55689         Fix *printf behaviour for large precisions on mingw and BeOS.
55690         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55691         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55693         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55694         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55695         gl_PRINTF_PRECISION and test its result. Invoke
55696         gl_PREREQ_VASNPRINTF_PRECISION.
55697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55704         * doc/functions/fprintf.texi: Update.
55705         * doc/functions/printf.texi: Update.
55706         * doc/functions/snprintf.texi: Update.
55707         * doc/functions/sprintf.texi: Update.
55708         * doc/functions/vfprintf.texi: Update.
55709         * doc/functions/vprintf.texi: Update.
55710         * doc/functions/vsnprintf.texi: Update.
55711         * doc/functions/vsprintf.texi: Update.
55712
55713 2007-11-04  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55716
55717 2007-11-04  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55720         Reported by Sylvain Beucler <beuc@gnu.org>.
55721
55722 2007-11-03  Bruno Haible  <bruno@clisp.org>
55723
55724         * tests/test-fprintf-posix2.sh: New file.
55725         * tests/test-fprintf-posix2.c: New file.
55726         * modules/fprintf-posix-tests (Files): Add them.
55727         (TESTS): Add test-fprintf-posix2.sh.
55728         (configure.ac): Check for getrlimit and setrlimit.
55729         (check_PROGRAMS): Add test-fprintf-posix2.
55730
55731         * tests/test-printf-posix2.sh: New file.
55732         * tests/test-printf-posix2.c: New file.
55733         * modules/printf-posix-tests (Files): Add them.
55734         (TESTS): Add test-printf-posix2.sh.
55735         (configure.ac): Check for getrlimit and setrlimit.
55736         (check_PROGRAMS): Add test-printf-posix2.
55737
55738         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55739         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55740         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55741         (decode_double): New function, copied from decode_long_double.
55742         (scale10_round_decimal_decoded): New function, extracted from
55743         scale10_round_decimal_long_double.
55744         (scale10_round_decimal_long_double): Use it.
55745         (scale10_round_decimal_double): New function.
55746         (floorlog10): New function.
55747         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55749         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55751         gl_PRINTF_ENOMEM and test its result. Invoke
55752         gl_PREREQ_VASNPRINTF_ENOMEM.
55753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55757         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55759         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55760         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55761         * modules/snprintf-posix (Depends-on): Likewise.
55762         * modules/sprintf-posix (Depends-on): Likewise.
55763         * modules/vasnprintf-posix (Depends-on): Likewise.
55764         * modules/vasprintf-posix (Depends-on): Likewise.
55765         * modules/vfprintf-posix (Depends-on): Likewise.
55766         * modules/vsnprintf-posix (Depends-on): Likewise.
55767         * modules/vsprintf-posix (Depends-on): Likewise.
55768         * doc/functions/fprintf.texi: Update.
55769         * doc/functions/printf.texi: Update.
55770         * doc/functions/snprintf.texi: Update.
55771         * doc/functions/sprintf.texi: Update.
55772         * doc/functions/vfprintf.texi: Update.
55773         * doc/functions/vprintf.texi: Update.
55774         * doc/functions/vsnprintf.texi: Update.
55775         * doc/functions/vsprintf.texi: Update.
55776
55777 2007-11-03  Bruno Haible  <bruno@clisp.org>
55778
55779         * modules/frexp-nolibm-tests: New file.
55780
55781         * modules/frexp-nolibm: New file.
55782         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55783
55784 2007-11-03  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55787         value is C99 compliant.
55788         Needed for OSF/1 5.1.
55789
55790 2007-11-03  Bruno Haible  <bruno@clisp.org>
55791
55792         Fix out-of-memory handling of vasnprintf.
55793         * lib/printf-parse.c: Include <errno.h>.
55794         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55795         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55796         is already set.
55797
55798 2007-11-02  Eric Blake  <ebb9@byu.net>
55799
55800         Fix tests on cygwin.
55801         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55802
55803 2007-11-01  Bruno Haible  <bruno@clisp.org>
55804
55805         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55806         warning.
55807         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55808         needed for POSIX compatibility.
55809
55810 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55813         for compatibility with GNU.
55814
55815 2007-11-01  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55818         (putenv): Renamed from rpl_putenv. Change argument type from
55819         'const char *' to 'char *'.
55820         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55821         of defining putenv in config.h, just set REPLACE_PUTENV.
55822         * modules/putenv (Depends-on): Add stdlib.
55823         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55824         (Include): Use <stdlib.h>.
55825         * lib/stdlib.in.h (putenv): New declaration.
55826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55827         REPLACE_PUTENV.
55828         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55829         REPLACE_PUTENV.
55830         Needed for MacOS X 10.5.0.
55831         Reported by Peter O'Gorman <peter@pogma.com>.
55832
55833 2007-11-01  Jim Meyering  <meyering@redhat.com>
55834
55835         Treat an empty date string exactly like "0".
55836         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55837         if the remaining date string (to be parsed) is empty, use "0".
55838         Reported by Mischa Molhoek and discussed in this thread:
55839         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55840
55841 2007-10-31  Bruno Haible  <bruno@clisp.org>
55842
55843         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55844         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55845         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55846         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55847         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55848         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55849
55850 2007-10-31  Bruno Haible  <bruno@clisp.org>
55851
55852         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55853         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55854         (AC_TYPE_LONG_LONG_INT): Use it.
55855         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55856         it as well.
55857         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55858         to m4/longlong.m4.
55859         * modules/stdint (Files): Remove m4/ulonglong.m4.
55860         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55861         m4/ulonglong.m4.
55862         * modules/strtoumax (Files): Likewise.
55863
55864 2007-10-30  Bruno Haible  <bruno@clisp.org>
55865
55866         * modules/xvasprintf-posix: New file.
55867         Suggested by Eric Blake.
55868
55869 2007-10-30  Bruno Haible  <bruno@clisp.org>
55870
55871         * modules/xprintf-posix-tests: New file.
55872         * tests/test-xprintf-posix.sh: New file.
55873         * tests/test-xprintf-posix.c: New file.
55874         * tests/test-xfprintf-posix.c: New file.
55875
55876         * modules/xprintf-posix: New file.
55877
55878 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55879
55880         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55881         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55882         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55883
55884 2007-10-29  Bruno Haible  <bruno@clisp.org>
55885
55886         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55887         contain the special marker '_cv_'.
55888         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55889         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55890         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55891         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55892         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55893         Reported by Ralf Wildenhues.
55894
55895 2007-10-29  Bruno Haible  <bruno@clisp.org>
55896
55897         * gnulib-tool (func_import): When --lgpl is not specified, set
55898         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55899         GPLv3.
55900         Reported by Simon Josefsson.
55901
55902 2007-10-28  Bruno Haible  <bruno@clisp.org>
55903
55904         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55905         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55906         HAVE_DECL_ISFINITE.
55907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55908         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55909         HAVE_DECL_ISFINITE.
55910
55911 2007-10-28  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55914         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55915
55916 2007-10-28  Bruno Haible  <bruno@clisp.org>
55917
55918         Fix link errors with Sun C 5.0 on Solaris 10.
55919         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55920         function is declared but not present in the compiler's libm.
55921         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55922         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55923         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55924         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55925         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55926         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55927         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55929         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55930         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55931         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55932         HAVE_DECL_FLOORL.
55933
55934 2007-10-28  Bruno Haible  <bruno@clisp.org>
55935
55936         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55937         gl_FUNC_FLOORL. Cache the result.
55938         (gl_FUNC_FLOORL): Use it.
55939         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55940         gl_FUNC_CEILL. Cache the result.
55941         (gl_FUNC_CEILL): Use it.
55942
55943         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55944         gl_FUNC_FLOOR. Cache the result.
55945         (gl_FUNC_FLOOR): Use it.
55946         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55947         gl_FUNC_CEIL. Cache the result.
55948         (gl_FUNC_CEIL): Use it.
55949
55950         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55951         gl_FUNC_FLOORF. Cache the result.
55952         (gl_FUNC_FLOORF): Use it.
55953         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55954         gl_FUNC_CEILF. Cache the result.
55955         (gl_FUNC_CEILF): Use it.
55956
55957 2007-10-28  Bruno Haible  <bruno@clisp.org>
55958
55959         * gnulib-tool: Allow specifying the LGPL version number through
55960         --lgpl=2 or --lgpl=3.
55961         (func_usage): Document --lgpl with argument.
55962         Handle --lgpl=... arguments.
55963         (func_import): Recognize also gl_LGPL calls with an argument. When
55964         --lgpl=2 is used and the module's license is just LGPL, report an
55965         error. Set sed_transform_lib_file according to the lgpl variable. In
55966         the generated files, use --lgpl or gl_LGPL invocations with argument,
55967         if necessary.
55968         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55969         an LGPv2+ license.
55970         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55971         gl_LGPL macro.
55972
55973 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55974             Bruno Haible  <bruno@clisp.org>
55975
55976         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55977         (u16_uctomb_aux): Likewise.
55978         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55979         !HAVE_INLINE.
55980         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55981
55982 2007-10-28  Bruno Haible  <bruno@clisp.org>
55983
55984         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55985         Invoke AM_GETTEXT_OPTION if it exists.
55986         * modules/vasprintf: Likewise.
55987         * modules/verror: Likewise.
55988         * modules/xprintf: Likewise.
55989         * modules/xvasprintf: Likewise.
55990
55991 2007-10-27  Ben Pfaff  <blp@gnu.org>
55992
55993         * lib/math.in.h: Define isfinite macro and prototypes for
55994         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55995         implementations.
55996         * m4/math_h.m4: New substitutions for isfinite module.
55997         * lib/isfinite.c: New file.
55998         * m4/isfinite.m4: New file.
55999         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56000         * modules/isfinite: New file.
56001         * modules/isfinite-tests: New file.
56002         * tests/tests-isfinite.c: New file.
56003         * doc/functions/isfinite.texi: Mention isfinite module.
56004         * MODULES.html.sh: Mention new module.
56005
56006 2007-10-27  Ben Pfaff  <blp@gnu.org>
56007
56008         Ralf Wildenhues reported that Tru64 4.0D declares the round
56009         functions but does not have definitions.
56010         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56011         cannot be found in any library, set the output variable to
56012         "missing" instead of "".
56013         * m4/round.m4: Also use our substitute if we cannot find round in
56014         any library, even if it is declared.
56015         * m4/roundf.m4: Likewise for roundf.
56016         * m4/roundl.m4: Likewise for roundl.
56017         * lib/math.in.h: Undefine roundf, round, roundl before defining
56018         their replacements, to allow for hypothetical systems where these
56019         may be defined as macros but not available in libraries.
56020
56021 2007-10-27  Bruno Haible  <bruno@clisp.org>
56022
56023         * doc/gnulib.texi: Invoke @firstparagraphindent.
56024         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56025         changes in gnulib.
56026         (Source changes): New section.
56027
56028 2007-10-26  Bruno Haible  <bruno@clisp.org>
56029
56030         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56031         borrowed from autoconf.
56032
56033 2007-10-26  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56036         strerror returned the empty string. Needed on HP-UX 11.00.
56037
56038 2007-10-24  Micah Cowan  <micah@cowan.name>
56039
56040         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56041         * build-aux/bootstrap: Remove support for now-unnecessary option,
56042         --cvs-user, and envvars CVS_USER, CVS_RSH.
56043
56044 2007-10-24  Jim Meyering  <meyering@redhat.com>
56045
56046         Avoid diagnostics from sha1sum when there is no cached checksum.
56047         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56048         if the po.s1 file hasn't been created yet.
56049
56050         * build-aux/bootstrap: Sync from coreutils:
56051         2007-10-24  Jim Meyering  <meyering@redhat.com>
56052         Get gnulib from the git repository, not from an obsolete cvs one.
56053         * build-aux/bootstrap: Suggestion from Micah Cowan.
56054         2007-10-04  Jim Meyering  <jim@meyering.net>
56055         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56056         (update_po_files): Work also when there are no .po files in po/.
56057
56058 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56059
56060         * README: Append ".git" to git and cg examples.
56061         Problem reported by Benoit Sigoure.
56062
56063 2007-10-23  Micah Cowan  <micah@cowan.name>
56064
56065         * users.txt: Add wget.
56066
56067 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56068
56069         Fix linking of some unistdio tests on FreeBSD.
56070         * modules/unistdio/u16-vsnprintf-tests
56071         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56072         * modules/unistdio/u16-vsprintf-tests
56073         (test_u16_vsnprintf1_LDADD): Likewise.
56074         * modules/unistdio/u32-vsnprintf-tests
56075         (test_u32_vsnprintf1_LDADD): Likewise.
56076         * modules/unistdio/u32-vsprintf-tests
56077         (test_u32_vsprintf1_LDADD): Likewise.
56078         * modules/unistdio/u8-vsnprintf-tests
56079         (test_u8_vsnprintf1_LDADD): Likewise.
56080         * modules/unistdio/u8-vsprintf-tests
56081         (test_u8_vsprintf1_LDADD): Likewise.
56082         * modules/unistdio/ulc-vsnprintf-tests
56083         (test_ulc_vsnprintf1_LDADD): Likewise.
56084         * modules/unistdio/ulc-vsprintf-tests
56085         (test_ulc_vsprintf1_LDADD): Likewise.
56086
56087         Fix linking of some uniconv tests on FreeBSD.
56088         * modules/uniconv/u16-conv-from-enc-tests
56089         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56090         * modules/uniconv/u16-conv-to-enc-tests
56091         (test_u16_conv_to_enc_LDADD): Likewise.
56092         * modules/uniconv/u16-strconv-from-enc-tests
56093         (test_u16_strconv_from_enc_LDADD): Likewise.
56094         * modules/uniconv/u16-strconv-to-enc-tests
56095         (test_u16_strconv_to_enc_LDADD): Likewise.
56096         * modules/uniconv/u32-conv-from-enc-tests
56097         (test_u32_conv_from_enc_LDADD): Likewise.
56098         * modules/uniconv/u32-conv-to-enc-tests
56099         (test_u32_conv_to_enc_LDADD): Likewise.
56100         * modules/uniconv/u32-strconv-from-enc-tests
56101         (test_u32_strconv_from_enc_LDADD): Likewise.
56102         * modules/uniconv/u32-strconv-to-enc-tests
56103         (test_u32_strconv_to_enc_LDADD): Likewise.
56104         * modules/uniconv/u8-conv-from-enc-tests
56105         (test_u8_conv_from_enc_LDADD): Likewise.
56106         * modules/uniconv/u8-conv-to-enc-tests
56107         (test_u8_conv_to_enc_LDADD): Likewise.
56108         * modules/uniconv/u8-strconv-from-enc-tests
56109         (test_u8_strconv_from_enc_LDADD): Likewise.
56110         * modules/uniconv/u8-strconv-to-enc-tests
56111         (test_u8_strconv_to_enc_LDADD): Likewise.
56112
56113 2007-10-22  Bruno Haible  <bruno@clisp.org>
56114
56115         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56116         size.
56117
56118 2007-10-22  Eric Blake  <ebb9@byu.net>
56119
56120         Tweak x*printf documentation.
56121         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56122         variable name and comments.
56123         Suggested by Bruno Haible.
56124
56125 2007-10-22  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/acl.c (copy_acl): Fix file name in comment.
56128
56129 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56130
56131         Fix Tru64 problem with stdbool.h.
56132         * lib/stdbool.in.h (false, true):
56133         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56134         Don't declare as an enum in this situation; it runs afoul of Tru64.
56135         Problem reported by Steven M. Schweda in
56136         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56137
56138 2007-10-22  Eric Blake  <ebb9@byu.net>
56139
56140         Also wrap vf?printf.
56141         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56142         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56143         (xvprintf, xvfprintf): New functions.
56144
56145 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56146
56147         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56148         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56149
56150         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56151         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56152
56153 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56154
56155         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56156         by Bruno Haible.
56157
56158 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56159
56160         * lib/getloadavg.c
56161         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56162         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56163
56164         * tests/test-i-ring.c: Work for C89.
56165
56166 2007-10-22  Bruno Haible  <bruno@clisp.org>
56167
56168         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56169         -1u, in preprocessor expression, so that we don't test for the bug
56170         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56172
56173 2007-10-22  Eric Blake  <ebb9@byu.net>
56174
56175         * tests/test-yesno.sh: Silence stderr during test.
56176
56177 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56178
56179         * modules/crypto/gc-camellia: New file.
56180
56181         * m4/gc-camellia.m4: New file.
56182
56183         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56184
56185         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56186
56187 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56188
56189         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56190         --help to stdout.  Reported by sms@antinode.org (Steven
56191         M. Schweda).
56192
56193 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56194
56195         * users.txt: Fix link to libksba.
56196
56197 2007-10-21  Ben Pfaff  <blp@gnu.org>
56198
56199         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56200         round.c roundf implementation that depends on floorf and ceilf to
56201         be tested unconditionally.
56202
56203 2007-10-21  Ben Pfaff  <blp@gnu.org>
56204
56205         * m4/check-libm-func.m4: Removed.
56206         * m4/check-math-lib.m4: New file.
56207         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56208         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56209         definition and lack of AC_LIBOBJ([roundf]).
56210         * m4/roundl.m4: Ditto, and similarly for roundl.
56211         * modules/round: Reference new m4 file.
56212         * modules/roundf: Ditto.
56213         * modules/roundl: Ditto.
56214         * tests/test-round2.c (main): Use ROUND instead of round.
56215         Bug report from Bruno Haible.
56216
56217 2007-10-21  Bruno Haible  <bruno@clisp.org>
56218
56219         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56220         context.
56221
56222 2007-10-21  Bruno Haible  <bruno@clisp.org>
56223
56224         * tests/test-wcwidth.c (main): Allow negative result for some control
56225         characters.
56226
56227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56228         Needed on OSF/1 5.1.
56229
56230 2007-10-21  Bruno Haible  <bruno@clisp.org>
56231
56232         * tests/test-floorf1.c: Include isnanf.h.
56233         (main): Use isnanf() instead of isnan().
56234         * tests/test-ceilf1.c: Include isnanf.h.
56235         (main): Use isnanf() instead of isnan().
56236         * tests/test-truncf1.c: Include isnanf.h.
56237         (main): Use isnanf() instead of isnan().
56238         * tests/test-roundf1.c: Include isnanf.h.
56239         (main): Use isnanf() instead of isnan().
56240
56241 2007-10-21  Eric Blake  <ebb9@byu.net>
56242
56243         * users.txt: Update URL for m4.
56244
56245 2007-10-21  Bruno Haible  <bruno@clisp.org>
56246
56247         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56248
56249 2007-10-21  Bruno Haible  <bruno@clisp.org>
56250
56251         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56252         Git's management files if the CVS files are not present.
56253
56254 2007-10-20  Bruno Haible  <bruno@clisp.org>
56255
56256         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56257         gcc-3.4.x.
56258
56259 2007-10-20  Ben Pfaff  <blp@gnu.org>
56260
56261         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56262         implementations.
56263         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56264         * lib/round.c: New file.
56265         * lib/roundf.c: New file.
56266         * lib/roundl.c: New file.
56267         * m4/round.m4: New file.
56268         * m4/roundf.m4: New file.
56269         * m4/roundl.m4: New file.
56270         * m4/check-libm-func-m4: New file.
56271         * modules/math: Replace round, roundf, roundl related @VARS@ in
56272         math.in.h.
56273         * modules/round: New file.
56274         * modules/round-tests: New file.
56275         * modules/roundf: New file.
56276         * modules/roundf-tests: New file.
56277         * modules/roundl: New file.
56278         * modules/roundl-tests: New file.
56279         * tests/test-round1.c: New file.
56280         * tests/test-round2.c: New file.
56281         * tests/test-roundf1.c: New file.
56282         * tests/test-roundf2.c: New file.
56283         * tests/test-roundl.c: New file.
56284         * doc/functions/round.texi: Mention round module.
56285         * doc/functions/roundf.texi: Mention roundf module.
56286         * doc/functions/roundl.texi: Mention roundl module.
56287         * MODULES.html.sh: Mention new modules.
56288         Thanks to Bruno Haible for suggestions.
56289
56290 2007-10-20  Jim Meyering  <meyering@redhat.com>
56291
56292         * lib/xprintf.c: Include <config.h> unconditionally.
56293
56294         Change xprintf's license to GPL.
56295         * modules/xprintf (License): s/LGPL/GPL/, since this module
56296         depends on modules (exit and exitfail) which are GPL.
56297         Suggestion from Bruno Haible.
56298
56299         xprintf fixes.
56300         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56301         Use a clearer diagnostic.
56302         Patch from Bruno Haible.
56303
56304 2007-10-20  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56307         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56309
56310 2007-10-20  Bruno Haible  <bruno@clisp.org>
56311
56312         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56313         precision in the comparison result > x - 1 or similar.
56314         * tests/test-ceilf2.c (correct_result_p): Likewise.
56315         * tests/test-truncf2.c (correct_result_p): Likewise.
56316         * tests/test-trunc2.c (correct_result_p): Likewise.
56317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56318
56319 2007-10-20  Bruno Haible  <bruno@clisp.org>
56320
56321         * modules/ceil: New file.
56322         * m4/ceil.m4: New file.
56323         * doc/functions/ceil.texi: Mention the 'ceil' module.
56324
56325 2007-10-20  Bruno Haible  <bruno@clisp.org>
56326
56327         * modules/floor: New file.
56328         * m4/floor.m4: New file.
56329         * doc/functions/floor.texi: Mention the 'floor' module.
56330
56331 2007-10-20  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56334         of %a.
56335         * modules/floorf-tests (Depends-on): Likewise.
56336         * modules/truncf-tests (Depends-on): Likewise.
56337         * modules/trunc-tests (Depends-on): Likewise.
56338         Reported by Ben Pfaff.
56339
56340 2007-10-19  Jim Meyering  <meyering@redhat.com>
56341
56342         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56343         Don't bother testing specific errno values.  Just test ferror.
56344
56345         New module: xprintf
56346         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56347
56348 2007-10-19  Bruno Haible  <bruno@clisp.org>
56349
56350         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56351         syntax.
56352         * modules/javaexec (Makefile.am): Likewise.
56353         * modules/relocatable-prog (Makefile.am): Likewise.
56354         Suggested by Jim Meyering.
56355
56356 2007-10-18  Bruno Haible  <bruno@clisp.org>
56357
56358         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56359         Reported by Jim Meyering.
56360
56361 2007-10-18  Eric Blake  <ebb9@byu.net>
56362
56363         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56364
56365 2007-10-18  Bruno Haible  <bruno@clisp.org>
56366
56367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56368         the format string into writable memory. Needed in Fortify conditions.
56369
56370 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56371             Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56374         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56375         * modules/trim (Depends-on): Add mbchar.
56376         (configure.ac): Add gl_FUNC_MBRTOWC.
56377         (Makefile.am): Augment lib_SOURCES.
56378
56379 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56380
56381         Modify glob.c to use fstatat and dirfd, to simplify it.
56382         Suggested by Eric Blake.
56383         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56384         Don't include <stdbool.h>; not used.
56385         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56386         (link_exists_p): Simplify implementation, since we can now assume
56387         dirfd and fstatat.
56388         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56389
56390 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56391
56392         * gnulib-tool (func_get_dependencies): Fix sed script to
56393         match only tests.
56394
56395 2007-10-17  Bruno Haible  <bruno@clisp.org>
56396
56397         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56398         allow locale names without encoding suffix.
56399         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56400         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56401
56402 2007-10-16  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56405         * lib/getgroups.c (getgroups): Likewise.
56406         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56407
56408 2007-10-16  Bruno Haible  <bruno@clisp.org>
56409
56410         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56411         * modules/malloc-posix (License): Likewise.
56412         * modules/realloc-posix (License): Likewise.
56413         * modules/calloc-posix (License): Likewise.
56414         * modules/intprops (License): Change from GPL to LGPL, with
56415         Paul Eggert's approval.
56416
56417 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56418
56419         Merge glibc changes into lib/glob.c.
56420
56421         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56422         2007-10-15 04:59:03 UTC.  Here are the changes:
56423
56424         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56425
56426         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56427
56428         * lib/glob.c: Add some branch prediction throughout.
56429
56430         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56431
56432         [BZ #5103]
56433         * lib/glob.c (glob): Recognize patterns starting \/.
56434
56435         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56436
56437         [BZ #3996]
56438         * lib/glob.c (attribute_hidden): Define if not defined.
56439         (glob): Unescape dirname, filename or username when needed and not
56440         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56441         is NULL.  Handle unescaped [ in pattern without closing ].
56442         Don't pass GLOB_CHECK down to recursive glob for directories.
56443         (__glob_pattern_type): New function.
56444         (__glob_pattern_p): Implement using __glob_pattern_type.
56445         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56446         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56447         Remove unreachable code.
56448
56449         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56450
56451         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56452         explain why there are no leaks.
56453
56454         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56455
56456         [BZ #3253]
56457         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56458         time, rather allocate increasingly bigger arrays of pointers, if
56459         possible with alloca, if too large with malloc.
56460
56461 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56462
56463         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56464         Problem reported by H.Merijn Brand in
56465         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56466         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56467         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56468
56469 2007-10-15  Bruno Haible  <bruno@clisp.org>
56470
56471         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56472         with explicit rpl_ prefix.
56473         * lib/fopen.c (fopen): Likewise.
56474         * lib/freopen.c (freopen): Likewise.
56475         * lib/iconv.c (iconv): Likewise.
56476         * lib/iconv_close.c (iconv_close): Likewise.
56477
56478 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56479
56480         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56481
56482 2007-10-15  Bruno Haible  <bruno@clisp.org>
56483
56484         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56485         <stddef.h> instead of <stdlib.h> since we only need NULL.
56486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56487
56488 2007-10-15  Bruno Haible  <bruno@clisp.org>
56489
56490         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56491         Replace paragraph talking about LIBOBJS.
56492         Reported by Colin Watson <cjwatson@debian.org>.
56493
56494 2007-10-15  Bruno Haible  <bruno@clisp.org>
56495
56496         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56497         <stdlib.h> before using NULL.
56498
56499 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56500
56501         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56502         Reported by Albert Chin <china@thewrittenword.com>.
56503
56504 2007-10-14  Bruno Haible  <bruno@clisp.org>
56505
56506         * modules/iconv_open-utf-tests: New file.
56507         * tests/test-iconv-utf.c: New file.
56508
56509         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56510         * modules/iconv_open-utf: New file.
56511         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56512         (iconv, iconv_close): New declarations.
56513         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56514         be defined.
56515         (iconv_open): Add special handling of conversion between UTF-8 and
56516         UTF-{16,32}{BE,LE}.
56517         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56518         * lib/iconv_close.c: New file.
56519         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56520         gl_FUNC_ICONV_OPEN.
56521         (gl_FUNC_ICONV_OPEN): Use it.
56522         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56523         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56524         and REPLACE_ICONV_UTF.
56525         * modules/iconv_open (Depends-on): Add c-strcase.
56526         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56527         ICONV_CONST.
56528         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56529
56530 2007-10-13  Albert Chin  <china@thewrittenword.com>
56531             Bruno Haible  <bruno@clisp.org>
56532
56533         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56534         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56535
56536 2007-10-13  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56539         defined, use the ISO C99 inline semantics.
56540         * lib/argp.h (ARGP_EI): Likewise.
56541
56542 2007-10-13  Bruno Haible  <bruno@clisp.org>
56543
56544         Handle 'inline' change in gcc 4.3.0.
56545         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56546         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56547         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56548         argp_fmtstream_point): Disable 'extern' declaration if the function
56549         definition is going to be provided inline.
56550         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56551         semantics, not the ISO C99 inline semantics.
56552         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56553         'extern' declaration if the function definition is going to be provided
56554         inline.
56555         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56556         the GNU C inline semantics, not the ISO C99 inline semantics. With
56557         GCC 4.2, avoid a warning.
56558
56559 2007-10-13  Bruno Haible  <bruno@clisp.org>
56560
56561         * lib/freading.h (freading): Enable the use of __freading for
56562         glibc >= 2.7.
56563         * lib/freading.c (freading): Likewise.
56564
56565 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56566
56567         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56568         "warning: C99 inline functions are not supported; using GNU89".
56569
56570 2007-10-12  Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56573         of 2.
56574         * tests/test-ceilf2.c: New file.
56575         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56576
56577         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56578         * modules/ceilf-tests: Update.
56579
56580 2007-10-12  Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56583         of 2.
56584         * tests/test-floorf2.c: New file.
56585         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56586
56587         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56588         * modules/floorf-tests: Update.
56589
56590 2007-10-12  Bruno Haible  <bruno@clisp.org>
56591
56592         * tests/test-trunc2.c: New file.
56593         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56594
56595         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56596         * modules/trunc-tests: Update.
56597
56598 2007-10-12  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56601         of 2.
56602         * tests/test-truncf2.c: New file.
56603         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56604
56605         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56606         * modules/truncf-tests: Update.
56607
56608 2007-10-11  Eric Blake  <ebb9@byu.net>
56609
56610         Don't claim strerror is broken on Interix.
56611         * doc/functions/strerror.texi (strerror): Known broken systems are
56612         now Solaris 8, and not Interix.
56613         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56614         Interix on cross-compile.
56615         Reported by Martin Koeppe in
56616         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56617
56618 2007-10-11  Bruno Haible  <bruno@clisp.org>
56619
56620         * modules/i-ring-tests: New file.
56621         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56622         instead of assert.
56623
56624 2007-10-11  Bruno Haible  <bruno@clisp.org>
56625
56626         * modules/filenamecat-tests: New file.
56627         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56628         * lib/filenamecat.c: Remove test code.
56629
56630 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56631
56632         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56633
56634         * lib/strerror.c: Include <string.h> always, to test interface,
56635         and to remove the need for the dummy.
56636         Include intprops.h to compute width instead of doing it ourselves
56637         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56638         (strerror): Define it to return NULL if there's no system strerror.
56639         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56640         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56641         ancient pre-strerror Unix systems well any more.  Saying "unknown
56642         system error" is enough.
56643         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56644         simpler strerror.c implementation.
56645         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56646         Simplify the tests to reflect the simpler strerror implementation.
56647         * modules/strerror (Depends-on): Add intprops.
56648
56649 2007-10-09  Eric Blake  <ebb9@byu.net>
56650
56651         Silence test-fpending.
56652         * modules/fpending-tests (Files): Add wrapper script.
56653         * tests/test-fpending.sh: New file.
56654
56655 2007-10-09  Bruno Haible  <bruno@clisp.org>
56656
56657         * MODULES.html.sh (func_module): Don't create a hyperlink for
56658         function names like 'printf_frexp'.
56659         (Misc): Add crc, memxor.
56660         (Characteristics of floating types): New section.
56661         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56662         isnanf-nolibm, signbit, trunc, truncf, truncl.
56663         (Enhancements for ISO C 99 functions): New subsection Input/output.
56664         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56665         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56666         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56667         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56668         (Enhancements for POSIX:2001 functions): Add chdir-long.
56669         (File system functions): Add areadlink, chdir-safer, read-file.
56670         Remove cycle-check.
56671         (File system as inode set): New section.
56672         (Date and time): Add gethrxtime.
56673         (Multithreading): Add openmp.
56674         (Internationalization functions): Add localename.
56675         (Unicode string functions): Add unistr/u*-mbsnlen.
56676         (Support for maintaining and releasing projects): Add git-version-gen.
56677         (Lone files): Remove directories.
56678
56679 2007-10-08  Ben Pfaff  <blp@gnu.org>
56680
56681         * lib/xmalloca.h: Fix typo in comment.
56682
56683 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56684
56685         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56686         when avoiding problems with integer overflow.  Use a portable test
56687         instead.
56688
56689 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56690
56691         * modules/dummy (License): Change to LGPLv2+.
56692         * modules/float (License): Likewise
56693         * modules/realloc (License): Likewise
56694         * modules/stdlib (License): Likewise
56695
56696 2007-10-07  Bruno Haible  <bruno@clisp.org>
56697
56698         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56699         * floor.c (TWO_MANT_DIG): Likewise.
56700         * ceil.c (TWO_MANT_DIG): Likewise.
56701         Reported by Ben Pfaff.
56702
56703 2007-10-07  Bruno Haible  <bruno@clisp.org>
56704
56705         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56706         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56707         * lib/frexp.c (FUNC): Likewise.
56708         * lib/printf-frexp.h (printf_frexp): Likewise.
56709         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56710         * lib/printf-frexp.c (FUNC): Likewise.
56711         Suggested by Jim Meyering.
56712
56713 2007-10-07  Jim Meyering  <meyering@redhat.com>
56714
56715         Make xnanosleep's integer overflow test more robust.
56716         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56717         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56718
56719 2007-10-07  Bruno Haible  <bruno@clisp.org>
56720
56721         * NEWS: Mention the license change.
56722
56723         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56724         abbreviations in the modules files.
56725
56726         Change copyright notice from GPLv2+ to GPLv3+.
56727         * README: Change copyright notice.
56728         * MODULES.html.sh: Likewise.
56729         * build-aux/bootstrap.conf: Likewise.
56730         * build-aux/config.libpath: Likewise.
56731         * build-aux/csharpcomp.sh.in: Likewise.
56732         * build-aux/csharpexec.sh.in: Likewise.
56733         * build-aux/install-reloc: Likewise.
56734         * build-aux/javacomp.sh.in: Likewise.
56735         * build-aux/javaexec.sh.in: Likewise.
56736         * build-aux/ldd.sh.in: Likewise.
56737         * build-aux/reloc-ldflags: Likewise.
56738         * build-aux/relocatable.sh.in: Likewise.
56739         * build-aux/x-to-1.in: Likewise.
56740         * check-module: Likewise.
56741         * config/srclistvars.sh: Likewise.
56742         * gnulib-tool: Likewise.
56743         * lib/acl-internal.h: Likewise.
56744         * lib/acl.c: Likewise.
56745         * lib/acl.h: Likewise.
56746         * lib/acl_entries.c: Likewise.
56747         * lib/areadlink-with-size.c: Likewise.
56748         * lib/areadlink.c: Likewise.
56749         * lib/areadlink.h: Likewise.
56750         * lib/argmatch.c: Likewise.
56751         * lib/argmatch.h: Likewise.
56752         * lib/argp-ba.c: Likewise.
56753         * lib/argp-eexst.c: Likewise.
56754         * lib/argp-fmtstream.c: Likewise.
56755         * lib/argp-fmtstream.h: Likewise.
56756         * lib/argp-fs-xinl.c: Likewise.
56757         * lib/argp-help.c: Likewise.
56758         * lib/argp-namefrob.h: Likewise.
56759         * lib/argp-parse.c: Likewise.
56760         * lib/argp-pin.c: Likewise.
56761         * lib/argp-pv.c: Likewise.
56762         * lib/argp-pvh.c: Likewise.
56763         * lib/argp-xinl.c: Likewise.
56764         * lib/argp.h: Likewise.
56765         * lib/at-func.c: Likewise.
56766         * lib/atanl.c: Likewise.
56767         * lib/backupfile.c: Likewise.
56768         * lib/backupfile.h: Likewise.
56769         * lib/basename.c: Likewise.
56770         * lib/binary-io.h: Likewise.
56771         * lib/byteswap.in.h: Likewise.
56772         * lib/c-stack.c: Likewise.
56773         * lib/c-stack.h: Likewise.
56774         * lib/c-strcasestr.c: Likewise.
56775         * lib/c-strcasestr.h: Likewise.
56776         * lib/c-strstr.c: Likewise.
56777         * lib/c-strstr.h: Likewise.
56778         * lib/c-strtod.c: Likewise.
56779         * lib/calloc.c: Likewise.
56780         * lib/canon-host.c: Likewise.
56781         * lib/canon-host.h: Likewise.
56782         * lib/canonicalize-lgpl.c: Likewise.
56783         * lib/canonicalize.c: Likewise.
56784         * lib/canonicalize.h: Likewise.
56785         * lib/ceil.c: Likewise.
56786         * lib/ceilf.c: Likewise.
56787         * lib/ceill.c: Likewise.
56788         * lib/chdir-long.c: Likewise.
56789         * lib/chdir-long.h: Likewise.
56790         * lib/chdir-safer.c: Likewise.
56791         * lib/chdir-safer.h: Likewise.
56792         * lib/chown.c: Likewise.
56793         * lib/classpath.c: Likewise.
56794         * lib/classpath.h: Likewise.
56795         * lib/clean-temp.c: Likewise.
56796         * lib/clean-temp.h: Likewise.
56797         * lib/cloexec.c: Likewise.
56798         * lib/close-stream.c: Likewise.
56799         * lib/closein.c: Likewise.
56800         * lib/closein.h: Likewise.
56801         * lib/closeout.c: Likewise.
56802         * lib/closeout.h: Likewise.
56803         * lib/concat-filename.c: Likewise.
56804         * lib/copy-file.c: Likewise.
56805         * lib/copy-file.h: Likewise.
56806         * lib/count-one-bits.h: Likewise.
56807         * lib/crc.c: Likewise.
56808         * lib/crc.h: Likewise.
56809         * lib/creat-safer.c: Likewise.
56810         * lib/csharpcomp.c: Likewise.
56811         * lib/csharpcomp.h: Likewise.
56812         * lib/csharpexec.c: Likewise.
56813         * lib/csharpexec.h: Likewise.
56814         * lib/cycle-check.c: Likewise.
56815         * lib/cycle-check.h: Likewise.
56816         * lib/diacrit.c: Likewise.
56817         * lib/diacrit.h: Likewise.
56818         * lib/diffseq.h: Likewise.
56819         * lib/dirchownmod.c: Likewise.
56820         * lib/dirent.in.h: Likewise.
56821         * lib/dirfd.c: Likewise.
56822         * lib/dirfd.h: Likewise.
56823         * lib/dirname.c: Likewise.
56824         * lib/dirname.h: Likewise.
56825         * lib/dummy.c: Likewise.
56826         * lib/dup-safer.c: Likewise.
56827         * lib/dup2.c: Likewise.
56828         * lib/eealloc.h: Likewise.
56829         * lib/error.c: Likewise.
56830         * lib/error.h: Likewise.
56831         * lib/euidaccess.c: Likewise.
56832         * lib/exclude.c: Likewise.
56833         * lib/exclude.h: Likewise.
56834         * lib/execute.c: Likewise.
56835         * lib/execute.h: Likewise.
56836         * lib/exitfail.c: Likewise.
56837         * lib/exitfail.h: Likewise.
56838         * lib/expl.c: Likewise.
56839         * lib/fatal-signal.c: Likewise.
56840         * lib/fatal-signal.h: Likewise.
56841         * lib/fbufmode.c: Likewise.
56842         * lib/fbufmode.h: Likewise.
56843         * lib/fchdir.c: Likewise.
56844         * lib/fchmodat.c: Likewise.
56845         * lib/fchownat.c: Likewise.
56846         * lib/fcntl--.h: Likewise.
56847         * lib/fcntl-safer.h: Likewise.
56848         * lib/fcntl.in.h: Likewise.
56849         * lib/fd-safer.c: Likewise.
56850         * lib/fflush.c: Likewise.
56851         * lib/file-has-acl.c: Likewise.
56852         * lib/file-set.c: Likewise.
56853         * lib/file-type.c: Likewise.
56854         * lib/file-type.h: Likewise.
56855         * lib/fileblocks.c: Likewise.
56856         * lib/filemode.c: Likewise.
56857         * lib/filemode.h: Likewise.
56858         * lib/filename.h: Likewise.
56859         * lib/filenamecat.c: Likewise.
56860         * lib/filenamecat.h: Likewise.
56861         * lib/findprog.c: Likewise.
56862         * lib/findprog.h: Likewise.
56863         * lib/float.in.h: Likewise.
56864         * lib/floor.c: Likewise.
56865         * lib/floorf.c: Likewise.
56866         * lib/floorl.c: Likewise.
56867         * lib/fopen-safer.c: Likewise.
56868         * lib/fopen.c: Likewise.
56869         * lib/fpending.c: Likewise.
56870         * lib/fpending.h: Likewise.
56871         * lib/fprintf.c: Likewise.
56872         * lib/fprintftime.h: Likewise.
56873         * lib/fpucw.h: Likewise.
56874         * lib/fpurge.c: Likewise.
56875         * lib/fpurge.h: Likewise.
56876         * lib/freadable.c: Likewise.
56877         * lib/freadable.h: Likewise.
56878         * lib/freadahead.c: Likewise.
56879         * lib/freadahead.h: Likewise.
56880         * lib/freading.c: Likewise.
56881         * lib/freading.h: Likewise.
56882         * lib/free.c: Likewise.
56883         * lib/freopen.c: Likewise.
56884         * lib/frexp.c: Likewise.
56885         * lib/frexpl.c: Likewise.
56886         * lib/fseek.c: Likewise.
56887         * lib/fseterr.c: Likewise.
56888         * lib/fseterr.h: Likewise.
56889         * lib/fstatat.c: Likewise.
56890         * lib/fstrcmp.c: Likewise.
56891         * lib/fstrcmp.h: Likewise.
56892         * lib/fsusage.c: Likewise.
56893         * lib/fsusage.h: Likewise.
56894         * lib/ftell.c: Likewise.
56895         * lib/ftello.c: Likewise.
56896         * lib/fts-cycle.c: Likewise.
56897         * lib/fts.c: Likewise.
56898         * lib/fts_.h: Likewise.
56899         * lib/full-read.c: Likewise.
56900         * lib/full-read.h: Likewise.
56901         * lib/full-write.c: Likewise.
56902         * lib/full-write.h: Likewise.
56903         * lib/fwritable.c: Likewise.
56904         * lib/fwritable.h: Likewise.
56905         * lib/fwriteerror.c: Likewise.
56906         * lib/fwriteerror.h: Likewise.
56907         * lib/fwriting.c: Likewise.
56908         * lib/fwriting.h: Likewise.
56909         * lib/gcd.c: Likewise.
56910         * lib/gcd.h: Likewise.
56911         * lib/getcwd.c: Likewise.
56912         * lib/getdate.h: Likewise.
56913         * lib/getdate.y: Likewise.
56914         * lib/getdomainname.c: Likewise.
56915         * lib/getdomainname.h: Likewise.
56916         * lib/getgroups.c: Likewise.
56917         * lib/gethostname.c: Likewise.
56918         * lib/gethrxtime.c: Likewise.
56919         * lib/gethrxtime.h: Likewise.
56920         * lib/getloadavg.c: Likewise.
56921         * lib/getndelim2.c: Likewise.
56922         * lib/getndelim2.h: Likewise.
56923         * lib/getnline.c: Likewise.
56924         * lib/getnline.h: Likewise.
56925         * lib/getopt.c: Likewise.
56926         * lib/getopt.in.h: Likewise.
56927         * lib/getopt1.c: Likewise.
56928         * lib/getopt_int.h: Likewise.
56929         * lib/getpagesize.h: Likewise.
56930         * lib/getsubopt.c: Likewise.
56931         * lib/gettime.c: Likewise.
56932         * lib/getugroups.c: Likewise.
56933         * lib/getugroups.h: Likewise.
56934         * lib/getusershell.c: Likewise.
56935         * lib/gl_anyavltree_list1.h: Likewise.
56936         * lib/gl_anyavltree_list2.h: Likewise.
56937         * lib/gl_anyhash_list1.h: Likewise.
56938         * lib/gl_anyhash_list2.h: Likewise.
56939         * lib/gl_anylinked_list1.h: Likewise.
56940         * lib/gl_anylinked_list2.h: Likewise.
56941         * lib/gl_anyrbtree_list1.h: Likewise.
56942         * lib/gl_anyrbtree_list2.h: Likewise.
56943         * lib/gl_anytree_list1.h: Likewise.
56944         * lib/gl_anytree_list2.h: Likewise.
56945         * lib/gl_anytree_oset.h: Likewise.
56946         * lib/gl_anytreehash_list1.h: Likewise.
56947         * lib/gl_anytreehash_list2.h: Likewise.
56948         * lib/gl_array_list.c: Likewise.
56949         * lib/gl_array_list.h: Likewise.
56950         * lib/gl_array_oset.c: Likewise.
56951         * lib/gl_array_oset.h: Likewise.
56952         * lib/gl_avltree_list.c: Likewise.
56953         * lib/gl_avltree_list.h: Likewise.
56954         * lib/gl_avltree_oset.c: Likewise.
56955         * lib/gl_avltree_oset.h: Likewise.
56956         * lib/gl_avltreehash_list.c: Likewise.
56957         * lib/gl_avltreehash_list.h: Likewise.
56958         * lib/gl_carray_list.c: Likewise.
56959         * lib/gl_carray_list.h: Likewise.
56960         * lib/gl_linked_list.c: Likewise.
56961         * lib/gl_linked_list.h: Likewise.
56962         * lib/gl_linkedhash_list.c: Likewise.
56963         * lib/gl_linkedhash_list.h: Likewise.
56964         * lib/gl_list.c: Likewise.
56965         * lib/gl_list.h: Likewise.
56966         * lib/gl_oset.c: Likewise.
56967         * lib/gl_oset.h: Likewise.
56968         * lib/gl_rbtree_list.c: Likewise.
56969         * lib/gl_rbtree_list.h: Likewise.
56970         * lib/gl_rbtree_oset.c: Likewise.
56971         * lib/gl_rbtree_oset.h: Likewise.
56972         * lib/gl_rbtreehash_list.c: Likewise.
56973         * lib/gl_rbtreehash_list.h: Likewise.
56974         * lib/gl_sublist.c: Likewise.
56975         * lib/gl_sublist.h: Likewise.
56976         * lib/group-member.c: Likewise.
56977         * lib/group-member.h: Likewise.
56978         * lib/hard-locale.c: Likewise.
56979         * lib/hard-locale.h: Likewise.
56980         * lib/hash-pjw.c: Likewise.
56981         * lib/hash-pjw.h: Likewise.
56982         * lib/hash-triple.c: Likewise.
56983         * lib/hash.c: Likewise.
56984         * lib/hash.h: Likewise.
56985         * lib/human.c: Likewise.
56986         * lib/human.h: Likewise.
56987         * lib/i-ring.c: Likewise.
56988         * lib/i-ring.h: Likewise.
56989         * lib/idcache.c: Likewise.
56990         * lib/imaxabs.c: Likewise.
56991         * lib/imaxdiv.c: Likewise.
56992         * lib/inet_pton.c: Likewise.
56993         * lib/inet_pton.h: Likewise.
56994         * lib/intprops.h: Likewise.
56995         * lib/inttostr.c: Likewise.
56996         * lib/inttostr.h: Likewise.
56997         * lib/inttypes.in.h: Likewise.
56998         * lib/isapipe.c: Likewise.
56999         * lib/isdir.c: Likewise.
57000         * lib/isnan.c: Likewise.
57001         * lib/isnan.h: Likewise.
57002         * lib/isnanf.c: Likewise.
57003         * lib/isnanf.h: Likewise.
57004         * lib/isnanl-nolibm.h: Likewise.
57005         * lib/isnanl.c: Likewise.
57006         * lib/isnanl.h: Likewise.
57007         * lib/javacomp.c: Likewise.
57008         * lib/javacomp.h: Likewise.
57009         * lib/javaexec.c: Likewise.
57010         * lib/javaexec.h: Likewise.
57011         * lib/javaversion.c: Likewise.
57012         * lib/javaversion.h: Likewise.
57013         * lib/javaversion.java: Likewise.
57014         * lib/lbrkprop.h: Likewise.
57015         * lib/lchmod.h: Likewise.
57016         * lib/lchown.c: Likewise.
57017         * lib/ldexpl.c: Likewise.
57018         * lib/linebreak.c: Likewise.
57019         * lib/linebreak.h: Likewise.
57020         * lib/linebuffer.c: Likewise.
57021         * lib/linebuffer.h: Likewise.
57022         * lib/locale.in.h: Likewise.
57023         * lib/logl.c: Likewise.
57024         * lib/long-options.c: Likewise.
57025         * lib/long-options.h: Likewise.
57026         * lib/lstat.c: Likewise.
57027         * lib/lstat.h: Likewise.
57028         * lib/math.in.h: Likewise.
57029         * lib/mbchar.c: Likewise.
57030         * lib/mbchar.h: Likewise.
57031         * lib/mbfile.h: Likewise.
57032         * lib/mbiter.h: Likewise.
57033         * lib/mbscasecmp.c: Likewise.
57034         * lib/mbscasestr.c: Likewise.
57035         * lib/mbschr.c: Likewise.
57036         * lib/mbscspn.c: Likewise.
57037         * lib/mbslen.c: Likewise.
57038         * lib/mbsncasecmp.c: Likewise.
57039         * lib/mbsnlen.c: Likewise.
57040         * lib/mbspbrk.c: Likewise.
57041         * lib/mbspcasecmp.c: Likewise.
57042         * lib/mbsrchr.c: Likewise.
57043         * lib/mbssep.c: Likewise.
57044         * lib/mbsspn.c: Likewise.
57045         * lib/mbsstr.c: Likewise.
57046         * lib/mbstok_r.c: Likewise.
57047         * lib/mbswidth.c: Likewise.
57048         * lib/mbswidth.h: Likewise.
57049         * lib/mbuiter.h: Likewise.
57050         * lib/memcasecmp.c: Likewise.
57051         * lib/memcasecmp.h: Likewise.
57052         * lib/memchr.c: Likewise.
57053         * lib/memcmp.c: Likewise.
57054         * lib/memcoll.c: Likewise.
57055         * lib/memcoll.h: Likewise.
57056         * lib/memcpy.c: Likewise.
57057         * lib/memrchr.c: Likewise.
57058         * lib/mkancesdirs.c: Likewise.
57059         * lib/mkdir-p.c: Likewise.
57060         * lib/mkdir-p.h: Likewise.
57061         * lib/mkdir.c: Likewise.
57062         * lib/mkdirat.c: Likewise.
57063         * lib/mkdtemp.c: Likewise.
57064         * lib/mkstemp-safer.c: Likewise.
57065         * lib/mkstemp.c: Likewise.
57066         * lib/modechange.c: Likewise.
57067         * lib/modechange.h: Likewise.
57068         * lib/mountlist.c: Likewise.
57069         * lib/mountlist.h: Likewise.
57070         * lib/mpsort.c: Likewise.
57071         * lib/nanosleep.c: Likewise.
57072         * lib/obstack.c: Likewise.
57073         * lib/obstack.h: Likewise.
57074         * lib/open-safer.c: Likewise.
57075         * lib/open.c: Likewise.
57076         * lib/openat-die.c: Likewise.
57077         * lib/openat-priv.h: Likewise.
57078         * lib/openat-proc.c: Likewise.
57079         * lib/openat.c: Likewise.
57080         * lib/openat.h: Likewise.
57081         * lib/pagealign_alloc.c: Likewise.
57082         * lib/pagealign_alloc.h: Likewise.
57083         * lib/physmem.c: Likewise.
57084         * lib/physmem.h: Likewise.
57085         * lib/pipe-safer.c: Likewise.
57086         * lib/pipe.c: Likewise.
57087         * lib/pipe.h: Likewise.
57088         * lib/posixtm.c: Likewise.
57089         * lib/posixtm.h: Likewise.
57090         * lib/posixver.c: Likewise.
57091         * lib/printf-frexp.c: Likewise.
57092         * lib/printf-frexp.h: Likewise.
57093         * lib/printf-frexpl.c: Likewise.
57094         * lib/printf-frexpl.h: Likewise.
57095         * lib/printf.c: Likewise.
57096         * lib/progname.c: Likewise.
57097         * lib/progname.h: Likewise.
57098         * lib/progreloc.c: Likewise.
57099         * lib/putenv.c: Likewise.
57100         * lib/quote.c: Likewise.
57101         * lib/quote.h: Likewise.
57102         * lib/quotearg.c: Likewise.
57103         * lib/quotearg.h: Likewise.
57104         * lib/raise.c: Likewise.
57105         * lib/readline.c: Likewise.
57106         * lib/readline.h: Likewise.
57107         * lib/readlink.c: Likewise.
57108         * lib/readtokens.c: Likewise.
57109         * lib/readtokens.h: Likewise.
57110         * lib/readtokens0.c: Likewise.
57111         * lib/readtokens0.h: Likewise.
57112         * lib/readutmp.c: Likewise.
57113         * lib/readutmp.h: Likewise.
57114         * lib/realloc.c: Likewise.
57115         * lib/relocwrapper.c: Likewise.
57116         * lib/rename-dest-slash.c: Likewise.
57117         * lib/rename.c: Likewise.
57118         * lib/rmdir.c: Likewise.
57119         * lib/rpmatch.c: Likewise.
57120         * lib/safe-read.c: Likewise.
57121         * lib/safe-read.h: Likewise.
57122         * lib/safe-write.c: Likewise.
57123         * lib/safe-write.h: Likewise.
57124         * lib/same-inode.h: Likewise.
57125         * lib/same.c: Likewise.
57126         * lib/same.h: Likewise.
57127         * lib/save-cwd.c: Likewise.
57128         * lib/save-cwd.h: Likewise.
57129         * lib/savedir.c: Likewise.
57130         * lib/savedir.h: Likewise.
57131         * lib/savewd.c: Likewise.
57132         * lib/savewd.h: Likewise.
57133         * lib/search.in.h: Likewise.
57134         * lib/setenv.c: Likewise.
57135         * lib/setenv.h: Likewise.
57136         * lib/settime.c: Likewise.
57137         * lib/sh-quote.c: Likewise.
57138         * lib/sh-quote.h: Likewise.
57139         * lib/sig2str.c: Likewise.
57140         * lib/sig2str.h: Likewise.
57141         * lib/signal.in.h: Likewise.
57142         * lib/signbitd.c: Likewise.
57143         * lib/signbitf.c: Likewise.
57144         * lib/signbitl.c: Likewise.
57145         * lib/sigprocmask.c: Likewise.
57146         * lib/sincosl.c: Likewise.
57147         * lib/sleep.c: Likewise.
57148         * lib/sprintf.c: Likewise.
57149         * lib/sqrtl.c: Likewise.
57150         * lib/stat-time.h: Likewise.
57151         * lib/stdio--.h: Likewise.
57152         * lib/stdio-safer.h: Likewise.
57153         * lib/stdlib--.h: Likewise.
57154         * lib/stdlib-safer.h: Likewise.
57155         * lib/stdlib.in.h: Likewise.
57156         * lib/stpcpy.c: Likewise.
57157         * lib/stpncpy.c: Likewise.
57158         * lib/strchrnul.c: Likewise.
57159         * lib/strcspn.c: Likewise.
57160         * lib/strerror.c: Likewise.
57161         * lib/strftime.c: Likewise.
57162         * lib/strftime.h: Likewise.
57163         * lib/striconveh.c: Likewise.
57164         * lib/striconveh.h: Likewise.
57165         * lib/striconveha.c: Likewise.
57166         * lib/striconveha.h: Likewise.
57167         * lib/stripslash.c: Likewise.
57168         * lib/strnlen1.c: Likewise.
57169         * lib/strnlen1.h: Likewise.
57170         * lib/strtod.c: Likewise.
57171         * lib/strtoimax.c: Likewise.
57172         * lib/strtok_r.c: Likewise.
57173         * lib/strtol.c: Likewise.
57174         * lib/strtoll.c: Likewise.
57175         * lib/strtoul.c: Likewise.
57176         * lib/strtoull.c: Likewise.
57177         * lib/sysexits.in.h: Likewise.
57178         * lib/tempname.c: Likewise.
57179         * lib/tempname.h: Likewise.
57180         * lib/timespec.h: Likewise.
57181         * lib/tls.c: Likewise.
57182         * lib/tls.h: Likewise.
57183         * lib/tmpdir.c: Likewise.
57184         * lib/tmpdir.h: Likewise.
57185         * lib/tmpfile-safer.c: Likewise.
57186         * lib/tmpfile.c: Likewise.
57187         * lib/trigl.c: Likewise.
57188         * lib/trigl.h: Likewise.
57189         * lib/trim.c: Likewise.
57190         * lib/trim.h: Likewise.
57191         * lib/trunc.c: Likewise.
57192         * lib/truncf.c: Likewise.
57193         * lib/truncl.c: Likewise.
57194         * lib/tsearch.c: Likewise.
57195         * lib/unicodeio.c: Likewise.
57196         * lib/unicodeio.h: Likewise.
57197         * lib/unistd--.h: Likewise.
57198         * lib/unistd-safer.h: Likewise.
57199         * lib/unistdio/ulc-fprintf.c: Likewise.
57200         * lib/unistdio/ulc-vfprintf.c: Likewise.
57201         * lib/unlinkdir.c: Likewise.
57202         * lib/unlinkdir.h: Likewise.
57203         * lib/unlocked-io.h: Likewise.
57204         * lib/unsetenv.c: Likewise.
57205         * lib/userspec.c: Likewise.
57206         * lib/utime.c: Likewise.
57207         * lib/utimecmp.c: Likewise.
57208         * lib/utimecmp.h: Likewise.
57209         * lib/utimens.c: Likewise.
57210         * lib/verify.h: Likewise.
57211         * lib/verror.c: Likewise.
57212         * lib/verror.h: Likewise.
57213         * lib/version-etc-fsf.c: Likewise.
57214         * lib/version-etc.c: Likewise.
57215         * lib/version-etc.h: Likewise.
57216         * lib/vfprintf.c: Likewise.
57217         * lib/vprintf.c: Likewise.
57218         * lib/vsprintf.c: Likewise.
57219         * lib/w32spawn.h: Likewise.
57220         * lib/wait-process.c: Likewise.
57221         * lib/wait-process.h: Likewise.
57222         * lib/wcwidth.c: Likewise.
57223         * lib/write-any-file.c: Likewise.
57224         * lib/xalloc-die.c: Likewise.
57225         * lib/xalloc.h: Likewise.
57226         * lib/xasprintf.c: Likewise.
57227         * lib/xgetcwd.c: Likewise.
57228         * lib/xgetcwd.h: Likewise.
57229         * lib/xgetdomainname.c: Likewise.
57230         * lib/xgetdomainname.h: Likewise.
57231         * lib/xgethostname.c: Likewise.
57232         * lib/xmalloc.c: Likewise.
57233         * lib/xmalloca.c: Likewise.
57234         * lib/xmalloca.h: Likewise.
57235         * lib/xmemcoll.c: Likewise.
57236         * lib/xnanosleep.c: Likewise.
57237         * lib/xreadlink.c: Likewise.
57238         * lib/xreadlink.h: Likewise.
57239         * lib/xsetenv.c: Likewise.
57240         * lib/xsetenv.h: Likewise.
57241         * lib/xstriconv.c: Likewise.
57242         * lib/xstriconv.h: Likewise.
57243         * lib/xstrndup.c: Likewise.
57244         * lib/xstrndup.h: Likewise.
57245         * lib/xstrtod.c: Likewise.
57246         * lib/xstrtod.h: Likewise.
57247         * lib/xstrtol-error.c: Likewise.
57248         * lib/xstrtol.c: Likewise.
57249         * lib/xstrtol.h: Likewise.
57250         * lib/xtime.h: Likewise.
57251         * lib/xvasprintf.c: Likewise.
57252         * lib/xvasprintf.h: Likewise.
57253         * lib/yesno.c: Likewise.
57254         * lib/yesno.h: Likewise.
57255         * posix-modules: Likewise.
57256         * tests/test-alloca-opt.c: Likewise.
57257         * tests/test-arcfour.c: Likewise.
57258         * tests/test-arctwo.c: Likewise.
57259         * tests/test-argmatch.c: Likewise.
57260         * tests/test-argp-2.sh: Likewise.
57261         * tests/test-argp.c: Likewise.
57262         * tests/test-arpa_inet.c: Likewise.
57263         * tests/test-array_list.c: Likewise.
57264         * tests/test-array_oset.c: Likewise.
57265         * tests/test-atexit.c: Likewise.
57266         * tests/test-avltree_list.c: Likewise.
57267         * tests/test-avltree_oset.c: Likewise.
57268         * tests/test-avltreehash_list.c: Likewise.
57269         * tests/test-base64.c: Likewise.
57270         * tests/test-binary-io.c: Likewise.
57271         * tests/test-byteswap.c: Likewise.
57272         * tests/test-c-ctype.c: Likewise.
57273         * tests/test-c-strcasecmp.c: Likewise.
57274         * tests/test-c-strcasestr.c: Likewise.
57275         * tests/test-c-strncasecmp.c: Likewise.
57276         * tests/test-c-strstr.c: Likewise.
57277         * tests/test-canonicalize-lgpl.c: Likewise.
57278         * tests/test-canonicalize.c: Likewise.
57279         * tests/test-carray_list.c: Likewise.
57280         * tests/test-ceilf.c: Likewise.
57281         * tests/test-ceill.c: Likewise.
57282         * tests/test-count-one-bits.c: Likewise.
57283         * tests/test-crc.c: Likewise.
57284         * tests/test-dirname.c: Likewise.
57285         * tests/test-fbufmode.c: Likewise.
57286         * tests/test-fcntl.c: Likewise.
57287         * tests/test-fflush.c: Likewise.
57288         * tests/test-floorf.c: Likewise.
57289         * tests/test-floorl.c: Likewise.
57290         * tests/test-fopen.c: Likewise.
57291         * tests/test-fprintf-posix.c: Likewise.
57292         * tests/test-fprintf-posix.h: Likewise.
57293         * tests/test-fpurge.c: Likewise.
57294         * tests/test-freadable.c: Likewise.
57295         * tests/test-freadahead.c: Likewise.
57296         * tests/test-freading.c: Likewise.
57297         * tests/test-freopen.c: Likewise.
57298         * tests/test-frexp.c: Likewise.
57299         * tests/test-frexpl.c: Likewise.
57300         * tests/test-fseek.c: Likewise.
57301         * tests/test-fseeko.c: Likewise.
57302         * tests/test-fseterr.c: Likewise.
57303         * tests/test-fstrcmp.c: Likewise.
57304         * tests/test-ftell.c: Likewise.
57305         * tests/test-ftello.c: Likewise.
57306         * tests/test-fwritable.c: Likewise.
57307         * tests/test-fwriting.c: Likewise.
57308         * tests/test-getaddrinfo.c: Likewise.
57309         * tests/test-getpass.c: Likewise.
57310         * tests/test-gettimeofday.c: Likewise.
57311         * tests/test-hmac-md5.c: Likewise.
57312         * tests/test-hmac-sha1.c: Likewise.
57313         * tests/test-iconv.c: Likewise.
57314         * tests/test-iconvme.c: Likewise.
57315         * tests/test-inttypes.c: Likewise.
57316         * tests/test-isnan.c: Likewise.
57317         * tests/test-isnanf.c: Likewise.
57318         * tests/test-isnanl-nolibm.c: Likewise.
57319         * tests/test-isnanl.c: Likewise.
57320         * tests/test-isnanl.h: Likewise.
57321         * tests/test-ldexpl.c: Likewise.
57322         * tests/test-linked_list.c: Likewise.
57323         * tests/test-linkedhash_list.c: Likewise.
57324         * tests/test-locale.c: Likewise.
57325         * tests/test-localename.c: Likewise.
57326         * tests/test-lock.c: Likewise.
57327         * tests/test-lseek.c: Likewise.
57328         * tests/test-malloca.c: Likewise.
57329         * tests/test-math.c: Likewise.
57330         * tests/test-mbscasecmp.c: Likewise.
57331         * tests/test-mbscasestr1.c: Likewise.
57332         * tests/test-mbscasestr2.c: Likewise.
57333         * tests/test-mbscasestr3.c: Likewise.
57334         * tests/test-mbscasestr4.c: Likewise.
57335         * tests/test-mbschr.c: Likewise.
57336         * tests/test-mbscspn.c: Likewise.
57337         * tests/test-mbsncasecmp.c: Likewise.
57338         * tests/test-mbspbrk.c: Likewise.
57339         * tests/test-mbspcasecmp.c: Likewise.
57340         * tests/test-mbsrchr.c: Likewise.
57341         * tests/test-mbsspn.c: Likewise.
57342         * tests/test-mbsstr1.c: Likewise.
57343         * tests/test-mbsstr2.c: Likewise.
57344         * tests/test-mbsstr3.c: Likewise.
57345         * tests/test-md5.c: Likewise.
57346         * tests/test-memmem.c: Likewise.
57347         * tests/test-netinet_in.c: Likewise.
57348         * tests/test-open.c: Likewise.
57349         * tests/test-printf-frexp.c: Likewise.
57350         * tests/test-printf-frexpl.c: Likewise.
57351         * tests/test-printf-posix.c: Likewise.
57352         * tests/test-printf-posix.h: Likewise.
57353         * tests/test-rbtree_list.c: Likewise.
57354         * tests/test-rbtree_oset.c: Likewise.
57355         * tests/test-rbtreehash_list.c: Likewise.
57356         * tests/test-read-file.c: Likewise.
57357         * tests/test-rijndael.c: Likewise.
57358         * tests/test-search.c: Likewise.
57359         * tests/test-signbit.c: Likewise.
57360         * tests/test-sleep.c: Likewise.
57361         * tests/test-snprintf-posix.c: Likewise.
57362         * tests/test-snprintf-posix.h: Likewise.
57363         * tests/test-snprintf.c: Likewise.
57364         * tests/test-sprintf-posix.c: Likewise.
57365         * tests/test-sprintf-posix.h: Likewise.
57366         * tests/test-stat-time.c: Likewise.
57367         * tests/test-stdbool.c: Likewise.
57368         * tests/test-stdint.c: Likewise.
57369         * tests/test-stdio.c: Likewise.
57370         * tests/test-stdlib.c: Likewise.
57371         * tests/test-stpncpy.c: Likewise.
57372         * tests/test-strcasestr.c: Likewise.
57373         * tests/test-striconv.c: Likewise.
57374         * tests/test-striconveh.c: Likewise.
57375         * tests/test-striconveha.c: Likewise.
57376         * tests/test-string.c: Likewise.
57377         * tests/test-sys_select.c: Likewise.
57378         * tests/test-sys_socket.c: Likewise.
57379         * tests/test-sys_stat.c: Likewise.
57380         * tests/test-sys_time.c: Likewise.
57381         * tests/test-sysexits.c: Likewise.
57382         * tests/test-time.c: Likewise.
57383         * tests/test-tls.c: Likewise.
57384         * tests/test-trunc.c: Likewise.
57385         * tests/test-truncf.c: Likewise.
57386         * tests/test-truncl.c: Likewise.
57387         * tests/test-unistd.c: Likewise.
57388         * tests/test-vasnprintf-posix.c: Likewise.
57389         * tests/test-vasnprintf-posix2.c: Likewise.
57390         * tests/test-vasnprintf.c: Likewise.
57391         * tests/test-vasprintf-posix.c: Likewise.
57392         * tests/test-vasprintf.c: Likewise.
57393         * tests/test-verify.c: Likewise.
57394         * tests/test-vfprintf-posix.c: Likewise.
57395         * tests/test-vprintf-posix.c: Likewise.
57396         * tests/test-vsnprintf-posix.c: Likewise.
57397         * tests/test-vsnprintf.c: Likewise.
57398         * tests/test-vsprintf-posix.c: Likewise.
57399         * tests/test-wchar.c: Likewise.
57400         * tests/test-wctype.c: Likewise.
57401         * tests/test-wcwidth.c: Likewise.
57402         * tests/test-xstrtol.c: Likewise.
57403         * tests/test-xvasprintf.c: Likewise.
57404         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57405         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57406         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57407         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57408         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57409         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57410         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57411         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57412         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57413         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57414         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57415         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57416         * tests/uniname/test-uninames.c: Likewise.
57417         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57418         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57419         * tests/unistdio/test-u16-printf1.h: Likewise.
57420         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57421         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57422         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57423         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57424         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57425         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57426         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57427         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57428         * tests/unistdio/test-u32-printf1.h: Likewise.
57429         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57430         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57431         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57432         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57433         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57434         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57435         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57436         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57437         * tests/unistdio/test-u8-printf1.h: Likewise.
57438         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57439         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57440         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57441         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57442         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57443         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57444         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57445         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57446         * tests/unistdio/test-ulc-printf1.h: Likewise.
57447         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57448         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57449         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57450         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57451         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57452         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57453         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57454         * tests/uniwidth/test-u16-width.c: Likewise.
57455         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57456         * tests/uniwidth/test-u32-width.c: Likewise.
57457         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57458         * tests/uniwidth/test-u8-width.c: Likewise.
57459         * tests/uniwidth/test-uc_width.c: Likewise.
57460         * config/srclist-update: Likewise.
57461         (fixlicense): Update to GPLv3+.
57462
57463         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57464         * tests/test-tsearch.c: Change copyright notice.
57465
57466         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57467         * lib/c-strcaseeq.h: Change copyright notice.
57468         * lib/streq.h: Likewise.
57469         * lib/uniconv.h: Likewise.
57470         * lib/uniconv/u-conv-from-enc.h: Likewise.
57471         * lib/uniconv/u-conv-to-enc.h: Likewise.
57472         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57473         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57474         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57475         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57476         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57477         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57478         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57479         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57480         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57481         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57482         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57483         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57484         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57485         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57486         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57487         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57488         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57489         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57490         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57491         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57492         * lib/uniname.h: Likewise.
57493         * lib/uniname/uniname.c: Likewise.
57494         * lib/unistdio.h: Likewise.
57495         * lib/unistdio/u-asnprintf.h: Likewise.
57496         * lib/unistdio/u-asprintf.h: Likewise.
57497         * lib/unistdio/u-printf-args.c: Likewise.
57498         * lib/unistdio/u-printf-args.h: Likewise.
57499         * lib/unistdio/u-printf-parse.h: Likewise.
57500         * lib/unistdio/u-snprintf.h: Likewise.
57501         * lib/unistdio/u-sprintf.h: Likewise.
57502         * lib/unistdio/u-vasprintf.h: Likewise.
57503         * lib/unistdio/u-vsnprintf.h: Likewise.
57504         * lib/unistdio/u-vsprintf.h: Likewise.
57505         * lib/unistdio/u16-asnprintf.c: Likewise.
57506         * lib/unistdio/u16-asprintf.c: Likewise.
57507         * lib/unistdio/u16-printf-parse.c: Likewise.
57508         * lib/unistdio/u16-snprintf.c: Likewise.
57509         * lib/unistdio/u16-sprintf.c: Likewise.
57510         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57511         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57512         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57513         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57514         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57515         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57516         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57517         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57518         * lib/unistdio/u16-vasnprintf.c: Likewise.
57519         * lib/unistdio/u16-vasprintf.c: Likewise.
57520         * lib/unistdio/u16-vsnprintf.c: Likewise.
57521         * lib/unistdio/u16-vsprintf.c: Likewise.
57522         * lib/unistdio/u32-asnprintf.c: Likewise.
57523         * lib/unistdio/u32-asprintf.c: Likewise.
57524         * lib/unistdio/u32-printf-parse.c: Likewise.
57525         * lib/unistdio/u32-snprintf.c: Likewise.
57526         * lib/unistdio/u32-sprintf.c: Likewise.
57527         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57528         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57529         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57530         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57531         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57532         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57533         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57534         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57535         * lib/unistdio/u32-vasnprintf.c: Likewise.
57536         * lib/unistdio/u32-vasprintf.c: Likewise.
57537         * lib/unistdio/u32-vsnprintf.c: Likewise.
57538         * lib/unistdio/u32-vsprintf.c: Likewise.
57539         * lib/unistdio/u8-asnprintf.c: Likewise.
57540         * lib/unistdio/u8-asprintf.c: Likewise.
57541         * lib/unistdio/u8-printf-parse.c: Likewise.
57542         * lib/unistdio/u8-snprintf.c: Likewise.
57543         * lib/unistdio/u8-sprintf.c: Likewise.
57544         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57545         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57546         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57547         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57548         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57549         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57550         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57551         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57552         * lib/unistdio/u8-vasnprintf.c: Likewise.
57553         * lib/unistdio/u8-vasprintf.c: Likewise.
57554         * lib/unistdio/u8-vsnprintf.c: Likewise.
57555         * lib/unistdio/u8-vsprintf.c: Likewise.
57556         * lib/unistdio/ulc-asnprintf.c: Likewise.
57557         * lib/unistdio/ulc-asprintf.c: Likewise.
57558         * lib/unistdio/ulc-printf-parse.c: Likewise.
57559         * lib/unistdio/ulc-snprintf.c: Likewise.
57560         * lib/unistdio/ulc-sprintf.c: Likewise.
57561         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57562         * lib/unistdio/ulc-vasprintf.c: Likewise.
57563         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57564         * lib/unistdio/ulc-vsprintf.c: Likewise.
57565         * lib/unistr.h: Likewise.
57566         * lib/unistr/u-cpy-alloc.h: Likewise.
57567         * lib/unistr/u-cpy.h: Likewise.
57568         * lib/unistr/u-endswith.h: Likewise.
57569         * lib/unistr/u-move.h: Likewise.
57570         * lib/unistr/u-set.h: Likewise.
57571         * lib/unistr/u-startswith.h: Likewise.
57572         * lib/unistr/u-stpcpy.h: Likewise.
57573         * lib/unistr/u-stpncpy.h: Likewise.
57574         * lib/unistr/u-strcat.h: Likewise.
57575         * lib/unistr/u-strcpy.h: Likewise.
57576         * lib/unistr/u-strcspn.h: Likewise.
57577         * lib/unistr/u-strdup.h: Likewise.
57578         * lib/unistr/u-strlen.h: Likewise.
57579         * lib/unistr/u-strncat.h: Likewise.
57580         * lib/unistr/u-strncpy.h: Likewise.
57581         * lib/unistr/u-strnlen.h: Likewise.
57582         * lib/unistr/u-strpbrk.h: Likewise.
57583         * lib/unistr/u-strspn.h: Likewise.
57584         * lib/unistr/u-strstr.h: Likewise.
57585         * lib/unistr/u-strtok.h: Likewise.
57586         * lib/unistr/u16-check.c: Likewise.
57587         * lib/unistr/u16-chr.c: Likewise.
57588         * lib/unistr/u16-cmp.c: Likewise.
57589         * lib/unistr/u16-cpy-alloc.c: Likewise.
57590         * lib/unistr/u16-cpy.c: Likewise.
57591         * lib/unistr/u16-endswith.c: Likewise.
57592         * lib/unistr/u16-mblen.c: Likewise.
57593         * lib/unistr/u16-mbsnlen.c: Likewise.
57594         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57595         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57596         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57597         * lib/unistr/u16-mbtouc.c: Likewise.
57598         * lib/unistr/u16-mbtoucr.c: Likewise.
57599         * lib/unistr/u16-move.c: Likewise.
57600         * lib/unistr/u16-next.c: Likewise.
57601         * lib/unistr/u16-prev.c: Likewise.
57602         * lib/unistr/u16-set.c: Likewise.
57603         * lib/unistr/u16-startswith.c: Likewise.
57604         * lib/unistr/u16-stpcpy.c: Likewise.
57605         * lib/unistr/u16-stpncpy.c: Likewise.
57606         * lib/unistr/u16-strcat.c: Likewise.
57607         * lib/unistr/u16-strchr.c: Likewise.
57608         * lib/unistr/u16-strcmp.c: Likewise.
57609         * lib/unistr/u16-strcpy.c: Likewise.
57610         * lib/unistr/u16-strcspn.c: Likewise.
57611         * lib/unistr/u16-strdup.c: Likewise.
57612         * lib/unistr/u16-strlen.c: Likewise.
57613         * lib/unistr/u16-strmblen.c: Likewise.
57614         * lib/unistr/u16-strmbtouc.c: Likewise.
57615         * lib/unistr/u16-strncat.c: Likewise.
57616         * lib/unistr/u16-strncmp.c: Likewise.
57617         * lib/unistr/u16-strncpy.c: Likewise.
57618         * lib/unistr/u16-strnlen.c: Likewise.
57619         * lib/unistr/u16-strpbrk.c: Likewise.
57620         * lib/unistr/u16-strrchr.c: Likewise.
57621         * lib/unistr/u16-strspn.c: Likewise.
57622         * lib/unistr/u16-strstr.c: Likewise.
57623         * lib/unistr/u16-strtok.c: Likewise.
57624         * lib/unistr/u16-to-u32.c: Likewise.
57625         * lib/unistr/u16-to-u8.c: Likewise.
57626         * lib/unistr/u16-uctomb-aux.c: Likewise.
57627         * lib/unistr/u16-uctomb.c: Likewise.
57628         * lib/unistr/u32-check.c: Likewise.
57629         * lib/unistr/u32-chr.c: Likewise.
57630         * lib/unistr/u32-cmp.c: Likewise.
57631         * lib/unistr/u32-cpy-alloc.c: Likewise.
57632         * lib/unistr/u32-cpy.c: Likewise.
57633         * lib/unistr/u32-endswith.c: Likewise.
57634         * lib/unistr/u32-mblen.c: Likewise.
57635         * lib/unistr/u32-mbsnlen.c: Likewise.
57636         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57637         * lib/unistr/u32-mbtouc.c: Likewise.
57638         * lib/unistr/u32-mbtoucr.c: Likewise.
57639         * lib/unistr/u32-move.c: Likewise.
57640         * lib/unistr/u32-next.c: Likewise.
57641         * lib/unistr/u32-prev.c: Likewise.
57642         * lib/unistr/u32-set.c: Likewise.
57643         * lib/unistr/u32-startswith.c: Likewise.
57644         * lib/unistr/u32-stpcpy.c: Likewise.
57645         * lib/unistr/u32-stpncpy.c: Likewise.
57646         * lib/unistr/u32-strcat.c: Likewise.
57647         * lib/unistr/u32-strchr.c: Likewise.
57648         * lib/unistr/u32-strcmp.c: Likewise.
57649         * lib/unistr/u32-strcpy.c: Likewise.
57650         * lib/unistr/u32-strcspn.c: Likewise.
57651         * lib/unistr/u32-strdup.c: Likewise.
57652         * lib/unistr/u32-strlen.c: Likewise.
57653         * lib/unistr/u32-strmblen.c: Likewise.
57654         * lib/unistr/u32-strmbtouc.c: Likewise.
57655         * lib/unistr/u32-strncat.c: Likewise.
57656         * lib/unistr/u32-strncmp.c: Likewise.
57657         * lib/unistr/u32-strncpy.c: Likewise.
57658         * lib/unistr/u32-strnlen.c: Likewise.
57659         * lib/unistr/u32-strpbrk.c: Likewise.
57660         * lib/unistr/u32-strrchr.c: Likewise.
57661         * lib/unistr/u32-strspn.c: Likewise.
57662         * lib/unistr/u32-strstr.c: Likewise.
57663         * lib/unistr/u32-strtok.c: Likewise.
57664         * lib/unistr/u32-to-u16.c: Likewise.
57665         * lib/unistr/u32-to-u8.c: Likewise.
57666         * lib/unistr/u32-uctomb.c: Likewise.
57667         * lib/unistr/u8-check.c: Likewise.
57668         * lib/unistr/u8-chr.c: Likewise.
57669         * lib/unistr/u8-cmp.c: Likewise.
57670         * lib/unistr/u8-cpy-alloc.c: Likewise.
57671         * lib/unistr/u8-cpy.c: Likewise.
57672         * lib/unistr/u8-endswith.c: Likewise.
57673         * lib/unistr/u8-mblen.c: Likewise.
57674         * lib/unistr/u8-mbsnlen.c: Likewise.
57675         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57676         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57677         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57678         * lib/unistr/u8-mbtouc.c: Likewise.
57679         * lib/unistr/u8-mbtoucr.c: Likewise.
57680         * lib/unistr/u8-move.c: Likewise.
57681         * lib/unistr/u8-next.c: Likewise.
57682         * lib/unistr/u8-prev.c: Likewise.
57683         * lib/unistr/u8-set.c: Likewise.
57684         * lib/unistr/u8-startswith.c: Likewise.
57685         * lib/unistr/u8-stpcpy.c: Likewise.
57686         * lib/unistr/u8-stpncpy.c: Likewise.
57687         * lib/unistr/u8-strcat.c: Likewise.
57688         * lib/unistr/u8-strchr.c: Likewise.
57689         * lib/unistr/u8-strcmp.c: Likewise.
57690         * lib/unistr/u8-strcpy.c: Likewise.
57691         * lib/unistr/u8-strcspn.c: Likewise.
57692         * lib/unistr/u8-strdup.c: Likewise.
57693         * lib/unistr/u8-strlen.c: Likewise.
57694         * lib/unistr/u8-strmblen.c: Likewise.
57695         * lib/unistr/u8-strmbtouc.c: Likewise.
57696         * lib/unistr/u8-strncat.c: Likewise.
57697         * lib/unistr/u8-strncmp.c: Likewise.
57698         * lib/unistr/u8-strncpy.c: Likewise.
57699         * lib/unistr/u8-strnlen.c: Likewise.
57700         * lib/unistr/u8-strpbrk.c: Likewise.
57701         * lib/unistr/u8-strrchr.c: Likewise.
57702         * lib/unistr/u8-strspn.c: Likewise.
57703         * lib/unistr/u8-strstr.c: Likewise.
57704         * lib/unistr/u8-strtok.c: Likewise.
57705         * lib/unistr/u8-to-u16.c: Likewise.
57706         * lib/unistr/u8-to-u32.c: Likewise.
57707         * lib/unistr/u8-uctomb-aux.c: Likewise.
57708         * lib/unistr/u8-uctomb.c: Likewise.
57709         * lib/unitypes.h: Likewise.
57710         * lib/uniwidth.h: Likewise.
57711         * lib/uniwidth/cjk.h: Likewise.
57712         * lib/uniwidth/u16-strwidth.c: Likewise.
57713         * lib/uniwidth/u16-width.c: Likewise.
57714         * lib/uniwidth/u32-strwidth.c: Likewise.
57715         * lib/uniwidth/u32-width.c: Likewise.
57716         * lib/uniwidth/u8-strwidth.c: Likewise.
57717         * lib/uniwidth/u8-width.c: Likewise.
57718         * lib/uniwidth/width.c: Likewise.
57719
57720 2007-10-07  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57723         The file is still under LGPL (see modules/inttypes).
57724
57725 2007-10-06  Bruno Haible  <bruno@clisp.org>
57726
57727         * modules/trunc (Dependencies): Add 'extensions'.
57728         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57729         Reported by Ben Pfaff <blp@gnu.org>.
57730
57731 2007-10-06  Bruno Haible  <bruno@clisp.org>
57732
57733         * modules/freopen-tests: New file.
57734         * tests/test-freopen.c: New file.
57735
57736         * modules/fopen-tests: New file.
57737         * tests/test-fopen.c: New file.
57738
57739         * modules/fopen: New file.
57740         * lib/fopen.c: New file.
57741         * m4/fopen.m4: New file.
57742         * modules/freopen: New file.
57743         * lib/freopen.c: New file.
57744         * m4/freopen.m4: New file.
57745         * lib/stdio.in.h (fopen, freopen): New declarations.
57746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57747         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57748         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57749         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57750         * doc/functions/fopen.texi: Mention the 'fopen' module.
57751         * doc/functions/freopen.texi: Mention the 'freopen' module.
57752
57753 2007-10-06  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/open-tests: New file.
57756         * tests/test-open.c: New file.
57757
57758         * modules/open: New file.
57759         * lib/open.c: New file.
57760         * m4/open.m4: New file.
57761         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57762         lib/open.c does.
57763         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57764         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57765         macros.
57766         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57767         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57768         REPLACE_OPEN.
57769         * doc/functions/open.texi: Mention the 'open' module.
57770
57771 2007-10-04  Bruno Haible  <bruno@clisp.org>
57772
57773         * modules/ceill-tests: New file.
57774         * tests/test-ceill.c: New file.
57775
57776         * modules/ceill: New file.
57777         * lib/ceill.c: Replace entire file.
57778         * m4/ceill.m4: New file.
57779         * lib/math.in.h (ceill): Replace declaration.
57780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57781         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57782         * doc/functions/ceill.texi: Mention the 'ceill' module.
57783         * modules/mathl (Files): Remove lib/ceill.c.
57784         (Depends-on): Add ceill.
57785
57786 2007-10-04  Bruno Haible  <bruno@clisp.org>
57787
57788         * modules/ceilf-tests: New file.
57789         * tests/test-ceilf.c: New file.
57790
57791         * modules/ceilf: New file.
57792         * lib/ceil.c: New file.
57793         * lib/ceilf.c: New file.
57794         * m4/ceilf.m4: New file.
57795         * lib/math.in.h (ceilf): New declaration.
57796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57797         HAVE_DECL_CEILF.
57798         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57799         HAVE_DECL_CEILF.
57800         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57801
57802 2007-10-04  Bruno Haible  <bruno@clisp.org>
57803
57804         * modules/floorl-tests: New file.
57805         * tests/test-floorl.c: New file.
57806
57807         * modules/floorl: New file.
57808         * lib/floorl.c: Replace entire file.
57809         * m4/floorl.m4: New file.
57810         * lib/math.in.h (floorl): Replace declaration.
57811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57812         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57813         * doc/functions/floorl.texi: Mention the 'floorl' module.
57814         * modules/mathl (Files): Remove lib/floorl.c.
57815         (Depends-on): Add floorl.
57816
57817 2007-10-04  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/floorf-tests: New file.
57820         * tests/test-floorf.c: New file.
57821
57822         * modules/floorf: New file.
57823         * lib/floor.c: New file.
57824         * lib/floorf.c: New file.
57825         * m4/floorf.m4: New file.
57826         * lib/math.in.h (floorf): New declaration.
57827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57828         HAVE_DECL_FLOORF.
57829         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57830         HAVE_DECL_FLOORF.
57831         * doc/functions/floorf.texi: Mention the 'floorf' module.
57832
57833 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57834             Bruno Haible  <bruno@clisp.org>
57835
57836         Advertise for the Git server instead of the CVS server.
57837         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57838         repository instead of the CVS one.
57839         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57840         about all VCS systems generically.
57841         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57842
57843 2007-10-04  Bruno Haible  <bruno@clisp.org>
57844
57845         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57846         means.
57847         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57848
57849 2007-10-04  Bruno Haible  <bruno@clisp.org>
57850
57851         * modules/truncl-tests: New file.
57852         * tests/test-truncl.c: New file.
57853
57854         * modules/truncl: New file.
57855         * lib/truncl.c: New file.
57856         * m4/truncl.m4: New file.
57857         * lib/math.in.h (truncl): New declaration.
57858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57859         HAVE_DECL_TRUNCL.
57860         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57861         HAVE_DECL_TRUNCL.
57862         * doc/functions/truncl.texi: Mention the 'truncl' module.
57863
57864 2007-10-04  Bruno Haible  <bruno@clisp.org>
57865
57866         * modules/truncf-tests: New file.
57867         * tests/test-truncf.c: New file.
57868
57869         * modules/truncf: New file.
57870         * lib/trunc.c: Make paramerizable through USE_* macros.
57871         * lib/truncf.c: New file.
57872         * m4/truncf.m4: New file.
57873         * lib/math.in.h (truncf): New declaration.
57874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57875         HAVE_DECL_TRUNCF.
57876         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57877         HAVE_DECL_TRUNCF.
57878         * doc/functions/truncf.texi: Mention the 'truncf' module.
57879
57880 2007-10-03  Bruno Haible  <bruno@clisp.org>
57881
57882         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57883         augmentation also for tests modules.
57884         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57885         * modules/atexit-tests (Makefile.am): Likewise.
57886         * modules/binary-io-tests (Makefile.am): Likewise.
57887         * modules/c-strcase-tests (Makefile.am): Likewise.
57888         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57889         * modules/canonicalize-tests (Makefile.am): Likewise.
57890         * modules/closein-tests (Makefile.am): Likewise.
57891         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57892         * modules/freadahead-tests (Makefile.am): Likewise.
57893         * modules/fseek-tests (Makefile.am): Likewise.
57894         * modules/fseeko-tests (Makefile.am): Likewise.
57895         * modules/ftell-tests (Makefile.am): Likewise.
57896         * modules/ftello-tests (Makefile.am): Likewise.
57897         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57898         * modules/isnanl-tests (Makefile.am): Likewise.
57899         * modules/lseek-tests (Makefile.am): Likewise.
57900         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57901         * modules/mbscasestr-tests (Makefile.am): Likewise.
57902         * modules/mbschr-tests (Makefile.am): Likewise.
57903         * modules/mbscspn-tests (Makefile.am): Likewise.
57904         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57905         * modules/mbspbrk-tests (Makefile.am): Likewise.
57906         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57907         * modules/mbsrchr-tests (Makefile.am): Likewise.
57908         * modules/mbsspn-tests (Makefile.am): Likewise.
57909         * modules/mbsstr-tests (Makefile.am): Likewise.
57910         * modules/printf-posix-tests (Makefile.am): Likewise.
57911         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57912         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57913         * modules/tsearch-tests (Makefile.am): Likewise.
57914         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57915         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57916         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57917         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57918         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57919         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57920         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57921         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57922         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57923         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57924         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57925         * modules/xstrtol-tests (Makefile.am): Likewise.
57926         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57927         * modules/yesno-tests (Makefile.am): Likewise.
57928
57929 2007-10-03  Bruno Haible  <bruno@clisp.org>
57930
57931         * modules/trunc-tests: New file.
57932         * tests/test-trunc.c: New file.
57933
57934         * modules/trunc: New file.
57935         * lib/trunc.c: New file.
57936         * m4/trunc.m4: New file.
57937         * lib/math.in.h (trunc): New declaration.
57938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57939         HAVE_DECL_TRUNC.
57940         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57941         HAVE_DECL_TRUNC.
57942         * doc/functions/trunc.texi: Mention the 'trunc' module.
57943
57944 2007-10-03  Bruno Haible  <bruno@clisp.org>
57945
57946         * tests/test-fpending.c: New file, mostly copied
57947         from coreutils/lib/t-fpending.c.
57948         * modules/fpending-tests: New file.
57949
57950 2007-10-03  Bruno Haible  <bruno@clisp.org>
57951
57952         Port the stdio extensions to QNX (untested).
57953         * lib/fseterr.c (fseterr): Add support for QNX.
57954         * lib/fbufmode.c (fbufmode): Likewise.
57955         * lib/freadable.c (freadable): Likewise.
57956         * lib/fwritable.c (fwritable): Likewise.
57957         * lib/freading.c (freading): Likewise.
57958         * lib/fwriting.c (fwriting): Likewise.
57959         * lib/freadahead.c (freadahed): Likewise.
57960         * lib/fpurge.c (fpurge): Likewise.
57961         * lib/fseeko.c (rpl_fseeko): Likewise.
57962
57963 2007-10-03  Bruno Haible  <bruno@clisp.org>
57964             Jim Meyering  <jim@meyering.net>
57965             Eric Blake  <ebb9@byu.net>
57966
57967         * doc/relocatable.texi: Use @command instead of @program.
57968
57969 2007-10-02  Jim Meyering  <jim@meyering.net>
57970
57971         Perform one more "_.h" -> ".in.h" substitution.
57972         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57973         instead of unistd_.h here, too.
57974
57975 2007-10-01  Bruno Haible  <bruno@clisp.org>
57976
57977         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57978         Needed for the alloca-opt module.
57979
57980 2007-09-30  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57983         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57984         alloca_.h.
57985         * lib/argz.in.h: Renamed from lib/argz_.h.
57986         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57987         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57988         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57989         byteswap_.h.
57990         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57991         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57992         dirent_.h.
57993         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57994         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57995         fcntl_.h.
57996         * lib/float.in.h: Renamed from lib/float_.h.
57997         * modules/float (Files, Makefile.am): Use float.in.h instead of
57998         float_.h.
57999         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58000         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58001         fnmatch_.h.
58002         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58003         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58004         getopt_.h.
58005         * lib/glob.in.h: Renamed from lib/glob_.h.
58006         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58007         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58008         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58009         iconv_.h.
58010         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58011         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58012         inttypes_.h.
58013         * lib/locale.in.h: Renamed from lib/locale_.h.
58014         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58015         locale_.h.
58016         * lib/math.in.h: Renamed from lib/math_.h.
58017         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58018         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58019         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58020         of netinet_in_.h. Add dependency.
58021         * lib/poll.in.h: Renamed from lib/poll_.h.
58022         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58023         * lib/search.in.h: Renamed from lib/search_.h.
58024         * modules/search (Files, Makefile.am): Use search.in.h instead of
58025         search_.h.
58026         * lib/signal.in.h: Renamed from lib/signal_.h.
58027         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58028         _signal.h.
58029         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58030         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58031         stdbool_.h.
58032         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58033         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58034         stdint_.h.
58035         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58036         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58037         stdio_.h.
58038         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58039         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58040         stdlib_.h.
58041         * lib/string.in.h: Renamed from lib/string_.h.
58042         * modules/string (Files, Makefile.am): Use string.in.h instead of
58043         string_.h.
58044         * doc/gnulib-tool.texi (Initial import): Update.
58045         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58046         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58047         of sys_select_.h. Add dependency.
58048         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58049         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58050         of sys_socket_.h.
58051         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58052         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58053         sys_stat_.h.
58054         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58055         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58056         sys_time_.h.
58057         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58058         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58059         sysexits_.h.
58060         * lib/time.in.h: Renamed from lib/time_.h.
58061         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58062         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58063         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58064         unistd_.h.
58065         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58066         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58067         wchar_.h.
58068         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58069         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58070         wctype_.h.
58071         * build-aux/bootstrap (slurp): Update.
58072         * lib/.cppi-disable: Update.
58073
58074 2007-09-30  Bruno Haible  <bruno@clisp.org>
58075
58076         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58077         Needed on BeOS.
58078
58079 2007-09-30  Bruno Haible  <bruno@clisp.org>
58080
58081         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58082
58083 2007-09-29  Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58086
58087 2007-09-29  Bruno Haible  <bruno@clisp.org>
58088
58089         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58090         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58091         * build-aux/install-reloc: Compile also areadlink.c.
58092         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58093
58094 2007-09-29  Bruno Haible  <bruno@clisp.org>
58095
58096         * gnulib-tool (func_emit_initmacro_done): Indentation.
58097
58098 2007-09-29  Bruno Haible  <bruno@clisp.org>
58099
58100         * README: Add CVS checkout update instructions.
58101         Info from Bob Proulx <bob@proulx.com>.
58102
58103 2007-09-28  Eric Blake  <ebb9@byu.net>
58104
58105         Provide move-if-change.
58106         * build-aux/move-if-change: New file, based on best practice
58107         rather than any canonical upstream location.
58108
58109 2007-09-28  Jim Meyering  <jim@meyering.net>
58110
58111         Fix canonicalize loop-detection corner case.
58112         Do not attempt to stat the symlink values stored via seen_triple.
58113         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58114         on linux-2.6.18, (but not 2.6.22).
58115         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58116         triple_compare.  The former compares dev,ino,filename, while the latter
58117         would actually stat dirname(filename) when dev and ino were equal.
58118         * lib/hash-triple.c: Install <string.h>.
58119         (STREQ): Define.
58120         (triple_compare_ino_str): New function.
58121         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58122
58123 2007-09-28  Eric Blake  <ebb9@byu.net>
58124
58125         Enforce that AC_REPLACE_FUNCS files exist.
58126         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58127         override check for typos.
58128
58129         Fix test-closein on Solaris 10.
58130         * tests/test-closein.c (main): Don't assume stdin can be inherited
58131         closed on all systems.
58132         * tests/test-closein.sh: Likewise.
58133         Reported by Piotr Tarnowski.
58134
58135 2007-09-28  Jim Meyering  <jim@meyering.net>
58136
58137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58138
58139 2007-09-27  Jim Meyering  <jim@meyering.net>
58140
58141         canonicalize: Avoid a false-positive cycle failure.
58142         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58143         Sort.  Remove cycle-check.
58144         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58145         not cycle-check.h.
58146         (seen_triple): New function.
58147         (canonicalize_filename_mode): Use it instead of cycle-check.
58148         * tests/test-canonicalize.c: Add a test for this bug.
58149         * tests/test-canonicalize.sh: Set up and run the test.
58150
58151         New module, file-set, from coreutils.
58152         * modules/file-set: Define it.
58153         * lib/file-set.c, lib/file-set.h: Implement.
58154
58155         New module, hash-triple, from coreutils.
58156         * modules/hash-triple: Define it.
58157         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58158
58159 2007-09-25  Eric Blake  <ebb9@byu.net>
58160
58161         Fix strerror on Interix.
58162         * lib/string_.h (strerror): Declare replacement.
58163         * doc/functions/strerror.texi (strerror): Document the Interix
58164         shortcoming.
58165         * modules/string (Makefile.am): Support new hooks.
58166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58167         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58168         gl_FUNC_STRERROR_SEPARATE.
58169         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58170         * lib/strerror.c (rpl_strerror): Provide replacement.
58171         * modules/strerror (Depends-on): Add string.
58172         (configure.ac): Detect use of module.
58173         * tests/test-strerror.c: New file.
58174         * modules/strerror-tests: New test module.
58175         * modules/argp (Depends-on): Add strerror.
58176         * modules/error (Depends-on): Likewise.
58177         Reported by Martin Koeppe.
58178
58179 2007-09-24  Bruno Haible  <bruno@clisp.org>
58180
58181         * README: Update git instructions.
58182
58183 2007-09-24  Eric Blake  <ebb9@byu.net>
58184
58185         Revert fpending breakage from 2007-09-08.
58186         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58187         __fpending.c.
58188
58189 2007-09-24  Jim Meyering  <jim@meyering.net>
58190
58191         filenamecat.c: Add a test.
58192         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58193         showing how the function works when DIR is the empty string.
58194
58195 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58196
58197         * tests/test-canonicalize.sh: Turn on executable bit.
58198
58199 2007-09-19  Eric Blake  <ebb9@byu.net>
58200
58201         * README: Update CVS instructions.
58202
58203 2007-09-18  Bruno Haible  <bruno@clisp.org>
58204
58205         * modules/areadlink: New file.
58206         * lib/areadlink.h (areadlink): New declaration.
58207         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58208
58209 2007-09-17  Jim Meyering  <jim@meyering.net>
58210
58211         * lib/savewd.c (ESTALE) [!defined]: Define.
58212         Reported to be required on Interix by Martin Koeppe.
58213
58214 2007-09-17  Bruno Haible  <bruno@clisp.org>
58215
58216         * gnulib-tool (func_version): Use $version.
58217
58218 2007-09-16  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58221         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58222         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58223         Reported by Greg Schafer <gschafer@zip.com.au>.
58224
58225 2007-09-15  Bruno Haible  <bruno@clisp.org>
58226
58227         * gnulib-tool (sed): Try a little harder to make bash understand the
58228         alias.
58229         Reported by Bruce Korb <bruce.korb@gmail.com>.
58230
58231 2007-09-13  Eric Blake  <ebb9@byu.net>
58232
58233         * ChangeLog: Remove conflict markers.
58234
58235 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58236
58237         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58238         Reported by Bruno Haible <bruno@clisp.org>.
58239
58240 2007-09-12  Bruno Haible  <bruno@clisp.org>
58241
58242         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58243         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58244         is not defined.
58245
58246 2007-09-12  Eric Blake  <ebb9@byu.net>
58247
58248         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58249         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58250         Autoconf definition.
58251         * modules/euidaccess (Depends-on): Add extensions, for
58252         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58253         * modules/fnmatch (Depends-on): Likewise.
58254         * modules/getaddrinfo (Depends-on): Likewise.
58255         * modules/getdelim (Depends-on): Likewise.
58256         * modules/getline (Depends-on): Likewise.
58257         * modules/getsubopt (Depends-on): Likewise.
58258         * modules/gettext (Depends-on): Likewise.
58259         * modules/group-member (Depends-on): Likewise.
58260         * modules/mbchar (Depends-on): Likewise.
58261         * modules/memmem (Depends-on): Likewise.
58262         * modules/mempcpy (Depends-on): Likewise.
58263         * modules/memrchr (Depends-on): Likewise.
58264         * modules/pagealign_alloc (Depends-on): Likewise.
58265         * modules/readutmp (Depends-on): Likewise.
58266         * modules/stpcpy (Depends-on): Likewise.
58267         * modules/stpncpy (Depends-on): Likewise.
58268         * modules/strchrnul (Depends-on): Likewise.
58269         * modules/strndup (Depends-on): Likewise.
58270         * modules/strsep (Depends-on): Likewise.
58271         * modules/strverscmp (Depends-on): Likewise.
58272         * modules/vasprintf (Depends-on): Likewise.
58273         * modules/wcwidth (Depends-on): Likewise.
58274         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58275         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58277         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58278         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58279         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58280         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58281         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58282         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58283         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58285         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58287         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58288         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58289         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58290         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58291         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58293         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58295         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58296         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58297         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58298         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58300         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58301         so that lock.m4 can be used in gettext without extensions module.
58302
58303 2007-09-11  Bruno Haible  <bruno@clisp.org>
58304
58305         * m4/isc-posix.m4: Remove file.
58306         Suggested by Eric Blake.
58307
58308 2007-09-11  Eric Blake  <ebb9@byu.net>
58309
58310         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58311
58312 2007-09-10  Bruno Haible  <bruno@clisp.org>
58313
58314         * posix-modules: Fix typo in error message.
58315         Reported by Matt <mkraai@beckman.com>.
58316
58317 2007-09-09  Bruno Haible  <bruno@clisp.org>
58318
58319         * doc/functions/getdelim.texi: Update list of platforms lacking the
58320         function.
58321         * doc/functions/getline.texi: Likewise.
58322
58323 2007-09-09  Jim Meyering  <jim@meyering.net>
58324
58325         * lib/hash.c (hash_initialize): Detect calloc failure.
58326         Reported by Bruno Haible.
58327
58328 2007-09-09  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58331         malloc or realloc fails.
58332
58333 2007-09-09  Bruno Haible  <bruno@clisp.org>
58334
58335         * modules/getcwd (Depends-on): Add malloc-posix.
58336         * modules/glob (Depends-on): Likewise.
58337         * modules/putenv (Depends-on): Likewise.
58338         * modules/strdup (Depends-on): Likewise.
58339         * modules/getdelim (Depends-on): Add realloc-posix.
58340         * modules/read-file (Depends-on): Likewise.
58341
58342 2007-09-09  Bruno Haible  <bruno@clisp.org>
58343
58344         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58345         (gl_FUNC_MALLOC_POSIX): Require it.
58346         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58347         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58348         * modules/realloc (Files): Add m4/malloc.m4.
58349         * modules/calloc (Files): Likewise.
58350
58351 2007-09-09  Bruno Haible  <bruno@clisp.org>
58352
58353         * modules/malloc-posix: New file.
58354         * modules/malloc (Depends-on): Add malloc-posix.
58355         * lib/malloc.c: Include errno.h.
58356         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58357         and a POSIX-compatible malloc into a single function. Set ENOMEM
58358         when returning NULL.
58359         * m4/malloc.m4: New file.
58360         * doc/functions/malloc.texi: Mention the malloc-posix module.
58361         * lib/stdlib_.h (malloc): New declaration.
58362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58363         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58364         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58365         and HAVE_MALLOC_POSIX.
58366
58367 2007-09-09  Bruno Haible  <bruno@clisp.org>
58368
58369         * modules/realloc-posix: New file.
58370         * modules/realloc (Depends-on): Add realloc-posix.
58371         * lib/realloc.c: Include errno.h.
58372         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58373         and a POSIX-compatible realloc into a single function. Set ENOMEM
58374         when returning NULL.
58375         * m4/realloc.m4: New file.
58376         * doc/functions/realloc.texi: Mention the realloc-posix module.
58377         * lib/stdlib_.h (realloc): New declaration.
58378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58379         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58380         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58381         and HAVE_REALLOC_POSIX.
58382
58383 2007-09-09  Bruno Haible  <bruno@clisp.org>
58384
58385         * modules/calloc-posix: New file.
58386         * modules/calloc (Depends-on): Add calloc-posix.
58387         * lib/calloc.c: Include errno.h.
58388         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58389         and a POSIX-compatible calloc into a single function. Set ENOMEM
58390         when returning NULL.
58391         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58392         * doc/functions/calloc.texi: Mention the calloc-posix module.
58393         * lib/stdlib_.h (calloc): New declaration.
58394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58395         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58396         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58397         and HAVE_CALLOC_POSIX.
58398
58399 2007-09-09  Bruno Haible  <bruno@clisp.org>
58400
58401         Allow for modules to show an arbitrary notice.
58402         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58403         * gnulib-tool: New option --extract-notice.
58404         (func_usage): Document it.
58405         (sed_extract_prog): Update.
58406         (func_get_notice): New function.
58407         (func_modules_notice): New function.
58408         (func_import, func_create_testdir): Invoke it.
58409         Suggested by Jim Meyering.
58410
58411 2007-09-09  Bruno Haible  <bruno@clisp.org>
58412
58413         * gnulib-tool: New options --verbose, --quiet.
58414         (func_usage): Document them.
58415         (verbose): New variable.
58416         (func_execute_command): New function.
58417         (func_import): Don't show the module list and the file list if
58418         $verbose < 0.
58419         (func_create_testdir): Likewise. Use func_execute_command.
58420         (func_create_megatestdir): Use func_execute_command.
58421
58422 2007-09-08  Bruno Haible  <bruno@clisp.org>
58423
58424         * gnulib-tool (func_import): Prefer rsync over wget when available,
58425         for fetching the PO files.
58426
58427 2007-09-08  Bruno Haible  <bruno@clisp.org>
58428
58429         * posix-modules: New file. Portions copied from gnulib-tool.
58430         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58431
58432 2007-09-08  Jim Meyering  <jim@meyering.net>
58433
58434         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58435         * lib/fpending.h: Rename from __fpending.h.
58436         * lib/fpending.c: Rename from __fpending.c.
58437         Include "fpending.h", not "__fpending.h".
58438         * lib/__fpending.h, lib/__fpending.c: Remove files.
58439         * modules/fpending (Files): Reflect new file names.
58440         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58441
58442 2007-09-08  Bruno Haible  <bruno@clisp.org>
58443
58444         * m4/inttypes-h.m4: Remove stub file.
58445
58446 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58447
58448         * doc/headers/stdint.texi: Discuss #include_next issue.
58449
58450 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58451
58452         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58453
58454 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58455
58456         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58457         in variable name.
58458
58459 2007-09-03  Jim Meyering  <jim@meyering.net>
58460
58461         New module: git-version-gen.
58462         * modules/git-version-gen: New file.
58463
58464         Import changes from coreutils for bootstrap script.
58465
58466         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58467
58468         bootstrap: uses rsync to download the .po files
58469         * build-aux/bootstrap (po_download_command_format): New global.
58470         (download_po_files): Use rsync.
58471         (update_po_files): Don't remove .po files after download,
58472         so future rsync runs can take advantage of the copies.
58473
58474         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58475
58476         Solve the unnecessary-.po-file-regeneration problem once and for all.
58477         * build-aux/bootstrap (download_po_files): New function, renamed from
58478         get_translations.  Now, downloads, but doesn't update LINGUAS.
58479         (update_po_files): New function.
58480
58481         bootstrap: Ignore more.
58482         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58483         uniwidth to e.g., lib/.gitignore.
58484         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58485
58486         * build-aux/bootstrap: New setting: vc_ignore.
58487         (insert_sorted_if_absent): Create $file if absent.
58488         Adapt to new, possibly empty, list: $vc_ignore.
58489
58490         bootstrap: generate more ignorable names
58491         * build-aux/bootstrap (slurp): When generating ignorable names,
58492         also map .sin to .sed, .gperf to .c, and .y to .c.
58493
58494 2007-09-03  Jim Meyering  <jim@meyering.net>
58495
58496         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58497         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58498
58499 2007-09-02  Bruno Haible  <bruno@clisp.org>
58500
58501         Fix mis-recognition of 'mcs' on QNX 6.
58502         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58503         output contains the string "Mono".
58504         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58505         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58506
58507 2007-09-01  Bruno Haible  <bruno@clisp.org>
58508
58509         Fix collision between uniwidth/* and linebreak modules.
58510         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58511         u32_width): Remove declarations.
58512         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58513         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58514         streq3, streq2, streq1, streq0): Remove functions.
58515         (STREQ): Remove macro.
58516         (is_cjk_encoding): Remove function.
58517         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58518         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58519         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58520         * NEWS: Document the change.
58521
58522 2007-09-01  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/streq.h: Add double-inclusion guard.
58525
58526 2007-09-01  Karl Berry  <karl@gnu.org>
58527
58528         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58529
58530 2007-08-28  Jim Meyering  <jim@meyering.net>
58531
58532         Rename mreadlink_with_size to areadlink_with_size.
58533         * NEWS: Document the change.
58534         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58535         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58536         * lib/mreadlink.h: Rename this to...
58537         * lib/areadlink.h: ...this.
58538         * modules/mreadlink-with-size: Rename this to...
58539         * modules/areadlink-with-size: ...this.
58540         * lib/canonicalize.c: Reflect the renaming.
58541         * modules/canonicalize: Likewise.
58542
58543 2007-08-26  Bruno Haible  <bruno@clisp.org>
58544
58545         * gnulib-tool (func_import): When deciding which files to remove,
58546         consider also dangling symbolic links.
58547         Reported by Eric Blake.
58548
58549 2007-08-26  Bruno Haible  <bruno@clisp.org>
58550
58551         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58552
58553 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58554
58555         * lib/readline.c: Don't include getline.h, the prototype is now
58556         found in stdio.h.
58557
58558 2007-08-23  Jim Meyering  <jim@meyering.net>
58559
58560         Getdelim touchup.
58561         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58562         around the funlockfile call, since funlockfile never sets errno.
58563         Don't set errno upon failed realloc.
58564
58565 2007-08-22  Eric Blake  <ebb9@byu.net>
58566
58567         Getline touchups.
58568         * lib/getdelim.c (getdelim): Revert regression that required *n to
58569         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58571         getdelim, rather than whether implementation is missing.
58572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58573         * lib/stdio_.h (getline): Also declare if replacement is
58574         required.
58575         * doc/functions/getdelim.texi: New file.
58576         * doc/functions/getline.texi: Likewise.
58577         * doc/gnulib.texi (Function Substitutes): Add new files.
58578         Reported by Bruno Haible.
58579
58580 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58581
58582         * users.txt: Add Guile.
58583
58584 2007-08-22  Eric Blake  <ebb9@byu.net>
58585
58586         * tests/test-getdelim.c (main): Use remove, not unlink.
58587         * tests/test-getline.c (main): Likewise.
58588
58589         Move getline and getdelim into stdio.h, per POSIX 200x.
58590         * modules/getline (Files): Remove getline.h.
58591         (Depends-on): Add stdio.
58592         (configure.ac): Add module indicator.
58593         * modules/getdelim (Files): Remove getdelim.h.
58594         (Depends-on): Add stdio.
58595         (configure.ac): Add module indicator.
58596         * modules/stdio (Makefile.am): Work with new indicators.
58597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58598         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58599         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58600         * lib/getdelim.h: Delete.
58601         * lib/getline.h: Delete.
58602         * lib/stdio_.h (getdelim, getline): Declare.
58603         * modules/getdelim-tests: New module.
58604         * modules/getline-tests: Likewise.
58605         * tests/test-getdelim.c: New file.
58606         * tests/test-getline.c: Likewise.
58607         * NEWS: Document the change.
58608         * lib/getline.c: Update choice of header.
58609         * lib/csharpcomp.c: Likewise.
58610         * lib/getpass.c: Likewise.
58611         * lib/javacomp.c: Likewise.
58612         * lib/javaversion.c: Likewise.
58613         * lib/yesno.c: Likewise.
58614         * lib/getdelim.c: Likewise.
58615         (getdelim): Set errno on failure, and avoid memory leak.
58616
58617 2007-08-19  Bruno Haible  <bruno@clisp.org>
58618
58619         * modules/closein (Depends-on): Add freadahead.
58620         * lib/closein.c: Include freadahead.h.
58621         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58622         is zero.
58623
58624 2007-08-19  Bruno Haible  <bruno@clisp.org>
58625
58626         * modules/freadahead-tests: New file.
58627         * tests/test-freadahead.sh: New file.
58628         * tests/test-freadahead.c: New file.
58629
58630         * modules/freadahead: New file.
58631         * lib/freadahead.h: New file.
58632         * lib/freadahead.c: New file.
58633         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58634         fbufmode, fpurge, freadable, fwritable.
58635
58636 2007-08-19  Eric Blake  <ebb9@byu.net>
58637
58638         Test yesno in combination with closein.
58639         * lib/yesno.c (yesno): Document use of stdin.
58640         * modules/yesno-tests (Files): New module.
58641         * tests/test-yesno.c (main): New file.
58642         * tests/test-yesno.sh: Likewise.
58643
58644 2007-08-19  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58647         * lib/fseeko.c (rpl_fseeko): Likewise.
58648         * lib/fseterr.c (fseterr): Likewise.
58649
58650 2007-08-19  Bruno Haible  <bruno@clisp.org>
58651
58652         * tests/test-lseek.c (main): Disable a test for BeOS.
58653         * doc/functions/lseek.texi: Document the BeOS bug.
58654
58655 2007-08-19  Bruno Haible  <bruno@clisp.org>
58656             Eric Blake  <ebb9@byu.net>
58657
58658         * lib/lseek.c: Include <sys/stat.h>.
58659         (rpl_lseek): Add workaround code also for Unix platforms.
58660         Needed for BeOS.
58661         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58662         * doc/functions/lseek.texi: Document BeOS definiency.
58663
58664 2007-08-18  Bruno Haible  <bruno@clisp.org>
58665
58666         * modules/fstrcmp-tests: New file.
58667         * tests/test-fstrcmp.c: New file.
58668
58669 2007-08-18  Bruno Haible  <bruno@clisp.org>
58670
58671         * modules/fstrcmp: New file, from GNU gettext with modifications.
58672         * lib/fstrcmp.h: New file, from GNU gettext.
58673         * lib/fstrcmp.c: New file, from GNU gettext.
58674         * MODULES.html.sh (String handling): Add fstrcmp.
58675
58676 2007-08-18  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58679         'bool'.
58680         (diag, compareseq): Remove const from the ctxt argument.
58681         (USE_HEURISTIC): Undefine at the end.
58682
58683 2007-08-18  Jim Meyering  <jim@meyering.net>
58684
58685         New file: lib/idcache.h
58686         * NEWS: Mention the addition.
58687         * modules/idcache (Files): Add lib/idcache.h
58688         * lib/idcache.c: Include "idcache.h".
58689         Don't include <sys/types.h>.
58690         Add a FIXME comment.
58691         Move file-scoped "static" declarations to the top.
58692         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58693
58694 2007-08-17  Bruno Haible  <bruno@clisp.org>
58695         and Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * MODULES.html.sh: Add diffseq.
58698         * modules/diffseq: New file.
58699         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58700         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58701
58702 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58703
58704         Import changes from coreutils for bootstrap script.
58705
58706         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         * build-aux/bootstrap (slurp): Work even in environments where
58709         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58710         current code does not slurp files whose names start with ".", and
58711         this looks like it might be a troublesome area.
58712
58713         2007-07-11  Jim Meyering  <jim@meyering.net>
58714
58715         If there's a GPL vN copyright comment, require that N == 3.
58716
58717         2007-07-08  Jim Meyering  <jim@meyering.net>
58718
58719         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58720         * build-aux/bootstrap (mam_template): Move definition out of loop.
58721
58722         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58723
58724         * build-aux/bootstrap (symlink_to_dir): Rename function from
58725         symlink_to_gnulib.  Add a directory parameter.  Update all
58726         callers.
58727         (cp_mark_as_generated): Also check for -- and link to -- files in
58728         gl/.
58729
58730         2007-07-08  Jim Meyering  <jim@meyering.net>
58731
58732         Adapt to deeper hierarchy in gnulib.
58733         * build-aux/bootstrap (symlink_to_dir): If the destination
58734         directory doesn't exist, create it. This is required at least for
58735         "lib/uniwidth/cjk.h".
58736
58737         2007-05-15  Jim Meyering  <jim@meyering.net>
58738
58739         * build-aux/bootstrap: Now that generated Makefile.am files
58740         are no longer under version control, they must be created at
58741         bootstrap time.
58742
58743 2007-08-14  Ben Pfaff  <blp@gnu.org>
58744
58745         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58746
58747 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58748
58749         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58750         given the changes below.
58751         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58752         even on hosts that have padding bits beyond the supported 64.
58753
58754 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58755
58756         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58757         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58758         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58759         depends on it.
58760         (xstrtol_error): Remove.
58761         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58762         but with a different signature.
58763         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58764         * lib/xstrtol-error.c: Include exitfail.h.
58765         (xstrtol_fatal): New function, with a different signature from the
58766         old xstrtol_error, so that the caller need not worry about passing
58767         in an exit status, or about storage management of the option argument.
58768         (xstrtol_error): Now a static function.  Redo signature to
58769         implement xstrtol_fatal.  Output the correct number of hyphens in
58770         front of the option so that the caller need not worry about
58771         storage management.
58772         (N_): New macro.
58773         (_): Remove; not used now.
58774         * modules/xstrtol: Depend on getopt.
58775         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58776         of old STRTOL_FATAL_ERROR macro.
58777         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58778         of test program.
58779         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58780         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58781
58782 2007-08-08  Eric Blake  <ebb9@byu.net>
58783
58784         * lib/xstrtol-error.c: Add missing include.
58785
58786         Move xstrtol messages into gnulib domain, when --pobase is used.
58787         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58788         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58789         * modules/xstrtol (Files): Distribute new file.
58790         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58791         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58792         * tests/test-xstrtol.c: ...into new file.
58793         * tests/test-xstrtoul.c: Also test xstrtoul.
58794         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58795         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58796         * tests/test-xstrtol.sh: Drive the tests.
58797         * tests/test-xstrtoimax.sh: Likewise.
58798         * tests/test-xstrtoumax.sh: Likewise.
58799         * modules/xstrtol-tests: New module.
58800         * modules/xstrtoimax-tests: Likewise.
58801         * modules/xstrtoumax-tests: Likewise.
58802
58803 2007-08-08  Jim Meyering  <jim@meyering.net>
58804
58805         New function: mfile_name_concat.
58806         * lib/filenamecat.c (mfile_name_concat): New function, just like
58807         file_name_concat, but return NULL upon failure rather than exiting
58808         with a diagnostic.
58809         * lib/filenamecat.h: Declare it.
58810
58811 2007-08-07  Bruno Haible  <bruno@clisp.org>
58812
58813         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58814         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58815         warning from gcc.
58816         Reported by Eric Blake.
58817
58818 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58819
58820         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58821         * modules/crypto/arcfour (License): Likewise.
58822         * modules/crypto/des-tests (License): Likewise.
58823         * modules/crypto/gc-arctwo-tests (License): Likewise.
58824         * modules/crypto/gc-des-tests (License): Likewise.
58825         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58826         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58827         * modules/crypto/gc-md2-tests (License): Likewise.
58828         * modules/crypto/gc-md4-tests (License): Likewise.
58829         * modules/crypto/gc-md5-tests (License): Likewise.
58830         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58831         * modules/crypto/gc-rijndael-tests (License): Likewise.
58832         * modules/crypto/gc-sha1-tests (License): Likewise.
58833         * modules/crypto/gc-tests (License): Likewise.
58834         * modules/crypto/hmac-md5 (License): Likewise.
58835         * modules/crypto/hmac-sha1 (License): Likewise.
58836         * modules/crypto/md2-tests (License): Likewise.
58837         * modules/crypto/md4-tests (License): Likewise.
58838         * modules/crypto/md5 (License): Likewise.
58839         * modules/crypto/rijndael (License): Likewise.
58840         * modules/crypto/sha1 (License): Likewise.
58841         * modules/memxor (License): Likewise.
58842
58843 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58844         and Bruno Haible  <bruno@clisp.org>
58845
58846         * NEWS: Describe interface changes to human, xstrtol.
58847         * lib/human.h: Include <xstrtol.h>.
58848         (human_options): Return enum strtol_error, not int.  Remove
58849         bool arg; take int * instead.
58850         * lib/human.c: Don't include "gettext.h".
58851         (_): Remove; no longer used.
58852         Don't include <xstrtol.h>, since human.h does it.
58853         (human_options): Adjust to abovementioned interface changes.
58854         Do not report error to stderr; that's now the caller's
58855         responsibility.
58856         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58857         interface change.
58858         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58859         Str, Argument_type_string.  All uses changed.  Put " argument"
58860         in diagnostics to make them clearer.  Change wording of suffix
58861         message for clarity.
58862         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58863         Argument_type_string.
58864         (STRTOL_FATAL_WARN): Remove; no longer used.
58865         * modules/human (Depends-on): Remove gettext-h.
58866
58867 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58868
58869         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58870
58871 2007-07-31  Bruno Haible  <bruno@clisp.org>
58872
58873         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58874         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58875         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58876
58877 2007-07-31  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58880         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58881
58882 2007-07-30  Bruno Haible  <bruno@clisp.org>
58883
58884         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58885         * modules/c-ctype (License): Likewise.
58886         * modules/c-strcase (License): Likewise.
58887         * modules/check-version (License): Likewise.
58888         * modules/iconv (License): Likewise.
58889         * modules/iconv_open (License): Likewise.
58890         * modules/read-file (License): Likewise.
58891         * modules/striconv (License): Likewise.
58892         * modules/strverscmp (License): Likewise.
58893         * modules/vasprintf (License): Likewise.
58894         * modules/crypto/des (License): Likewise.
58895         * modules/crypto/gc (License): Likewise.
58896         * modules/crypto/gc-arcfour (License): Likewise.
58897         * modules/crypto/gc-arctwo (License): Likewise.
58898         * modules/crypto/gc-des (License): Likewise.
58899         * modules/crypto/gc-hmac-md5 (License): Likewise.
58900         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58901         * modules/crypto/gc-md2 (License): Likewise.
58902         * modules/crypto/gc-md4 (License): Likewise.
58903         * modules/crypto/gc-md5 (License): Likewise.
58904         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58905         * modules/crypto/gc-random (License): Likewise.
58906         * modules/crypto/gc-rijndael (License): Likewise.
58907         * modules/crypto/gc-sha1 (License): Likewise.
58908         * modules/crypto/md2 (License): Likewise.
58909         * modules/crypto/md4 (License): Likewise.
58910
58911 2007-07-30  Jim Meyering  <jim@meyering.net>
58912
58913         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58914         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58915         it has valid stat data.  This bug would cause du not to count the
58916         sizes of inaccessible directories.
58917         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58918         in <http://bugzilla.redhat.com/250077>.
58919
58920 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58921             Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58924         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58925         #include_next, gives a diagnostic about it, but reports no error in
58926         the exit code.
58927         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58928
58929 2007-07-24  Ben Pfaff  <blp@gnu.org>
58930
58931         Improve name: "count-one-bits" is better than "popcount".
58932         * MODULES.html.sh: Update name.
58933         * lib/popcount.h: Renamed lib/count-one-bits.h.
58934         (popcount): Renamed count_one_bits.
58935         (popcountl): Renamed count_one_bits_l.
58936         (popcountll): Renamed count_one_bits_ll.
58937         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58938         * modules/popcount: Renamed module/count-one-bits.
58939         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58940         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58941
58942 2007-07-23  Ben Pfaff  <blp@gnu.org>
58943
58944         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58945         better code generation, and add U to large constants to avoid
58946         warnings, in non-GCC case.
58947         Suggested by Bruno Haible.
58948
58949 2007-07-23  Ben Pfaff  <blp@gnu.org>
58950
58951         * lib/popcount.h: Use verify_true instead of if...abort.
58952         * modules/popcount: Depend on verify module.
58953         Suggested by Jim Meyering.
58954
58955 2007-07-23  Bruno Haible  <bruno@clisp.org>
58956
58957         * gnulib-tool (func_import): Create a .cvsignore file also when the
58958         directory is not yet in CVS but the toplevel directory is. When
58959         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58960         Reported by Karl Berry.
58961
58962 2007-07-22  Ben Pfaff  <blp@gnu.org>
58963
58964         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58965         case.
58966         Suggested by Eric Blake.
58967
58968 2007-07-22  Ben Pfaff  <blp@gnu.org>
58969
58970         New module: popcount.
58971         * MODULES.html.sh: Add popcount.
58972         * modules/popcount: New file.
58973         * modules/popcount-tests: New file.
58974         * tests/test-popcount.c: New file.
58975         * lib/popcount.h: New file.
58976         * m4/popcount.m4: New file.
58977
58978 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         * build-aux/announce-gen: Update to GPLv3.
58981
58982         * build-aux/config.guess: Update from config.
58983
58984 2007-07-21  Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58987         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58988
58989 2007-07-20  Jim Meyering  <jim@meyering.net>
58990
58991         * check-module: Diagnose a self-dependency.
58992
58993 2007-07-19  Bruno Haible  <bruno@clisp.org>
58994
58995         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58996         empty.
58997         Reported by Eric Blake.
58998
58999 2007-07-18  Bruno Haible  <bruno@clisp.org>
59000
59001         * gnulib-tool: New options --po-base, --po-domain.
59002         (func_usage): Document them.
59003         (pobase, po_domain): New variables.
59004         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59005         DEFAULT_TEXT_DOMAIN.
59006         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59007         (func_import): Consider pobase and po_domain. Create a po/ directory.
59008         (func_create_testdir): Set pobase and po_domain to empty.
59009         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59010         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59011
59012 2007-07-18  Bruno Haible  <bruno@clisp.org>
59013
59014         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59015         EXTRA_DIST augmentation for files in build-aux/.
59016
59017 2007-07-16  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59020         * modules/getdelim (License): Likewise.
59021
59022 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59023
59024         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59025         * modules/d-type (License): Likewise.
59026         * modules/extensions (License): Likewise.
59027         * modules/fnmatch (License): Likewise.
59028         * modules/fseeko (License): Likewise.
59029         * modules/getaddrinfo (License): Likewise.
59030         * modules/getline (License): Likewise.
59031         * modules/getlogin_r (License): Likewise.
59032         * modules/getpass (License): Likewise.
59033         * modules/gettimeofday (License): Likewise.
59034         * modules/glob (License): Likewise.
59035         * modules/inet_ntop (License): Likewise.
59036         * modules/malloc (License): Likewise.
59037         * modules/malloca (License): Likewise.
59038         * modules/memmem (License): Likewise.
59039         * modules/mempcpy (License): Likewise.
59040         * modules/memset (License): Likewise.
59041         * modules/minmax (License): Likewise.
59042         * modules/mktime (License): Likewise.
59043         * modules/netinet_in (License): Likewise.
59044         * modules/pathmax (License): Likewise.
59045         * modules/poll (License): Likewise.
59046         * modules/regex (License): Likewise.
59047         * modules/snprintf (License): Likewise.
59048         * modules/stdbool (License): Likewise.
59049         * modules/stdint (License): Likewise.
59050         * modules/stdio (License): Likewise.
59051         * modules/strcase (License): Likewise.
59052         * modules/strcasestr (License): Likewise.
59053         * modules/strdup (License): Likewise.
59054         * modules/string (License): Likewise.
59055         * modules/strndup (License): Likewise.
59056         * modules/strnlen (License): Likewise.
59057         * modules/strpbrk (License): Likewise.
59058         * modules/strptime (License): Likewise.
59059         * modules/strsep (License): Likewise.
59060         * modules/sys_select (License): Likewise.
59061         * modules/sys_socket (License): Likewise.
59062         * modules/sys_stat (License): Likewise.
59063         * modules/sys_time (License): Likewise.
59064         * modules/time (License): Likewise.
59065         * modules/time_r (License): Likewise.
59066         * modules/timegm (License): Likewise.
59067         * modules/unistd (License): Likewise.
59068         * modules/vsnprintf (License): Likewise.
59069         * modules/wctype (License): Likewise.
59070
59071 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59072
59073         * modules/argz (License): LGPLv2+.
59074
59075 2007-07-15  Karl Berry  <karl@gnu.org>
59076
59077         * doc/gnulib.texi: revise node structure per new fdl.texi.
59078
59079 2007-07-14  Bruno Haible  <bruno@clisp.org>
59080
59081         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59082         the output file.
59083         * lib/uniname/uninames.h: Regenerated.
59084
59085 2007-07-14  Karl Berry  <karl@gnu.org>
59086
59087         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59088         omitting sectioning and index commands.
59089
59090 2007-07-13  Bruno Haible  <bruno@clisp.org>
59091
59092         New gnulib-tool option --more-symlinks.
59093         * gnulib-tool (func_usage): Document --more-symlinks.
59094         (do_copyrights): New variable.
59095         Recognize option --more-symlinks.
59096         (func_import): Don't add a copyright notice transform to
59097         sed_transform_lib_file if do_copyrights is empty.
59098
59099 2007-07-13  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/vasnprintf.c (decimal_point_char): Define also if
59102         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59103         && !NEED_PRINTF_DIRECTIVE_A.
59104         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59105         Gary V. Vaughan <gary@gnu.org>.
59106
59107 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * lib/inttypes_.h: Undo previous change, since it was fixed
59110         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59111
59112 2007-07-13  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59115         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59116
59117 2007-07-13  Jim Meyering  <jim@meyering.net>
59118
59119         df: Don't fail for Tru64's "file-on-file mount".
59120         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59121         so we fall through and use statfs instead.  Details here:
59122         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59123         Reported by Albert Chin.
59124
59125 2007-07-13  Bruno Haible  <bruno@clisp.org>
59126
59127         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59128         * modules/configmake (License): Likewise.
59129         * modules/gettext (License): Likewise.
59130         * modules/gettext-h (License): Likewise.
59131         * modules/include_next (License): Likewise.
59132         * modules/link-warning (License): Likewise.
59133         * modules/localcharset (License): Likewise.
59134         * modules/localename (License): Likewise.
59135         * modules/lock (License): Likewise.
59136         * modules/relocatable-lib-lgpl (License): Likewise.
59137         * modules/size_max (License): Likewise.
59138         * modules/vasnprintf (License): Likewise.
59139         * modules/wchar (License): Likewise.
59140         * modules/xsize (License): Likewise.
59141
59142 2007-07-13  Bruno Haible  <bruno@clisp.org>
59143
59144         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59145         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59146
59147 2007-07-12  Bruno Haible  <bruno@clisp.org>
59148
59149         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59150         in the modules files.
59151
59152 2007-07-11  Karl Berry  <karl@gnu.org>
59153
59154         * MODULES.html.sh (func_module): use
59155          sed -e '\|^'"${includefile}"'$|d'
59156          instead of /.../d, to avoid errors on $includefile's containing /.
59157
59158 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59159
59160         * gnulib-tool (func_import): Avoid duplication of --avoid
59161         statements
59162         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59163         names to `_' in variable names.
59164
59165 2007-07-10  Eric Blake  <ebb9@byu.net>
59166
59167         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59168         * NEWS: Document this change.
59169
59170 2007-07-08  Bruno Haible  <bruno@clisp.org>
59171
59172         Update to Unicode 5.0.
59173         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59174         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59175         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59176         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59177         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59178         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59179         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59180         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59181         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59182         U+10A3F, U+1D242..U+1D244.
59183         (nonspacing_table_ind): Update.
59184         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59185         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59186
59187 2007-07-08  Bruno Haible  <bruno@clisp.org>
59188
59189         Update to Unicode 5.0.
59190         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59191         code transform. Extend the name index field of unicode_name_to_code and
59192         unicode_code_to_name from 16 to 24 bits.
59193         * lib/uniname/uniname.c (unicode_character_name,
59194         unicode_name_character): Add the range 0x12xxx to the code transform.
59195         * lib/uniname/uninames.h: Regenerated.
59196         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59197
59198 2007-07-07  Bruno Haible  <bruno@clisp.org>
59199
59200         * modules/wcwidth-tests: New file.
59201         * tests/test-wcwidth.c: New file.
59202
59203         Work around MacOS X wcwidth() bug.
59204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59205         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59206         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59207         original wcwidth in non-UTF-8 locales.
59208         * modules/wcwidth (Depends-on): Add localcharset, streq,
59209         uniwidth/width.
59210         * doc/functions/wcwidth.texi: Update.
59211
59212 2007-07-07  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59215         (wcwidth): New declaration.
59216         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59217         macros.
59218         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59219         here. Prepare for creating <wchar.h> unconditionally.
59220         * modules/wchar (Depends-on): Add link-warning.
59221         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59222         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59223         * lib/wcwidth.h: Remove file.
59224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59225         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59226         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59227         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59228         (Include): Replace wcwidth.h with <wchar.h>.
59229         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59230         * lib/mbchar.h: Don't include wcwidth.h.
59231         * lib/mbswidth.c: Likewise.
59232         * NEWS: Mention the change.
59233
59234 2007-07-07  Bruno Haible  <bruno@clisp.org>
59235
59236         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59237         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59238         definition with an external declaration.
59239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59240         defined as a function. Remove AC_C_INLINE requirement.
59241         * modules/wcwidth (Files): Add lib/wcwidth.c.
59242         (Makefile.am): Remove redundant statement.
59243
59244 2007-07-07  Bruno Haible  <bruno@clisp.org>
59245
59246         * MODULES.html.sh (Unicode string functions): Add the new modules.
59247
59248         * tests/uniwidth/test-u32-strwidth.c: New file.
59249         * modules/uniwidth/u32-strwidth-tests: New file.
59250
59251         * lib/uniwidth/u32-strwidth.c: New file.
59252         * modules/uniwidth/u32-strwidth: New file.
59253
59254         * tests/uniwidth/test-u16-strwidth.c: New file.
59255         * modules/uniwidth/u16-strwidth-tests: New file.
59256
59257         * lib/uniwidth/u16-strwidth.c: New file.
59258         * modules/uniwidth/u16-strwidth: New file.
59259
59260         * tests/uniwidth/test-u8-strwidth.c: New file.
59261         * modules/uniwidth/u8-strwidth-tests: New file.
59262
59263         * lib/uniwidth/u8-strwidth.c: New file.
59264         * modules/uniwidth/u8-strwidth: New file.
59265
59266         * tests/uniwidth/test-u32-width.c: New file.
59267         * modules/uniwidth/u32-width-tests: New file.
59268
59269         * lib/uniwidth/u32-width.c: New file.
59270         * modules/uniwidth/u32-width: New file.
59271
59272         * tests/uniwidth/test-u16-width.c: New file.
59273         * modules/uniwidth/u16-width-tests: New file.
59274
59275         * lib/uniwidth/u16-width.c: New file.
59276         * modules/uniwidth/u16-width: New file.
59277
59278         * tests/uniwidth/test-u8-width.c: New file.
59279         * modules/uniwidth/u8-width-tests: New file.
59280
59281         * lib/uniwidth/u8-width.c: New file.
59282         * modules/uniwidth/u8-width: New file.
59283
59284         * tests/uniwidth/test-uc_width.c: New file.
59285         * modules/uniwidth/width-tests: New file.
59286
59287         * lib/uniwidth/width.c: New file, from GNU libiconv.
59288         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59289         * modules/uniwidth/width: New file.
59290
59291         * lib/uniwidth.h: New file, from GNU libiconv.
59292         * modules/uniwidth/base: New file.
59293
59294 2007-07-07  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/uniname.h: New file, from GNU gettext.
59297         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59298         * lib/uniname/uninames.h: New file, from GNU gettext.
59299         * lib/uniname/uniname.c: New file, from GNU gettext.
59300         * tests/uniname/test-uninames.sh: New file.
59301         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59302         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59303         * modules/uniname/base: New file.
59304         * modules/uniname/uniname: New file.
59305         * modules/uniname/uniname-tests: New file.
59306         * MODULES.html.sh (Unicode string functions): Add the new modules.
59307
59308 2007-07-06  Bruno Haible  <bruno@clisp.org>
59309
59310         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59311
59312 2007-07-06  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59315         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59316         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59317         include <sys/time.h>.
59318         Reported by Eric Blake.
59319
59320 2007-07-06  Eric Blake  <ebb9@byu.net>
59321
59322         Fix testing canonicalize on cygwin.
59323         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59324         Revert patch from 2007-06-19.
59325         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59326         canonicalize module is also in use.
59327         * tests/test-canonicalize.c: New file.
59328         * tests/test-canonicalize.sh: Likewise.
59329         * modules/canonicalize-tests: Likewise.
59330
59331 2007-07-06  Jim Meyering  <jim@meyering.net>
59332
59333         * lib/getugroups.c (getugroups): Detect getgrent failure.
59334         Adjust comment to reflect reality: this function may return -1.
59335
59336 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59337
59338         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59339         the new TP address.
59340         (usage): Fix typo
59341         (gnulib_mk): New variable.
59342
59343 2007-07-05  Jim Meyering  <jim@meyering.net>
59344
59345         Don't let endgrent clobber errno, no matter how improbable.
59346         * lib/getugroups.c (getugroups): Save and restore errno around
59347         endgrent call.
59348
59349         Close the group DB even when failing with 2^31 or more members.
59350         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59351
59352 2007-07-04  Jim Meyering  <jim@meyering.net>
59353
59354         * lib/getugroups.h: New file.
59355         * lib/getugroups.c: Include "getugroups.h".
59356         Remove uses of "register" keyword.
59357         Move local variable, "cp", down into scope where used.
59358         Give "username" parameter the "const" attribute.
59359         * modules/getugroups (Files): Add lib/getugroups.h
59360
59361 2007-07-04  Karl Berry  <karl@gnu.org>
59362
59363         * MODULES.html.sh (func_all_modules): Complete rename of
59364         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59365
59366 2007-07-02  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59369         mode, when inttypes.h comes from gnulib.
59370         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59371
59372 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59373
59374         * NEWS: Mention lgpl module name change.
59375
59376         * modules/lgpl-2.1: Renamed from lgpl.
59377
59378         * NEWS: Mention gpl module name change.
59379
59380         * modules/gpl-3.0: New file, based on gpl-2.0.
59381
59382         * modules/gpl-2.0: Renamed from gpl.
59383
59384         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59385         doc/gpl-2.0.texi.
59386
59387 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59388
59389         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59390         #define __STDC_LIMIT_MACROS temporarily while including
59391         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59392         Problem reported by Joel E. Denny in
59393         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59394
59395 2007-07-01  Bruno Haible  <bruno@clisp.org>
59396
59397         * lib/unistdio.h: New file.
59398         * lib/unistdio/u-asnprintf.h: New file.
59399         * lib/unistdio/u-asprintf.h: New file.
59400         * lib/unistdio/u-printf-args.c: New file.
59401         * lib/unistdio/u-printf-args.h: New file.
59402         * lib/unistdio/u-printf-parse.h: New file.
59403         * lib/unistdio/u-snprintf.h: New file.
59404         * lib/unistdio/u-sprintf.h: New file.
59405         * lib/unistdio/u-vasprintf.h: New file.
59406         * lib/unistdio/u-vsnprintf.h: New file.
59407         * lib/unistdio/u-vsprintf.h: New file.
59408         * lib/unistdio/ulc-asnprintf.c: New file.
59409         * lib/unistdio/ulc-asprintf.c: New file.
59410         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59411         * lib/unistdio/ulc-printf-parse.c: New file.
59412         * lib/unistdio/ulc-snprintf.c: New file.
59413         * lib/unistdio/ulc-sprintf.c: New file.
59414         * lib/unistdio/ulc-vasnprintf.c: New file.
59415         * lib/unistdio/ulc-vasprintf.c: New file.
59416         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59417         * lib/unistdio/ulc-vsnprintf.c: New file.
59418         * lib/unistdio/ulc-vsprintf.c: New file.
59419         * lib/unistdio/u8-asnprintf.c: New file.
59420         * lib/unistdio/u8-asprintf.c: New file.
59421         * lib/unistdio/u8-printf-parse.c: New file.
59422         * lib/unistdio/u8-snprintf.c: New file.
59423         * lib/unistdio/u8-sprintf.c: New file.
59424         * lib/unistdio/u8-vasnprintf.c: New file.
59425         * lib/unistdio/u8-vasprintf.c: New file.
59426         * lib/unistdio/u8-vsnprintf.c: New file.
59427         * lib/unistdio/u8-vsprintf.c: New file.
59428         * lib/unistdio/u8-u8-asnprintf.c: New file.
59429         * lib/unistdio/u8-u8-asprintf.c: New file.
59430         * lib/unistdio/u8-u8-snprintf.c: New file.
59431         * lib/unistdio/u8-u8-sprintf.c: New file.
59432         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59433         * lib/unistdio/u8-u8-vasprintf.c: New file.
59434         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59435         * lib/unistdio/u8-u8-vsprintf.c: New file.
59436         * lib/unistdio/u16-asnprintf.c: New file.
59437         * lib/unistdio/u16-asprintf.c: New file.
59438         * lib/unistdio/u16-printf-parse.c: New file.
59439         * lib/unistdio/u16-snprintf.c: New file.
59440         * lib/unistdio/u16-sprintf.c: New file.
59441         * lib/unistdio/u16-vasnprintf.c: New file.
59442         * lib/unistdio/u16-vasprintf.c: New file.
59443         * lib/unistdio/u16-vsnprintf.c: New file.
59444         * lib/unistdio/u16-vsprintf.c: New file.
59445         * lib/unistdio/u16-u16-asnprintf.c: New file.
59446         * lib/unistdio/u16-u16-asprintf.c: New file.
59447         * lib/unistdio/u16-u16-snprintf.c: New file.
59448         * lib/unistdio/u16-u16-sprintf.c: New file.
59449         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59450         * lib/unistdio/u16-u16-vasprintf.c: New file.
59451         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59452         * lib/unistdio/u16-u16-vsprintf.c: New file.
59453         * lib/unistdio/u32-asnprintf.c: New file.
59454         * lib/unistdio/u32-asprintf.c: New file.
59455         * lib/unistdio/u32-printf-parse.c: New file.
59456         * lib/unistdio/u32-snprintf.c: New file.
59457         * lib/unistdio/u32-sprintf.c: New file.
59458         * lib/unistdio/u32-vasnprintf.c: New file.
59459         * lib/unistdio/u32-vasprintf.c: New file.
59460         * lib/unistdio/u32-vsnprintf.c: New file.
59461         * lib/unistdio/u32-vsprintf.c: New file.
59462         * lib/unistdio/u32-u32-asnprintf.c: New file.
59463         * lib/unistdio/u32-u32-asprintf.c: New file.
59464         * lib/unistdio/u32-u32-snprintf.c: New file.
59465         * lib/unistdio/u32-u32-sprintf.c: New file.
59466         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59467         * lib/unistdio/u32-u32-vasprintf.c: New file.
59468         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59469         * lib/unistdio/u32-u32-vsprintf.c: New file.
59470         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59471         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59472         * tests/unistdio/test-ulc-printf1.h: New file.
59473         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59474         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59475         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59476         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59477         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59478         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59479         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59480         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59481         * tests/unistdio/test-u8-asnprintf1.c: New file.
59482         * tests/unistdio/test-u8-asnprintf1.h: New file.
59483         * tests/unistdio/test-u8-printf1.h: New file.
59484         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59485         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59486         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59487         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59488         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59489         * tests/unistdio/test-u8-vasprintf1.c: New file.
59490         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59491         * tests/unistdio/test-u8-vsprintf1.c: New file.
59492         * tests/unistdio/test-u16-asnprintf1.c: New file.
59493         * tests/unistdio/test-u16-asnprintf1.h: New file.
59494         * tests/unistdio/test-u16-printf1.h: New file.
59495         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59496         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59497         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59498         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59499         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59500         * tests/unistdio/test-u16-vasprintf1.c: New file.
59501         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59502         * tests/unistdio/test-u16-vsprintf1.c: New file.
59503         * tests/unistdio/test-u32-asnprintf1.c: New file.
59504         * tests/unistdio/test-u32-asnprintf1.h: New file.
59505         * tests/unistdio/test-u32-printf1.h: New file.
59506         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59507         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59508         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59509         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59510         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59511         * tests/unistdio/test-u32-vasprintf1.c: New file.
59512         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59513         * tests/unistdio/test-u32-vsprintf1.c: New file.
59514         * modules/unistdio/base: New file.
59515         * modules/unistdio/u-printf-args: New file.
59516         * modules/unistdio/ulc-asnprintf: New file.
59517         * modules/unistdio/ulc-asprintf: New file.
59518         * modules/unistdio/ulc-fprintf: New file.
59519         * modules/unistdio/ulc-printf-parse: New file.
59520         * modules/unistdio/ulc-snprintf: New file.
59521         * modules/unistdio/ulc-sprintf: New file.
59522         * modules/unistdio/ulc-vasnprintf: New file.
59523         * modules/unistdio/ulc-vasprintf: New file.
59524         * modules/unistdio/ulc-vfprintf: New file.
59525         * modules/unistdio/ulc-vsnprintf: New file.
59526         * modules/unistdio/ulc-vsprintf: New file.
59527         * modules/unistdio/u8-asnprintf: New file.
59528         * modules/unistdio/u8-asprintf: New file.
59529         * modules/unistdio/u8-printf-parse: New file.
59530         * modules/unistdio/u8-snprintf: New file.
59531         * modules/unistdio/u8-sprintf: New file.
59532         * modules/unistdio/u8-vasnprintf: New file.
59533         * modules/unistdio/u8-vasprintf: New file.
59534         * modules/unistdio/u8-vsnprintf: New file.
59535         * modules/unistdio/u8-vsprintf: New file.
59536         * modules/unistdio/u8-u8-asnprintf: New file.
59537         * modules/unistdio/u8-u8-asprintf: New file.
59538         * modules/unistdio/u8-u8-snprintf: New file.
59539         * modules/unistdio/u8-u8-sprintf: New file.
59540         * modules/unistdio/u8-u8-vasnprintf: New file.
59541         * modules/unistdio/u8-u8-vasprintf: New file.
59542         * modules/unistdio/u8-u8-vsnprintf: New file.
59543         * modules/unistdio/u8-u8-vsprintf: New file.
59544         * modules/unistdio/u16-asnprintf: New file.
59545         * modules/unistdio/u16-asprintf: New file.
59546         * modules/unistdio/u16-printf-parse: New file.
59547         * modules/unistdio/u16-snprintf: New file.
59548         * modules/unistdio/u16-sprintf: New file.
59549         * modules/unistdio/u16-vasnprintf: New file.
59550         * modules/unistdio/u16-vasprintf: New file.
59551         * modules/unistdio/u16-vsnprintf: New file.
59552         * modules/unistdio/u16-vsprintf: New file.
59553         * modules/unistdio/u16-u16-asnprintf: New file.
59554         * modules/unistdio/u16-u16-asprintf: New file.
59555         * modules/unistdio/u16-u16-snprintf: New file.
59556         * modules/unistdio/u16-u16-sprintf: New file.
59557         * modules/unistdio/u16-u16-vasnprintf: New file.
59558         * modules/unistdio/u16-u16-vasprintf: New file.
59559         * modules/unistdio/u16-u16-vsnprintf: New file.
59560         * modules/unistdio/u16-u16-vsprintf: New file.
59561         * modules/unistdio/u32-asnprintf: New file.
59562         * modules/unistdio/u32-asprintf: New file.
59563         * modules/unistdio/u32-printf-parse: New file.
59564         * modules/unistdio/u32-snprintf: New file.
59565         * modules/unistdio/u32-sprintf: New file.
59566         * modules/unistdio/u32-vasnprintf: New file.
59567         * modules/unistdio/u32-vasprintf: New file.
59568         * modules/unistdio/u32-vsnprintf: New file.
59569         * modules/unistdio/u32-vsprintf: New file.
59570         * modules/unistdio/u32-u32-asnprintf: New file.
59571         * modules/unistdio/u32-u32-asprintf: New file.
59572         * modules/unistdio/u32-u32-snprintf: New file.
59573         * modules/unistdio/u32-u32-sprintf: New file.
59574         * modules/unistdio/u32-u32-vasnprintf: New file.
59575         * modules/unistdio/u32-u32-vasprintf: New file.
59576         * modules/unistdio/u32-u32-vsnprintf: New file.
59577         * modules/unistdio/u32-u32-vsprintf: New file.
59578         * modules/unistdio/ulc-asnprintf-tests: New file.
59579         * modules/unistdio/ulc-vasnprintf-tests: New file.
59580         * modules/unistdio/ulc-vasprintf-tests: New file.
59581         * modules/unistdio/ulc-vsnprintf-tests: New file.
59582         * modules/unistdio/ulc-vsprintf-tests: New file.
59583         * modules/unistdio/u8-asnprintf-tests: New file.
59584         * modules/unistdio/u8-vasnprintf-tests: New file.
59585         * modules/unistdio/u8-vasprintf-tests: New file.
59586         * modules/unistdio/u8-vsnprintf-tests: New file.
59587         * modules/unistdio/u8-vsprintf-tests: New file.
59588         * modules/unistdio/u16-asnprintf-tests: New file.
59589         * modules/unistdio/u16-vasnprintf-tests: New file.
59590         * modules/unistdio/u16-vasprintf-tests: New file.
59591         * modules/unistdio/u16-vsnprintf-tests: New file.
59592         * modules/unistdio/u16-vsprintf-tests: New file.
59593         * modules/unistdio/u32-asnprintf-tests: New file.
59594         * modules/unistdio/u32-vasnprintf-tests: New file.
59595         * modules/unistdio/u32-vasprintf-tests: New file.
59596         * modules/unistdio/u32-vsnprintf-tests: New file.
59597         * modules/unistdio/u32-vsprintf-tests: New file.
59598         * MODULES.html.sh (Unicode string functions): Add the new modules.
59599
59600 2007-07-01  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/sprintf.c (sprintf): Limit the available length estimation,
59603         to avoid address wraparound.
59604         * lib/vsprintf.c (vsprintf): Likewise.
59605         * modules/sprintf-posix (Dependencies): Add stdint.
59606         * modules/vsprintf-posix (Dependencies): Likewise.
59607
59608 2007-07-01  Bruno Haible  <bruno@clisp.org>
59609
59610         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59611         Windows PATH as well. Conservative double-quoting. Comments.
59612
59613 2007-07-01  Bruno Haible  <bruno@clisp.org>
59614             Eric Blake  <ebb9@byu.net>
59615             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59616
59617         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59618         empty components in $PATH, denoting '.'.
59619
59620 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59621
59622         * gnulib-tool: Fix indentation.
59623         (func_create_megatestdir): Likewise.
59624         Report by Bruno Haible.
59625
59626 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59627
59628         Sync from Automake.
59629         * build-aux/gnupload: Fix shell portability issues with for loops.
59630         Report by Karl Berry.
59631
59632 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59633
59634         * build-aux/maint.mk (POURL): Use translationproject.org.
59635
59636 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59637             Bruno Haible  <bruno@clisp.org>
59638
59639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59640         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59641         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59642         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59643         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59644
59645 2007-06-27  Bruno Haible  <bruno@clisp.org>
59646
59647         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59648         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59649
59650 2007-06-26  Karl Berry  <karl@gnu.org>
59651
59652         * MODULES.html.sh: remove xreadlink-with-size.
59653
59654 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59657         method that I hope also handles the double-include problem noted
59658         by Bruno Haible in
59659         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59660
59661 2007-06-23  Bruno Haible  <bruno@clisp.org>
59662
59663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59664         Don't let the 'mostlyclean' target fail if the last subdirectory could
59665         not be removed.
59666         Reported by Karl Berry.
59667
59668 2007-06-23  Bruno Haible  <bruno@clisp.org>
59669
59670         * gnulib-tool (echo): Add a speedier workaround for ksh.
59671         * tests/test-echo.sh: Likewise.
59672
59673 2007-06-23  Bruno Haible  <bruno@clisp.org>
59674
59675         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59676         * tests/test-echo.sh: Likewise.
59677
59678 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59679
59680         * gnulib-tool (IFS): Initialize early, so we don't set it to
59681         empty later.
59682         (self_abspathname): Rewrite algorithm to set it, reindent.
59683         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59684         (func_create_megatestdir): Merge some sed scripts.
59685
59686 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59687
59688         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59689         exposed by Sun Studio 11 cc on Solaris 8.
59690
59691 2007-06-22  Bruno Haible  <bruno@clisp.org>
59692
59693         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59694         backslashes.
59695         * tests/test-echo.sh: New file.
59696
59697 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59698
59699         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59700         simplify `sed_replace_build_aux' scripts, they are portable but
59701         echoing them with `echo' is not.
59702         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59703
59704 2007-06-21  Karl Berry  <karl@gnu.org>
59705
59706         * config/srclist.txt: guess we can't handle the licenses via
59707         srclist at the moment.
59708
59709 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59710
59711         * MODULES.html.sh: Add include_next.
59712         * modules/include_next: New file.
59713
59714 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59717         INCLUDE_NEXT.
59718         (gl_CHECK_NEXT_HEADERS): New macro.
59719         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59720         the obsolescent gl_ABSOLUTE_HEADER.
59721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59722         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59723         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59724         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59725         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59726         * m4/math_h.m4 (gl_MATH_H): Likewise.
59727         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59728         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59729         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59730         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59731         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59732         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59733         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59737         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59738         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59739         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59740         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59741         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59742         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59743         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59744         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59745         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59746         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59747         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59748         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59749         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59750         * lib/float_.h: Likewise.
59751         * lib/inttypes_.h: Likewise.
59752         * lib/math_.h: Likewise.
59753         * lib/search_.h: Likewise.
59754         * lib/signal_.h: Likewise.
59755         * lib/stdint_.h: Likewise.
59756         * lib/stdio_.h: Likewise.
59757         * lib/stdlib_.h: Likewise.
59758         * lib/string_.h: Likewise.
59759         * lib/sys_stat_.h: Likewise.
59760         * lib/sys_time_.h: Likewise.
59761         * lib/time_.h: Likewise.
59762         * lib/unistd_.h: Likewise.
59763         * lib/wchar_.h: Likewise.
59764         * lib/wctype_.h: Likewise.
59765         * lib/dirent_.h: Likewise.
59766         * lib/iconv_.h: Likewise.
59767         * lib/locale_.h: Likewise.
59768         * lib/netinet_in_.h: Likewise.
59769         * lib/sys_select_.h: Likewise.
59770         * lib/sys_socket_.h: Likewise.
59771         * lib/sysexits_.h: Likewise.
59772         * modules/fcntl (Depends-on): Depend on include_next, not
59773         absolute_header.
59774         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59775         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59776         * modules/fchdir: Likewise.
59777         * modules/float: Likewise.
59778         * modules/iconv_open: Likewise.
59779         * modules/inttypes: Likewise.
59780         * modules/locale: Likewise.
59781         * modules/math: Likewise.
59782         * modules/netinet_in: Likewise.
59783         * modules/search: Likewise.
59784         * modules/signal: Likewise.
59785         * modules/stdint: Likewise.
59786         * modules/stdio: Likewise.
59787         * modules/stdlib: Likewise.
59788         * modules/string: Likewise.
59789         * modules/sys_select: Likewise.
59790         * modules/sys_socket: Likewise.
59791         * modules/sys_stat: Likewise.
59792         * modules/sys_time: Likewise.
59793         * modules/sysexits: Likewise.
59794         * modules/time: Likewise.
59795         * modules/unistd: Likewise.
59796         * modules/wchar: Likewise.
59797         * modules/wctype: Likewise.
59798         * modules/sys_stat: Change maintainer to "all".
59799         * modules/unistd: Likewise.
59800
59801 2007-06-20  Karl Berry  <karl@gnu.org>
59802
59803         * config/srclist.txt: track www changes in license files.
59804
59805 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59806
59807         * build-aux/bootstrap: Remove stray dot.
59808         Make sure build_aux settings are honored when linking
59809         gnulib_extra_files.
59810
59811 2007-06-19  Eric Blake  <ebb9@byu.net>
59812
59813         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59814         Allow compilation on cygwin.
59815
59816 2007-06-19  Jim Meyering  <jim@meyering.net>
59817
59818         xreadlink-with-size: Remove module.  No longer used.
59819         Ex-callers now use xreadlink or mreadlink-with-size.
59820         * modules/xreadlink-with-size: Remove module.
59821         * lib/xreadlink-with-size.c: Remove file.
59822         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59823         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59824         just before the function definition *is* accurate.
59825
59826         Eliminate one way canonicalize_filename_mode could exit.
59827         * lib/canonicalize.c (canonicalize_filename_mode):
59828         Use mreadlink_with_size, not xreadlink_with_size.
59829
59830 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59831
59832         Detect porting problems to FreeBSD/arm, which has time_t wider than
59833         long int.  Original problem reported for GNU diff by Xin Li in
59834         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59835         * modules/getdate (Depends-on): Add intprops, verify.
59836         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59837         is an integer type no wider than long int.
59838
59839 2007-06-18  Jim Meyering  <jim@meyering.net>
59840
59841         New module: mreadlink-with-size.
59842         * MODULES.html.sh: Add mreadlink-with-size.
59843         * modules/mreadlink-with-size: New module
59844         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59845         not xreadlink-with-size.
59846         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59847
59848 2007-06-16  Bruno Haible  <bruno@clisp.org>
59849
59850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59851         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59852         Reported by Gary V. Vaughan <gary@gnu.org>.
59853
59854 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59855
59856         Revamp lchown so that it lives in unistd.h where it belongs.
59857         * lib/lchown.h: Remove.
59858         * lib/dirchownmod.c: Don't include lib/lchown.h.
59859         * lib/fchownat.c: Likewise.
59860         * lib/openat.c: Likewise.
59861         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59862         does not follow symlinks.
59863         (EOPNOTSUPP): Define if not defined.
59864         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59865         is defined to 0.
59866         (lchown): New decl.
59867         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59868         Do not check for lchown decl.
59869         Set REPLACE_LCHOWN.
59870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59871         REPLACE_LCHOWN.
59872         * modules/chown: Make it clear it follows symlinks.
59873         * modules/lchown: Make it clear it doesn't follow symlinks.
59874         (Files): Remove lib/lchown.h
59875         (Depends-on): Add unistd.
59876         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59877         (Include): Include <unistd.h>, not "lchown.h".
59878         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59879         REPLACE_LCHOWN.
59880
59881 2007-06-15  Jim Meyering  <jim@meyering.net>
59882
59883         Change license (GPL to LGPL) of fsusage and dependents.
59884         * modules/fsusage (License): Change to LGPL.
59885         * modules/full-read (License): Likewise.
59886         * modules/full-write (License): Likewise.
59887         * modules/safe-read (License): Likewise.
59888         * modules/safe-write (License): Likewise.
59889
59890 2007-06-14  Ben Pfaff  <blp@gnu.org>
59891
59892         Missing part of allocsa -> malloca transition.
59893         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59894         gl_MALLOCA.
59895
59896 2007-06-12  Bruno Haible  <bruno@clisp.org>
59897
59898         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59899         to ia64, x86_64, i386.
59900         Reported by Eric Blake.
59901
59902 2007-06-12  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59905         cross-compiling to x86_64.
59906
59907 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59908
59909         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59910         glitch reported by Ralf Wildenhues in
59911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59912
59913         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59914         Vin Shelton.
59915
59916 2007-06-11  Bruno Haible  <bruno@clisp.org>
59917
59918         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59919         replacement string.
59920         Reported by Eric Blake.
59921
59922 2007-06-10  Bruno Haible  <bruno@clisp.org>
59923
59924         Prepare vasnprintf code for use with Unicode strings.
59925         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59926         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59927         TYPE_U32_STRING.
59928         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59929         a_u32_string variants.
59930         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59931         * lib/printf-args.c: Don't include config.h and the specification
59932         header if PRINTF_FETCHARGS is already defined.
59933         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59934         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59935         TYPE_U16_STRING, TYPE_U32_STRING.
59936         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59937         u16_directive, u16_directives, u32_directive, u32_directives): New
59938         types.
59939         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59940         New declarations.
59941         * lib/printf-parse.c: Don't include config.h and the specification
59942         header if PRINTF_PARSE is already defined. Eliminate the set of
59943         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59944         them now. Include c-ctype.h.
59945         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59946         directive and CHAR_T_ONLY_ASCII.
59947         * lib/vasnprintf.c: Don't include config.h and the specification header
59948         if VASNPRINTF is already defined.
59949         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59950         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59951         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59952         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59953         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59954         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59955         code accordingly.
59956         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59957         pad_ourselves also in this case, with the 'c' and 's' directives, and
59958         with a different notion of "width".
59959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59960
59961 2007-06-10  Bruno Haible  <bruno@clisp.org>
59962
59963         * modules/unistr/u32-mbsnlen: New file.
59964         * lib/unistr/u32-mbsnlen.c: New file.
59965
59966         * modules/unistr/u16-mbsnlen: New file.
59967         * lib/unistr/u16-mbsnlen.c: New file.
59968
59969         * modules/unistr/u8-mbsnlen: New file.
59970         * lib/unistr/u8-mbsnlen.c: New file.
59971
59972         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59973         declarations.
59974
59975 2007-06-10  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/string_.h (mbsnlen): New declaration.
59978         * lib/mbsnlen.c: New file.
59979         * m4/mbsnlen.m4: New file.
59980         * modules/mbsnlen: New file.
59981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59982         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59983         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59984
59985 2007-06-10  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59988
59989 2007-06-10  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59992         * lib/mbuiter.h: Likewise.
59993
59994 2007-06-10  Bruno Haible  <bruno@clisp.org>
59995
59996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59997         declaration.
59998
59999 2007-06-10  Karl Berry  <karl@gnu.org>
60000
60001         * config/srclist.txt: remove gettext entries, Bruno prefers
60002         to update individually.
60003
60004 2007-06-10  Bruno Haible  <bruno@clisp.org>
60005
60006         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60007         'maxlen'. Ensure only length + width bytes are allocated, not
60008         length + 1 + width.
60009
60010 2007-06-09  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60013         (CHAR_T): Remove macro.
60014         (VASNPRINTF): Update.
60015
60016 2007-06-09  Bruno Haible  <bruno@clisp.org>
60017
60018         * MODULES.html.sh (Unicode string functions): Add the new modules.
60019
60020         * modules/uniconv/u32-conv-to-enc: New file.
60021         * lib/uniconv/u32-conv-to-enc.c: New file.
60022         * modules/uniconv/u32-conv-to-enc-tests: New file.
60023         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60024
60025         * modules/uniconv/u16-conv-to-enc: New file.
60026         * lib/uniconv/u16-conv-to-enc.c: New file.
60027         * lib/uniconv/u-conv-to-enc.h: New file.
60028         * modules/uniconv/u16-conv-to-enc-tests: New file.
60029         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60030
60031         * modules/uniconv/u8-conv-to-enc: New file.
60032         * lib/uniconv/u8-conv-to-enc.c: New file.
60033         * modules/uniconv/u8-conv-to-enc-tests: New file.
60034         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60035
60036         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60037         u32_conv_to_encoding): New declarations.
60038
60039 2007-06-09  Bruno Haible  <bruno@clisp.org>
60040
60041         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60042
60043 2007-06-09  Bruno Haible  <bruno@clisp.org>
60044
60045         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60046         * modules/malloca: Renamed from modules/allocsa, updated.
60047         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60048         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60049         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60050         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60051         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60052         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60053         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60054         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60055         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60056         * modules/c-strcasestr (Depends-on): Update.
60057         * lib/c-strcasestr.c: Update.
60058         * modules/c-strstr (Depends-on): Update.
60059         * lib/c-strstr.c: Update.
60060         * modules/canonicalize-lgpl (Depends-on): Update.
60061         * lib/canonicalize-lgpl.c: Update.
60062         * modules/clean-temp (Depends-on): Update.
60063         * lib/clean-temp.c: Update.
60064         * modules/csharpcomp (Depends-on): Update.
60065         * lib/csharpcomp.c: Update.
60066         * modules/csharpexec (Depends-on): Update.
60067         * lib/csharpexec.c: Update.
60068         * modules/javacomp (Depends-on): Update.
60069         * lib/javacomp.c: Update.
60070         * modules/javaexec (Depends-on): Update.
60071         * lib/javaexec.c: Update.
60072         * modules/mbscasestr (Depends-on): Update.
60073         * lib/mbscasestr.c: Update.
60074         * modules/mbsstr (Depends-on): Update.
60075         * lib/mbsstr.c: Update.
60076         * modules/setenv (Depends-on): Update.
60077         * lib/setenv.c: Update.
60078         * modules/strcasestr (Depends-on): Update.
60079         * lib/strcasestr.c: Update.
60080         * modules/striconveha (Depends-on): Update.
60081         * lib/striconveha.c: Update.
60082         * modules/relocatable-prog-wrapper (Files): Update.
60083         * lib/relocwrapper.c: Update.
60084         * build-aux/install-reloc: Update.
60085         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60086
60087 2007-06-08  Bruno Haible  <bruno@clisp.org>
60088
60089         Port to uClibc.
60090         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60091         * lib/fpurge.c (fpurge): Likewise.
60092         * lib/freading.c (freading): Likewise.
60093         * lib/fseeko.c (rpl_fseeko): Likewise.
60094         * lib/fseterr.c (fseterr): Likewise.
60095         * lib/fwriting.c (fwriting): Likewise.
60096         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60097
60098 2007-06-08  Bruno Haible  <bruno@clisp.org>
60099
60100         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60101         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60102         * modules/gettext (Files): Add m4/intlmacosx.m4.
60103
60104 2007-06-07  Bruno Haible  <bruno@clisp.org>
60105
60106         * modules/localename-tests: New file.
60107         * tests/test-localename.c: New file.
60108
60109         New module 'localename'.
60110         * lib/localename.h: New file.
60111         * lib/localename.c: New file, from GNU gettext.
60112         * m4/localename.m4: New file.
60113         * modules/localename: New file.
60114
60115 2007-06-07  Bruno Haible  <bruno@clisp.org>
60116
60117         Work around the lack of <wchar.h> on some builds of uClibc.
60118         * doc/headers/wchar.texi: Update.
60119         * lib/wchar_.h: Include <wchar.h> only if it exists.
60120         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60121         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60122         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60123         doesn't exist.
60124         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60125         * modules/mbfile (Depends-on): Add wchar.
60126         * modules/mbiter (Depends-on): Likewise.
60127         * modules/mbuiter (Depends-on): Likewise.
60128         Reported by Simon Josefsson.
60129
60130 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60131
60132         Work around problem reported by Steven M. Schweda in
60133         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60134         Tru64 5.1B with the Compaq compiler environment installed declares
60135         an 'isblank' function but does not define it in the C library.
60136         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60137         * lib/regex_internal.h (isblank): Likewise.
60138         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60139         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60140
60141 2007-06-05  Bruno Haible  <bruno@clisp.org>
60142
60143         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60144         ia64.
60145         * modules/printf-safe: New file.
60146         * modules/fprintf-posix (Depends-on): Add printf-safe.
60147         * modules/printf-posix (Depends-on): Likewise.
60148         * modules/snprintf-posix (Depends-on): Likewise.
60149         * modules/sprintf-posix (Depends-on): Likewise.
60150         * modules/vasnprintf-posix (Depends-on): Likewise.
60151         * modules/vasprintf-posix (Depends-on): Likewise.
60152         * modules/vfprintf-posix (Depends-on): Likewise.
60153         * modules/vprintf-posix (Depends-on): Likewise.
60154         * modules/vsnprintf-posix (Depends-on): Likewise.
60155         * modules/vsprintf-posix (Depends-on): Likewise.
60156         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60157         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60158         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60159         "no" on i386, x86_64, ia64.
60160         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60161         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60162         on i386, x86_64, ia64.
60163         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60164         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60165         on i386, x86_64, ia64.
60166         * tests/test-vasnprintf-posix.c: Include float.h.
60167         (LDBL80_WORDS): New macro.
60168         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60169         on i386, x86_64, ia64.
60170         * tests/test-vasprintf-posix.c: Include float.h.
60171         (LDBL80_WORDS): New macro.
60172         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60173         on i386, x86_64, ia64.
60174         * tests/test-snprintf-posix.c: Include float.h.
60175         * tests/test-sprintf-posix.c: Likewise.
60176         * tests/test-vsnprintf-posix.c: Likewise.
60177         * tests/test-vsprintf-posix.c: Likewise.
60178
60179 2007-06-05  Bruno Haible  <bruno@clisp.org>
60180
60181         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60182         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60183         non-IEEE numbers on i386, x86_64, ia64.
60184         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60185         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60186         * tests/test-isnanl.h: Include float.h.
60187         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60188
60189 2007-06-05  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60192         also the %a / %A. Handle the %a / %A code before this extra handling.
60193
60194 2007-06-05  Bruno Haible  <bruno@clisp.org>
60195
60196         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60197         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60198
60199 2007-06-05  Bruno Haible  <bruno@clisp.org>
60200
60201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60202         typo in variable name.
60203
60204 2007-06-05  Eric Blake  <ebb9@byu.net>
60205
60206         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60207         Reported by Simon Josefsson.
60208
60209 2007-06-04  Bruno Haible  <bruno@clisp.org>
60210
60211         Avoid test failures on some PowerPC platforms.
60212         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60213         Define differently for PowerPC.
60214         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60215         Reported by Gary V. Vaughan <gary@gnu.org>.
60216
60217 2007-06-02  Bruno Haible  <bruno@clisp.org>
60218
60219         Fix test-stdint failure on FreeBSD/ia64.
60220         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60221         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60222         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60223         * doc/headers/stdint.texi: Update.
60224
60225 2007-06-01  Bruno Haible  <bruno@clisp.org>
60226
60227         * tests/test-binary-io.c (main): Pass a third argument to open().
60228         Reported by Gary V. Vaughan <gary@gnu.org>.
60229
60230 2007-06-01  Bruno Haible  <bruno@clisp.org>
60231
60232         * doc/functions/frexpl.texi: Update for mingw.
60233
60234 2007-06-01  Bruno Haible  <bruno@clisp.org>
60235
60236         * tests/test-lseek.c (main): Disable test of errno for invalid third
60237         argument.
60238         * doc/functions/lseek.texi: Update.
60239         Reported by Gary V. Vaughan <gary@gnu.org>.
60240
60241 2007-05-28  Bruno Haible  <bruno@clisp.org>
60242
60243         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60244
60245 2007-05-31  Eric Blake  <ebb9@byu.net>
60246
60247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60248         cross compiling.
60249
60250 2007-05-30  Eric Blake  <ebb9@byu.net>
60251         and Bruno Haible  <bruno@clisp.org>
60252
60253         Work around mingw test failures exposed by m4-1.4.9b.
60254         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60255         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60256         moment.
60257
60258 2007-05-30  Bruno Haible  <bruno@clisp.org>
60259
60260         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60261         assuming that they are closed. Needed on HP-UX 11.
60262
60263 2007-05-29  Bruno Haible  <bruno@clisp.org>
60264
60265         Fix a problem with #include_next.
60266         * lib/dirent_.h: Split the double-inclusion guard.
60267         * lib/fcntl_.h: Likewise.
60268         * lib/float_.h: Likewise.
60269         * lib/iconv_.h: Likewise.
60270         * lib/inttypes_.h: Likewise.
60271         * lib/locale_.h: Likewise.
60272         * lib/math_.h: Likewise.
60273         * lib/netinet_in_.h: Likewise.
60274         * lib/search_.h: Likewise.
60275         * lib/signal_.h: Likewise.
60276         * lib/stdint_.h: Likewise.
60277         * lib/stdio_.h: Likewise.
60278         * lib/stdlib_.h: Likewise.
60279         * lib/string_.h: Likewise.
60280         * lib/sys_select_.h: Likewise.
60281         * lib/sys_socket_.h: Likewise.
60282         * lib/sys_stat_.h: Likewise.
60283         * lib/sys_time_.h: Likewise.
60284         * lib/sysexits_.h: Likewise.
60285         * lib/time_.h: Likewise.
60286         * lib/unistd_.h: Likewise.
60287         * lib/wchar_.h: Likewise.
60288         * lib/wctype_.h: Likewise.
60289
60290 2007-05-29  Bruno Haible  <bruno@clisp.org>
60291
60292         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60293         for the moment.
60294
60295 2007-05-29  Bruno Haible  <bruno@clisp.org>
60296
60297         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60298         invocation.
60299         Reported by Eric Blake.
60300
60301 2007-05-29  Bruno Haible  <bruno@clisp.org>
60302
60303         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60304         compiling case.
60305
60306 2007-05-29  Eric Blake  <ebb9@byu.net>
60307             Bruno Haible  <bruno@clisp.org>
60308
60309         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60310         cross compiles.
60311
60312 2007-05-28  Eric Blake  <ebb9@byu.net>
60313
60314         * modules/closein-tests (test_closein_LDADD): Support test on
60315         cygwin with libtool.
60316
60317 2007-05-28  Bruno Haible  <bruno@clisp.org>
60318
60319         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60320         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60321         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60322         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60323         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60324         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60325         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60326         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60327         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60328
60329 2007-05-28  Eric Blake  <ebb9@byu.net>
60330
60331         Unconditionally include <config.h> in unit tests.
60332         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60333         * tests/test-allocsa.c, tests/test-arcfour.c,
60334         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60335         tests/test-array_list.c, tests/test-array_oset.c,
60336         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60337         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60338         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60339         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60340         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60341         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60342         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60343         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60344         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60345         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60346         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60347         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60348         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60349         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60350         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60351         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60352         test-md5.c, test-memmem.c, test-printf-posix.c,
60353         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60354         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60355         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60356         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60357         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60358         test-vasnprintf-posix2.c, test-vasnprintf.c,
60359         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60360         test-vfprintf-posix.c, test-vprintf-posix.c,
60361         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60362         test-xvasprintf.c: Likewise.
60363
60364 2007-05-28  Bruno Haible  <bruno@clisp.org>
60365
60366         * gnulib-tool (func_import): Remember the --with-tests command-line
60367         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60368         Reported by Eric Blake.
60369
60370 2007-05-28  Bruno Haible  <bruno@clisp.org>
60371
60372         * modules/ftell-tests: New file.
60373         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60374         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60375
60376         * lib/ftell.c: New file.
60377         * modules/ftell: New file.
60378         * m4/ftell.m4: New file.
60379         * doc/functions/ftell.texi: Update.
60380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60381         REPLACE_FTELL.
60382         * lib/stdio_.h (rpl_ftell): New declaration.
60383         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60384         REPLACE_FTELL.
60385
60386 2007-05-28  Eric Blake  <ebb9@byu.net>
60387
60388         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60389
60390 2007-05-28  Bruno Haible  <bruno@clisp.org>
60391
60392         * modules/fseek-tests: New file.
60393         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60394         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60395
60396         * lib/fseek.c: New file.
60397         * modules/fseek: New file.
60398         * m4/fseek.m4: New file.
60399         * doc/functions/fseek.texi: Update.
60400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60401         REPLACE_FSEEK.
60402         * lib/stdio_.h (rpl_fseek): New declaration.
60403         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60404         REPLACE_FSEEK.
60405
60406 2007-05-28  Bruno Haible  <bruno@clisp.org>
60407
60408         * lib/stdio_.h (fflush): More comments.
60409
60410 2007-05-28  Bruno Haible  <bruno@clisp.org>
60411
60412         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60413         runtime test.
60414
60415 2007-05-28  Eric Blake  <ebb9@byu.net>
60416
60417         Improve lseek module.
60418         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60419         * lib/unistd_.h (lseek): Scale back link warning message.
60420         * tests/test-lseek.c: Beef up test.
60421         * tests/test-lseek.sh: Exercise more facets of lseek.
60422         Reported by Bruno Haible.
60423
60424 2007-05-28  Bruno Haible  <bruno@clisp.org>
60425
60426         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60427         to define.
60428
60429 2007-05-27  Bruno Haible  <bruno@clisp.org>
60430
60431         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60432
60433 2007-05-27  Bruno Haible  <bruno@clisp.org>
60434
60435         * modules/openmp: New file.
60436         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60437         Noah Misch.
60438
60439 2007-05-26  Bruno Haible  <bruno@clisp.org>
60440
60441         * modules/chdir-long (Depends-on): Add fchdir.
60442         * modules/chdir-safer (Depends-on): Likewise.
60443         * modules/fts (Depends-on): Likewise.
60444         * modules/fts-lgpl (Depends-on): Likewise.
60445         * modules/openat (Depends-on): Likewise.
60446         * modules/savewd (Depends-on): Likewise.
60447
60448 2007-05-24  Eric Blake  <ebb9@byu.net>
60449
60450         Fix lseek on mingw.
60451         * modules/lseek: New module.
60452         * m4/lseek.m4: New file.
60453         * lib/lseek.c: New file.
60454         * modules/lseek-tests: New file.
60455         * tests/test-lseek.c: New file.
60456         * tests/test-lseek.sh: New file.
60457         * MODULES.html.sh: Document lseek module.
60458         * modules/fflush (Depends-on): Add lseek, fseeko.
60459         * modules/fseeko (Depends-on): Likewise.
60460         * modules/ftello (Depends-on): Likewise.
60461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60462         broken.
60463         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60464         broken.
60465         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60466         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60467         * lib/ftello.c (rpl_ftello): Likewise.
60468         * tests/test-fseeko.c (main): Test this.
60469         * tests/test-fseeko.sh: Likewise.
60470         * tests/test-ftello.c (main): Likewise.
60471         * tests/test-ftello.sh: Likewise.
60472         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60473         implies replacing fseek.
60474         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60475         HAVE_FTELLO.
60476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60477         * modules/unistd (Makefile.am): Likewise.
60478         * lib/unistd_.h (lseek): Declare a replacement.
60479         * doc/functions/lseek.texi (lseek): Document this fix.
60480         * doc/functions/fseek.texi (fseek): Likewise.
60481         * doc/functions/ftell.texi (ftell): Likewise.
60482
60483 2007-05-24  Bruno Haible  <bruno@clisp.org>
60484
60485         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60486         in the printed representation of a NaN.
60487         * tests/test-vasprintf-posix.c (test_function): Likewise.
60488         * tests/test-snprintf-posix.h (test_function): Likewise.
60489         * tests/test-sprintf-posix.h (test_function): Likewise.
60490         Reported by Eric Blake.
60491
60492 2007-05-23  Eric Blake  <ebb9@byu.net>
60493
60494         Fix fseeko/ftello on cygwin 1.5.24.
60495         * doc/functions/fseeko.texi (fseeko): Document the fix.
60496         * doc/functions/ftello.texi (ftello): Document the fix.
60497         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60498         * doc/functions/stdout.text (stdout): New file.
60499         * doc/functions/stderr.text (stderr): New file.
60500         * doc/gnulib.texi (Function Substitutes): Use new files.
60501         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60502         prior to 1.7.0.
60503         * tests/test-ftello.c (main): Likewise for ftello.
60504         * tests/test-fseeko.sh: New file.
60505         * tests/test-ftello.sh: New file.
60506         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60507         with seekable stdin.
60508         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60510         (gl_REPLACE_FSEEKO): New macro.
60511         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60512         * modules/fseeko (Files): Distribute fseeko.c.
60513         * modules/ftello (Files): Distribute ftello.c.
60514         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60515         mode.
60516         * lib/ftello.c (rpl_ftello): New file.
60517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60518         fseeko, ftello.
60519         (gl_STDIN_LARGE_OFFSET): New macro.
60520         * modules/stdio (Makefile.am): Perform the replacement.
60521         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60522
60523 2007-05-23  Bruno Haible  <bruno@clisp.org>
60524
60525         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60526         GNULIB_POSIXCHECK is defined.
60527
60528 2007-05-21  Bruno Haible  <bruno@clisp.org>
60529
60530         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60531         Check also the output for NaN arguments. When cross-compiling, guess
60532         no on IRIX.
60533         * lib/vasnprintf.c: Update comments.
60534         * tests/test-vasnprintf-posix.c (strisnan): New function.
60535         (test_function): Use it.
60536         * tests/test-vasprintf-posix.c (strisnan): New function.
60537         (test_function): Use it.
60538         * tests/test-snprintf-posix.h (strisnan): New function.
60539         (test_function): Use it.
60540         * tests/test-sprintf-posix.h (strisnan): New function.
60541         (test_function): Use it.
60542         Reported by Eric Blake.
60543
60544 2007-05-20  Bruno Haible  <bruno@clisp.org>
60545
60546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60547         numbers that fails on BeOS.
60548         * doc/functions/frexpl.texi: Update.
60549
60550 2007-05-20  Jim Meyering  <jim@meyering.net>
60551
60552         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60553         forced upon us by glibc-2.6.
60554
60555 2007-05-20  Bruno Haible  <bruno@clisp.org>
60556
60557         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60558         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60559         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60560         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60561         NEED_PRINTF_INFINITE.
60562         (is_infinitel): New function.
60563         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60565         gl_PREREQ_VASNPRINTF_INFINITE.
60566         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60568         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60569         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60570         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60571         gl_PREREQ_VASNPRINTF_INFINITE.
60572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60576         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60579         * doc/functions/fprintf.texi: Update.
60580         * doc/functions/printf.texi: Update.
60581         * doc/functions/snprintf.texi: Update.
60582         * doc/functions/sprintf.texi: Update.
60583         * doc/functions/vfprintf.texi: Update.
60584         * doc/functions/vprintf.texi: Update.
60585         * doc/functions/vsnprintf.texi: Update.
60586         * doc/functions/vsprintf.texi: Update.
60587
60588 2007-05-20  Bruno Haible  <bruno@clisp.org>
60589
60590         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60591         was not found in libc.
60592         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60593
60594 2007-05-20  Bruno Haible  <bruno@clisp.org>
60595
60596         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60597         printed as "-nan" instead of "nan".
60598         * tests/test-vasprintf-posix.c (test_function): Likewise.
60599         * tests/test-snprintf-posix.h (test_function): Likewise.
60600         * tests/test-sprintf-posix.h (test_function): Likewise.
60601         Needed for HP-UX 11.
60602
60603 2007-05-20  Jim Meyering  <jim@meyering.net>
60604
60605         Fix buggy test for the fchownat-deref bug.
60606         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60607         symlink required for the run-test.  Without it, this test would
60608         always declare that fchownat doesn't work, and client code would
60609         unnecessarily use the replacement function with fixed libc.
60610         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60611         Reported by Greg Schafer.
60612
60613 2007-05-19  Bruno Haible  <bruno@clisp.org>
60614
60615         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60616         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60617         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60618         Needed for IRIX 6.5 and Solaris 2.5.1.
60619
60620 2007-05-19  Bruno Haible  <bruno@clisp.org>
60621
60622         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60623         (test_function): Skip tests involving -0.0 on platforms where
60624         -0.0 = 0.0.
60625         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60626         (test_function): Skip tests involving -0.0 on platforms where
60627         -0.0 = 0.0.
60628         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60629         (test_function): Skip tests involving -0.0 on platforms where
60630         -0.0 = 0.0.
60631         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60632         (test_function): Skip tests involving -0.0 on platforms where
60633         -0.0 = 0.0.
60634         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60635         tests.
60636         * tests/test-printf-posix.h (test_function): Likewise.
60637         * tests/test-printf-posix.output: Remove all -0.0 related results.
60638         Needed for IRIX 6.5.
60639
60640 2007-05-19  Bruno Haible  <bruno@clisp.org>
60641
60642         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60643         printed as "nan0x7fffffff" instead of "nan".
60644         * tests/test-vasprintf-posix.c (test_function): Likewise.
60645         * tests/test-snprintf-posix.h (test_function): Likewise.
60646         * tests/test-sprintf-posix.h (test_function): Likewise.
60647         * tests/test-fprintf-posix.h (NaN): Remove macro.
60648         (test_function): Remove all NaN related tests.
60649         * tests/test-printf-posix.h (NaN): Remove macro.
60650         (test_function): Remove all NaN related tests.
60651         * tests/test-printf-posix.output: Remove all NaN related results.
60652         Needed for IRIX 6.5.
60653
60654 2007-05-19  Bruno Haible  <bruno@clisp.org>
60655
60656         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60657         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60658
60659 2007-05-19  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/float_.h: New file.
60662         * m4/float_h.m4: New file.
60663         * modules/float: New file.
60664         * modules/isnanl (Dependencies): Add float.
60665         * modules/isnanl-nolibm (Dependencies): Likewise.
60666         * modules/mathl (Dependencies): Likewise.
60667         * modules/printf-frexpl (Dependencies): Likewise.
60668         * modules/signbit (Dependencies): Likewise.
60669         * modules/vasnprintf (Dependencies): Likewise.
60670         * doc/headers/float.texi: Update.
60671
60672 2007-05-19  Jim Meyering  <jim@meyering.net>
60673
60674         * lib/utimens.c (gl_futimens): Rename from futimens,
60675         now that glibc-2.6 declares futimens.
60676         * lib/utimens.h: Likewise.
60677
60678 2007-05-19  Bruno Haible  <bruno@clisp.org>
60679
60680         Avoid test failures on mingw.
60681         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60682         * tests/test-printf-posix.sh: Likewise.
60683         * tests/test-vfprintf-posix.sh: Likewise.
60684         * tests/test-vprintf-posix.sh: Likewise.
60685
60686 2007-05-19  Bruno Haible  <bruno@clisp.org>
60687
60688         Fix *printf result for NaN, Inf, -0.0 on mingw.
60689         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60690         * lib/vasnprintf.c: Include math.h and isnan.h.
60691         (is_infinite_or_zero): New function.
60692         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60693         values in the %f, %F, %e, %E, %g, %G directives.
60694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60695         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60696         gl_PRINTF_INFINITE and test its result. Invoke
60697         gl_PREREQ_VASNPRINTF_INFINITE.
60698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60705         * doc/functions/fprintf.texi: Update.
60706         * doc/functions/printf.texi: Update.
60707         * doc/functions/snprintf.texi: Update.
60708         * doc/functions/sprintf.texi: Update.
60709         * doc/functions/vfprintf.texi: Update.
60710         * doc/functions/vprintf.texi: Update.
60711         * doc/functions/vsnprintf.texi: Update.
60712         * doc/functions/vsprintf.texi: Update.
60713
60714 2007-05-19  Bruno Haible  <bruno@clisp.org>
60715
60716         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60717         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60718         Instead of multiplying with 10^k, set extra_zeroes to k.
60719         (scale10_round_long_double): Remove function.
60720
60721 2007-05-18  Bruno Haible  <bruno@clisp.org>
60722
60723         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60724         introduced on 2007-05-06.
60725
60726 2007-05-18  Bruno Haible  <bruno@clisp.org>
60727
60728         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60729         %g directives.
60730         * tests/test-vasprintf-posix.c (test_function): Likewise.
60731         * tests/test-snprintf-posix.h (test_function): Likewise.
60732         * tests/test-sprintf-posix.h (test_function): Likewise.
60733
60734 2007-05-18  Bruno Haible  <bruno@clisp.org>
60735
60736         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60737         (strmatch): New function.
60738         (test_function): Test the %f directive on numbers of various exponents.
60739         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60740         (strmatch): New function.
60741         (test_function): Test the %f directive on numbers of various exponents.
60742         * tests/test-snprintf-posix.h (strmatch): New function.
60743         (test_function): Test the %f directive on numbers of various exponents.
60744         * tests/test-sprintf-posix.h (strmatch): New function.
60745         (test_function): Test the %f directive on numbers of various exponents.
60746         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60747         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60748         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60749         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60750
60751 2007-05-18  Bruno Haible  <bruno@clisp.org>
60752
60753         Add support for 'long double' number output.
60754         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60755         * lib/vasnprintf.c: Include math.h and float+.h.
60756         (mp_limb_t): New type.
60757         (GMP_LIMB_BITS): New macro.
60758         (mp_twolimb_t): New type.
60759         (GMP_TWOLIMB_BITS): New macro.
60760         (mpn_t): New type.
60761         (multiply, divide, convert_to_decimal, decode_long_double,
60762         scale10_round_long_double, scale10_round_decimal_long_double,
60763         floorlog10l): New functions.
60764         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60765         for the %f, %F, %e, %E, %g, %G directives.
60766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60768         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60769         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60770         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60771         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60777         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60778         * modules/snprintf-posix (Depends-on): Likewise.
60779         * modules/sprintf-posix (Depends-on): Likewise.
60780         * modules/vasnprintf-posix (Depends-on): Likewise.
60781         * modules/vasprintf-posix (Depends-on): Likewise.
60782         * modules/vfprintf-posix (Depends-on): Likewise.
60783         * modules/vsnprintf-posix (Depends-on): Likewise.
60784         * modules/vsprintf-posix (Depends-on): Likewise.
60785         * modules/vasnprintf (Files): Add lib/float+.h.
60786         * doc/functions/fprintf.texi: Update.
60787         * doc/functions/printf.texi: Update.
60788         * doc/functions/snprintf.texi: Update.
60789         * doc/functions/sprintf.texi: Update.
60790         * doc/functions/vfprintf.texi: Update.
60791         * doc/functions/vprintf.texi: Update.
60792         * doc/functions/vsnprintf.texi: Update.
60793         * doc/functions/vsprintf.texi: Update.
60794
60795 2007-05-18  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60798
60799 2007-05-18  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60802         for printing 64-bit integers. Needed for mingw.
60803
60804 2007-05-18  Bruno Haible  <bruno@clisp.org>
60805
60806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60807         gl_FUNC_FREXPL_WORKS.
60808         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60809
60810 2007-05-18  Bruno Haible  <bruno@clisp.org>
60811
60812         * modules/frexpl-nolibm-tests: New file.
60813
60814         * modules/frexpl-nolibm: New file.
60815         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60816
60817 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60818
60819         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60820         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60821         GCC 4.2, which otherwise issues a lot of warnings.
60822         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60823         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60824         Likewise.
60825         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60826         * modules/iconv_open (iconv.h): Likewise.
60827         * modules/locale (locale.h): Likewise.
60828         * modules/netinet_in (netinet/in.h): Likewise.
60829         * modules/sys_select (sys_select.h): Likewise.
60830         * modules/sys_socket (sys/socket.h): Likewise.
60831         * modules/sys_stat (sys/stat.h): Likewise.
60832         * modules/sysexits (sysexits.h): Likewise.
60833         * modules/unistd (unistd.h): Likewise.
60834
60835 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60836
60837         * modules/closein-tests (Makefile.am): Distribute
60838         `test-closein.sh'.
60839
60840 2007-05-17  Bruno Haible  <bruno@clisp.org>
60841
60842         * tests/test-printf-posix.output: Renamed from
60843         tests/test-fprintf-posix.out.
60844         * modules/fprintf-posix-tests: Update.
60845         * modules/printf-posix-tests: Update.
60846         * modules/vfprintf-posix-tests: Update.
60847         * modules/vprintf-posix-tests: Update.
60848         * tests/test-fprintf-posix.sh: Update.
60849         * tests/test-printf-posix.sh: Update.
60850         * tests/test-vfprintf-posix.sh: Update.
60851         * tests/test-vprintf-posix.sh: Update.
60852         Reported by Ralf Wildenhues.
60853
60854 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60857         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60858         GCC 4.2, which otherwise issues a lot of warnings.
60859         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60860         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60861         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60862         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60863         it should no longer be needed.
60864         * lib/string_.h: Likewise.
60865         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60866         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60867         * modules/inttypes (inttypes.h): Likewise.
60868         * modules/math (math.h): Likewise.
60869         * modules/search (search.h): Likewise.
60870         * modules/signal (signal.h): Likewise.
60871         * modules/stdint (stdint.h): Likewise.
60872         * modules/stdio (stdio.h): Likewise.
60873         * modules/stdlib (stdlib.h): Likewise.
60874         * modules/string (string.h): Likewise.
60875         * modules/sys_time (sys/time.h): Likewise.
60876         * modules/time (time.h): Likewise.
60877         * modules/wchar (wchar.h): Likewise.
60878         * modules/wctype (wtype.h): Likewise.
60879
60880 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60881
60882         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60883
60884 2007-05-13  Bruno Haible  <bruno@clisp.org>
60885
60886         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60887         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60888         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60889         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60890         (gl_PREREQ_STRTOK_R): Don't require it here.
60891
60892 2007-05-13  Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60895         when used in C++ mode.
60896
60897 2007-05-12  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/linebuffer.h: Tweak doc.
60900         * lib/linebuffer.c: Likewise.
60901
60902 2007-05-12  James Youngman  <jay@gnu.org>
60903
60904         * lib/linebuffer.c (readlinebuffer_delim): New function,
60905         like readlinebuffer, but use a caller-specified delimiter.
60906         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60907         as the delimiter.
60908         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60909
60910 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60911
60912         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60913         * modules/openat (Files): Remove openat-die.c.
60914         (Depends-on): Add openat-die.
60915         * modules/openat-die: New module.
60916
60917 2007-05-06  Bruno Haible  <bruno@clisp.org>
60918
60919         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60920         Update with info about Cygwin.
60921         * doc/functions/fprintf.texi: Update.
60922         * doc/functions/printf.texi: Update.
60923         * doc/functions/snprintf.texi: Update.
60924         * doc/functions/sprintf.texi: Update.
60925         * doc/functions/vfprintf.texi: Update.
60926         * doc/functions/vprintf.texi: Update.
60927         * doc/functions/vsnprintf.texi: Update.
60928         * doc/functions/vsprintf.texi: Update.
60929         Reported by Eric Blake.
60930
60931 2007-05-06  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60934         padding ourselves for the floating-point directives.
60935         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60938         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60939         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60940         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60941         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60942         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60943         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60944         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60945         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60946         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60947         * tests/test-snprintf-posix.h (test_function): Also check the width
60948         and some flags in the %f directive.
60949         * tests/test-sprintf-posix.h (test_function): Likewise.
60950         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60951         * tests/test-vasprintf-posix.c (test_function): Likewise.
60952         * doc/functions/fprintf.texi: Update.
60953         * doc/functions/printf.texi: Update.
60954         * doc/functions/snprintf.texi: Update.
60955         * doc/functions/sprintf.texi: Update.
60956         * doc/functions/vfprintf.texi: Update.
60957         * doc/functions/vprintf.texi: Update.
60958         * doc/functions/vsnprintf.texi: Update.
60959         * doc/functions/vsprintf.texi: Update.
60960
60961 2007-05-06  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60964         pass the ' flag character to sprintf or snprintf.
60965         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60968         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60969         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60972         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60974         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60975         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60976         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60977         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60978         flag.
60979         * tests/test-sprintf-posix.h (test_function): Likewise.
60980         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60981         * tests/test-vasprintf-posix.c (test_function): Likewise.
60982         * doc/functions/fprintf.texi: Update.
60983         * doc/functions/printf.texi: Update.
60984         * doc/functions/snprintf.texi: Update.
60985         * doc/functions/sprintf.texi: Update.
60986         * doc/functions/vfprintf.texi: Update.
60987         * doc/functions/vprintf.texi: Update.
60988         * doc/functions/vsnprintf.texi: Update.
60989         * doc/functions/vsprintf.texi: Update.
60990
60991 2007-05-01  Bruno Haible  <bruno@clisp.org>
60992
60993         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60994
60995 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60996
60997         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60998         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60999
61000 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61001
61002         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61003         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61005
61006 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61007
61008         * lib/argp-help.c (struct hol_entry): New member `ord'.
61009         (HOL_ENTRY_PTRCMP): Use ord for comparison
61010         (hol_sort): Initialize ord.
61011
61012 2007-05-01  Bruno Haible  <bruno@clisp.org>
61013
61014         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61015         Reported by Eric Blake.
61016         * doc/gnulib.texi (Function Substitutes): Update.
61017
61018 2007-05-01  Bruno Haible  <bruno@clisp.org>
61019
61020         * doc/functions.texi: Remove file, now redundant through
61021         doc/functions/*.texi.
61022
61023 2007-05-01  Bruno Haible  <bruno@clisp.org>
61024
61025         * modules/argp (Depends-on): Add sleep.
61026
61027 2007-05-01  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/sleep-tests: New file.
61030         * tests/test-sleep.c: New file.
61031
61032         * modules/sleep: New file.
61033         * lib/sleep.c: New file.
61034         * m4/sleep.m4: New file.
61035         * lib/unistd_.h (sleep): New declaration.
61036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61037         HAVE_SLEEP.
61038         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61039         * doc/functions/sleep.texi: Document the sleep module.
61040
61041 2007-05-01  Bruno Haible  <bruno@clisp.org>
61042
61043         * lib/sigprocmask.h: Remove file.
61044         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61045         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61046         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61047         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61048         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61049         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61050         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61051         HAVE_SIGSET_T as a shell variable.
61052         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61053         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61054         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61055         (Depends-on): Add signal. Remove verify.
61056         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61057         (Include): Mention <signal.h> instead of sigprocmask.h.
61058         * NEWS: Mention the change.
61059         * lib/fatal-signal.c: Don't include sigprocmask.h.
61060
61061 2007-05-01  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/signal: New file.
61064         * lib/signal_.h: New file.
61065         * m4/signal_h.m4: New file.
61066
61067 2007-05-01  Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61070         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61071         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61072         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61073
61074 2007-05-01  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61077         configure time.
61078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61079         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61080         * modules/sys_stat (Makefile.am): Substitute their values into
61081         sys/stat.h.
61082
61083 2007-05-01  Bruno Haible  <bruno@clisp.org>
61084
61085         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61086         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61087         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61088
61089 2007-05-01  Bruno Haible  <bruno@clisp.org>
61090
61091         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61092         'assert' module here.
61093
61094 2007-05-01  Bruno Haible  <bruno@clisp.org>
61095
61096         * doc/functions/*.texi: New files.
61097         * doc/functions/google-ranking.txt: New file.
61098         * doc/gnulib.texi (Function Substitutes): New chapter.
61099         (ctime, inet_ntoa): Remove sections.
61100         * doc/ctime.texi: Remove file.
61101         * doc/inet_ntoa.texi: Remove file.
61102         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61103         dependencies.
61104         (%.info): New rule, specifying a --reference-limit.
61105
61106 2007-05-01  Bruno Haible  <bruno@clisp.org>
61107
61108         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61109
61110 2007-05-01  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61113         the portability of 'mkdir' to mingw systems.
61114
61115 2007-05-01  Bruno Haible  <bruno@clisp.org>
61116
61117         * doc/headers/google-ranking.txt: New file.
61118
61119 2007-04-30  Eric Blake  <ebb9@byu.net>
61120
61121         Prefer fseeko to fseek.
61122         * modules/getpass (Depends-on): Add fseeko.
61123         * lib/getpass.c (getpass): Use fseeko, not fseek.
61124
61125 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61126
61127         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61128         assumes the sorting is stable, while most qsort implementations
61129         are not.  Use argument addresses to ensure they never compare as
61130         equal.
61131
61132         * tests/test-argp-2.sh (usage-indent test): Fix output
61133         (func_compare): Restore diff options
61134         * tests/test-argp.c: Restore #include "progname.h"
61135
61136 2007-04-29  Bruno Haible  <bruno@clisp.org>
61137
61138         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61140         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61142         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61143         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61144         (TESTS, check_PROGRAMS): Add test-snprintf.
61145         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61146         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61147         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61148         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61149         assertions that fail on HP-UX, OSF/1, or IRIX.
61150         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61151
61152 2007-04-29  Bruno Haible  <bruno@clisp.org>
61153
61154         * MODULES.html.sh (posix_functions): Remove 'contents'.
61155
61156 2007-04-29  Karl Berry  <karl@gnu.org>
61157
61158         * config/srclist.txt (gendocs_template_min): new entry.
61159
61160 2007-04-29  Bruno Haible  <bruno@clisp.org>
61161
61162         Work around fpurge bug on BSD systems.
61163         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61164         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61165         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61166         fpurge to rpl_fpurge if the system already has this function.
61167         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61168         the case where the system already has this function. Correct invariants
61169         on BSD systems.
61170         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61171         BSD systems.
61172
61173 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61174
61175         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61176         proposed by Sven Verdoolaege.
61177
61178         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61179         options.
61180         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61181         (usage and help tests): Update
61182
61183 2007-04-29  Bruno Haible  <bruno@clisp.org>
61184
61185         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61186         Print more information in case of failure. Disable a test on BeOS.
61187
61188 2007-04-29  Bruno Haible  <bruno@clisp.org>
61189
61190         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61191         This helps debugging on systems on which no gdb is available.
61192
61193 2007-04-29  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/freading.h: Improve comments.
61196         * lib/fwriting.h: Likewise.
61197         * tests/test-freading.c (main): Don't check freading immediately after
61198         repositioning. Needed for glibc.
61199
61200 2007-04-29  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/freading.c (freading): Trivial simplification.
61203
61204 2007-04-28  Bruno Haible  <bruno@clisp.org>
61205
61206         * tests/test-fwriting.c (main): Also test the interaction between
61207         fflush and fwriting.
61208         * modules/fwriting-tests (Depends-on): Add fflush.
61209
61210         * tests/test-freading.c (main): Also test the interaction between
61211         fflush and freading.
61212         * modules/freading-tests (Depends-on): Add fflush.
61213
61214 2007-04-28  Bruno Haible  <bruno@clisp.org>
61215
61216         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61217         fseeko and ftello.
61218         Suggested by Eric Blake.
61219
61220 2007-04-28  Jim Meyering  <jim@meyering.net>
61221
61222         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61223         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61224         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61225
61226 2007-04-27  Eric Blake  <ebb9@byu.net>
61227
61228         * doc/headers/assert.texi (assert.h): Document assert module use.
61229
61230 2007-04-27  Bruno Haible  <bruno@clisp.org>
61231
61232         * doc/headers/*.texi: New files.
61233         * doc/gnulib.texi (Header File Substitutes): New chapter.
61234         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61235         dependencies.
61236         (standards.info ,standards.html, standards.dvi): Update dependencies.
61237         (mostlyclean, clean): New targets.
61238
61239 2007-04-27  Bruno Haible  <bruno@clisp.org>
61240
61241         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61242         * modules/sysexits (Files, Makefile.am): Update.
61243
61244         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61245         * modules/sys_socket (Files, Makefile.am): Update.
61246
61247         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61248         * modules/sys_stat (Files, Makefile.am): Update.
61249
61250 2007-04-27  Eric Blake  <ebb9@byu.net>
61251
61252         * lib/freading.h: Improve comments.
61253         * lib/fwriting.h: Likewise.
61254         * lib/fflush.c: Likewise.
61255
61256         Fix closein for mingw.
61257         * modules/closein-tests: Add tests for closein.
61258         * tests/test-closein.c: New file.
61259         * tests/test-closein.sh: Likewise.
61260         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61261         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61262
61263 2007-04-27  Bruno Haible  <bruno@clisp.org>
61264
61265         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61266         version is < 6.
61267         * lib/math_.h [__DECC]: Likewise.
61268         * lib/stdio_.h [__DECC]: Likewise.
61269         * lib/stdlib_.h [__DECC]: Likewise.
61270         * lib/string_.h [__DECC]: Likewise.
61271         * lib/time_.h [__DECC]: Likewise.
61272         * lib/wchar_.h [__DECC]: Likewise.
61273         * lib/wctype_.h [__DECC]: Likewise.
61274
61275 2007-04-27  Bruno Haible  <bruno@clisp.org>
61276
61277         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61278
61279 2007-04-27  Bruno Haible  <bruno@clisp.org>
61280
61281         * lib/fflush.c: Add comments.
61282         * modules/fpurge-tests (Depends-on): Add fflush.
61283         * modules/freadable-tests (Depends-on): Likewise.
61284         * modules/fwritable-tests (Depends-on): Likewise.
61285
61286 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61287
61288         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61289         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61290         Report by Bruno Haible <bruno@clisp.org>.
61291
61292 2007-04-26  Eric Blake  <ebb9@byu.net>
61293
61294         Fix fflush on mingw.
61295         * modules/fflush (Depends-on): Add freading.
61296         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61297         but unread data.
61298
61299 2007-04-26  Eric Blake  <ebb9@byu.net>
61300         and Bruno Haible  <bruno@clisp.org>
61301
61302         Implement freading and fwriting.
61303         * lib/freading.c: New file.
61304         * lib/freading.h: Likewise.
61305         * m4/freading.m4: Likewise.
61306         * modules/freading: Likewise.
61307         * modules/freading-tests: Likewise.
61308         * tests/test-freading.c: Likewise.
61309         * lib/fwriting.c: New file.
61310         * lib/fwriting.h: Likewise.
61311         * m4/fwriting.m4: Likewise.
61312         * modules/fwriting: Likewise.
61313         * modules/fwriting-tests: Likewise.
61314         * tests/test-fwriting.c: Likewise.
61315         * MODULES.html.sh (File stream based Input/Output): Mention them.
61316
61317 2007-04-26  Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61320         'long' when we assume it.
61321         Suggested by Eric Blake.
61322
61323 2007-04-26  Bruno Haible  <bruno@clisp.org>
61324
61325         Ensure fseeko, ftello are declared on glibc systems.
61326         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61327         * modules/fseeko (configure.ac-early): Likewise.
61328         * modules/ftello (configure.ac-early): Likewise.
61329         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61330         AC_FUNC_FSEEKO for this.
61331         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61332         (gl_CHECK_FSEEKO): Remove macro.
61333
61334 2007-04-26  Bruno Haible  <bruno@clisp.org>
61335
61336         * tests/test-fflush.c (main): Also check the ftell result after
61337         fflush and fseek/fseeko.
61338         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61339         file descriptor position cache in the stream.
61340         * lib/fseeko.c (rpl_fseeko): Likewise.
61341
61342 2007-04-26  Bruno Haible  <bruno@clisp.org>
61343
61344         * modules/fflush-tests (Depends-on): Add fseeko.
61345
61346 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61347             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61348
61349         * lib/argz_.h: ensure error_t definition is obtained in same
61350         mechanism system argz.h would have.
61351         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61352         argz facilities are known bad.  Err on the side of caution if
61353         cross-compiling.
61354
61355 2007-04-25  Eric Blake  <ebb9@byu.net>
61356
61357         * lib/fpurge.c (includes): Use stdlib.h for free.
61358         * tests/test-fflush.c (main): Also test fflush-fseeko.
61359
61360 2007-04-25  Bruno Haible  <bruno@clisp.org>
61361
61362         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61363         * lib/fseeko.c: New file.
61364         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61365         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61366         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61367         gl_FUNC_FSEEKO.
61368         (gl_FUNC_FSEEKO): Invoke it.
61369         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61370         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61371         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61372
61373 2007-04-25  Bruno Haible  <bruno@clisp.org>
61374
61375         * modules/fflush (Depends-on): Add ftello.
61376
61377 2007-04-25  Bruno Haible  <bruno@clisp.org>
61378
61379         * modules/ftello-tests: New file.
61380         * tests/test-ftello.c: New file.
61381
61382         * modules/ftello: New file.
61383         * m4/ftello.m4: New file.
61384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61385         HAVE_FTELLO.
61386         * lib/stdio_.h (ftello): New declaration.
61387         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61388         HAVE_FTELLO.
61389
61390 2007-04-25  Bruno Haible  <bruno@clisp.org>
61391
61392         * modules/fseeko-tests: New file.
61393         * tests/test-fseeko.c: New file.
61394
61395         * modules/fseeko: New file.
61396         * m4/fseeko.m4: New file.
61397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61398         HAVE_FSEEKO.
61399         * lib/stdio_.h (fseeko): New declaration.
61400         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61401         HAVE_FSEEKO.
61402
61403 2007-04-25  Bruno Haible  <bruno@clisp.org>
61404
61405         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61406
61407 2007-04-25  Bruno Haible  <bruno@clisp.org>
61408
61409         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61410         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61411         * tests/test-unistd.c: Likewise.
61412         * tests/test-fcntl.c: Likewise.
61413
61414 2007-04-23  Eric Blake  <ebb9@byu.net>
61415
61416         * lib/fflush.c: Fix missing include.
61417         Reported by Bruno Haible.
61418
61419 2007-04-23  Bruno Haible  <bruno@clisp.org>
61420
61421         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61422         Reported by Eric Blake.
61423
61424 2007-04-23  Bruno Haible  <bruno@clisp.org>
61425
61426         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61427
61428 2007-04-23  Bruno Haible  <bruno@clisp.org>
61429
61430         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61431
61432 2007-04-23  Bruno Haible  <bruno@clisp.org>
61433
61434         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61435         Needed on HP-UX 11.
61436
61437 2007-04-16  Eric Blake  <ebb9@byu.net>
61438
61439         Make fflush rely on fpurge.
61440         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61441         open coding all variants.
61442         * modules/fflush (Depends-on): Add fpurge and unistd.
61443         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61444         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61445
61446         Fix --with-tests compilation on cygwin.
61447         * modules/argmatch-tests (Makefile.am): List gnulib library first
61448         in LDADD.
61449         * modules/argp-tests (Makefile.am): Likewise.
61450         * modules/array-list-tests (Makefile.am): Likewise.
61451         * modules/array-oset-tests (Makefile.am): Likewise.
61452         * modules/avltree-list-tests (Makefile.am): Likewise.
61453         * modules/avltree-oset-tests (Makefile.am): Likewise.
61454         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61455         * modules/carray-list-tests (Makefile.am): Likewise.
61456         * modules/dirname-tests (Makefile.am): Likewise.
61457         * modules/frexp-tests (Makefile.am): Likewise.
61458         * modules/isnanl-tests (Makefile.am): Likewise.
61459         * modules/linked-list-tests (Makefile.am): Likewise.
61460         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61461         * modules/lock-tests (Makefile.am): Likewise.
61462         * modules/rbtree-list-tests (Makefile.am): Likewise.
61463         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61464         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61465         * modules/tls-tests (Makefile.am): Likewise.
61466         * modules/tsearch-tests (Makefile.am): Likewise.
61467         * modules/xvasprintf-tests (Makefile.am): Likewise.
61468
61469         Fix fpurge for cygwin.
61470         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61471         value.
61472         * modules/fpurge-tests (Depends-on): Clean up trash.
61473
61474 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61475
61476         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61477
61478         * m4/autobuild.m4: Re-indent.
61479
61480 2007-04-13  Bruno Haible  <bruno@clisp.org>
61481
61482         * modules/fpurge-tests: New file.
61483         * tests/test-fpurge.c: New file.
61484
61485         * modules/fpurge: New file.
61486         * lib/fpurge.h: New file.
61487         * lib/fpurge.c: New file.
61488         * m4/fpurge.m4: New file.
61489
61490 2007-04-13  Bruno Haible  <bruno@clisp.org>
61491
61492         * modules/fbufmode-tests: New file.
61493         * tests/test-fbufmode.c: New file.
61494
61495         * modules/fbufmode: New file.
61496         * lib/fbufmode.h: New file.
61497         * lib/fbufmode.c: New file.
61498         * m4/fbufmode.m4: New file.
61499
61500 2007-04-13  Bruno Haible  <bruno@clisp.org>
61501
61502         * modules/fwritable-tests: New file.
61503         * tests/test-fwritable.c: New file.
61504
61505         * modules/fwritable: New file.
61506         * lib/fwritable.h: New file.
61507         * lib/fwritable.c: New file.
61508         * m4/fwritable.m4: New file.
61509
61510 2007-04-13  Bruno Haible  <bruno@clisp.org>
61511
61512         * modules/freadable-tests: New file.
61513         * tests/test-freadable.c: New file.
61514
61515         * modules/freadable: New file.
61516         * lib/freadable.h: New file.
61517         * lib/freadable.c: New file.
61518         * m4/freadable.m4: New file.
61519
61520 2007-04-13  Bruno Haible  <bruno@clisp.org>
61521
61522         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61523         MOSTLYCLEANFILES.
61524
61525 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61526
61527         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61528         gzip bootstrap.conf to avoid dragging in i18n machinery.
61529         (gnulib_tool_option): Use it.
61530
61531 2007-04-13  Bruno Haible  <bruno@clisp.org>
61532
61533         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61534         %F directives.
61535         * tests/test-vasprintf-posix.c (test_function): Likewise.
61536         * tests/test-snprintf-posix.h (test_function): Likewise.
61537         * tests/test-sprintf-posix.h (test_function): Likewise.
61538         * tests/test-fprintf-posix.h (test_function): Likewise.
61539         * tests/test-printf-posix.h (test_function): Likewise.
61540         * tests/test-fprintf-posix.out: Likewise.
61541
61542 2007-04-13  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61545         * modules/tls-tests (configure.ac): Likewise.
61546         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61547
61548 2007-04-13  Bruno Haible  <bruno@clisp.org>
61549
61550         * lib/tls.c (glthread_tls_get): Fix return type.
61551         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61552
61553 2007-04-12  Eric Blake  <ebb9@byu.net>
61554
61555         * modules/gettime (Depends-on): Remove gettime.
61556         Reported by Dmitry V. Levin.
61557
61558 2007-04-12  Bruno Haible  <bruno@clisp.org>
61559
61560         * modules/fflush (Include): Mention <stdio.h>.
61561         * modules/strtoimax (Include): Mention <inttypes.h>.
61562         * modules/strtoumax (Include): Likewise.
61563
61564 2007-04-12  Eric Blake  <ebb9@byu.net>
61565
61566         * .cvsignore: New file.
61567         * .gitignore: Likewise.
61568
61569 2007-04-12  Bruno Haible  <bruno@clisp.org>
61570
61571         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61572         not before, since $(LDADD) often contains libgnu.a.
61573         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61574         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61575         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61576         Needed on Cygwin.
61577
61578 2007-04-12  Eric Blake  <ebb9@byu.net>
61579
61580         Work around glibc's failure to flush stdin on fclose.
61581         * lib/closein.c (close_stdin): Flush stdin before closing.
61582
61583         Work around glibc's failure to reset seekable stdin on exit.
61584         * modules/closein: New module.
61585         * lib/closein.c: New file.
61586         * lib/closein.h: Likewise.
61587         * m4/closein.m4: Likewise.
61588         * MODULES.html.sh (File stream based Input/Output): Document it.
61589
61590 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61591
61592         * gnulib-tool: Rename generated 'autobuild' script to
61593         'do-autobuild' in --create-megatestdir output.
61594
61595         * doc/gnulib.texi (Build robot for gnulib): Fix.
61596
61597 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61598
61599         * modules/sysexits (Depends-on): Add absolute-header.
61600
61601 2007-04-12  Eric Blake  <ebb9@byu.net>
61602
61603         No need to preserve errno on success.
61604         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61605         Reported by Bruno Haible.
61606
61607 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61608
61609         * MODULES.html.sh (Support for maintaining and releasing
61610         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61611
61612 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61613
61614         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61615
61616 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61617
61618         * modules/autobuild: New module.
61619
61620         * m4/autobuild.m4: New file.
61621
61622 2007-04-11  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61625         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61629         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61630         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61632         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61633         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61650         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61651         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61652         Reported by Eric Blake.
61653
61654 2007-04-11  Bruno Haible  <bruno@clisp.org>
61655
61656         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61657
61658 2007-04-10  Bruno Haible  <bruno@clisp.org>
61659
61660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61661         for NaN and Infinity. Needed on FreeBSD 6.1.
61662         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61663         regarding results for "%010a" of Infinity and NaN.
61664         * tests/test-vasprintf-posix.c (test_function): Likewise.
61665         * tests/test-snprintf-posix.h (test_function): Likewise.
61666         * tests/test-sprintf-posix.h (test_function): Likewise.
61667         * tests/test-fprintf-posix.h (test_function): Likewise.
61668         * tests/test-printf-posix.h (test_function): Likewise.
61669         * tests/test-fprintf-posix.out: Likewise.
61670
61671 2007-04-10  Bruno Haible  <bruno@clisp.org>
61672
61673         * modules/locale-tests: New file.
61674         * tests/test-locale.c: New file.
61675
61676         * modules/locale: New file.
61677         * lib/locale_.h: New file.
61678         * m4/locale_h.m4: New file.
61679
61680 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61681             Bruno Haible  <bruno@clisp.org>
61682
61683         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61684         be determined, test for availability of the copysignf, copysign,
61685         copysignl functions.
61686         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61687         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61688         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61689
61690 2007-04-09  Eric Blake  <ebb9@byu.net>
61691
61692         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61693         * modules/stdio (Makefile.am): Support fflush.
61694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61695         * modules/fflush: New file.
61696         * lib/fflush.c: Likewise.
61697         * m4/fflush.m4: Likewise.
61698         * modules/fflush-tests: New test.
61699         * tests/test-fflush.c: Likewise.
61700         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61701
61702 2007-04-06  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61705         (VASNPRINTF): Use signbit for faster determination whether to print a
61706         minus sign.
61707         * modules/vasnprintf (Files): Remove lib/float+.h.
61708         * modules/fprintf-posix (Depends-on): Add signbit.
61709         * modules/snprintf-posix (Depends-on): Likewise.
61710         * modules/sprintf-posix (Depends-on): Likewise.
61711         * modules/vasnprintf-posix (Depends-on): Likewise.
61712         * modules/vasprintf-posix (Depends-on): Likewise.
61713         * modules/vfprintf-posix (Depends-on): Likewise.
61714         * modules/vsnprintf-posix (Depends-on): Likewise.
61715         * modules/vsprintf-posix (Depends-on): Likewise.
61716
61717 2007-04-06  Bruno Haible  <bruno@clisp.org>
61718
61719         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61720         * tests/test-frexpl.c (main): Likewise.
61721         * tests/test-ldexpl.c (main): Likewise.
61722         * modules/frexp-tests (Depends-on): Add signbit.
61723         * modules/frexpl-tests (Depdends-on): Likewise.
61724         * modules/ldexpl-tests (Depdends-on): Likewise.
61725
61726 2007-04-06  Bruno Haible  <bruno@clisp.org>
61727
61728         * modules/signbit-tests: New file.
61729         * tests/test-signbit.c: New file.
61730
61731         * modules/signbit: New file.
61732         * lib/signbitf.c: New file.
61733         * lib/signbitd.c: New file.
61734         * lib/signbitl.c: New file.
61735         * m4/signbit.m4: New file.
61736         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61737         (signbit): New macro.
61738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61739         REPLACE_SIGNBIT.
61740         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61741         REPLACE_FREXPL into math.h.
61742
61743 2007-04-06  Bruno Haible  <bruno@clisp.org>
61744
61745         * modules/isnanf-nolibm-tests: New file.
61746         * tests/test-isnanf.c: New file.
61747
61748         * modules/isnanf-nolibm: New file.
61749         * lib/isnanf.h: New file.
61750         * lib/isnanf.c: New file.
61751         * lib/isnan.c: Consider the USE_FLOAT macro.
61752         * m4/isnanf.m4: New file.
61753
61754 2007-04-06  Bruno Haible  <bruno@clisp.org>
61755
61756         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61757         (Link): New section.
61758
61759         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61760
61761 2007-04-06  Bruno Haible  <bruno@clisp.org>
61762
61763         Assume the 'long double' type.
61764         * m4/longdouble.m4: Remove file.
61765         * config/srclist.txt: Don't mention longdouble.m4.
61766         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61767         * lib/float+.h: Likewise.
61768         * lib/frexp.c: Likewise.
61769         * lib/printf-args.h: Likewise.
61770         * lib/printf-args.c: Likewise.
61771         * lib/printf-frexp.c: Likewise.
61772         * lib/printf-parse.c: Likewise.
61773         * lib/vasnprintf.c: Likewise.
61774         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61775         * m4/intl.m4: Likewise.
61776         * m4/isnanl.m4: Likewise.
61777         * m4/printf.m4: Likewise.
61778         * m4/printf-frexpl.m4: Likewise.
61779         * m4/vasnprintf.m4: Likewise.
61780         * modules/allocsa (Files): Remove m4/longdouble.m4.
61781         * modules/gettext (Files): Likewise.
61782         * modules/relocatable-prog-wrapper (Files): Likewise.
61783         * modules/vasnprintf (Files): Likewise.
61784         * modules/isnanl (Files): Likewise.
61785         (Include): Simplify.
61786         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61787         (Include): Simplify.
61788         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61789         (Include): Simplify.
61790         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61791         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61792         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61793         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61794         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61795         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61796         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61797         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61798         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61799         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61800         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61801         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61802         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61803         * tests/test-isnanl.c: Likewise.
61804         * tests/test-snprintf-posix.h: Likewise.
61805         * tests/test-sprintf-posix.h: Likewise.
61806         * tests/test-vasnprintf-posix.c: Likewise.
61807         * tests/test-vasnprintf-posix2.c: Likewise.
61808         * tests/test-vasprintf-posix.c: Likewise.
61809
61810 2007-04-06  Bruno Haible  <bruno@clisp.org>
61811
61812         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61813         * lib/math_.h [__DECC]: Include the overridden include file through
61814         #include_next, outside the double-inclusion guard.
61815         * lib/stdio_.h [__DECC]: Likewise.
61816         * lib/stdlib_.h [__DECC]: Likewise.
61817         * lib/string_.h [__DECC]: Likewise.
61818         * lib/time_.h [__DECC]: Likewise.
61819         * lib/wchar_.h [__DECC]: Likewise.
61820         * lib/wctype_.h [__DECC]: Likewise.
61821         * lib/inttypes_.h [__DECC]: Likewise.
61822         Reported by Albert Chin <china@thewrittenword.com> in
61823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61824
61825 2007-04-04  Eric Blake  <ebb9@byu.net>
61826
61827         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61828         1.5.x.
61829
61830 2007-04-04  Bruno Haible  <bruno@clisp.org>
61831
61832         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61833         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61834
61835 2007-04-04  Bruno Haible  <bruno@clisp.org>
61836
61837         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61838         results for "%010a" of Infinity and NaN.
61839         * tests/test-vasprintf-posix.c (test_function): Likewise.
61840         * tests/test-snprintf-posix.h (test_function): Likewise.
61841         * tests/test-sprintf-posix.h (test_function): Likewise.
61842         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61843         * tests/test-printf-posix.h (test_function): Likewise.
61844         * tests/test-fprintf-posix.out: Update.
61845         Needed for FreeBSD 6.1.
61846
61847 2007-04-04  Bruno Haible  <bruno@clisp.org>
61848
61849         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61850         directly used by the gnulib modules nor by gnulib-tool.
61851
61852 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         * DEPENDENCIES: Give overall description of version dependency
61855         desirability.  Use more-typical names for apps.
61856         Add shell, coreutils, diffutils, grep, tar, gzip.
61857
61858 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61859
61860         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61861
61862 2007-04-04  Karl Berry  <karl@gnu.org>
61863
61864         * MODULES.html.sh (func_module): missing '.
61865
61866 2007-04-03  Bruno Haible  <bruno@clisp.org>
61867
61868         * modules/argmatch-tests (Makefile.am): New variable
61869         test_argmatch_LDADD.
61870         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61871         * modules/array-list-tests (Makefile.am): New variable
61872         test_array_list_LDADD.
61873         * modules/array-oset-tests (Makefile.am): New variable
61874         test_array_oset_LDADD.
61875         * modules/avltree-list-tests (Makefile.am): New variable
61876         test_avltree_list_LDADD.
61877         * modules/avltree-oset-tests (Makefile.am): New variable
61878         test_avltree_oset_LDADD.
61879         * modules/avltreehash-list-tests (Makefile.am): New variable
61880         test_avltreehash_list_LDADD.
61881         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61882         test_canonicalize_lgpl_LDADD.
61883         * modules/carray-list-tests (Makefile.am): New variable
61884         test_carray_list_LDADD.
61885         * modules/dirname-tests (Makefile.am): New variable
61886         test_dirname_LDADD.
61887         * modules/linked-list-tests (Makefile.am): New variable
61888         test_linked_list_LDADD.
61889         * modules/linkedhash-list-tests (Makefile.am): New variable
61890         test_linkedhash_list_LDADD.
61891         * modules/rbtree-list-tests (Makefile.am): New variable
61892         test_rbtree_list_LDADD.
61893         * modules/rbtree-oset-tests (Makefile.am): New variable
61894         test_rbtree_oset_LDADD.
61895         * modules/rbtreehash-list-tests (Makefile.am): New variable
61896         test_rbtreehash_list_LDADD.
61897         * modules/xvasprintf-tests (Makefile.am): New variable
61898         test_xvasprintf_LDADD.
61899         Reported by Eric Blake.
61900
61901 2007-04-03  Eric Blake  <ebb9@byu.net>
61902
61903         * DEPENDENCIES: Weaken m4 requirements.
61904
61905 2007-04-03  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61908         * modules/isnanl-tests (configure.ac): Likewise.
61909
61910 2007-04-03  Ben Pfaff  <blp@gnu.org>
61911
61912         * modules/iconv_open: Add $(srcdir)/ to source directory
61913         references in Makefile fragments that call gperf, to fix VPATH
61914         builds.
61915
61916 2007-04-03  Bruno Haible  <bruno@clisp.org>
61917
61918         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61919         * lib/ldexpl.c: Undo last change.
61920
61921 2007-04-03  Bruno Haible  <bruno@clisp.org>
61922
61923         * modules/printf-frexpl (Depends-on): Undo last change.
61924         (Files): Add m4/ldexpl.m4.
61925
61926 2007-04-03  Bruno Haible  <bruno@clisp.org>
61927
61928         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61929         * modules/isnanl (Link): New section.
61930
61931         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61932         * modules/frexp (Link): New section.
61933
61934         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61935         * modules/frexpl (Link): New section.
61936
61937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61938         * modules/ldexpl (Link): New section.
61939
61940 2007-04-03  Bruno Haible  <bruno@clisp.org>
61941
61942         * modules/TEMPLATE-EXTENDED: New file.
61943         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61944
61945 2007-04-03  Bruno Haible  <bruno@clisp.org>
61946
61947         * DEPENDENCIES: New file.
61948         Suggested by Simon Josefsson.
61949
61950 2007-04-03  Bruno Haible  <bruno@clisp.org>
61951
61952         * doc/gnulib.texi: Escape @.
61953
61954 2007-04-03  James Youngman  <jay@gnu.org>
61955         and Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61958         birthtime on all systems that have birthtime, not just those which
61959         use st_birthtimensec rather than st_birthtim.  Putting zero in
61960         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61961         that the birth time is not available for files on an NFS mount.
61962
61963 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61964
61965         * modules/memxor: Move back from crypto/, suggested by Bruno.
61966         * modules/crypto/hmac-sha1: Fix memxor dependency.
61967
61968         * modules/crypto/gc: Moved from ../.
61969
61970 2007-04-02  Eric Blake  <ebb9@byu.net>
61971
61972         * lib/ldexpl.c (includes): Avoid libm.
61973
61974         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61975
61976 2007-04-02  Bruno Haible  <bruno@clisp.org>
61977
61978         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61979         on IRIX.
61980
61981 2007-04-02  Bruno Haible  <bruno@clisp.org>
61982
61983         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61984         x86 or x86_64 platforms running MacOS X.
61985         Reported by Ryan Schmidt <@ryandesign.com>.
61986
61987 2007-04-02  Bruno Haible  <bruno@clisp.org>
61988
61989         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61990         i386.
61991
61992 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61993
61994         * modules/crypto/arcfour: Moved from ../.
61995         * modules/crypto/arcfour-tests: Moved from ../.
61996         * modules/crypto/arctwo: Moved from ../.
61997         * modules/crypto/arctwo-tests: Moved from ../.
61998         * modules/crypto/des: Moved from ../.
61999         * modules/crypto/des-tests: Moved from ../.
62000         * modules/crypto/gc-arcfour: Moved from ../.
62001         * modules/crypto/gc-arcfour-tests: Moved from ../.
62002         * modules/crypto/gc-arctwo: Moved from ../.
62003         * modules/crypto/gc-arctwo-tests: Moved from ../.
62004         * modules/crypto/gc-des: Moved from ../.
62005         * modules/crypto/gc-des-tests: Moved from ../.
62006         * modules/crypto/gc-hmac-md5: Moved from ../.
62007         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62008         * modules/crypto/gc-hmac-sha1: Moved from ../.
62009         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62010         * modules/crypto/gc-md2: Moved from ../.
62011         * modules/crypto/gc-md2-tests: Moved from ../.
62012         * modules/crypto/gc-md4: Moved from ../.
62013         * modules/crypto/gc-md4-tests: Moved from ../.
62014         * modules/crypto/gc-md5: Moved from ../.
62015         * modules/crypto/gc-md5-tests: Moved from ../.
62016         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62017         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62018         * modules/crypto/gc-random: Moved from ../.
62019         * modules/crypto/gc-rijndael: Moved from ../.
62020         * modules/crypto/gc-rijndael-tests: Moved from ../.
62021         * modules/crypto/gc-sha1: Moved from ../.
62022         * modules/crypto/gc-sha1-tests: Moved from ../.
62023         * modules/crypto/gc-tests: Moved from ../.
62024         * modules/crypto/hmac-md5: Moved from ../.
62025         * modules/crypto/hmac-md5-tests: Moved from ../.
62026         * modules/crypto/hmac-sha1: Moved from ../.
62027         * modules/crypto/hmac-sha1-tests: Moved from ../.
62028         * modules/crypto/md2: Moved from ../.
62029         * modules/crypto/md2-tests: Moved from ../.
62030         * modules/crypto/md4: Moved from ../.
62031         * modules/crypto/md4-tests: Moved from ../.
62032         * modules/crypto/md5: Moved from ../.
62033         * modules/crypto/md5-tests: Moved from ../.
62034         * modules/crypto/memxor: Moved from ../.
62035         * modules/crypto/rijndael: Moved from ../.
62036         * modules/crypto/rijndael-tests: Moved from ../.
62037         * modules/crypto/sha1: Moved from ../.
62038
62039 2007-03-30  James Youngman  <jay@gnu.org>
62040
62041         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62042         rename() to change the ctime of a file (because ctime is unaffected
62043         by rename on jfs2 on AIX 5.1).
62044         (main): Start by doing cleanup, in case a previous run failed leaving
62045         test files behind.
62046
62047 2007-03-31  Bruno Haible  <bruno@clisp.org>
62048
62049         Support old proprietary implementations of iconv.
62050         * modules/iconv_open: New file.
62051         * lib/iconv_.h: New file.
62052         * m4/iconv_h.m4: New file.
62053         * lib/iconv_open.c: New file.
62054         * lib/iconv_open-aix.gperf: New file.
62055         * lib/iconv_open-hpux.gperf: New file.
62056         * lib/iconv_open-irix.gperf: New file.
62057         * lib/iconv_open-osf.gperf: New file.
62058         * m4/iconv_open.m4: New file.
62059         * modules/linebreak (Depends-on): Add iconv_open.
62060         * modules/striconv (Depends-on): Likewise.
62061         * modules/striconveh (Depends-on): Likewise.
62062         * modules/unicodeio (Depends-on): Likewise.
62063         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62064         (iconv_t)(-1).
62065         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62066         conversion if cd is (iconv_t)(-1).
62067         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62068         is not possible.
62069
62070 2007-03-31  Bruno Haible  <bruno@clisp.org>
62071
62072         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62073         work on Solaris either. Protect also second use of "autodetect_jp".
62074
62075 2007-03-31  Bruno Haible  <bruno@clisp.org>
62076
62077         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62078         the function is not present.
62079
62080 2007-03-31  Bruno Haible  <bruno@clisp.org>
62081
62082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62083         the function is not present.
62084
62085 2007-03-31  Bruno Haible  <bruno@clisp.org>
62086
62087         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62088         a bug in HP-UX iconv_open().
62089
62090 2007-03-31  Bruno Haible  <bruno@clisp.org>
62091
62092         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62093         (Mathematics <math.h>): New section, add fpieee.
62094         (Input/output <stdio.h>): Add fseterr.
62095         (Mathematics <math.h>): New section, add printf-frexp.
62096         (Container data structures): Add sublist.
62097         (Core language properties): Add fpucw, inline.
62098         (Functions for greatest-width integer types <inttypes.h>): Add
62099         imaxabs, imaxdiv, inttypes.
62100         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62101         isnanl-nolibm, ldexp.
62102         (Mathematics <math.h>): New section, add printf-frexpl.
62103         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62104         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62105         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62106         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62107         (Unicode string functions): Add unistr/u*-mbtoucr.
62108         (Java): Add javacomp-script, javaexec-script.
62109         (C#): Add csharpcomp-script, csharpexec-script.
62110         (Support for building libraries and executables): Add havelib,
62111         relocatable-*.
62112         (Support for maintaining and releasing projects): Renamed from
62113         'Support for maintaining and release projects'. Add announce-gen.
62114
62115 2007-03-31  Bruno Haible  <bruno@clisp.org>
62116
62117         * README: Talk primarily about git.
62118         (git and CVS): Renamed from CVS.
62119         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62120         gnulib is available through git.
62121         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62122
62123 2007-03-30  Bruno Haible  <bruno@clisp.org>
62124
62125         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62126         * lib/poll_.h: Likewise.
62127         * lib/stat_.h: Likewise.
62128         * lib/sys_time_.h: Likewise.
62129         * lib/sysexit_.h: Likewise.
62130         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62131         * lib/stdbool_.h: Likewise.
62132         * lib/byteswap_.h: Add double-inclusion guard.
62133
62134 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62135
62136         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62137
62138 2007-03-30  Karl Berry  <karl@gnu.org>
62139
62140         * config/srclist-update: double space after USA in the license
62141         substitution, since that's how it's usually (?) written.
62142
62143 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62144
62145         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62146         reported by Bruno Haible.
62147
62148 2007-03-29  Bruno Haible  <bruno@clisp.org>
62149
62150         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62151         a bug in AIX iconv().
62152
62153 2007-03-29  Bruno Haible  <bruno@clisp.org>
62154
62155         * modules/ldexpl-tests: New file.
62156         * tests/test-ldexpl.c: New file.
62157
62158 2007-03-29  Bruno Haible  <bruno@clisp.org>
62159
62160         * lib/ldexpl.c: Include fpucw.h.
62161         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62162         multiplication.
62163         * modules/ldexpl (Depends-on): Add fpucw.
62164
62165 2007-03-29  Bruno Haible  <bruno@clisp.org>
62166
62167         * modules/ldexpl: New file.
62168         * m4/ldexpl.m4: New file.
62169         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62170         set.
62171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62172         REPLACE_LDEXPL.
62173         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62174         REPLACE_LDEXPL.
62175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62176         gl_FUNC_LDEXPL_WORKS.
62177         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62178         * modules/mathl (Files): Remove lib/ldexpl.c.
62179         (Depends-on): Add ldexpl.
62180
62181 2007-03-29  Bruno Haible  <bruno@clisp.org>
62182
62183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62184
62185 2007-03-29  Bruno Haible  <bruno@clisp.org>
62186
62187         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62188         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62189         and possibly also HP-UX.
62190         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62191         work on AIX, IRIX, HP-UX, OSF/1.
62192         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62193         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62194         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62195         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62196         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62197         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62198
62199 2007-03-29  Bruno Haible  <bruno@clisp.org>
62200
62201         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62202
62203 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62204
62205         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62206         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62207
62208 2007-03-29  Eric Blake  <ebb9@byu.net>
62209
62210         * lib/acl-internal.h: Remove redundant include.
62211         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62212         Cygwin when a file is locked.
62213
62214 2007-03-29  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62217         file.
62218         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62219
62220 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62221
62222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62223         try to remove a parent directory if the child couldn't be removed
62224         (except for the first rmdir, which could fail because the child
62225         doesn't exist).  Problem reported by Jeff Blaine in
62226         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62227
62228 2007-03-28  Bruno Haible  <bruno@clisp.org>
62229
62230         * lib/striconveh.c (utf8conv_carefully): New function.
62231         (mem_cd_iconveh_internal): Invoke it.
62232
62233 2007-03-28  Bruno Haible  <bruno@clisp.org>
62234
62235         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62236         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62237         input.
62238         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62239         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62240         unistr/u8-uctomb.
62241
62242 2007-03-28  Bruno Haible  <bruno@clisp.org>
62243
62244         * modules/unistr/u8-mbtoucr: New file.
62245         * lib/unistr/u8-mbtoucr.c: New file.
62246         * modules/unistr/u16-mbtoucr: New file.
62247         * lib/unistr/u16-mbtoucr.c: New file.
62248         * modules/unistr/u16-mbtoucr: New file.
62249         * lib/unistr/u16-mbtoucr.c: New file.
62250         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62251
62252 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62253             Bruno Haible  <bruno@clisp.org>
62254
62255         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62256         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62257         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62258
62259         * m4/stdio_h.m4: Add stubs for vasprintf too.
62260
62261         * modules/stdio: Support vasprintf in sed command.
62262
62263         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62264         vasprintf.h.  Add stdio module indicator.
62265
62266         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62267         vasprintf.h.
62268
62269         * lib/vasprintf.h: File removed.
62270
62271         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62272         * lib/vasprintf.c: Ditto.
62273         * lib/xvasprintf.c: Ditto.
62274         * tests/test-vasprintf-posix.c: Ditto.
62275         * tests/test-vasprintf.c: Ditto.
62276
62277 2007-03-27  Bruno Haible  <bruno@clisp.org>
62278
62279         Make vasnprintf multithread-safe.
62280         * lib/vasnprintf.c (decimal_point_char): New function.
62281         (VASNPRINTF): Use it.
62282         Suggested by Simon Josefsson.
62283
62284 2007-03-27  Eric Blake  <ebb9@byu.net>
62285
62286         Support sub-second birthtime on cygwin.
62287         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62288         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62289         (get_stat_birthtime): Also work with st_birthtim.
62290
62291 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62292
62293         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62294         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62295         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62296         (get_stat_birthtime_ns): Simplify compile-time tests.
62297         (get_stat_birthtime): Change the API to look like
62298         get_stat_mtime etc., except return a negative tv_nsec on error.
62299         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62300         Don't check for "spare" fields.
62301         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62302         or for struct stat.st_birthtime, as these tests aren't used.
62303         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62304
62305 2007-03-27  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/stat-time.h: Include <sys/stat.h>.
62308
62309 2007-03-27  James Youngman  <jay@gnu.org>
62310
62311         * lib/stat-time.h (get_stat_birthtime): New function for
62312           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62313         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62314           and its variants.
62315         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62316         * modules/stat-time-test: New file.
62317         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62318
62319 2007-03-26  Bruno Haible  <bruno@clisp.org>
62320
62321         Better support of signalling NaNs.
62322         * lib/atanl.c: Include isnanl.h.
62323         (atanl): Perform test for NaN at the beginning of the function and
62324         through a call to isnanl.
62325         * lib/cosl.c: Include isnanl.h.
62326         (cosl): Perform test for NaN at the beginning of the function and
62327         through a call to isnanl.
62328         * lib/ldexpl.c: Include isnanl.h.
62329         (ldexpl): Perform test for NaN through a call to isnanl.
62330         * lib/logl.c: Include isnanl.h.
62331         (logl): Perform test for NaN at the beginning of the function and
62332         through a call to isnanl.
62333         * lib/sinl.c: Include isnanl.h.
62334         (sinl): Perform test for NaN at the beginning of the function and
62335         through a call to isnanl.
62336         * lib/sqrtl.c: Include isnanl.h.
62337         (sqrtl): Perform test for NaN at the beginning of the function and
62338         through a call to isnanl.
62339         * lib/tanl.c: Include isnanl.h.
62340         (tanl): Perform test for NaN at the beginning of the function and
62341         through a call to isnanl.
62342         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62343         * modules/mathl (Depends-on): Add isnanl.
62344
62345 2007-03-26  Eric Blake  <ebb9@byu.net>
62346
62347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62348         regression in logic sense of previous patch.
62349
62350 2007-03-26  Bruno Haible  <bruno@clisp.org>
62351
62352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62353         unportable shell command "if ! ...".
62354         Reported by Ralf Wildenhues.
62355
62356 2007-03-25  Bruno Haible  <bruno@clisp.org>
62357
62358         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62359         <sysexits.h> file, and only add EX_CONFIG.
62360         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62361         absolute file name and whether it is sufficient. Substitute also
62362         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62363         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62364         ABSOLUTE_SYSEXITS_H into sysexits.h.
62365
62366 2007-03-25  Bruno Haible  <bruno@clisp.org>
62367
62368         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62369         hints is NULL.
62370
62371 2007-03-25  Bruno Haible  <bruno@clisp.org>
62372
62373         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62374         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62375
62376 2007-03-25  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/vasnprintf.c: Include langinfo.h.
62379         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62380         multithread-safe.
62381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62390         Reported by Simon Josefsson.
62391
62392 2007-03-25  Bruno Haible  <bruno@clisp.org>
62393
62394         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62395         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62396         * modules/vasnprintf (Depends-on): Add stdint.
62397
62398 2007-03-25  Bruno Haible  <bruno@clisp.org>
62399
62400         * modules/fpieee: New file.
62401         * m4/fpieee.m4: New file.
62402         * modules/isnan-nolibm (Depends-on): Add fpieee.
62403         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62404         * modules/isnanl (Depends-on): Add fpieee.
62405
62406 2007-03-25  Bruno Haible  <bruno@clisp.org>
62407
62408         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62409
62410 2007-03-25  Bruno Haible  <bruno@clisp.org>
62411
62412         Avoid test failures on IRIX 6.5.
62413         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62414         (main): Use it.
62415         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62416         macros.
62417         (main): Use them.
62418
62419 2007-03-25  Bruno Haible  <bruno@clisp.org>
62420
62421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62422         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62423         exists but doesn't work.
62424         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62425         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62427         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62428         math.h.
62429
62430 2007-03-25  Bruno Haible  <bruno@clisp.org>
62431
62432         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62433         returns inf. Needed on IRIX 6.5.
62434
62435 2007-03-25  Bruno Haible  <bruno@clisp.org>
62436
62437         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62438         (main): Use isnanl instead of x != x idiom.
62439         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62440
62441         * tests/test-frexp.c: Include isnan.h.
62442         (main): Use isnan instead of x != x idiom.
62443         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62444
62445 2007-03-25  Bruno Haible  <bruno@clisp.org>
62446
62447         * tests/test-frexp.c (NaN): New function/macro.
62448         (main): Use it instead of 0.0 / 0.0.
62449         * tests/test-isnan.c (NaN): New function/macro.
62450         (main): Use it instead of 0.0 / 0.0.
62451         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62452         (test_function): Use it instead of 0.0 / 0.0.
62453         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62454         (test_function): Use it instead of 0.0 / 0.0.
62455         * tests/test-snprintf-posix.h (NaN): New function/macro.
62456         (test_function): Use it instead of 0.0 / 0.0.
62457         * tests/test-sprintf-posix.h (NaN): New function/macro.
62458         (test_function): Use it instead of 0.0 / 0.0.
62459         * tests/test-fprintf-posix.h (NaN): New function/macro.
62460         (test_function): Use it instead of 0.0 / 0.0.
62461         * tests/test-printf-posix.h (NaN): New function/macro.
62462         (test_function): Use it instead of 0.0 / 0.0.
62463
62464         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62465
62466 2007-03-25  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62469
62470 2007-03-25  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/regexec.c (merge_state_with_log): Make static.
62473
62474 2007-03-25  Bruno Haible  <bruno@clisp.org>
62475
62476         * lib/trigl.c (kernel_rem_pio2): Make static.
62477
62478 2007-03-25  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/sincosl.c (sincosl_table): Make static.
62481
62482 2007-03-25  Bruno Haible  <bruno@clisp.org>
62483
62484         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62485         if the compiler does not support C99.
62486
62487 2007-03-25  Bruno Haible  <bruno@clisp.org>
62488
62489         * modules/time (Makefile.am): Ensure all rule action lines start with a
62490         tab.
62491
62492 2007-03-24  Bruno Haible  <bruno@clisp.org>
62493
62494         * modules/tsearch-tests: New file.
62495         * tests/test-tsearch.sh: New file.
62496         * tests/test-tsearch.c: New file, mostly copied from glibc.
62497
62498         * modules/search-tests: New file.
62499         * tests/test-search.c: New file.
62500
62501         * modules/search: New file.
62502         * lib/search_.h: New file, incorporating lib/tsearch.h.
62503         * m4/search_h.m4: New file.
62504         * lib/tsearch.h: Remove file.
62505         * lib/tsearch.c: Include search.h instead of tsearch.h.
62506         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62507         HAVE_TSEARCH.
62508         * modules/tsearch (Files): Remove lib/tsearch.h.
62509         (Depends-on): Add search.
62510         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62511         (Include): Change tsearch.h into search.h.
62512
62513 2007-03-24  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/fpucw: New file.
62516         * lib/fpucw.h: New file.
62517         * lib/frexp.c: Include fpucw.h.
62518         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62519         (FUNC): Use them.
62520         * lib/printf-frexp.c: Include fpucw.h.
62521         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62522         (FUNC): Use them.
62523         * lib/vasnprintf.c: Include fpucw.h.
62524         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62525         'long double' calculations.
62526         * tests/test-frexpl.c: Include fpucw.h.
62527         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62528         * tests/test-printf-frexpl.c: Include fpucw.h.
62529         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62530         * modules/frexpl (Depends-on): Add fpucw.
62531         * modules/printf-frexpl (Depends-on): Likewise.
62532         * modules/fprintf-posix (Depends-on): Likewise.
62533         * modules/snprintf-posix (Depends-on): Likewise.
62534         * modules/sprintf-posix (Depends-on): Likewise.
62535         * modules/vasnprintf-posix (Depends-on): Likewise.
62536         * modules/vasprintf-posix (Depends-on): Likewise.
62537         * modules/vfprintf-posix (Depends-on): Likewise.
62538         * modules/vsnprintf-posix (Depends-on): Likewise.
62539         * modules/vsprintf-posix (Depends-on): Likewise.
62540         * modules/frexpl-tests (Depends-on): Likewise.
62541         * modules/printf-frexpl-tests (Depends-on): Likewise.
62542
62543 2007-03-24  Bruno Haible  <bruno@clisp.org>
62544
62545         * lib/float+.h: New file.
62546         * lib/isnan.c: Include float+.h.
62547         (SIZE): New macro.
62548         (FUNC): Compare only SIZE bytes of the value.
62549         * lib/vasnprintf.c: Include float+.h.
62550         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62551         SIZEOF_LDBL or SIZEOF_DBL bytes.
62552         * modules/isnan-nolibm (Files): Add lib/float+.h.
62553         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62554         * modules/isnanl (Files): Add lib/float+.h.
62555         * modules/vasnprintf (Files): Add lib/float+.h.
62556
62557 2007-03-24  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62560         include isnanl-nolibm.h.
62561
62562 2007-03-24  Bruno Haible  <bruno@clisp.org>
62563
62564         * tests/test-read-file.c (main): Don't produce spurious output for
62565         expected situations. Make the test fail if it encountered unexpected
62566         results.
62567
62568 2007-03-24  Bruno Haible  <bruno@clisp.org>
62569
62570         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62571         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62572
62573 2007-03-24  Bruno Haible  <bruno@clisp.org>
62574
62575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62576
62577 2007-03-24  Bruno Haible  <bruno@clisp.org>
62578
62579         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62580         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62581
62582         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62583         * modules/utf8-ucs4: Turn into a symbolic link to module
62584         unistr/u8-mbtouc.
62585
62586         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62587         utf8-ucs4-unsafe.
62588         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62589         unistr/u8-mbtouc-unsafe.
62590
62591         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62592         * modules/utf16-ucs4: Turn into a symbolic link to module
62593         unistr/u16-mbtouc.
62594
62595         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62596         utf16-ucs4-unsafe.
62597         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62598         unistr/u16-mbtouc-unsafe.
62599
62600         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62601         * modules/ucs4-utf8: Turn into a symbolic link to module
62602         unistr/u8-ubtomb.
62603
62604         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62605         * modules/ucs4-utf16: Turn into a symbolic link to module
62606         unistr/u16-ubtomb.
62607
62608 2007-03-24  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62611         Enable the function only if HAVE_INLINE.
62612         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62613         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62614         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62615         Enable the function only if HAVE_INLINE.
62616         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62617         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62618         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62619         Enable the function only if HAVE_INLINE.
62620         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62621         Enable the function only if HAVE_INLINE.
62622         * modules/utf8-ucs4: Update.
62623         * modules/utf8-ucs4-unsafe: Update.
62624         * modules/utf16-ucs4: Update.
62625         * modules/utf16-ucs4-unsafe: Update.
62626         * modules/ucs4-utf8: Update.
62627         * modules/ucs4-utf16: Update.
62628
62629 2007-03-24  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/utf8-ucs4.h: Remove file.
62632         * lib/utf8-ucs4-unsafe.h: Remove file.
62633         * lib/utf16-ucs4.h: Remove file.
62634         * lib/utf16-ucs4-unsafe.h: Remove file.
62635         * lib/ucs4-utf8.h: Remove file.
62636         * lib/ucs4-utf16.h: Remove file.
62637         * lib/unistr.h: Include their previous contents.
62638         * m4/utf-ucs4.m4: Remove file.
62639         * m4/ucs4-utf.m4: Remove file.
62640         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62641         (Depends-on): Add unistr/base.
62642         (configure.ac): Remove gl_UTF_UCS4.
62643         (Makefile.am): Update.
62644         (Include): Change to unistr.h.
62645         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62646         (Depends-on): Add unistr/base.
62647         (configure.ac): Remove gl_UTF_UCS4.
62648         (Makefile.am): Update.
62649         (Include): Change to unistr.h.
62650         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62651         (Depends-on): Add unistr/base.
62652         (configure.ac): Remove gl_UTF_UCS4.
62653         (Makefile.am): Update.
62654         (Include): Change to unistr.h.
62655         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62656         (Depends-on): Add unistr/base.
62657         (configure.ac): Remove gl_UTF_UCS4.
62658         (Makefile.am): Update.
62659         (Include): Change to unistr.h.
62660         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62661         (Depends-on): Add unistr/base.
62662         (configure.ac): Remove gl_UCS4_UTF.
62663         (Makefile.am): Update.
62664         (Include): Change to unistr.h.
62665         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62666         (Depends-on): Add unistr/base.
62667         (configure.ac): Remove gl_UCS4_UTF.
62668         (Makefile.am): Update.
62669         (Include): Change to unistr.h.
62670         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62671         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62672         utf8-ucs4-unsafe.h.
62673         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62674         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62675         utf16-ucs4-unsafe.h.
62676         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62677         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62678         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62679         * lib/unistr/u8-strchr.c: Likewise.
62680         * lib/unistr/u8-strrchr.c: Likewise.
62681         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62682         * lib/unistr/u16-strchr.c: Likewise.
62683         * lib/unistr/u16-strrchr.c: Likewise.
62684         * lib/striconveh.c: Update.
62685         * lib/linebreak.c: Update.
62686
62687 2007-03-24  Bruno Haible  <bruno@clisp.org>
62688
62689         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62690         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62691
62692 2007-03-22  Bruno Haible  <bruno@clisp.org>
62693
62694         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62695
62696 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62697
62698         * MODULES.html.sh (File system functions): New module write-any-file.
62699         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62700         * m4/write-any-file.m4: New files.
62701
62702 2007-03-23  Eric Blake  <ebb9@byu.net>
62703
62704         * gnulib-tool: Rearrange space-tab sequences, since some editors
62705         like to eat them.
62706
62707 2007-03-23  Eric Blake  <ebb9@byu.net>
62708
62709         * lib/version-etc.c (version_etc_va): Update license wording to
62710         be more concise.  Recommended by Richard Stallman.
62711
62712 2007-03-22  Bruno Haible  <bruno@clisp.org>
62713
62714         * lib/poll.c (MSG_PEEK): New fallback definition.
62715
62716 2007-03-22  Bruno Haible  <bruno@clisp.org>
62717
62718         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62719         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62720         (main): Update.
62721         Fixes a compilation error on BeOS.
62722
62723 2007-03-22  Bruno Haible  <bruno@clisp.org>
62724
62725         * modules/frexpl-tests: New file.
62726         * tests/test-frexpl.c: New file.
62727
62728         * modules/frexpl: New file.
62729         * m4/frexpl.m4: New file.
62730         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62731         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62733         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62734         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62735         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62736
62737 2007-03-22  Bruno Haible  <bruno@clisp.org>
62738
62739         * lib/frexpl.c: Share code with lib/frexp.c.
62740         * modules/mathl (Files): Add lib/frexp.c.
62741         (Depends-on): Add isnanl-nolibm.
62742
62743 2007-03-22  Bruno Haible  <bruno@clisp.org>
62744
62745         * modules/printf-frexp (Files): Add m4/frexp.m4.
62746         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62747         only if the found frexp function actually works.
62748
62749 2007-03-22  Bruno Haible  <bruno@clisp.org>
62750
62751         * lib/frexp.c: Remove older implementation that uses divisions.
62752
62753 2007-03-21  Bruno Haible  <bruno@clisp.org>
62754
62755         * modules/frexp-tests: New file.
62756         * tests/test-frexp.c: New file.
62757
62758         * modules/frexp: New file.
62759         * lib/frexp.c: New file.
62760         * m4/frexp.m4: New file.
62761         * lib/math_.h (frexp): New declaration.
62762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62763         REPLACE_FREXP.
62764         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62765
62766 2007-03-21  Bruno Haible  <bruno@clisp.org>
62767
62768         * modules/isnanl-tests: New file.
62769         * tests/test-isnanl.c: New file.
62770
62771         * modules/isnanl: New file.
62772         * lib/isnanl.h: New file.
62773         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62774         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62775         gl_FUNC_ISNANL_WORKS.
62776         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62777         New macros.
62778
62779 2007-03-21  Bruno Haible  <bruno@clisp.org>
62780
62781         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62782         lib/isnanl.h.
62783         (Include): Update.
62784         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62785         * lib/vasnprintf.c: Update.
62786         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62787         tests/test-isnanl.h, remove tests/test-isnanl.c.
62788         (Makefile.am): Update.
62789         * tests/test-isnanl-nolibm.c: New file.
62790         * tests/test-isnanl.h: New file.
62791         * tests/test-isnanl.c: Remove file.
62792
62793 2007-03-21  Jim Meyering  <jim@meyering.net>
62794
62795         When trying to open ".", treat ESTALE like EACCES.
62796         * lib/savewd.c (savewd_save): Resort to forking not just upon
62797         failure with EACCES, but also when errno is ESTALE.
62798
62799 2007-03-20  Bruno Haible  <bruno@clisp.org>
62800
62801         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62802         Needed on AIX 5.1. Reported by Matthew Woehlke.
62803
62804 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         Suggestions by Bruno Haible:
62807         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62808         our own.
62809         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62810         * modules/acl (Depends-on): Add gettext.
62811
62812 2007-03-19  Bruno Haible  <bruno@clisp.org>
62813
62814         * modules/iconvme: Remove file.
62815         * lib/iconvme.h: Remove file.
62816         * lib/iconvme.c: Remove file.
62817         * m4/iconvme.m4: Remove file.
62818
62819 2007-03-19  Bruno Haible  <bruno@clisp.org>
62820
62821         * doc/relocatable-maint.texi: Break long shell script line.
62822         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62823
62824 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62825
62826         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62827         handle file_has_acl.
62828         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62829         * lib/acl.c: Move header inclusions and related macro defns into
62830         lib/acl-internal.h.
62831         (S_ISLNK): Remove defn, since that's now done for us.
62832         (file_has_acl): Move to lib/file-has-acl.c.
62833         Call acl_trivial if available.  This is the crucial part of the fix.
62834         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62835         shared within the library.  Rewrite a bit, partly to make it compatible
62836         with the GNU coding style.
62837         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62838         Remove unnecessary double-quotes.
62839         Don't test for acl_to_text; the build will catch that.
62840         Replace acl_entries if it doesn't exist and it is needed.
62841         Check for -lsec and acl_trivial (as used on Solaris 10).
62842         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62843         lib/file-has-acl.c.
62844         (Depends-on): Add sys_stat, for S_ISLNK.
62845
62846 2007-03-19  Ben Pfaff  <blp@gnu.org>
62847
62848         * doc/gnulib.texi: Fix typos.
62849         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62850
62851 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62852
62853         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62854         If size is zero here, buf must be zero.
62855
62856 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62857
62858         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62859         <bruno@clisp.org>.
62860
62861 2007-03-18  Bruno Haible  <bruno@clisp.org>
62862
62863         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62864         Suggested by Eric Blake.
62865
62866 2007-03-18  Ben Pfaff  <blp@gnu.org>
62867
62868         * doc/relocatable.texi: Recommend using as prefix a directory
62869         that does not exist and will never be created.  Based on
62870         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62871         and others.
62872
62873 2007-03-17  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/fchownat.c: Include lchown.h.
62876
62877 2007-03-17  Bruno Haible  <bruno@clisp.org>
62878
62879         Fix endless loop when the given allocated size was > INT_MAX.
62880         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62881         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62882         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62883         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62884         * lib/sprintf.c (sprintf): Likewise.
62885
62886 2007-03-17  Bruno Haible  <bruno@clisp.org>
62887
62888         * tests/test-argp-2.sh (func_compare): Output a context diff.
62889
62890 2007-03-17  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62893         locale's decimal-point character.
62894
62895 2007-03-17  Bruno Haible  <bruno@clisp.org>
62896
62897         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62898         before comparing it. Needed because on some platforms (e.g. x86) a
62899         'long double' occupies less bytes than sizeof (long double).
62900
62901 2007-03-17  Bruno Haible  <bruno@clisp.org>
62902
62903         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62904         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62905         * tests/test-getaddrinfo.c (simple): Likewise.
62906         * tests/test-read-file.c (main): Likewise.
62907
62908 2007-03-17  Bruno Haible  <bruno@clisp.org>
62909
62910         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62911
62912 2007-03-17  Bruno Haible  <bruno@clisp.org>
62913
62914         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62915         unused variable.
62916
62917 2007-03-17  Bruno Haible  <bruno@clisp.org>
62918
62919         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62920         * tests/test-c-strncasecmp.c: Likewise.
62921
62922 2007-03-17  Bruno Haible  <bruno@clisp.org>
62923
62924         * modules/stdlib (Depends-on): Add unistd.
62925         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62926         Needed for MacOS X 10.3.
62927
62928 2007-03-17  Bruno Haible  <bruno@clisp.org>
62929
62930         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62931
62932 2007-03-17  Bruno Haible  <bruno@clisp.org>
62933
62934         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62935
62936 2007-03-17  Bruno Haible  <bruno@clisp.org>
62937
62938         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62939         to reflect files copied from gnulib (with or without modifications).
62940         Suggested by Jim Meyering.
62941
62942 2007-03-17  Eric Blake  <ebb9@byu.net>
62943
62944         * NEWS: Document stdlib change from 2007-02-18.
62945
62946 2007-03-17  Jim Meyering  <jim@meyering.net>
62947
62948         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62949         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62950         someone uses a name containing shell meta-characters.
62951         Reported by Alfred M. Szmidt.
62952
62953         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62954
62955 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62956
62957         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62958         and copy gettext configuration files only if configure.ac contains
62959         a use of AM_GNU_GETTEXT_VERSION.
62960
62961 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62962
62963         * build-aux/bootstrap (gnulib_name): New variable.
62964         (gnulib_tool_options): Use it.
62965
62966 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62967
62968         * tests/test-des.c: Use new namespace.
62969
62970 2007-03-15  Bruno Haible  <bruno@clisp.org>
62971
62972         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62973         Reported by James Youngman <jay@gnu.org>.
62974
62975 2007-03-15  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62978         declared prototype. Needed with cc on OSF/1 5.1.
62979
62980 2007-03-15  Bruno Haible  <bruno@clisp.org>
62981
62982         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62983         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62984         (struct gl_list_implementation): Add dispose_fn argument to the
62985         'create_empty', 'create' methods.
62986         (struct gl_list_impl_base): Add field 'dispose_fn'.
62987         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62988         argument.
62989         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62990         dispose_fn argument.
62991         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62992         dispose_fn on the dropped values.
62993         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62994         dispose_fn argument.
62995         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62996         dropped values.
62997         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62998         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62999         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63000         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63001         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63002         argument.
63003         (gl_tree_list_free): Call dispose_fn on the dropped values.
63004         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63005         the dropped values.
63006         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63007         Add dispose_fn argument.
63008         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63009         Call dispose_fn on the dropped values.
63010         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63011         Add dispose_fn argument.
63012         (gl_sublist_create): Initialize the 'dispose_fn' field.
63013         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63014         * tests/test-array_list.c (main): Update.
63015         * tests/test-carray_list.c (main): Update.
63016         * tests/test-avltree_list.c (main): Update.
63017         * tests/test-rbtree_list.c (main): Update.
63018         * tests/test-avltreehash_list.c (main): Update.
63019         * tests/test-rbtreehash_list.c (main): Update.
63020         * tests/test-linked_list.c (main): Update.
63021         * tests/test-linkedhash_list.c (main): Update.
63022         * tests/test-array_oset.c (main): Update.
63023
63024 2007-03-15  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63027         (gl_oset_create_empty): Add dispose_fn argument.
63028         (struct gl_oset_implementation): Add dispose_fn argument to
63029         'create_empty' method.
63030         (struct gl_oset_impl_base): Add dispose_fn field.
63031         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63032         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63033         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63034         values.
63035         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63036         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63037         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63038         dropped value.
63039         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63040         dropped value.
63041         * tests/test-array_oset.c (main): Update.
63042         * tests/test-avltree_oset.c (main): Update.
63043         * tests/test-rbtree_oset.c (main): Update.
63044         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63045
63046 2007-03-13  Bruno Haible  <bruno@clisp.org>
63047
63048         * tests/test-stdbool.c (i): Update after last patch.
63049
63050 2007-03-12  Bruno Haible  <bruno@clisp.org>
63051
63052         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63053         the iswprint macro. Needed on Solaris 2.5.1.
63054
63055 2007-03-12  Bruno Haible  <bruno@clisp.org>
63056
63057         * tests/test-printf-frexp.c (main): Declare x as volatile.
63058
63059 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63060
63061         * doc/gnulib.texi (Build robot for gnulib): New section.
63062
63063 2007-03-12  Jim Meyering  <jim@meyering.net>
63064
63065         * build-aux/bootstrap: New file.
63066         * build-aux/bootstrap.conf: New file, from coreutils.
63067
63068 2007-03-11  Bruno Haible  <bruno@clisp.org>
63069
63070         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63071
63072 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63073
63074         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63075         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63076         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63077
63078 2007-03-11  Bruno Haible  <bruno@clisp.org>
63079
63080         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63081         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63082
63083 2007-03-11  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63086         formula. Needed for SunPRO C 5.0.
63087
63088 2007-03-11  Bruno Haible  <bruno@clisp.org>
63089
63090         * modules/long-options (Depends-on): Add getopt.
63091
63092 2007-03-11  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/modechange (Depends-on): Add stdbool.
63095
63096 2007-03-11  Bruno Haible  <bruno@clisp.org>
63097
63098         * modules/i-ring (Depends-on): Add stdbool.
63099
63100 2007-03-11  Bruno Haible  <bruno@clisp.org>
63101
63102         * modules/gc-des (Depends-on): Add stdbool.
63103
63104 2007-03-11  Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63107
63108 2007-03-11  Bruno Haible  <bruno@clisp.org>
63109
63110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63111
63112 2007-03-11  Bruno Haible  <bruno@clisp.org>
63113
63114         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63115
63116 2007-03-11  Bruno Haible  <bruno@clisp.org>
63117
63118         * lib/vasnprintf.c (sprintf): Undefine.
63119
63120 2007-03-11  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63123         initializers in SunPRO C and Compaq C compilers.
63124
63125 2007-03-11  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63128         decrementing code ANSI C compliant.
63129
63130 2007-03-11  Bruno Haible  <bruno@clisp.org>
63131
63132         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63133         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63134
63135 2007-03-11  Bruno Haible  <bruno@clisp.org>
63136
63137         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63138         <stdbool.h> substitute doesn't pass.
63139
63140 2007-03-11  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63143
63144 2007-03-11  Bruno Haible  <bruno@clisp.org>
63145
63146         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63147         script, for submission to autobuild.josefsson.org.
63148
63149 2007-03-10  Bruno Haible  <bruno@clisp.org>
63150
63151         * modules/canonicalize-lgpl-tests: New file.
63152         * tests/test-canonicalize-lgpl.sh: New file.
63153         * tests/test-canonicalize-lgpl.c: New file.
63154
63155         * modules/c-strcase-tests: New file.
63156         * tests/test-c-strcase.sh: New file.
63157         * tests/test-c-strcasecmp.c: New file.
63158         * tests/test-c-strncasecmp.c: New file.
63159
63160         * modules/atexit-tests: New file.
63161         * tests/test-atexit.sh: New file.
63162         * tests/test-atexit.c: New file.
63163
63164 2007-03-10  Bruno Haible  <bruno@clisp.org>
63165
63166         * tests/test-binary-io.sh: Use temporary filenames that are not so
63167         likely to clash with those of other tests (in a parallel make).
63168         * tests/test-binary-io.c: Likewise.
63169
63170 2007-03-10  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63173         fallback; use #error instead.
63174         Suggested by Simon Josefsson.
63175
63176 2007-03-10  Bruno Haible  <bruno@clisp.org>
63177
63178         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63179         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63180         first and the last.
63181
63182 2007-03-10  Bruno Haible  <bruno@clisp.org>
63183
63184         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63185
63186 2007-03-10  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63189         "make distcheck".
63190         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63191         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63192         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63193
63194 2007-03-10  Bruno Haible  <bruno@clisp.org>
63195
63196         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63197         variable.
63198         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63199         variable.
63200
63201 2007-03-09  Eric Blake  <ebb9@byu.net>
63202         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63203
63204         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63205         types are not being provided by gnulib.
63206         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63207         types are supported.
63208
63209 2007-03-10  Bruno Haible  <bruno@clisp.org>
63210
63211         * lib/stdio_.h (__attribute__): New macro.
63212         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63213         vsprintf): Specify __attribute__ __format__ for GCC.
63214         Suggested by Eric Blake.
63215
63216 2007-03-09  Bruno Haible  <bruno@clisp.org>
63217
63218         * modules/printf-posix-tests: New file.
63219         * tests/test-printf-posix.sh: New file.
63220         * tests/test-printf-posix.c: New file.
63221
63222         * modules/printf-posix: New file.
63223         * lib/printf.c: New file.
63224         * m4/printf-posix-rpl.m4: New file.
63225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63226         REPLACE_PRINTF.
63227         * lib/stdio_.h (printf): New declaration.
63228         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63229         ____strfmon____): New macros.
63230         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63231         REPLACE_PRINTF.
63232
63233 2007-03-09  Bruno Haible  <bruno@clisp.org>
63234
63235         * tests/test-vasnprintf-posix2.sh: New file.
63236         * tests/test-vasnprintf-posix2.c: New file.
63237         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63238         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63239         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63240
63241         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63242         a locale dependent decimal point, rather than always '.'.
63243
63244 2007-03-09  Eric Blake  <ebb9@byu.net>
63245
63246         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63247         spite of platforms like Tandem/NSK that define it to -1.
63248
63249 2007-03-08  Bruno Haible  <bruno@clisp.org>
63250
63251         * modules/vprintf-posix-tests: New file.
63252         * tests/test-vprintf-posix.sh: New file.
63253         * tests/test-vprintf-posix.c: New file.
63254         * tests/test-printf-posix.h: New file.
63255
63256         * modules/vprintf-posix: New file.
63257         * lib/vprintf.c: New file.
63258         * m4/vprintf-posix.m4: New file.
63259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63260         REPLACE_VPRINTF.
63261         * lib/stdio_.h (vprintf): New declaration.
63262         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63263         REPLACE_VPRINTF.
63264
63265 2007-03-08  Bruno Haible  <bruno@clisp.org>
63266
63267         * modules/fprintf-posix-tests: New file.
63268         * tests/test-fprintf-posix.sh: New file.
63269         * tests/test-fprintf-posix.c: New file.
63270
63271         * modules/fprintf-posix: New file.
63272         * lib/fprintf.c: New file.
63273         * m4/fprintf-posix.m4: New file.
63274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63275         REPLACE_FPRINTF.
63276         * lib/stdio_.h (fprintf): New declaration.
63277         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63278         REPLACE_FPRINTF.
63279
63280 2007-03-08  Bruno Haible  <bruno@clisp.org>
63281
63282         * modules/vfprintf-posix-tests: New file.
63283         * tests/test-vfprintf-posix.sh: New file.
63284         * tests/test-vfprintf-posix.c: New file.
63285         * tests/test-fprintf-posix.h: New file.
63286         * tests/test-fprintf-posix.out: New file.
63287
63288         * modules/vfprintf-posix: New file.
63289         * lib/vfprintf.c: New file.
63290         * m4/vfprintf-posix.m4: New file.
63291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63292         REPLACE_VFPRINTF.
63293         * lib/stdio_.h (vfprintf): New declaration.
63294         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63295         REPLACE_VFPRINTF.
63296
63297 2007-03-08  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63300
63301 2007-03-08  Bruno Haible  <bruno@clisp.org>
63302
63303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63304         instead of 'expr' invocations.
63305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63310         Suggested by Paul Eggert.
63311
63312 2007-03-08  Bruno Haible  <bruno@clisp.org>
63313
63314         * modules/fseterr-tests: New file.
63315         * tests/test-fseterr.c: New file.
63316
63317         * modules/fseterr: New file.
63318         * lib/fseterr.h: New file.
63319         * lib/fseterr.c: New file.
63320
63321 2007-03-08  Bruno Haible  <bruno@clisp.org>
63322
63323         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63324         * lib/getopt_.h: Likewise.
63325         * lib/mbswidth.h: Likewise.
63326         * lib/setenv.h: Likewise.
63327         * lib/vasnprintf.h: Likewise.
63328         * lib/vasprintf.h: Likewise.
63329         * lib/verror.h: Likewise.
63330         * lib/xsetenv.h: Likewise.
63331         * lib/xvasprintf.h: Likewise.
63332
63333 2007-03-08  Jim Meyering  <jim@meyering.net>
63334
63335         * users.txt: Add parted.
63336
63337         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63338
63339 2007-03-07  Bruno Haible  <bruno@clisp.org>
63340
63341         * m4/printf.m4: Make the shell script snippets copy&pastable.
63342
63343 2007-03-02  Bruno Haible  <bruno@clisp.org>
63344
63345         * lib/netinet_in_.h: New file.
63346         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63347         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63348         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63349         (Depends-on): Add absolute-header.
63350         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63351         into netinet/in.h.
63352
63353 2007-03-03  Bruno Haible  <bruno@clisp.org>
63354
63355         * lib/sys_select_.h: New file.
63356         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63357         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63358         * modules/sys_select (Files): Add lib/sys_select_.h.
63359         (Depends-on): Add absolute-header.
63360         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63361         into sys/select.h.
63362
63363 2007-03-02  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63366         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63367         values.
63368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63369         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63370         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63371         * modules/sys_socket (Depends-on): Add absolute-header.
63372         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63373         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63374         (Include): Remove requirement of inclusion of <sys/types.h>.
63375
63376 2007-03-02  Bruno Haible  <bruno@clisp.org>
63377
63378         * lib/byteswap_.h (bswap_32): Fix formula.
63379
63380 2007-03-06  Bruno Haible  <bruno@clisp.org>
63381
63382         * modules/sprintf-posix-tests: New file.
63383         * tests/test-sprintf-posix.c: New file.
63384
63385         * modules/sprintf-posix: New file.
63386         * lib/sprintf.c: New file.
63387         * m4/sprintf-posix.m4: New file.
63388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63389         REPLACE_SPRINTF.
63390         * lib/stdio_.h (sprintf): New declaration.
63391         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63392         REPLACE_SPRINTF.
63393
63394 2007-03-06  Bruno Haible  <bruno@clisp.org>
63395
63396         * modules/vsprintf-posix-tests: New file.
63397         * tests/test-vsprintf-posix.c: New file.
63398         * tests/test-sprintf-posix.h: New file.
63399
63400         * modules/vsprintf-posix: New file.
63401         * lib/vsprintf.c: New file.
63402         * m4/vsprintf-posix.m4: New file.
63403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63404         REPLACE_VSPRINTF.
63405         * lib/stdio_.h (vsprintf): New declaration.
63406         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63407         REPLACE_VSPRINTF.
63408
63409 2007-03-06  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/vsnprintf (Depend-on): Remove minmax.
63412
63413 2007-03-06  Bruno Haible  <bruno@clisp.org>
63414
63415         * modules/snprintf-posix-tests: New file.
63416         * tests/test-snprintf-posix.c: New file.
63417
63418         * modules/snprintf-posix: New file.
63419         * m4/snprintf-posix.m4: New file.
63420         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63421         gl_FUNC_SNPRINTF.
63422         (gl_FUNC_SNPRINTF): Invoke it.
63423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63424         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63425         is set.
63426         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63427
63428 2007-03-06  Bruno Haible  <bruno@clisp.org>
63429
63430         * modules/vsnprintf-posix-tests: New file.
63431         * tests/test-vsnprintf-posix.c: New file.
63432         * tests/test-snprintf-posix.h: New file.
63433
63434         * modules/vsnprintf-posix: New file.
63435         * m4/vsnprintf-posix.m4: New file.
63436         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63437         gl_FUNC_VSNPRINTF.
63438         (gl_FUNC_VSNPRINTF): Invoke it.
63439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63440         * lib/stdio_.h (vsnprintf): Define as a replacement if
63441         REPLACE_VSNPRINTF is set.
63442         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63443
63444 2007-03-06  Bruno Haible  <bruno@clisp.org>
63445
63446         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63448
63449 2007-03-06  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63452         (asinl): Declare also if HAVE_DECL_ASINL is set.
63453         (atanl): Declare also if HAVE_DECL_ATANL is set.
63454         (ceill): Declare also if HAVE_DECL_CEILL is set.
63455         (cosl): Declare also if HAVE_DECL_COSL is set.
63456         (expl): Declare also if HAVE_DECL_EXPL is set.
63457         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63458         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63459         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63460         (logl): Declare also if HAVE_DECL_LOGL is set.
63461         (sinl): Declare also if HAVE_DECL_SINL is set.
63462         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63463         (tanl): Declare also if HAVE_DECL_TANL is set.
63464         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63466         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63467         declaration of frexpl, ldexpl.
63468         * modules/printf-frexpl (Depends-on): Add math.
63469         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63470
63471 2007-03-05  Bruno Haible  <bruno@clisp.org>
63472
63473         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63474         frexpl and ldexpl are declared.
63475         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63476
63477 2007-03-05  Bruno Haible  <bruno@clisp.org>
63478
63479         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63480         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63481
63482 2007-03-05  Bruno Haible  <bruno@clisp.org>
63483
63484         * lib/stdio_.h: Include <stddef.h>.
63485
63486 2007-03-05  Bruno Haible  <bruno@clisp.org>
63487
63488         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63489
63490 2007-03-05  Bruno Haible  <bruno@clisp.org>
63491
63492         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63493         NetBSD 4, from Ralf Wildenhues.
63494
63495 2007-03-04  Bruno Haible  <bruno@clisp.org>
63496
63497         * lib/vasprintf.h: Update #if logic for the case when the functions
63498         exist but are overridden.
63499
63500 2007-03-04  Bruno Haible  <bruno@clisp.org>
63501
63502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63503         implementations: glibc-2.4 and MacOS X 10.3.
63504         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63505         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63506         * tests/test-vasprintf-posix.c (test_function): Likewise.
63507
63508 2007-03-04  Bruno Haible  <bruno@clisp.org>
63509
63510         * modules/vasprintf-posix-tests: New file.
63511         * tests/test-vasprintf-posix.c: New file.
63512
63513         * modules/vasprintf-posix: New file.
63514         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63515         defined.
63516         * m4/vasprintf-posix.m4: New file.
63517         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63518         gl_FUNC_VASPRINTF.
63519         (gl_FUNC_VASPRINTF): Invoke it.
63520         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63521         here.
63522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63523
63524 2007-03-04  Bruno Haible  <bruno@clisp.org>
63525
63526         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63527         REPLACE_GETTIMEOFDAY.
63528         * modules/sys_time (Makefile.am): Likewise.
63529         * m4/sys_time_h.m4: Likewise.
63530         * m4/gettimeofday.m4: Likewise.
63531
63532 2007-03-04  Bruno Haible  <bruno@clisp.org>
63533
63534         * modules/vasnprintf-posix-tests: New file.
63535         * tests/test-vasnprintf-posix.c: New file.
63536
63537         * modules/vasnprintf-posix: New file.
63538         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63539         printf-frexpl.h.
63540         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63541         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63542         REPLACE_VASNPRINTF is defined.
63543         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63544         gl_FUNC_VASNPRINTF.
63545         (gl_FUNC_VASNPRINTF): Invoke it.
63546         * m4/vasnprintf-posix.m4: New file.
63547         * m4/printf.m4: New file.
63548
63549 2007-03-04  Bruno Haible  <bruno@clisp.org>
63550
63551         Compile progreloc.c only if --enable-relocatable is specified.
63552         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63553         if --enable-relocatable was specified.
63554         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63555         lib_SOURCES.
63556
63557 2007-03-04  Jim Meyering  <jim@meyering.net>
63558
63559         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63560         Use it consistently, rather than enumerating errno constants.
63561
63562 2007-03-04  Bruno Haible  <bruno@clisp.org>
63563
63564         * modules/xvasprintf-tests: New file.
63565         * tests/test-xvasprintf.c: New file.
63566
63567         * modules/vasprintf-tests: New file.
63568         * tests/test-vasprintf.c: New file.
63569
63570         * modules/vasnprintf-tests: New file.
63571         * tests/test-vasnprintf.c: New file.
63572
63573         * modules/vsnprintf-tests: New file.
63574         * tests/test-vsnprintf.c: New file.
63575
63576         * modules/snprintf-tests: New file.
63577         * tests/test-snprintf.c: New file.
63578
63579 2007-03-04  Bruno Haible  <bruno@clisp.org>
63580
63581         Compile relocatable.c only if --enable-relocatable is specified.
63582         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63583         gl_RELOCATABLE_LIBRARY.
63584         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63585         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63586         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63587         gl_RELOCATABLE_LIBRARY.
63588         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63589         (Makefile.am): Remove lib_SOURCES.
63590         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63591         gl_RELOCATABLE_LIBRARY.
63592         (Makefile.am): Remove lib_SOURCES.
63593         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63594         always.
63595         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63596         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63597
63598 2007-03-04  Bruno Haible  <bruno@clisp.org>
63599
63600         * modules/argmatch-tests: New file.
63601         * tests/test-argmatch.c: New file.
63602
63603         * tests/test-allocsa.c (main): Halve the number of loop runs.
63604
63605         * modules/alloca-opt-tests: New file.
63606         * tests/test-alloca-opt.c: New file.
63607
63608 2007-03-04  Jim Meyering  <jim@meyering.net>
63609
63610         Work around difference between Linux ACLs and Solaris 10 ZFS.
63611         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63612         for EINVAL.
63613
63614 2007-03-03  Bruno Haible  <bruno@clisp.org>
63615
63616         * modules/relocatable-prog (Depends-on): Add back progreloc's
63617         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63618
63619 2007-03-03  Bruno Haible  <bruno@clisp.org>
63620
63621         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63622         * modules/relocatable-lib: New file.
63623
63624 2007-03-03  Bruno Haible  <bruno@clisp.org>
63625
63626         * modules/relocatable-prog: Renamed from modules/relocatable.
63627         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63628
63629 2007-03-03  Bruno Haible  <bruno@clisp.org>
63630
63631         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63632         m4/relocatable-lib.m4.
63633         (Depends-on): Remove 'relocatable'.
63634         (configure.ac): Add gl_RELOCATABLE_NOP.
63635
63636 2007-03-03  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/relocatable-prog-wrapper: New file.
63639         * modules/relocatable (Depends-on): Add it. Remove all other
63640         dependencies except progname.
63641         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63642
63643         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63644         (gl_FUNC_STRERROR): Nop.
63645         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63646
63647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63648         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63649
63650         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63651         (gl_FUNC_READLINK): Update.
63652
63653         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63654
63655 2007-03-03  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63658         * modules/xreadlink (Depends-on): Add unistd.
63659         * modules/xreadlink-with-size (Depends-on): Likewise.
63660
63661 2007-03-03  Bruno Haible  <bruno@clisp.org>
63662
63663         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63664         extracted from gt_FUNC_SETENV.
63665         (gt_FUNC_SETENV): Remove macro.
63666         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63667         remove gt_FUNC_SETENV.
63668
63669 2007-03-03  Bruno Haible  <bruno@clisp.org>
63670
63671         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63672         ENABLE_RELOCATABLE here.
63673         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63674
63675 2007-03-03  Bruno Haible  <bruno@clisp.org>
63676
63677         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63678         * tests/test-rbtreehash_list.c: Include progname.h.
63679         (main): Call set_program_name.
63680
63681         * modules/rbtree-oset-tests (Depends-on): Add progname.
63682         * tests/test-rbtree_oset.c: Include progname.h.
63683         (main): Call set_program_name.
63684
63685         * modules/rbtree-list-tests (Depends-on): Add progname.
63686         * tests/test-rbtree_list.c: Include progname.h.
63687         (main): Call set_program_name.
63688
63689         * modules/linked-list-tests (Depends-on): Add progname.
63690         * tests/test-linked_list.c: Include progname.h.
63691         (main): Call set_program_name.
63692
63693 2007-03-03  Bruno Haible  <bruno@clisp.org>
63694
63695         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63696         All uses of __restrict changed to _Restrict_.
63697         * lib/glob_.h (__restrict): Remove macro.
63698
63699 2007-03-02  Bruno Haible  <bruno@clisp.org>
63700
63701         * modules/gettext (configure.ac): Require gettext infrastructure
63702         from version 0.16.1.
63703
63704 2007-03-02  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/linkedhash-list-tests (Depends-on): Add progname.
63707         * tests/test-linkedhash_list.c: Include progname.h.
63708         (main): Call set_program_name.
63709
63710         * modules/carray-list-tests (Depends-on): Add progname.
63711         * tests/test-carray_list.c: Include progname.h.
63712         (main): Call set_program_name.
63713
63714         * modules/avltreehash-list-tests (Depends-on): Add progname.
63715         * tests/test-avltreehash_list.c: Include progname.h.
63716         (main): Call set_program_name.
63717
63718         * modules/avltree-oset-tests (Depends-on): Add progname.
63719         * tests/test-avltree_oset.c: Include progname.h.
63720         (main): Call set_program_name.
63721
63722         * modules/avltree-list-tests (Depends-on): Add progname.
63723         * tests/test-avltree_list.c: Include progname.h.
63724         (main): Call set_program_name.
63725
63726         * modules/array-oset-tests (Depends-on): Add progname.
63727         * tests/test-array_oset.c: Include progname.h.
63728         (main): Call set_program_name.
63729
63730         * modules/array-list-tests (Depends-on): Add progname.
63731         * tests/test-array_list.c: Include progname.h.
63732         (main): Call set_program_name.
63733
63734         * modules/argp-tests (Depends-on): Add progname.
63735         * tests/test-argp.c: Include argp.h first. Include progname.h.
63736         (main): Call set_program_name.
63737
63738 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63739
63740         * doc/gnulib-tool.texi (Initial import): Reword description of
63741         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63742         limited effect even if defined after the first system include.
63743
63744 2007-03-01  Bruno Haible  <bruno@clisp.org>
63745
63746         * build-aux/config.libpath: Update to libtool-1.5.22.
63747         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63748
63749 2007-03-01  Bruno Haible  <bruno@clisp.org>
63750
63751         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63752         foo_CFLAGS.
63753         Reported by Ralf Wildenhues.
63754
63755 2007-03-01  Bruno Haible  <bruno@clisp.org>
63756
63757         * build-aux/install-reloc: Remove object files left over by some
63758         compilers.
63759         Reported by Ralf Wildenhues.
63760
63761 2007-03-01  Bruno Haible  <bruno@clisp.org>
63762
63763         * build-aux/install-reloc: Break long lines.
63764
63765 2007-03-01  Bruno Haible  <bruno@clisp.org>
63766
63767         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63768         Reported by Ralf Wildenhues.
63769
63770 2007-03-01  Bruno Haible  <bruno@clisp.org>
63771
63772         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63773         include ordering constraints.
63774
63775 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63776
63777         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63779         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63780         as another example.
63781         * lib/time_.h: Fix misspelling.
63782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63783         Require gl_HEADER_TIME_H_DEFAULTS.
63784         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63785         * m4/time_r.m4 (gl_TIME_R): Likewise.
63786         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63787
63788 2007-03-01  Bruno Haible  <bruno@clisp.org>
63789
63790         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63791         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63792
63793 2007-03-01  Jim Meyering  <jim@meyering.net>
63794
63795         * modules/xreadlink (Maintainer): Add my name.
63796         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63797
63798 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63799             Bruno Haible  <bruno@clisp.org>
63800
63801         * build-aux/install-reloc: Compile also c-ctype.c.
63802         * build-aux/relocatable.sh.in: New file.
63803         * doc/relocatable.texi: New file.
63804         * doc/relocatable-maint.texi: New file.
63805         * doc/gnulib.texi: Include relocatable-maint.texi.
63806         * lib/progreloc.c: Include unistd.h unconditionally.
63807         * lib/relocwrapper.c: Include unistd.h unconditionally.
63808         Include c-ctype.h.
63809         (add_dotbin): Use c_tolower.
63810         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63811         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63812         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63813         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63814         to m4/relocatable-lib.m4.
63815         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63816         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63817         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63818         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63819         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63820         * modules/relocatable: New file.
63821         * modules/relocatable-lib: New file.
63822         * modules/relocatable-script: New file.
63823
63824 2007-02-28  Bruno Haible  <bruno@clisp.org>
63825
63826         Import --enable-relocatable infrastructure.
63827         * build-aux/config.libpath: New file, from GNU gettext.
63828         * build-aux/install-reloc: New file, from GNU gettext.
63829         * build-aux/reloc-ldflags: New file, from GNU gettext.
63830         * lib/relocatable.h: New file, from GNU gettext.
63831         * lib/relocatable.c: New file, from GNU gettext.
63832         * lib/relocwrapper.c: New file, from GNU gettext.
63833         * m4/relocatable.m4: New file, from GNU gettext.
63834
63835 2007-02-28  Bruno Haible  <bruno@clisp.org>
63836
63837         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63838
63839         * modules/xreadlink: New file, from GNU gettext with modifications.
63840         * lib/xreadlink.c: New file, from GNU gettext.
63841         * lib/xreadlink.h: Add comments.
63842         (xreadlink): New declaration.
63843
63844         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63845         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63846         lib/xreadlink-with-size.c.
63847         (configure.ac): Remove gl_XREADLINK invocation.
63848         (Makefile.am): Augment lib_SOURCES.
63849         * m4/xreadlink.m4: Remove file.
63850         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63851         (xreadlink_with_size): Renamed from xreadink.
63852         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63853         * modules/canonicalize (Depends-on): Replace xreadlink with
63854         xreadlink-with-size.
63855         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63856
63857 2007-02-25  Jim Meyering  <jim@meyering.net>
63858
63859         * build-aux/announce-gen: When complaining about excess arguments,
63860         list them.
63861
63862 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * README: Document signed integer overflow situation more
63865         accurately.
63866
63867 2007-02-25  Bruno Haible  <bruno@clisp.org>
63868
63869         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63870         'a' or 'A' conversion.
63871
63872 2007-02-25  Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/filename: Renamed from modules/pathname.
63875         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63876         lib/concatpath.c with lib/concat-filename.c.
63877         (Makefile.am): Update.
63878         (Include): Replace pathname.h with filename.h.
63879         * lib/filename.h: Renamed from lib/pathname.h.
63880         (concatenated_filename): Renamed from concatenated_pathname.
63881         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63882         (concatenated_filename): Renamed from concatenated_pathname.
63883         * lib/findprog.c: Include filename.h instead of pathname.h.
63884         (find_in_path): Update.
63885         * lib/javacomp.c: Include filename.h instead of pathname.h.
63886         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63887         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63888         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63889         is_oldgcj_14_13_usable, is_javac_usable): Update.
63890         * lib/javaexec.c: Include filename.h instead of pathname.h.
63891         (execute_java_class): Update.
63892         * modules/findprog: Update.
63893         * modules/javacomp: Update.
63894         * modules/javaexec: Update.
63895         * MODULES.html.sh (File system functions): Add 'filename', remove
63896         'pathname'.
63897
63898 2007-02-25  Bruno Haible  <bruno@clisp.org>
63899
63900         * modules/printf-frexpl-tests: New file.
63901         * tests/test-printf-frexpl.c: New file.
63902
63903         * modules/printf-frexpl: New file.
63904         * lib/printf-frexpl.h: New file.
63905         * lib/printf-frexpl.c: New file.
63906         * m4/printf-frexpl.m4: New file.
63907
63908 2007-02-25  Bruno Haible  <bruno@clisp.org>
63909
63910         * modules/printf-frexp-tests: New file.
63911         * tests/test-printf-frexp.c: New file.
63912
63913         * modules/printf-frexp: New file.
63914         * lib/printf-frexp.h: New file.
63915         * lib/printf-frexp.c: New file.
63916         * m4/printf-frexp.m4: New file.
63917
63918 2007-02-25  Bruno Haible  <bruno@clisp.org>
63919
63920         Assume automake >= 1.10 for the tests.
63921         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63922         * modules/arctwo-tests: Likewise.
63923         * modules/argp-tests: Likewise.
63924         * modules/avltree-list-tests: Likewise.
63925         * modules/avltree-oset-tests: Likewise.
63926         * modules/avltreehash-list-tests: Likewise.
63927         * modules/carray-list-tests: Likewise.
63928         * modules/crc-tests: Likewise.
63929         * modules/des-tests: Likewise.
63930         * modules/gc-arcfour-tests: Likewise.
63931         * modules/gc-arctwo-tests: Likewise.
63932         * modules/gc-des-tests: Likewise.
63933         * modules/gc-hmac-md5-tests: Likewise.
63934         * modules/gc-hmac-sha1-tests: Likewise.
63935         * modules/gc-md2-tests: Likewise.
63936         * modules/gc-md4-tests: Likewise.
63937         * modules/gc-md5-tests: Likewise.
63938         * modules/gc-pbkdf2-sha1-tests: Likewise.
63939         * modules/gc-rijndael-tests: Likewise.
63940         * modules/gc-sha1-tests: Likewise.
63941         * modules/gc-tests: Likewise.
63942         * modules/getaddrinfo-tests: Likewise.
63943         * modules/hmac-md5-tests: Likewise.
63944         * modules/hmac-sha1-tests: Likewise.
63945         * modules/linked-list-tests: Likewise.
63946         * modules/linkedhash-list-tests: Likewise.
63947         * modules/lock-tests: Likewise.
63948         * modules/md2-tests: Likewise.
63949         * modules/md4-tests: Likewise.
63950         * modules/md5-tests: Likewise.
63951         * modules/rbtree-list-tests: Likewise.
63952         * modules/rbtree-oset-tests: Likewise.
63953         * modules/rbtreehash-list-tests: Likewise.
63954         * modules/read-file-tests: Likewise.
63955         * modules/rijndael-tests: Likewise.
63956         * modules/stdint-tests: Likewise.
63957         * modules/tls-tests: Likewise.
63958
63959 2007-02-24  Bruno Haible  <bruno@clisp.org>
63960
63961         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63962         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63963         function; instead check whether isnan with a double argument links.
63964         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63965         function; instead check whether isnan with a 'long double' argument
63966         links.
63967         Reported by Eric Blake <ebb9@byu.net>.
63968
63969 2007-02-24  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63972         defined.
63973         * lib/isnanl.c: Remove all code. Just include isnan.c.
63974         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63975
63976 2007-02-25  Jim Meyering  <jim@meyering.net>
63977
63978         Avoid conflicting types for 'unsetenv' on FreeBSD.
63979         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63980         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63981         in stdlib.h.
63982
63983 2007-02-24  Bruno Haible  <bruno@clisp.org>
63984
63985         * modules/isnanl-nolibm-tests: New file.
63986         * tests/test-isnanl.c: New file.
63987
63988         * modules/isnanl-nolibm: New file.
63989         * lib/isnanl.h: New file.
63990         * lib/isnanl.c: New file.
63991         * m4/isnanl.m4: New file.
63992
63993 2007-02-24  Bruno Haible  <bruno@clisp.org>
63994
63995         * modules/isnan-nolibm-tests: New file.
63996         * tests/test-isnan.c: New file.
63997
63998         * modules/isnan-nolibm: New file.
63999         * lib/isnan.h: New file.
64000         * lib/isnan.c: New file.
64001         * m4/isnan.m4: New file.
64002
64003 2007-02-24  Bruno Haible  <bruno@clisp.org>
64004
64005         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64006         assume that an exponent fits in 20 bits.
64007
64008 2007-02-24  Jim Meyering  <jim@meyering.net>
64009
64010         * m4/regex.m4: Update the description of the configure-time option,
64011         --without-included-regex, to state accurately what the defaults are,
64012         and perhaps to give people an idea why using this option is risky.
64013
64014 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64015
64016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64017         loops on small arguments.  This attempts to avoid the problem
64018         Bruno Haible reported for AIX 4.3.2 in
64019         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64020
64021 2007-02-23  Bruno Haible  <bruno@clisp.org>
64022
64023         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64024         Needed for help2man.
64025
64026 2007-02-23  Karl Berry  <karl@gnu.org>
64027
64028         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64029         exists, foo.h should be cvs-ignored, not committed.
64030
64031 2007-02-23  Eric Blake  <ebb9@byu.net>
64032
64033         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64034         * lib/stat-time.h (includes): Likewise.
64035         * lib/utimecmp.c (includes): Likewise.
64036         * lib/utimens.h (includes): Likewise.
64037         * lib/getdate.y (includes): Also include "timespec.h" for use
64038         internal to the module.
64039         * modules/utimens (Depends-on): Revert yesterday's patch.
64040         * modules/nanosleep (Depends-on): Add missing dependency.
64041
64042 2007-02-22  Bruno Haible  <bruno@clisp.org>
64043
64044         * lib/glob.c: Don't include getlogin_r.h.
64045
64046 2007-02-22  Jim Meyering  <jim@meyering.net>
64047
64048         * modules/utimens (Depends-on): Add timespec, required for
64049         utimens.h's inclusion of timespec.h.
64050
64051 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64054         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64055         Schwab in
64056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64057         I'll try to think of a better way to fix the Solaris problem.
64058
64059         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64060         like glibc; on Solaris 10, it fails with errno == EINVAL.
64061         POSIX says the behavior is unspecified if the first argument is NULL,
64062         so play it safe and never pass NULL to the system getcwd.
64063
64064 2007-02-21  Jim Meyering  <jim@meyering.net>
64065
64066         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64067         of gettimeofday.  It would conflict with the one now always
64068         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64069         an IRIX 6.5 build failure.
64070
64071 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64072
64073         Minor fixups to port to Solaris 10 with Sun C 5.8.
64074         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64075         * modules/getcwd (Depends-on): Add dirfd.
64076         * lib/putenv.c (putenv): #undef it.
64077         (rpl_putenv): New decl.
64078         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64079
64080 2007-02-20  Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/stdio-tests: New file.
64083         * tests/test-stdio.c: New file.
64084
64085         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64086         (Depends-on): Add stdio.
64087         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64088         (Include): Use <stdio.h> instead of vsnprintf.h.
64089         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64090         HAVE_DECL_VSNPRINTF.
64091         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64092
64093         * modules/snprintf (Files): Remove lib/snprintf.h.
64094         (Depends-on): Add stdio.
64095         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64096         (Include): Use <stdio.h> instead of snprintf.h.
64097         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64098         HAVE_DECL_SNPRINTF.
64099         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64100         * lib/getaddrinfo.c: Likewise.
64101
64102         * modules/stdio: New file.
64103         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64104         * lib/snprintf.h: Remove file.
64105         * lib/vsnprintf.h: Remove file.
64106         * lib/.cppi-disable: Remove snprintf.h.
64107         * m4/stdio_h.m4: New file.
64108         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64109
64110 2007-02-20  Jim Meyering  <jim@meyering.net>
64111
64112         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64113         used by e.g., mingw.  From Bruno Haible.
64114
64115 2007-02-19  Bruno Haible  <bruno@clisp.org>
64116
64117         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64118         warnings.
64119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64120
64121 2007-02-19  Bruno Haible  <bruno@clisp.org>
64122
64123         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64124         from mingw users.
64125
64126 2007-02-19  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64129         warnings.
64130         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64131
64132 2007-02-19  Jim Meyering  <jim@meyering.net>
64133
64134         Don't use FD after a successful "fdopendir (fd)".
64135         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64136         Reset it by calling dirfd on the just-obtained DIR*.
64137
64138         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64139         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64140
64141 2007-02-18  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/readlink.c: Include <unistd.h>.
64144         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64145         HAVE_READLINK.
64146         * modules/readlink (Depends-on): Add unistd.
64147         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64148         (Include): Add <unistd.h>.
64149
64150         * lib/getlogin_r.h: Remove file.
64151         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64152         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64153         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64154         HAVE_DECL_GETLOGIN_R.
64155         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64157         (Include): Use <unistd.h> instead of getlogin_r.h.
64158
64159         * lib/getcwd.h: Remove file.
64160         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64161         * lib/xgetcwd.c: Likewise.
64162         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64163         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64164         * modules/getcwd (Files): Remove lib/getcwd.h.
64165         (Depends-on): Add unistd.
64166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64167         (Include): Use <unistd.h> instad of getcwd.h.
64168
64169         * lib/ftruncate.c: Include <unistd.h> first.
64170         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64171         Set HAVE_FTRUNCATE.
64172         * modules/ftruncate (Depends-on): Add unistd.
64173         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64174
64175         * lib/fchdir.c: Include <unistd.h> first.
64176         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64178         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64179         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64180         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64181
64182         * lib/dup2.c: Include <unistd.h> first.
64183         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64184         HAVE_DUP2.
64185         * modules/dup2 (Depends-on): Add unistd.
64186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64187
64188         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64189         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64190         REPLACE_CHOWN. Don't define chown as a macro here.
64191         * modules/chown (Depends-on): Add unistd.
64192         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64193
64194         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64195         Add definition for GL_LINK_WARNING.
64196         (chown, dup2): New declarations.
64197         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64198         link warning.
64199         (ftruncate): New declaration.
64200         (getcwd): New declaration, taken from old getcwd.h.
64201         (getlogin_r): New declaration, taken from old getlogin_r.h.
64202         (readlink): New declaration.
64203         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64204         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64205         (gl_PREREQ_UNISTD): Remove macro.
64206         (gl_UNISTD_MODULE_INDICATOR): New macro.
64207         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64208         many new variables. Don't set UNISTD_H.
64209         * modules/unistd (Description): Change.
64210         (Depends-on): Add link-warning.
64211         (configure.ac): Update.
64212         (Makefile.am): Create unistd.h always. Substitute many new variables
64213         into it.
64214
64215 2007-02-18  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64218         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64219         HAVE_GETSUBOPT.
64220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64221         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64222         * lib/getsubopt.h: Remove file.
64223         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64224         (Depends-on): Add stdlib.
64225         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64226         (Includes): Use <stdlib.h> instead of getsubopt.h.
64227         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64228         Set HAVE_GETSUBOPT.
64229         * lib/getsubopt.c: Don't include getsubopt.h.
64230
64231 2007-02-18  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/fchdir (Depends-on): Add dup2.
64234
64235 2007-02-18  Bruno Haible  <bruno@clisp.org>
64236
64237         * lib/stdlib_.h: Handle glibc's special invocation convention
64238         specially.
64239
64240 2007-02-18  Bruno Haible  <bruno@clisp.org>
64241
64242         * modules/stdlib-tests: New file.
64243         * tests/test-stdlib.c: New file.
64244
64245         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64246         (Depends-on): Add stdlib.
64247         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64248         (Includes): Use <stdlib.h> instead of mkstemp.h.
64249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64250         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64251         * lib/mkstemp.c: Don't include mkstemp.h.
64252         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64253         * lib/stdlib--.h: Don't include mkstemp.h.
64254
64255         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64256         (Depends-on): Add stdlib.
64257         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64258         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64259         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64260         HAVE_MKDTEMP.
64261         * lib/mkdtemp.c: Don't include mkdtemp.h.
64262         * lib/clean-temp.c: Don't include mkdtemp.h.
64263
64264         * modules/exit (Files): Remove lib/exit.h.
64265         (Depends-on): Add stdlib.
64266         (Makefile.am): Remove lib_SOURCES.
64267         (Include): Use <stdlib.h> instead of exit.h.
64268         * lib/argmatch.c: Don't include exit.h.
64269         * lib/execute.c: Likewise.
64270         * lib/pagealign_alloc.c: Likewise.
64271         * lib/pipe.c: Likewise.
64272         * lib/wait-process.c: Likewise.
64273         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64274         * lib/exitfail.c: Likewise.
64275         * lib/savewd.c: Likewise.
64276         * lib/xsetenv.c: Likewise.
64277
64278         * modules/stdlib: New file.
64279         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64280         and extra comments about mkstemp().
64281         * lib/exit.h: Remove file.
64282         * lib/mkdtemp.h: Remove file.
64283         * lib/mkstemp.h: Remove file.
64284         * m4/stdlib_h.m4: New file.
64285         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64286
64287 2007-02-18  Bruno Haible  <bruno@clisp.org>
64288
64289         * modules/math-tests: New file.
64290         * tests/test-math.c: New file.
64291
64292         * modules/math: New file.
64293         * modules/mathl (Files): Remove lib/mathl.h.
64294         (Depends-on): Add math.
64295         (Makefile.am): Don't mention mathl.h.
64296         (Include): Use <math.h> instead of mathl.h.
64297         * lib/math_.h: New file.
64298         * lib/mathl.h: Remove file.
64299         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64300         mathl.h.
64301         * lib/asinl.c: Likewise.
64302         * lib/atanl.c: Likewise.
64303         * lib/ceill.c: Likewise.
64304         * lib/cosl.c: Likewise.
64305         * lib/expl.c: Likewise.
64306         * lib/floorl.c: Likewise.
64307         * lib/frexpl.c: Likewise.
64308         * lib/ldexpl.c: Likewise.
64309         * lib/logl.c: Likewise.
64310         * lib/sincosl.c: Likewise.
64311         * lib/sinl.c: Likewise.
64312         * lib/sqrtl.c: Likewise.
64313         * lib/tanl.c: Likewise.
64314         * lib/trigl.c: Likewise.
64315         * m4/math_h.m4: New file.
64316         * MODULES.html.sh (Mathematics): Add math.
64317
64318 2007-02-17  Bruno Haible  <bruno@clisp.org>
64319
64320         * modules/wctype-tests: New file.
64321         * tests/test-wctype.c: New file.
64322
64323         * modules/wchar-tests: New file.
64324         * tests/test-wchar.c: New file.
64325
64326         * modules/unistd-tests: New file.
64327         * tests/test-unistd.c: New file.
64328
64329         * modules/time-tests: New file.
64330         * tests/test-time.c: New file.
64331
64332         * modules/sysexits-tests: New file.
64333         * tests/test-sysexits.c: New file.
64334
64335         * modules/sys_time-tests: New file.
64336         * tests/test-sys_time.c: New file.
64337
64338         * modules/sys_stat-tests: New file.
64339         * tests/test-sys_stat.c: New file.
64340
64341         * modules/sys_socket-tests: New file.
64342         * tests/test-sys_socket.c: New file.
64343
64344         * modules/sys_select-tests: New file.
64345         * tests/test-sys_select.c: New file.
64346
64347         * modules/string-tests: New file.
64348         * tests/test-string.c: New file.
64349
64350         * modules/stdbool-tests: New file.
64351         * tests/test-stdbool.c: New file.
64352
64353         * modules/netinet_in-tests: New file.
64354         * tests/test-netinet_in.c: New file.
64355
64356         * modules/inttypes-tests: New file.
64357         * tests/test-inttypes.c: New file.
64358
64359         * modules/fcntl-tests: New file.
64360         * tests/test-fcntl.c: New file.
64361
64362         * modules/byteswap-tests: New file.
64363         * tests/test-byteswap.c: New file.
64364
64365         * modules/arpa_inet-tests: New file.
64366         * tests/test-arpa_inet.c: New file.
64367
64368 2007-02-17  Bruno Haible  <bruno@clisp.org>
64369
64370         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64371         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64372         if the corresponding module is not enabled. Emit link warnings if
64373         the function is used nevertheless.
64374         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64375         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64376         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64377         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64378         * modules/inttypes (Depends-on): Add link-warning.
64379         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64380         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64381         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64382         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64383         * modules/imaxdiv (configure.ac): Likewise.
64384         * modules/strtoimax (configure.ac): Likewise.
64385         * modules/strtoumax (configure.ac): Likewise.
64386
64387 2007-02-17  Bruno Haible  <bruno@clisp.org>
64388
64389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64390         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64391         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64392         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64393
64394 2007-02-17  Bruno Haible  <bruno@clisp.org>
64395
64396         * modules/link-warning: New file.
64397         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64398         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64399         * modules/string (Depends-on): Add link-warning.
64400         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64401         string.h.
64402         * MODULES.html.sh (Support for building libraries and executables): Add
64403         link-warning.
64404
64405 2007-02-17  Bruno Haible  <bruno@clisp.org>
64406
64407         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64408         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64409         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64410         long lines.
64411
64412 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64413             Bruno Haible  <bruno@clisp.org>
64414
64415         * modules/tmpfile: New file.
64416         * lib/tmpfile.c: New file.
64417         * m4/tmpfile.m4: New file.
64418         * MODULES.html.sh (func_all_modules): New section "Input/output".
64419
64420 2007-02-15  Bruno Haible  <bruno@clisp.org>
64421
64422         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64423         (supports_delete_on_close): New function.
64424         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64425
64426 2007-02-14  Bruno Haible  <bruno@clisp.org>
64427
64428         * modules/mbspcasecmp-tests: New file.
64429         * tests/test-mbspcasecmp.sh: New file.
64430         * tests/test-mbspcasecmp.c: New file.
64431
64432         New module mbspcasecmp.
64433         * modules/mbspcasecmp: New file.
64434         * lib/mbspcasecmp.c: New file.
64435         * lib/string_.h (strncasecmp): Change warning message.
64436         (mbspcasecmp): New declaration.
64437         * m4/mbspcasecmp.m4: New file.
64438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64439         GNULIB_MBSPCASECMP.
64440         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64441         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64442
64443 2007-02-14  Bruno Haible  <bruno@clisp.org>
64444
64445         * modules/mbsncasecmp-tests: New file.
64446         * tests/test-mbsncasecmp.sh: New file.
64447         * tests/test-mbsncasecmp.c: New file.
64448
64449         New module mbsncasecmp.
64450         * modules/mbsncasecmp: New file.
64451         * lib/mbsncasecmp.c: New file.
64452         * lib/string_.h (mbsncasecmp): New declaration.
64453         * m4/mbsncasecmp.m4: New file.
64454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64455         GNULIB_MBSNCASECMP.
64456         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64457         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64458
64459 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64460
64461         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64462         Verify that it doesn't overlap with our flags.
64463         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64464         do not have the desired effect in multibyte locales; instead, use
64465         mbscasecmp.
64466         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64467         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64468         we don't require GNU fnmatch ourselves (if our users require it, they
64469         should do so explicitly).
64470
64471         Fix regex code so it doesn't rely on strcasecmp.
64472         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64473         Otherwise, include gnulib's langinfo.h.
64474         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64475         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64476         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64477         * modules/regex (FILES): Remove m4/codeset.m4.
64478         (Depends-on): Add localcharset.  Remove strcase.
64479
64480 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64481
64482         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64483         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64484
64485 2007-02-13  Bruno Haible  <bruno@clisp.org>
64486
64487         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64488         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64489
64490 2007-02-12  Bruno Haible  <bruno@clisp.org>
64491
64492         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64493         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64494         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64495         time warning rather than a link error.
64496
64497 2007-02-12  Bruno Haible  <bruno@clisp.org>
64498
64499         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64500         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64501         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64502
64503 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64504
64505         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64506         args, not 2.
64507
64508 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         New module 'time', so that apps can include <time.h> as per
64511         POSIX and GNU instead of separate include files like time_r.h
64512         and timegm.h.  This implementation tries out a simpler approach
64513         for replacing decls in standard include files (as compared to
64514         the string module), somewhat as an experiment.
64515
64516         * config/srclist.txt: Comment out mktime.c for now.
64517         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64518         since it doesn't apply any more.  Use generic wording instead.
64519         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64520         'time'.
64521         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64522         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64523         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64524         Don't include <sys/types.h>; no longer needed since we assume C89.
64525         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64526         * lib/strftime.c: Likewise.
64527         * lib/time_r.c: Likewise.
64528         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64529         * lib/nanosleep.c: Include <time.h> first, to check interface.
64530         * lib/strptime.c: Likewise.
64531         * lib/time_r.c: Likewise.
64532         * lib/timegm.c: Likewise.
64533         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64534         needed.
64535         * lib/timegm.c: Don't include timegm.h; no longer needed.
64536         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64537         time.h now handles any problems in that area.
64538         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64539         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64540         that time.h defines struct timespec.
64541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64542         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64543         handles that.
64544         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64545         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64546         needed.  Set REPLACE_LOCALTIME.
64547         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64548         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64549         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64550         nanosleep; time_h.m4 now does that.  Don't require
64551         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64552         module handles this now.
64553         * modules/getdate (Depends-on): Remove timespec.  Add time.
64554         * modules/nanosleep (Depends-on): Likewise.
64555         * modules/stat-time (Depends-on): Likewise.
64556         * modules/nanosleep (Include): Include time.h, not timespec.h.
64557         * modules/strptime (Files): Remove lib/strptime.h.
64558         (Depends-on): Add extensions, time.
64559         (Include): Include time.h, not strptime.h.
64560         * modules/time_r (Files): Remove lib/time_r.h.
64561         (Depends-on): Add time.
64562         (Include): Include time.h, not time_r.h.
64563         * modules/timegm: Likewise.
64564         * modules/timespec (Description): Now does timespec-related decls
64565         of our own, instead of struct timespec itself.
64566         (Depends-on): Add time; remove extensions.
64567         (Maintainer): Add self.
64568         * modules/utimecmp (Depends-on): Add time; remove timespec.
64569         * modules/utimens (Depends-on): Likewise.
64570         * modules/xnanosleep (Depends-on): Likewise.
64571
64572 2007-02-11  Bruno Haible  <bruno@clisp.org>
64573
64574         * lib/c-strstr.c: Include allocsa.h.
64575         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64576         * lib/c-strcasestr.c: Include allocsa.h.
64577         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64578         * lib/strcasestr.c: Include allocsa.h.
64579         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64580         * lib/mbsstr.c: Include allocsa.h.
64581         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64582         allocsa/freesa instead of malloc/free.
64583         * lib/mbscasestr.c: Include allocsa.h.
64584         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64585         allocsa/freesa instead of malloc/free.
64586         * modules/c-strstr (Depends-on): Add allocsa.
64587         * modules/c-strcasestr (Depends-on): Likewise.
64588         * modules/strcasestr (Depends-on): Likewise.
64589         * modules/mbsstr (Depends-on): Likewise.
64590         * modules/mbscasestr (Depends-on): Likewise.
64591
64592 2007-02-11  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64595
64596         * modules/mbsspn-tests: New file.
64597         * tests/test-mbsspn.sh: New file.
64598         * tests/test-mbsspn.c: New file.
64599
64600 2007-02-11  Bruno Haible  <bruno@clisp.org>
64601
64602         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64603
64604         * modules/mbspbrk-tests: New file.
64605         * tests/test-mbspbrk.sh: New file.
64606         * tests/test-mbspbrk.c: New file.
64607
64608 2007-02-11  Bruno Haible  <bruno@clisp.org>
64609
64610         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64611         unneeded cast.
64612
64613         * modules/mbscspn-tests: New file.
64614         * tests/test-mbscspn.sh: New file.
64615         * tests/test-mbscspn.c: New file.
64616
64617 2007-02-11  Bruno Haible  <bruno@clisp.org>
64618
64619         * modules/mbscasecmp-tests: New file.
64620         * tests/test-mbscasecmp.sh: New file.
64621         * tests/test-mbscasecmp.c: New file.
64622
64623 2007-02-11  Bruno Haible  <bruno@clisp.org>
64624
64625         Ensure O(n) worst-case complexity of mbscasestr.
64626         * lib/mbscasestr.c: Include stdbool.h.
64627         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64628         functions.
64629         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64630         the bookkeeping indicates that it's worth it.
64631         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64632
64633         * modules/mbscasestr-tests: New file.
64634         * tests/test-mbscasestr1.c: New file.
64635         * tests/test-mbscasestr2.sh: New file.
64636         * tests/test-mbscasestr2.c: New file.
64637         * tests/test-mbscasestr3.sh: New file.
64638         * tests/test-mbscasestr3.c: New file.
64639         * tests/test-mbscasestr4.sh: New file.
64640         * tests/test-mbscasestr4.c: New file.
64641         * m4/locale-tr.m4: New file.
64642
64643 2007-02-11  Bruno Haible  <bruno@clisp.org>
64644
64645         Ensure O(n) worst-case complexity of mbsstr.
64646         * lib/mbsstr.c: Include stdbool.h.
64647         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64648         functions.
64649         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64650         bookkeeping indicates that it's worth it.
64651         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64652
64653         * modules/mbsstr-tests: New file.
64654         * tests/test-mbsstr1.c: New file.
64655         * tests/test-mbsstr2.sh: New file.
64656         * tests/test-mbsstr2.c: New file.
64657         * tests/test-mbsstr3.sh: New file.
64658         * tests/test-mbsstr3.c: New file.
64659         * m4/locale-fr.m4: New file.
64660
64661 2007-02-11  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/mbsrchr.c (mbsrchr): Fix bug.
64664
64665         * modules/mbsrchr-tests: New file.
64666         * tests/test-mbsrchr.sh: New file.
64667         * tests/test-mbsrchr.c: New file.
64668
64669 2007-02-11  Bruno Haible  <bruno@clisp.org>
64670
64671         * lib/mbschr.c (mbschr): Fix bug.
64672
64673         * modules/mbschr-tests: New file.
64674         * tests/test-mbschr.sh: New file.
64675         * tests/test-mbschr.c: New file.
64676         * m4/locale-zh.m4: New file.
64677
64678 2007-02-11  Bruno Haible  <bruno@clisp.org>
64679
64680         Support for copying multibyte string iterators.
64681         * lib/mbiter.h: Include <string.h>.
64682         (mbiter_multi_copy): New function.
64683         (mbi_copy): New macro.
64684         * lib/mbuiter.h: Include <string.h>.
64685         (mbuiter_multi_copy): New function.
64686         (mbui_copy): New macro.
64687
64688 2007-02-11  Bruno Haible  <bruno@clisp.org>
64689
64690         New module mbslen.
64691         * modules/mbslen: New file.
64692         * lib/mbslen.c: New file.
64693         * lib/string_.h (mbslen): New declaration.
64694         * m4/mbslen.m4: New file.
64695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64696         GNULIB_MBSLEN.
64697         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64698         * MODULES.html.sh (Internationalization functions): Add mbslen.
64699
64700 2007-02-11  Bruno Haible  <bruno@clisp.org>
64701
64702         Ensure O(n) worst-case complexity of strcasestr substitute.
64703         * lib/strcasestr.c: Include stdbool.h.
64704         (knuth_morris_pratt): New function.
64705         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64706         bookkeeping indicates that it's worth it.
64707         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64708
64709         * modules/strcasestr-tests: New file.
64710         * tests/test-strcasestr.c: New file.
64711
64712 2007-02-11  Bruno Haible  <bruno@clisp.org>
64713
64714         Ensure O(n) worst-case complexity of c_strcasestr.
64715         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64716         (knuth_morris_pratt): New function.
64717         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64718         the bookkeeping indicates that it's worth it.
64719         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64720
64721         * modules/c-strcasestr-tests: New file.
64722         * tests/test-c-strcasestr.c: New file.
64723
64724 2007-02-11  Bruno Haible  <bruno@clisp.org>
64725
64726         Ensure O(n) worst-case complexity of c_strstr.
64727         * lib/c-strstr.c: Include stdbool.h, string.h.
64728         (knuth_morris_pratt): New function.
64729         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64730         bookkeeping indicates that it's worth it.
64731         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64732
64733         * lib/c-strstr.c: Complete rewrite for maintainability.
64734
64735         * modules/c-strstr-tests: New file.
64736         * tests/test-c-strstr.c: New file.
64737
64738 2007-02-11  Bruno Haible  <bruno@clisp.org>
64739
64740         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64741         5.2.1 and earlier, whereby \055 was treated just like the range
64742         delimiter '-'.
64743         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64744
64745 2007-02-08  Bruno Haible  <bruno@clisp.org>
64746
64747         * modules/regex (Depends-on): Add stdbool.
64748         Reported by Dalibor Topic <robilad@kaffe.org>.
64749
64750 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64753         Prefer returning from main to exiting from it.
64754         Remove unnecessary parens after sizeof.
64755
64756 2007-02-05  Bruno Haible  <bruno@clisp.org>
64757
64758         New module mbssep.
64759         * modules/mbssep: New file.
64760         * lib/mbssep.c: New file.
64761         * lib/string_.h (strsep): Add a conditional link warning.
64762         (mbssep): New declaration.
64763         * m4/mbssep.m4: New file.
64764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64765         GNULIB_MBSSEP.
64766         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64767         * MODULES.html.sh (Internationalization functions): Add mbssep.
64768
64769 2007-02-05  Bruno Haible  <bruno@clisp.org>
64770
64771         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64772         Optimize search in case of 1 delimiter.
64773
64774 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64775
64776         * lib/acl.h: Include sys/types.h before sys/acl.h.
64777
64778 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64779
64780         Merge upstream fix for glibc bugzilla #3957:
64781
64782         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64783
64784         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64785         bit for RE_HAT_LISTS_NOT_NEWLINE.
64786         (build_charclass_op): Remove bogus comment.
64787
64788 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64789
64790         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64791
64792 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64793
64794         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64795         * lib/memmem.c [!defined _LIBC]: Include config.h.
64796
64797 2007-02-04  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64800         warning message.
64801
64802 2007-02-04  Bruno Haible  <bruno@clisp.org>
64803
64804         New module mbstok_r.
64805         * modules/mbstok_r: New file.
64806         * lib/mbstok_r.c: New file.
64807         * lib/string_.h (strtok_r): Change argument names to match the
64808         comments. Add a conditional link warning.
64809         (mbstok_r): New declaration.
64810         * m4/mbstok_r.m4: New file.
64811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64812         GNULIB_MBSTOK_R.
64813         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64814         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64815
64816 2007-02-04  Bruno Haible  <bruno@clisp.org>
64817
64818         New module mbsspn.
64819         * modules/mbsspn: New file.
64820         * lib/mbsspn.c: New file.
64821         * lib/string_.h (strspn): Add a conditional link warning.
64822         (mbsspn): New declaration.
64823         * m4/mbsspn.m4: New file.
64824         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64825         GNULIB_MBSSPN.
64826         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64827         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64828
64829 2007-02-04  Bruno Haible  <bruno@clisp.org>
64830
64831         New module mbspbrk.
64832         * modules/mbspbrk: New file.
64833         * lib/mbspbrk.c: New file.
64834         * lib/string_.h (strpbrk): Add a conditional link warning.
64835         (mbspbrk): New declaration.
64836         * m4/mbspbrk.m4: New file.
64837         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64838         GNULIB_MBSPBRK.
64839         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64840         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64841
64842 2007-02-04  Bruno Haible  <bruno@clisp.org>
64843
64844         New module mbscspn.
64845         * modules/mbscspn: New file.
64846         * lib/mbscspn.c: New file.
64847         * lib/string_.h (strcspn): Add a conditional link warning.
64848         (mbscspn): New declaration.
64849         * m4/mbscspn.m4: New file.
64850         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64851         GNULIB_MBSCSPN.
64852         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64853         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64854
64855 2007-02-04  Bruno Haible  <bruno@clisp.org>
64856
64857         New module mbscasestr, reduced goal of strcasestr.
64858         * modules/mbscasestr: New file.
64859         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64860         (mbscasestr): Renamed from strcasestr.
64861         * lib/strcasestr.c: Don't include mbuiter.h.
64862         (strcasestr): Remove support for multibyte locales.
64863         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64864         Change the conditional link warning.
64865         (mbscasestr): New declaration.
64866         * m4/mbscasestr.m4: New file.
64867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64868         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64869         REPLACE_STRCASESTR.
64870         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64872         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64873         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64874         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64875         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64876         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64877         (Depends-on): Remove mbuiter.
64878         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64879
64880 2007-02-04  Bruno Haible  <bruno@clisp.org>
64881
64882         Simplify handling of strncasecmp.
64883         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64884         the conditional link warning.
64885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64886         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64887         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64888         * modules/strcase (configure.ac): Don't invoke
64889         gl_STRING_MODULE_INDICATOR.
64890         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64891
64892 2007-02-04  Bruno Haible  <bruno@clisp.org>
64893
64894         New module mbscasecmp, reduced goal of strcasecmp.
64895         * modules/mbscasecmp: New file.
64896         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64897         (mbscasecmp): Renamed from strcasecmp.
64898         * lib/strcasecmp.c: Don't include mbuiter.h.
64899         (strcasecmp): Remove support for multibyte locales.
64900         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64901         Change the conditional link warning.
64902         (mbscasecmp): New declaration.
64903         * m4/mbscasecmp.m4: New file.
64904         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64905         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64906         REPLACE_STRCASECMP.
64907         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64909         GNULIB_MBSCASECMP.
64910         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64911         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64912         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64913         (Depends-on): Remove mbuiter.
64914         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64915
64916 2007-02-04  Bruno Haible  <bruno@clisp.org>
64917
64918         New module mbsstr. Remove module strstr.
64919         * modules/mbsstr: New file.
64920         * modules/strstr: Remove file.
64921         * lib/mbsstr.c: Renamed from lib/strstr.c.
64922         (mbsstr): Renamed from strstr.
64923         * lib/string_.h (strstr): Remove declaration. Change the conditional
64924         link warning.
64925         (mbsstr): New declaration.
64926         * m4/mbsstr.m4: New file.
64927         * m4/strstr.m4: Remove file.
64928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64929         REPLACE_STRSTR.
64930         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64931         Don't initialize GNULIB_STRSTR.
64932         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64933         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64934         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64935         (Support for systems lacking ANSI C 89): Remove strstr.
64936
64937 2007-02-04  Bruno Haible  <bruno@clisp.org>
64938
64939         New module mbsrchr.
64940         * modules/mbsrchr: New file.
64941         * lib/mbsrchr.c: New file.
64942         * lib/string_.h (strrchr): Add a conditional link warning.
64943         (mbsrchr): New declaration.
64944         * m4/mbsrchr.m4: New file.
64945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64946         GNULIB_MBSRCHR.
64947         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64948         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64949
64950 2007-02-04  Bruno Haible  <bruno@clisp.org>
64951
64952         New module mbschr.
64953         * modules/mbschr: New file.
64954         * lib/mbschr.c: New file.
64955         * lib/string_.h (strchr): Add a conditional link warning.
64956         (mbschr): New declaration.
64957         * m4/mbschr.m4: New file.
64958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64959         GNULIB_MBSCHR.
64960         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64961         * MODULES.html.sh (Internationalization functions): Add mbschr.
64962
64963 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64966
64967         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64968
64969 2007-02-04  Bruno Haible  <bruno@clisp.org>
64970
64971         New module description section 'configure.ac-early'.
64972         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64973         (func_get_autoconf_early_snippet): New function.
64974         (func_import, func_create_testdir): Use it. Remove special cases for
64975         modules 'extensions' and 'lock'.
64976         * modules/extensions (configure.ac-early): Require
64977         gl_USE_SYSTEM_EXTENSIONS.
64978         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64979
64980 2007-02-04  Bruno Haible  <bruno@clisp.org>
64981
64982         Make use of gcj-4.3's -fsource and -ftarget option.
64983         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64984         and if so try the options -fsource and -ftarget.
64985         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64986         source_version, ftarget_option, target_version arguments.
64987         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64988         (is_envjavac_oldgcj_14_14_usable): Renamed from
64989         is_envjavac_gcj_14_14_usable.
64990         (is_envjavac_oldgcj_14_13_usable): Renamed from
64991         is_envjavac_gcj_14_13_usable.
64992         (is_gcj_present): Update.
64993         (is_gcj_43, is_gcj43_usable): New functions.
64994         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64995         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64996         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64997         try the options -fsource and -ftarget.
64998
64999 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65002         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65003         larger value.
65004
65005 2007-02-03  Jim Meyering  <jim@meyering.net>
65006
65007         Give tools a better chance to allocate space for very large buffers.
65008         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65009
65010         Make pwd and readlink work also when run with an unreadable parent dir
65011         on systems with openat support.
65012         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65013         provided getcwd function, even when we have openat support.
65014         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65015
65016 2007-02-02  Bruno Haible  <bruno@clisp.org>
65017
65018         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65019         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65020         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65021         portability problems if one of these functions is only used on specific
65022         platforms.
65023         Reported by Paul Eggert.
65024
65025 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65028         is causing more trouble than it's curing.
65029         * lib/regex_internal.h (__mempcpy): Remove.
65030         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65031         (and make the code a tad smaller to boot).
65032         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65033
65034 2007-02-02  Jim Meyering  <jim@meyering.net>
65035
65036         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65037         section, not in the Makefile.am: one.
65038
65039 2007-02-02  Eric Blake  <ebb9@byu.net>
65040
65041         * lib/strchrnul.c: Always include config.h first.
65042
65043         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65044         gnulib strstr is not necessary here.
65045
65046 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65047
65048         * m4/socklen.m4: Fix typo.
65049
65050 2007-02-02  Eric Blake  <ebb9@byu.net>
65051
65052         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65053         * modules/netinet_in (Makefile.am): Likewise.
65054
65055 2007-02-01  Bruno Haible  <bruno@clisp.org>
65056
65057         * lib/string_.h (GL_LINK_WARNING): New macro.
65058         (strcasecmp, strstr, strcasestr): If provided by the system,
65059         conditionally define as a macro that leads to a warning instead of to
65060         an error.
65061         (strncasecmp): Conditionally define as a macro that leads to a warning.
65062
65063 2007-02-01  Karl Berry  <karl@gnu.org>
65064
65065         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65066
65067 2007-02-01  Bruno Haible  <bruno@clisp.org>
65068
65069         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65070         renamings.
65071
65072 2007-02-01  Eric Blake  <ebb9@byu.net>
65073
65074         * modules/regex (Depends-on): Revert dependence on mempcpy.
65075         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65076         module's definition of mempcpy.
65077         Reported by Paul Eggert.
65078
65079 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65082         the symbol XYZ before redefining it.  This fixes a problem with
65083         programs that don't use XYZ, when compiled on systems that define
65084         XYZ to something else.
65085
65086 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65087
65088         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65089         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65090         writeable to group or other and (2) is intended to have a special
65091         mode bit that is set or cleared.  In such a case, the directory
65092         should be neither group- nor other-writeable until the special
65093         mode bits are right.
65094
65095 2007-01-31  Eric Blake  <ebb9@byu.net>
65096
65097         * modules/mountlist (Depends-on): Add strstr.
65098
65099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65100         bug.
65101         * modules/string (Makefile.am): Remove redundant replacement.
65102         * modules/regex (Depends-on): Add mempcpy.
65103
65104 2007-01-31  Bruno Haible  <bruno@clisp.org>
65105
65106         New module description field 'Link'.
65107         * gnulib-tool (func_usage): Document --extract-link-directive.
65108         (sed_extract_prog): Recognize 'Link' directive.
65109         (func_get_link_directive): New function.
65110         (func_import): Show summary of link directives.
65111         Handle --extract-link-directive option.
65112         * modules/acl (Link): New section.
65113         * modules/clock-time (Link): New section.
65114         * modules/euidaccess (Link): New section.
65115         * modules/gettext (Link): New section.
65116         * modules/iconv (Link): New section.
65117         * modules/lock (Link): New section.
65118         * modules/nanosleep (Link): New section.
65119         * modules/readline (Link): New section.
65120
65121 2007-01-27  Bruno Haible  <bruno@clisp.org>
65122
65123         Enforce the use of gnulib modules for unportable <string.h> functions.
65124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65125         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65126         (gl_HEADER_STRING_H_BODY): Require it.
65127         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65128         the symbol XYZ to one that gives a link error.
65129         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65130         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65131         * modules/mempcpy (configure.ac): Likewise.
65132         * modules/memrchr (configure.ac): Likewise.
65133         * modules/stpcpy (configure.ac): Likewise.
65134         * modules/stpncpy (configure.ac): Likewise.
65135         * modules/strcase (configure.ac): Likewise.
65136         * modules/strcasestr (configure.ac): Likewise.
65137         * modules/strchrnul (configure.ac): Likewise.
65138         * modules/strdup (configure.ac): Likewise.
65139         * modules/strndup (configure.ac): Likewise.
65140         * modules/strnlen (configure.ac): Likewise.
65141         * modules/strpbrk (configure.ac): Likewise.
65142         * modules/strsep (configure.ac): Likewise.
65143         * modules/strstr (configure.ac): Likewise.
65144         * modules/strtok_r (configure.ac): Likewise.
65145
65146 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65147
65148         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65149
65150 2007-01-30  Jim Meyering  <jim@meyering.net>
65151
65152         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65153
65154 2007-01-29  Bruno Haible  <bruno@clisp.org>
65155
65156         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65157         * lib/execute.c: Likewise.
65158         * lib/pipe.c: Likewise.
65159         * lib/printf-args.h: Likewise.
65160         * lib/printf-args.c: Likewise.
65161         * lib/printf-parse.c: Likewise.
65162         * lib/vasnprintf.c: Likewise.
65163
65164 2007-01-29  Eric Blake  <ebb9@byu.net>
65165
65166         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65167         declaration.
65168
65169 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * lib/strptime.h (strptime): Use 'restrict' for args where
65172         POSIX requires this.
65173         * lib/strptime.c (strptime): Likewise.
65174         Change license notice from LGPL to GPL, since gnulib-tool will
65175         change this as needed.
65176         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65177         defined.
65178         Include "strptime.h" first, to check interface.
65179         Do not #undef _LIBC and _NL_CURRENT.
65180         Do not include <stdlib.h>; no longer needed.
65181         Include "time_r.h" and declare ptime_locale_status
65182         only if _LIBC is not defined.
65183         (__P): Remove unused macro.
65184         (match_string): Bring back glibc version, but use it only if _LIBC
65185         is defined.
65186         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65187         Remove unnecessary assertion and abort() call.
65188         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65189         * m4/strptime.m4: Fix serial number comment.
65190         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65191         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65192         (Depends-on): Add time_r.
65193
65194 2007-01-29  Bruno Haible  <bruno@clisp.org>
65195
65196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65197         strptime.
65198         * modules/strptime (Depends-on): Add stdbool.
65199         * lib/strptime.h: Include <time.h> always. Add comments.
65200
65201 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65202
65203         * modules/strptime: New file.
65204         * lib/strptime.h: New file.
65205         * lib/strptime.c: New file.
65206         * m4/strptime.m4: New file.
65207
65208 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * MODULES.html.sh: New module mpsort.
65211         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65212
65213         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65214         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65216         All uses changed.
65217         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65218         All uses changed.
65219         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65220         to _Restrict_.
65221         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65222         the parameter matches the prototype.
65223
65224 2007-01-28  Jim Meyering  <jim@meyering.net>
65225
65226         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65227         sys/time.h here, reverting that part of the previous patch:
65228         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65229
65230 2007-01-28  Bruno Haible  <bruno@clisp.org>
65231
65232         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65233         value of $(SYS_TIME_H).
65234         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65235         remove it conditionally, too. [added by Jim Meyering]
65236         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65237         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65238         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65239         GETTIMEOFDAY_REPLACEMENT to 1.
65240
65241 2007-01-28  Bruno Haible  <bruno@clisp.org>
65242
65243         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65244         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65246         Set UNISTD_H instead of UNISTD_H2.
65247         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65248
65249 2007-01-28  Bruno Haible  <bruno@clisp.org>
65250
65251         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65252         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65253
65254 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65255
65256         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65257         (func_create_testdir): Ensure C locale for `grep' and `tr'
65258         character ranges.
65259         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65260         ACLOCAL_AMFLAGS parsing state machine.
65261
65262 2007-01-27  Bruno Haible  <bruno@clisp.org>
65263
65264         * modules/unistr/base: Update.
65265
65266 2007-01-27  Bruno Haible  <bruno@clisp.org>
65267
65268         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65269         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65270         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65271         modules/unistr/u32-mbtouc.
65272         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65273         * lib/unistr.h: Update.
65274         * lib/linebreak.c: Update.
65275         * modules/unistr/u32-mbtouc: Renamed from
65276         modules/unistr/u32-mbtouc-safe.
65277         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65278         * lib/unistr.h: Update.
65279         * lib/unistr/u32-to-u8.c: Update.
65280         * lib/unistr/u32-to-u16.c: Update.
65281
65282 2007-01-27  Bruno Haible  <bruno@clisp.org>
65283
65284         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65285         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65286         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65287         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65288         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65289         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65290         modules/unistr/u16-mbtouc.
65291         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65292         * lib/unistr.h: Update.
65293         * lib/linebreak.c: Update.
65294         * modules/linebreak: Update.
65295         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65296         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65297         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65298         * modules/unistr/u16-mbtouc: Renamed from
65299         modules/unistr/u16-mbtouc-safe.
65300         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65301         * lib/unistr.h: Update.
65302         * lib/unistr/u16-to-u8.c: Update.
65303         * modules/unistr/u16-to-u8: Update.
65304         * lib/unistr/u16-to-u32.c: Update.
65305         * modules/unistr/u16-to-u32: Update.
65306
65307 2007-01-27  Bruno Haible  <bruno@clisp.org>
65308
65309         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65310         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65311         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65312         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65313         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65314         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65315         modules/unistr/u8-mbtouc.
65316         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65317         * lib/unistr.h: Update.
65318         * lib/striconveh.c: Update.
65319         * modules/striconveh: Update.
65320         * lib/linebreak.c: Update.
65321         * modules/linebreak: Update.
65322         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65323         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65324         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65325         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65326         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65327         * lib/unistr.h: Update.
65328         * lib/striconveh.c: Update.
65329         * modules/striconveh: Update.
65330         * lib/unistr/u8-to-u16.c: Update.
65331         * modules/unistr/u8-to-u16: Update.
65332         * lib/unistr/u8-to-u32.c: Update.
65333         * modules/unistr/u8-to-u32: Update.
65334
65335 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65336
65337         Sync from Libtool.
65338         * lib/argz.c: Do not include strings.h nor memory.h, include
65339         string.h unconditionally.  Patch by Simon Josefsson.
65340
65341 2007-01-27  Bruno Haible  <bruno@clisp.org>
65342
65343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65344         from gl_HEADER_STRING_H_BODY.
65345         (gl_HEADER_STRING_H_BODY): Require it.
65346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65349         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65350         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65351         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65352         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65353         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65354         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65356         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65357         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65358         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65359         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65360         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65361
65362 2007-01-27  Bruno Haible  <bruno@clisp.org>
65363
65364         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65365         check_PROGRAMS into noinst_PROGRAMS.
65366         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65367         check_PROGRAMS in this case.
65368         (func_import): Set for_test to false.
65369         (func_create_testdir): Set for_test to true.
65370
65371 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65372             Bruno Haible  <bruno@clisp.org>
65373
65374         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65375         (Depends-on): Add string.
65376         (Includes): Use <string.h> instead of strcasestr.h.
65377         * modules/string (Makefile.am): Also substitute the value of
65378         REPLACE_STRCASESTR.
65379         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65380         assume strcasestr is declared in <string.h> not <strings.h>. Also
65381         set REPLACE_STRCASESTR.
65382         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65383         REPLACE_STRCASESTR.
65384         * lib/strcasestr.h: Remove file.
65385         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65386         * lib/string_.h (strcasestr): New declaration.
65387
65388 2007-01-27  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/string_.h: Use 'extern'.
65391
65392 2007-01-27  Jim Meyering  <jim@meyering.net>
65393
65394         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65395         of set-but-not-used local, "q".
65396
65397         * lib/mempcpy.c: Include <config.h> before <string.h>.
65398         This fixes a compilation error on HP-UX, due to the system's
65399         "restrict"-using mempcpy prototype.
65400
65401 2007-01-26  Bruno Haible  <bruno@clisp.org>
65402
65403         Small optimization.
65404         * lib/javacomp.c: Include c-strstr.h.
65405          (is_envjavac_gcj): Use c_strstr instead of strstr.
65406         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65407
65408 2007-01-26  Bruno Haible  <bruno@clisp.org>
65409
65410         * MODULES.html.sh (Unicode string functions): Add the new modules.
65411
65412         * modules/uniconv/u32-strconv-to-locale: New file.
65413         * lib/uniconv/u32-strconv-to-locale.c: New file.
65414
65415         * modules/uniconv/u16-strconv-to-locale: New file.
65416         * lib/uniconv/u16-strconv-to-locale.c: New file.
65417
65418         * modules/uniconv/u8-strconv-to-locale: New file.
65419         * lib/uniconv/u8-strconv-to-locale.c: New file.
65420
65421         * modules/uniconv/u32-strconv-from-locale: New file.
65422         * lib/uniconv/u32-strconv-from-locale.c: New file.
65423
65424         * modules/uniconv/u16-strconv-from-locale: New file.
65425         * lib/uniconv/u16-strconv-from-locale.c: New file.
65426
65427         * modules/uniconv/u8-strconv-from-locale: New file.
65428         * lib/uniconv/u8-strconv-from-locale.c: New file.
65429
65430         * modules/uniconv/u32-strconv-to-enc: New file.
65431         * lib/uniconv/u32-strconv-to-enc.c: New file.
65432         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65433         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65434
65435         * modules/uniconv/u16-strconv-to-enc: New file.
65436         * lib/uniconv/u16-strconv-to-enc.c: New file.
65437         * lib/uniconv/u-strconv-to-enc.h: New file.
65438         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65439         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65440
65441         * modules/uniconv/u8-strconv-to-enc: New file.
65442         * lib/uniconv/u8-strconv-to-enc.c: New file.
65443         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65444         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65445
65446         * modules/uniconv/u32-strconv-from-enc: New file.
65447         * lib/uniconv/u32-strconv-from-enc.c: New file.
65448         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65449         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65450
65451         * modules/uniconv/u16-strconv-from-enc: New file.
65452         * lib/uniconv/u16-strconv-from-enc.c: New file.
65453         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65454         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65455
65456         * modules/uniconv/u8-strconv-from-enc: New file.
65457         * lib/uniconv/u8-strconv-from-enc.c: New file.
65458         * lib/uniconv/u-strconv-from-enc.h: New file.
65459         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65460         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65461
65462         * modules/uniconv/u32-conv-from-enc: New file.
65463         * lib/uniconv/u32-conv-from-enc.c: New file.
65464         * modules/uniconv/u32-conv-from-enc-tests: New file.
65465         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65466
65467         * modules/uniconv/u16-conv-from-enc: New file.
65468         * lib/uniconv/u16-conv-from-enc.c: New file.
65469         * lib/uniconv/u-conv-from-enc.h: New file.
65470         * modules/uniconv/u16-conv-from-enc-tests: New file.
65471         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65472
65473         * modules/uniconv/u8-conv-from-enc: New file.
65474         * lib/uniconv/u8-conv-from-enc.c: New file.
65475         * modules/uniconv/u8-conv-from-enc-tests: New file.
65476         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65477
65478         * modules/uniconv/base: New file.
65479         * lib/uniconv.h: New file.
65480
65481 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * doc/gnulib-tool.texi (Initial import): Update to match current
65484         behavior with strdup module.
65485         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65486         * lib/memmem.h: Remove; all uses removed.  This is now done
65487         by <string.h>.
65488         * lib/mempcpy.h: Likewise.
65489         * lib/memrchr.h: Likewise.
65490         * lib/stpcpy.h: Likewise.
65491         * lib/stpncpy.h: Likewise.
65492         * lib/strcase.h: Likewise.
65493         * lib/strchrnul.h: Likewise.
65494         * lib/strdup.h: Likewise.
65495         * lib/strndup.h: Likewise.
65496         * lib/strnlen.h: Likewise.
65497         * lib/strpbrk.h: Likewise.
65498         * lib/strsep.h: Likewise.
65499         * lib/strstr.h: Likewise.
65500         * lib/strtok_r.h: Likewise.
65501         * lib/string_.h: New file.
65502         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65503         Rely on <string.h> instead.
65504         * lib/canon-host.c: Likewise.
65505         * lib/chdir-long.c: Likewise.
65506         * lib/concatpath.c: Likewise.
65507         * lib/exclude.c: Likewise.
65508         * lib/fchdir.c: Likewise.
65509         * lib/getaddrinfo.c: Likewise.
65510         * lib/getcwd.c: Likewise.
65511         * lib/getsubopt.c: Likewise.
65512         * lib/glob.c: Likewise.
65513         * lib/hard-locale.c: Likewise.
65514         * lib/iconvme.c: Likewise.
65515         * lib/javacomp.c: Likewise.
65516         * lib/mempcpy.c: Likewise.
65517         * lib/memrchr.c: Likewise.
65518         * lib/regex_internal.h: Likewise.
65519         * lib/stpncpy.c: Likewise.
65520         * lib/strcasecmp.c: Likewise.
65521         * lib/strchrnul.c: Likewise.
65522         * lib/strdup.c: Likewise.
65523         * lib/striconv.c: Likewise.
65524         * lib/striconveh.c: Likewise.
65525         * lib/striconveha.c: Likewise.
65526         * lib/strncasecmp.c: Likewise.
65527         * lib/strndup.c: Likewise.
65528         * lib/strnlen.c: Likewise.
65529         * lib/strsep.c: Likewise.
65530         * lib/strstr.c: Likewise.
65531         * lib/strtok_r.c: Likewise.
65532         * lib/userspec.c: Likewise.
65533         * lib/w32spawn.h: Likewise.
65534         * lib/xstrndup.c: Likewise.
65535         * lib/mountlist.c (strstr): Remove decl.
65536         * m4/string_h.m4: New file.
65537         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65538         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65539         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65540         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65541         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65542         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65543         Set REPLACE_STRCASECMP if necessary.
65544         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65545         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65546         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65548         HAVE_DECL_STRDUP if necessary.
65549         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65550         since gl_FUNC_STRNDUP does that now.
65551         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65552         Check for decl here...
65553         (gl_PREREQ_STRNLEN): ... not here.
65554         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65555         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65556         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65557         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65558         necessary.
65559         * modules/string: New file.
65560         * modules/memmem (Files): Remove special-purpose include file.
65561         (Depends-on): Add string.
65562         (Include): Include <string.h>, not the removed file.
65563         * modules/mempcpy: Likewise.
65564         * modules/memrchr: Likewise.
65565         * modules/stpcpy: Likewise.
65566         * modules/stpncpy: Likewise.
65567         * modules/strcase: Likewise.
65568         * modules/strchrnul: Likewise.
65569         * modules/strdup: Likewise.
65570         * modules/strndup: Likewise.
65571         * modules/strnlen: Likewise.
65572         * modules/strpbrk: Likewise.
65573         * modules/strsep: Likewise.
65574         * modules/strstr: Likewise.
65575         * modules/strtok_r: Likewise.
65576         * tests/test-dirname.c: Don't include "strdup.h", since
65577         <string.h> now suffices.
65578         * tests/test-memmem.c: Don't include "memmem.h", since
65579         <string.h> now suffices.
65580
65581 2007-01-25  Bruno Haible  <bruno@clisp.org>
65582
65583         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65584         *resultp is 0.
65585
65586         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65587         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65588         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65589         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65590
65591         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65592         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65593         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65594         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65595         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65596         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65597
65598 2007-01-24  Bruno Haible  <bruno@clisp.org>
65599
65600         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65602         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65603         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65604         gl_FUNC_FTS_CORE.
65605         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65606         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65607         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65608         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65609         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65610         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65611         gl_FUNC_FCHOWNAT.
65612         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65613         gl_FUNC_STRFTIME.
65614         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65615         Reported by Ralf Wildenhues.
65616
65617 2007-01-24  Bruno Haible  <bruno@clisp.org>
65618
65619         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65620         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65621         gl_GETADDRINFO.
65622         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65623         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65624         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65625
65626 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65627
65628         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65629         Don't use 'exit'; just return from 'main'.
65630         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65631
65632         * lib/fnmatch_.h: Readjust white space and comments to match
65633         glibc, to avoid spurious diffs.
65634
65635 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65638         2004-12-01 change by Jakub Jelinek, since this code won't compile
65639         if !LIBC.  Problem reported by Bob Proulx.
65640
65641 2007-01-23  Bruno Haible  <bruno@clisp.org>
65642
65643         * lib/striconveh.c: Include c-strcaseeq.h.
65644         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65645         * modules/striconveh (Depends-on): Add c-strcaseeq.
65646
65647 2007-01-23  Bruno Haible  <bruno@clisp.org>
65648
65649         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65650
65651         * modules/c-strcaseeq: New file.
65652         * lib/c-strcaseeq.h: New file.
65653
65654         * modules/streq: New file.
65655         * lib/streq.h: New file.
65656
65657 2007-01-23  Bruno Haible  <bruno@clisp.org>
65658
65659         * modules/striconveha-tests: New file.
65660         * tests/test-striconveha.c: New file.
65661
65662         * lib/striconveha.h: Include <stdbool.h>.
65663         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65664         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65665         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65666         (mem_iconveha): New function.
65667         (str_iconveha_notranslit): Renamed from str_iconveha.
65668         (str_iconveha): New function.
65669         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65670         c-strcase.
65671
65672 2007-01-23  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65675         encodings without forgiving before trying any encoding with handler.
65676         (str_iconveha): Try all encodings without forgiving before trying any
65677         encoding with handler.
65678
65679 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         Import the following changes from libc.
65682
65683         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65684
65685         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65686
65687         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65688
65689         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65690         normal_bracket label.
65691
65692         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65693
65694         [BZ #361]
65695         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65696         to normal_bracket after fetching the next character.
65697
65698 2007-01-22  Bruno Haible  <bruno@clisp.org>
65699
65700         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65701         argument.
65702         * lib/striconveh.c (iconv_carefully_1): New function.
65703         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65704         argument.
65705         (str_cd_iconveh): Update.
65706         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65707         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65708         * tests/test-striconveh.c (MAGIC): New macro.
65709         (new_offsets): New function.
65710         (main): Test call with and without offsets.
65711
65712 2007-01-22  Bruno Haible  <bruno@clisp.org>
65713
65714         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65715         * modules/sys_select (Makefile.am): Likewise.
65716         * modules/sys_socket (Makefile.am): Likewise.
65717         * modules/sys_time (Makefile.am): Likewise.
65718
65719 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * modules/gettimeofday (License): Change from GPL to LGPL, since
65722         gettimeofday is a library function.
65723
65724 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65725
65726         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65727
65728 2007-01-21  Bruno Haible  <bruno@clisp.org>
65729
65730         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65731
65732 2007-01-21  Bruno Haible  <bruno@clisp.org>
65733
65734         * modules/striconveha: New file.
65735         * lib/striconveha.h: New file.
65736         * lib/striconveha.c: New file.
65737         * MODULES.html.sh (Internationalization functions): Add striconveha.
65738         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65739         string.
65740         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65741
65742 2007-01-21  Bruno Haible  <bruno@clisp.org>
65743
65744         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65745         * lib/striconveh.c (str_iconveh): Likewise.
65746
65747 2007-01-21  Bruno Haible  <bruno@clisp.org>
65748
65749         * lib/striconveh.h (mem_iconveh): New declaration.
65750         * lib/striconveh.c (mem_iconveh): New function.
65751         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65752
65753 2007-01-21  Bruno Haible  <bruno@clisp.org>
65754
65755         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65756
65757         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65758         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65759         original result buffer.
65760         (str_cd_iconveh): Update.
65761         * tests/test-striconveh.c (main): Update.
65762
65763         * lib/striconv.h (mem_cd_iconv): Change specification.
65764         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65765         result buffer.
65766         (str_cd_iconv): Update.
65767         * tests/test-striconv.c (main): Update.
65768
65769 2007-01-21  Bruno Haible  <bruno@clisp.org>
65770
65771         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65772
65773 2007-01-20  Jim Meyering  <jim@meyering.net>
65774
65775         * lib/userspec.c (parse_with_separator): If a user or group string
65776         starts with "+", skip the corresponding name-to-ID look-up, since
65777         such a look-up must fail: user and group names may not include "+".
65778
65779 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65782         since we now assume the sys_time module.
65783         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65784         check for sys/time.h; no longer needed.
65785         * modules/poll (Depends-on): Depend on sys_time.
65786
65787 2007-01-18  Bruno Haible  <bruno@clisp.org>
65788
65789         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65791
65792         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65793         gettimeofday.
65794
65795         * tests/test-gettimeofday.c: Include <time.h>.
65796         (dummy): Remove variable.
65797
65798         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65799         gl_HEADER_SYS_TIME_H.
65800         (gl_HEADER_SYS_TIME_H): New macro.
65801
65802         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65803         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65805         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65806         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65807         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65808         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65809         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65810         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65811         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65812         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65813
65814         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65815         last change; it caused a compilation error when cross-compiling to
65816         Cygwin.
65817
65818 2007-01-18  Jim Meyering  <jim@meyering.net>
65819
65820         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65821         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65822         than the race-prone "test -d sys || mkdir sys".
65823         (configure.ac): Use AC_PROG_MKDIR_P.
65824         * modules/sys_select: Likewise.
65825         * modules/sys_socket: Likewise.
65826         * modules/sys_time: Likewise.
65827
65828 2007-01-18  Eric Blake  <ebb9@byu.net>
65829
65830         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65831         replace gettimeofday.
65832         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65833         name, to avoid infinite recursion.
65834
65835 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65838         module sys_time.
65839         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65840         assume timespec.h defines struct timeval.
65841         * lib/settime.c: Likewise.
65842         * lib/utimens.c: Likewise.
65843         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65844         since we now assume the gettimeofday module.
65845         * lib/tempname.c (__gen_tempname): Likewise.
65846         * lib/gettimeofday.h: Remove.
65847         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65848         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65849         Include <time.h>, for 'time()'.
65850         (localtime_buffer_addr): Also use this workaround if
65851         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65852         to simplify the uses.  All uses changed.
65853         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65854         that #undef is inside {}, and 'const' follows type name consistently.
65855         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65856         (gettimeofday): Do not use the maximum possible value for
65857         tv->tv_usec, since that might break usages other than ls.c.
65858         Instead, we'll leave ls.c alone.  This undoes today's patch
65859         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65860         we've never observed the problem but might as well keep the
65861         canary.
65862         * lib/nanosleep.c: Include timespec.h first, for interface check.
65863         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65864         now assume the sys_time module.
65865         * lib/tempname.c: Likewise.
65866         * lib/timespec.h: Likewise.
65867         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65868         needed.
65869         * lib/strftime.c: Likewise.
65870         * lib/timespec.h: Likewise.
65871         * lib/posixtm.c: Include posixtm.h first, for interface check.
65872         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65873         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65874         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65875         * lib/sys_time_.h: New file.
65876         * lib/timespec.h (struct timespec): Use long int, not long.
65877         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65878         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65879         Remove obsolescent call to AC_HEADER_TIME.
65880         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65882         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65883         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65884         Likewise.
65885         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65886         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65888         into the sys_time module.  Check for gettimeofday just once.
65889         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65890         for gettimeofday signature to just check the signature.  Merely
65891         compile it, since linking doesn't test signature.  Improve test for
65892         whether gettimeofday.o is actually needed.
65893         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65894         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65895         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65896         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65897         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65898         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65899         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65900         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65901         than worrying about sys/time.h.
65902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65903         Don't bother worrying about TIME_WITH_SYS_TIME.
65904         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65905         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65906         * m4/sys_time_h.m4: New file.
65907         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65908         Don't include sys/time.h.  Return from main rather than exiting.
65909         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65910         all uses changed.
65911         * modules/gethrxtime (Depends-on): Add sys_time.
65912         * modules/gettime (Depends-on): Likewise.
65913         * modules/gettimeofday (Depends-on): Likewise.
65914         * modules/nanosleep (Depends-on): Likewise.
65915         * modules/settime (Depends-on): Likewise.
65916         * modules/tempname (Depends-on): Likewise.
65917         * modules/utimens (Depends-on): Likewise.
65918         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65919         (Include): Change back to <sys/time.h>.
65920         (Maintainer): Add self.
65921         * modules/sys_time: New file.
65922         * modules/tempname (Depends-on): Add gettimeofday.
65923         * tests/test-gettimeofday.c: Include <sys/time.h>
65924         rather than gettimeofday.h.
65925
65926 2007-01-17  Bruno Haible  <bruno@clisp.org>
65927
65928         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65929         the license default to GPL.
65930         (func_create_testdir): Don't complain if a module is LGPL and its
65931         tests module depends on GPLed modules.
65932
65933 2007-01-17  Bruno Haible  <bruno@clisp.org>
65934
65935         * lib/gettimeofday.c (gettimeofday): Add code for the case
65936         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65937         maximum possible value for tv->tv_usec, rather than the minimum one.
65938
65939 2005-10-08  Martin Lambers  <marlam@marlam.de>
65940 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65941 2007-01-16  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65944         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65945         gl_FUNC_GETTIMEOFDAY.
65946         (Include): Add gettimeofday.h.
65947         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65948         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65949         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65950         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65951         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65952         * lib/gettimeofday.h: New file.
65953         * lib/gettimeofday.c: Include <sys/timeb.h>.
65954         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65955         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65956         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65957         fall back on time().
65958
65959         * tests/test-gettimeofday.c: New file.
65960         * modules/gettimeofday-tests: New file.
65961
65962 2007-01-16  Eric Blake  <ebb9@byu.net>
65963
65964         * modules/fnmatch (Depends-on): Depend on wchar.
65965         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65966         * m4/fnmatch.m4: Likewise.
65967         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65968         * m4/mbchar.m4: Likewise.
65969         * modules/mbswidth (Depends-on): Depend on wchar.
65970         * lib/mbswidth.c: Assume <wchar.h>.
65971         * m4/mbswidth.m4: Likewise.
65972         * modules/quotearg (Depends-on): Depend on wchar.
65973         * lib/quotearg.c: Assume <wchar.h>.
65974         * m4/quotearg.m4: Likewise.
65975         * modules/regex (Depends-on): Depend on wchar.
65976         * lib/regex_internal.h: Assume <wchar.h>.
65977         * m4/regex.m4: Likewise.
65978         * modules/stdint (Depends-on): Depend on wchar.
65979         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65980         * m4/stdint.m4: Likewise.
65981         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65982         * modules/strftime (Depends-on): Depend on wchar.
65983         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65984         * modules/strtol (Depends-on): Depend on wchar.
65985         * lib/strtol.c: Assume <wchar.h>.
65986         * modules/wcwidth (Depends-on): Depend on wchar.
65987         * lib/wcwidth.h: Assume <wchar.h>.
65988         * m4/wcwidth.m4: Likewise.
65989
65990 2007-01-16  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/csharpexec-script: New, created from...
65993         * modules/csharpexec: ... this.
65994
65995 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65996
65997         * modules/javaexec-script: New, created from...
65998         * modules/javaexec: ... this.
65999
66000 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66001
66002         * modules/poll (Dependencies): Add sys_select.
66003
66004 2007-01-15  Jim Meyering  <jim@meyering.net>
66005
66006         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66007         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66008         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66009         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66010
66011 2007-01-15  Bruno Haible  <bruno@clisp.org>
66012
66013         * modules/striconveh: New file.
66014         * lib/striconveh.h: New file.
66015         * lib/striconveh.c: New file.
66016         * MODULES.html.sh (Internationalization functions): Add striconveh.
66017
66018         * modules/striconveh-tests: New file.
66019         * tests/test-striconveh.c: New file.
66020
66021 2007-01-15  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66024         not from GNU libiconv or GNU libc.
66025
66026 2007-01-15  Bruno Haible  <bruno@clisp.org>
66027
66028         * doc/gnulib-intro.texi (Copyright): Explain the different license
66029         terms for module descriptions, autoconf macros, tests, documentation.
66030
66031 2007-01-14  Bruno Haible  <bruno@clisp.org>
66032
66033         * modules/striconv-tests: New file.
66034         * tests/test-striconv.c: New file.
66035
66036 2007-01-14  Bruno Haible  <bruno@clisp.org>
66037
66038         * modules/iconv-tests: New file.
66039         * tests/test-iconv.c: New file.
66040
66041 2007-01-14  Bruno Haible  <bruno@clisp.org>
66042
66043         * gnulib-tool (func_get_license): For test modules, use the license of
66044         the main module.
66045
66046 2007-01-14  Bruno Haible  <bruno@clisp.org>
66047
66048         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66049         if iconv is found to exist.
66050
66051 2007-01-14  Bruno Haible  <bruno@clisp.org>
66052
66053         * modules/c-ctype-tests: New file.
66054         * tests/test-c-ctype.c: New file.
66055
66056 2007-01-14  Bruno Haible  <bruno@clisp.org>
66057
66058         * modules/binary-io-tests: New file.
66059         * tests/test-binary-io.sh: New file.
66060         * tests/test-binary-io.c: New file.
66061
66062 2007-01-14  Bruno Haible  <bruno@clisp.org>
66063
66064         * modules/array-oset-tests: New file.
66065         * tests/test-array_oset.c: New file.
66066
66067 2007-01-14  Bruno Haible  <bruno@clisp.org>
66068
66069         * modules/array-list-tests: New file.
66070         * tests/test-array_list.c: New file.
66071
66072 2007-01-14  Bruno Haible  <bruno@clisp.org>
66073
66074         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66075         and make.
66076         Reported by Simon Josefsson in
66077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66078
66079 2007-01-14  Bruno Haible  <bruno@clisp.org>
66080
66081         * modules/allocsa-tests: New file.
66082         * tests/test-allocsa.c: New file.
66083
66084 2007-01-14  Bruno Haible  <bruno@clisp.org>
66085
66086         * modules/fchdir (Depends-on): Add absolute-header.
66087         * modules/unistd (Depends-on): Likewise.
66088
66089 2006-12-30  Bruno Haible  <bruno@clisp.org>
66090
66091         * modules/fchdir: New file.
66092         * modules/unistd (Files): Add lib/unistd_.h.
66093         (Makefile.am): Generate unistd.h from unistd_.h.
66094         * lib/fchdir.c: New file.
66095         * lib/dirent_.h: New file.
66096         * lib/unistd_.h: New file.
66097         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66098         * m4/fchdir.m4: New file.
66099         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66100         (gl_HEADER_UNISTD): Invoke it.
66101         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66102         function.
66103         * lib/backupfile.c (opendir, closedir): Undefine.
66104         * lib/chown.c (open, close): Undefine.
66105         * lib/clean-temp.c (open, close): Undefine.
66106         * lib/copy-file.c (open, close): Undefine.
66107         * lib/execute.c (open, close): Undefine.
66108         * lib/fsusage.c (open, close): Undefine.
66109         * lib/gc-gnulib.c (open, close): Undefine.
66110         * lib/getcwd.c (opendir, closedir): Undefine.
66111         * lib/glob.c (opendir, closedir): Undefine.
66112         * lib/javacomp.c (open, close): Undefine.
66113         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66114         * lib/openat-proc.c (open, close): Undefine.
66115         * lib/pagealign_alloc.c (open, close): Undefine.
66116         * lib/pipe.c (open, close): Undefine.
66117         * lib/progreloc.c (open, close): Undefine.
66118         * lib/savedir.c (opendir, closedir): Undefine.
66119         * lib/utime.c (open, close): Undefine.
66120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66121
66122 2007-01-10  Bruno Haible  <bruno@clisp.org>
66123
66124         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66125
66126 2007-01-12  Eric Blake  <ebb9@byu.net>
66127
66128         Provide a robust <wchar.h>.  Further simplifications are now
66129         possible in other modules, but not included here.
66130         * modules/wchar: New module.
66131         * m4/wchar.m4: New file.
66132         * lib/wchar_.h: Likewise.
66133         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66134         of the new module.
66135         * MODULES.html.sh (Extended multibyte and wide character utilities):
66136         New section.
66137
66138 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66141         to a reasonable default for memory allocation.
66142         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66143         file system that reports garbage st_size values for symlinks.
66144         Problem reported by Liyang Hu.
66145
66146 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66147
66148         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66149         Emacs .#* auto-save files).
66150
66151 2007-01-11  Bruno Haible  <bruno@clisp.org>
66152
66153         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66154         directory.
66155
66156 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66157
66158         Use @...@ consistently in lib/wctype_.h.
66159         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66160         on it being set to 1 or 0.
66161         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66162         go back to AC_SUBSTing it.
66163         * modules/wctype (Makefile.am): Undo previous change.
66164
66165 2007-01-10  Eric Blake  <ebb9@byu.net>
66166
66167         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66168         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66169         * modules/wctype (Makefile.am): Likewise.
66170         Reported by Chris McGuire.
66171
66172 2007-01-10  Jim Meyering  <jim@meyering.net>
66173
66174         fts.c: a small readability/maintainability improvement
66175         * lib/fts.c (fts_read): Make this code slightly more readable and
66176         maintainable by hoisting the "sp->fts_cur = p" assignments to
66177         immediately follow the statements that set P.  Derived from
66178         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66179
66180 2007-01-10  Eric Blake  <ebb9@byu.net>
66181
66182         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66183         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66185         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66186         Reported by Chris McGuire.
66187
66188 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66189
66190         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66191         in sed script.
66192
66193 2007-01-09  Bruno Haible  <bruno@clisp.org>
66194
66195         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66196         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66197         variables.
66198         (func_module): Use them.
66199
66200 2007-01-09  Bruno Haible  <bruno@clisp.org>
66201
66202         * modules/unistr/base: New file.
66203         * lib/unistr.h: New file.
66204
66205         * modules/unistr/u8-to-u16: New file.
66206         * lib/unistr/u8-to-u16.c: New file.
66207
66208         * modules/unistr/u8-to-u32: New file.
66209         * lib/unistr/u8-to-u32.c: New file.
66210
66211         * modules/unistr/u16-to-u8: New file.
66212         * lib/unistr/u16-to-u8.c: New file.
66213
66214         * modules/unistr/u16-to-u32: New file.
66215         * lib/unistr/u16-to-u32.c: New file.
66216
66217         * modules/unistr/u32-to-u8: New file.
66218         * lib/unistr/u32-to-u8.c: New file.
66219
66220         * modules/unistr/u32-to-u16: New file.
66221         * lib/unistr/u32-to-u16.c: New file.
66222
66223         * modules/unistr/u8-check: New file.
66224         * modules/unistr/u16-check: New file.
66225         * modules/unistr/u32-check: New file.
66226         * lib/unistr/u8-check.c: New file.
66227         * lib/unistr/u16-check.c: New file.
66228         * lib/unistr/u32-check.c: New file.
66229
66230         * modules/unistr/u8-chr: New file.
66231         * modules/unistr/u16-chr: New file.
66232         * modules/unistr/u32-chr: New file.
66233         * lib/unistr/u8-chr.c: New file.
66234         * lib/unistr/u16-chr.c: New file.
66235         * lib/unistr/u32-chr.c: New file.
66236
66237         * modules/unistr/u8-cmp: New file.
66238         * modules/unistr/u16-cmp: New file.
66239         * modules/unistr/u32-cmp: New file.
66240         * lib/unistr/u8-cmp.c: New file.
66241         * lib/unistr/u16-cmp.c: New file.
66242         * lib/unistr/u32-cmp.c: New file.
66243
66244         * modules/unistr/u8-cpy: New file.
66245         * modules/unistr/u16-cpy: New file.
66246         * modules/unistr/u32-cpy: New file.
66247         * lib/unistr/u8-cpy.c: New file.
66248         * lib/unistr/u16-cpy.c: New file.
66249         * lib/unistr/u32-cpy.c: New file.
66250         * lib/unistr/u-cpy.h: New file.
66251
66252         * modules/unistr/u8-cpy-alloc: New file.
66253         * modules/unistr/u16-cpy-alloc: New file.
66254         * modules/unistr/u32-cpy-alloc: New file.
66255         * lib/unistr/u8-cpy-alloc.c: New file.
66256         * lib/unistr/u16-cpy-alloc.c: New file.
66257         * lib/unistr/u32-cpy-alloc.c: New file.
66258         * lib/unistr/u-cpy-alloc.h: New file.
66259
66260         * modules/unistr/u8-endswith: New file.
66261         * modules/unistr/u16-endswith: New file.
66262         * modules/unistr/u32-endswith: New file.
66263         * lib/unistr/u8-endswith.c: New file.
66264         * lib/unistr/u16-endswith.c: New file.
66265         * lib/unistr/u32-endswith.c: New file.
66266         * lib/unistr/u-endswith.h: New file.
66267
66268         * modules/unistr/u8-mblen: New file.
66269         * modules/unistr/u16-mblen: New file.
66270         * modules/unistr/u32-mblen: New file.
66271         * lib/unistr/u8-mblen.c: New file.
66272         * lib/unistr/u16-mblen.c: New file.
66273         * lib/unistr/u32-mblen.c: New file.
66274
66275         * modules/unistr/u8-mbtouc: New file.
66276         * modules/unistr/u16-mbtouc: New file.
66277         * modules/unistr/u32-mbtouc: New file.
66278         * lib/unistr/u8-mbtouc.c: New file.
66279         * lib/unistr/u16-mbtouc.c: New file.
66280         * lib/unistr/u32-mbtouc.c: New file.
66281
66282         * modules/unistr/u8-mbtouc-safe: New file.
66283         * modules/unistr/u16-mbtouc-safe: New file.
66284         * modules/unistr/u32-mbtouc-safe: New file.
66285         * lib/unistr/u8-mbtouc-safe.c: New file.
66286         * lib/unistr/u16-mbtouc-safe.c: New file.
66287         * lib/unistr/u32-mbtouc-safe.c: New file.
66288
66289         * modules/unistr/u8-move: New file.
66290         * modules/unistr/u16-move: New file.
66291         * modules/unistr/u32-move: New file.
66292         * lib/unistr/u8-move.c: New file.
66293         * lib/unistr/u16-move.c: New file.
66294         * lib/unistr/u32-move.c: New file.
66295         * lib/unistr/u-move.h: New file.
66296
66297         * modules/unistr/u8-next: New file.
66298         * modules/unistr/u16-next: New file.
66299         * modules/unistr/u32-next: New file.
66300         * lib/unistr/u8-next.c: New file.
66301         * lib/unistr/u16-next.c: New file.
66302         * lib/unistr/u32-next.c: New file.
66303
66304         * modules/unistr/u8-prev: New file.
66305         * modules/unistr/u16-prev: New file.
66306         * modules/unistr/u32-prev: New file.
66307         * lib/unistr/u8-prev.c: New file.
66308         * lib/unistr/u16-prev.c: New file.
66309         * lib/unistr/u32-prev.c: New file.
66310
66311         * modules/unistr/u8-set: New file.
66312         * modules/unistr/u16-set: New file.
66313         * modules/unistr/u32-set: New file.
66314         * lib/unistr/u8-set.c: New file.
66315         * lib/unistr/u16-set.c: New file.
66316         * lib/unistr/u32-set.c: New file.
66317         * lib/unistr/u-set.h: New file.
66318
66319         * modules/unistr/u8-startswith: New file.
66320         * modules/unistr/u16-startswith: New file.
66321         * modules/unistr/u32-startswith: New file.
66322         * lib/unistr/u8-startswith.c: New file.
66323         * lib/unistr/u16-startswith.c: New file.
66324         * lib/unistr/u32-startswith.c: New file.
66325         * lib/unistr/u-startswith.h: New file.
66326
66327         * modules/unistr/u8-stpcpy: New file.
66328         * modules/unistr/u16-stpcpy: New file.
66329         * modules/unistr/u32-stpcpy: New file.
66330         * lib/unistr/u8-stpcpy.c: New file.
66331         * lib/unistr/u16-stpcpy.c: New file.
66332         * lib/unistr/u32-stpcpy.c: New file.
66333         * lib/unistr/u-stpcpy.h: New file.
66334
66335         * modules/unistr/u8-stpncpy: New file.
66336         * modules/unistr/u16-stpncpy: New file.
66337         * modules/unistr/u32-stpncpy: New file.
66338         * lib/unistr/u8-stpncpy.c: New file.
66339         * lib/unistr/u16-stpncpy.c: New file.
66340         * lib/unistr/u32-stpncpy.c: New file.
66341         * lib/unistr/u-stpncpy.h: New file.
66342
66343         * modules/unistr/u8-strcat: New file.
66344         * modules/unistr/u16-strcat: New file.
66345         * modules/unistr/u32-strcat: New file.
66346         * lib/unistr/u8-strcat.c: New file.
66347         * lib/unistr/u16-strcat.c: New file.
66348         * lib/unistr/u32-strcat.c: New file.
66349         * lib/unistr/u-strcat.h: New file.
66350
66351         * modules/unistr/u8-strchr: New file.
66352         * modules/unistr/u16-strchr: New file.
66353         * modules/unistr/u32-strchr: New file.
66354         * lib/unistr/u8-strchr.c: New file.
66355         * lib/unistr/u16-strchr.c: New file.
66356         * lib/unistr/u32-strchr.c: New file.
66357
66358         * modules/unistr/u8-strcmp: New file.
66359         * modules/unistr/u16-strcmp: New file.
66360         * modules/unistr/u32-strcmp: New file.
66361         * lib/unistr/u8-strcmp.c: New file.
66362         * lib/unistr/u16-strcmp.c: New file.
66363         * lib/unistr/u32-strcmp.c: New file.
66364
66365         * modules/unistr/u8-strcpy: New file.
66366         * modules/unistr/u16-strcpy: New file.
66367         * modules/unistr/u32-strcpy: New file.
66368         * lib/unistr/u8-strcpy.c: New file.
66369         * lib/unistr/u16-strcpy.c: New file.
66370         * lib/unistr/u32-strcpy.c: New file.
66371         * lib/unistr/u-strcpy.h: New file.
66372
66373         * modules/unistr/u8-strcspn: New file.
66374         * modules/unistr/u16-strcspn: New file.
66375         * modules/unistr/u32-strcspn: New file.
66376         * lib/unistr/u8-strcspn.c: New file.
66377         * lib/unistr/u16-strcspn.c: New file.
66378         * lib/unistr/u32-strcspn.c: New file.
66379         * lib/unistr/u-strcspn.h: New file.
66380
66381         * modules/unistr/u8-strdup: New file.
66382         * modules/unistr/u16-strdup: New file.
66383         * modules/unistr/u32-strdup: New file.
66384         * lib/unistr/u8-strdup.c: New file.
66385         * lib/unistr/u16-strdup.c: New file.
66386         * lib/unistr/u32-strdup.c: New file.
66387         * lib/unistr/u-strdup.h: New file.
66388
66389         * modules/unistr/u8-strlen: New file.
66390         * modules/unistr/u16-strlen: New file.
66391         * modules/unistr/u32-strlen: New file.
66392         * lib/unistr/u8-strlen.c: New file.
66393         * lib/unistr/u16-strlen.c: New file.
66394         * lib/unistr/u32-strlen.c: New file.
66395         * lib/unistr/u-strlen.h: New file.
66396
66397         * modules/unistr/u8-strmblen: New file.
66398         * modules/unistr/u16-strmblen: New file.
66399         * modules/unistr/u32-strmblen: New file.
66400         * lib/unistr/u8-strmblen.c: New file.
66401         * lib/unistr/u16-strmblen.c: New file.
66402         * lib/unistr/u32-strmblen.c: New file.
66403
66404         * modules/unistr/u8-strmbtouc: New file.
66405         * modules/unistr/u16-strmbtouc: New file.
66406         * modules/unistr/u32-strmbtouc: New file.
66407         * lib/unistr/u8-strmbtouc.c: New file.
66408         * lib/unistr/u16-strmbtouc.c: New file.
66409         * lib/unistr/u32-strmbtouc.c: New file.
66410
66411         * modules/unistr/u8-strncat: New file.
66412         * modules/unistr/u16-strncat: New file.
66413         * modules/unistr/u32-strncat: New file.
66414         * lib/unistr/u8-strncat.c: New file.
66415         * lib/unistr/u16-strncat.c: New file.
66416         * lib/unistr/u32-strncat.c: New file.
66417         * lib/unistr/u-strncat.h: New file.
66418
66419         * modules/unistr/u8-strncmp: New file.
66420         * modules/unistr/u16-strncmp: New file.
66421         * modules/unistr/u32-strncmp: New file.
66422         * lib/unistr/u8-strncmp.c: New file.
66423         * lib/unistr/u16-strncmp.c: New file.
66424         * lib/unistr/u32-strncmp.c: New file.
66425
66426         * modules/unistr/u8-strncpy: New file.
66427         * modules/unistr/u16-strncpy: New file.
66428         * modules/unistr/u32-strncpy: New file.
66429         * lib/unistr/u8-strncpy.c: New file.
66430         * lib/unistr/u16-strncpy.c: New file.
66431         * lib/unistr/u32-strncpy.c: New file.
66432         * lib/unistr/u-strncpy.h: New file.
66433
66434         * modules/unistr/u8-strnlen: New file.
66435         * modules/unistr/u16-strnlen: New file.
66436         * modules/unistr/u32-strnlen: New file.
66437         * lib/unistr/u8-strnlen.c: New file.
66438         * lib/unistr/u16-strnlen.c: New file.
66439         * lib/unistr/u32-strnlen.c: New file.
66440         * lib/unistr/u-strnlen.h: New file.
66441
66442         * modules/unistr/u8-strpbrk: New file.
66443         * modules/unistr/u16-strpbrk: New file.
66444         * modules/unistr/u32-strpbrk: New file.
66445         * lib/unistr/u8-strpbrk.c: New file.
66446         * lib/unistr/u16-strpbrk.c: New file.
66447         * lib/unistr/u32-strpbrk.c: New file.
66448         * lib/unistr/u-strpbrk.h: New file.
66449
66450         * modules/unistr/u8-strrchr: New file.
66451         * modules/unistr/u16-strrchr: New file.
66452         * modules/unistr/u32-strrchr: New file.
66453         * lib/unistr/u8-strrchr.c: New file.
66454         * lib/unistr/u16-strrchr.c: New file.
66455         * lib/unistr/u32-strrchr.c: New file.
66456
66457         * modules/unistr/u8-strspn: New file.
66458         * modules/unistr/u16-strspn: New file.
66459         * modules/unistr/u32-strspn: New file.
66460         * lib/unistr/u8-strspn.c: New file.
66461         * lib/unistr/u16-strspn.c: New file.
66462         * lib/unistr/u32-strspn.c: New file.
66463         * lib/unistr/u-strspn.h: New file.
66464
66465         * modules/unistr/u8-strstr: New file.
66466         * modules/unistr/u16-strstr: New file.
66467         * modules/unistr/u32-strstr: New file.
66468         * lib/unistr/u8-strstr.c: New file.
66469         * lib/unistr/u16-strstr.c: New file.
66470         * lib/unistr/u32-strstr.c: New file.
66471         * lib/unistr/u-strstr.h: New file.
66472
66473         * modules/unistr/u8-strtok: New file.
66474         * modules/unistr/u16-strtok: New file.
66475         * modules/unistr/u32-strtok: New file.
66476         * lib/unistr/u8-strtok.c: New file.
66477         * lib/unistr/u16-strtok.c: New file.
66478         * lib/unistr/u32-strtok.c: New file.
66479         * lib/unistr/u-strtok.h: New file.
66480
66481         * modules/unistr/u8-uctomb: New file.
66482         * modules/unistr/u16-uctomb: New file.
66483         * modules/unistr/u32-uctomb: New file.
66484         * lib/unistr/u8-uctomb.c: New file.
66485         * lib/unistr/u16-uctomb.c: New file.
66486         * lib/unistr/u32-uctomb.c: New file.
66487
66488         * MODULES.html.sh (Unicode string functions): Add the new modules.
66489
66490 2007-01-08  Bruno Haible  <bruno@clisp.org>
66491
66492         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66493         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66494         subdirectories.
66495
66496 2007-01-08  Karl Berry  <karl@gnu.org>
66497
66498         * doc/error.texi: mention that main() fns must set program_name
66499         when progname is used.
66500
66501 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66502
66503         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66504         WCTYPE_H is empty, for the benefit of builds from non-distclean
66505         directories.  Problem reported by Eric Blake in
66506         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66507
66508 2007-01-08  Bruno Haible  <bruno@clisp.org>
66509
66510         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66511         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66512         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66513         PROVIDE_CANONICALIZE_FILENAME_MODE.
66514         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66515
66516 2007-01-08  Bruno Haible  <bruno@clisp.org>
66517
66518         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66519         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66520         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66521         * lib/fts.c: Likewise.
66522         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66523
66524 2006-12-25  Bruno Haible  <bruno@clisp.org>
66525
66526         * modules/utf8-ucs4-safe: New file.
66527         * lib/utf8-ucs4-safe.h: New file.
66528         * lib/unistr/utf8-ucs4-safe.c: New file.
66529
66530         * modules/utf16-ucs4-safe: New file.
66531         * lib/utf16-ucs4-safe.h: New file.
66532         * lib/unistr/utf16-ucs4-safe.c: New file.
66533
66534         * MODULES.html.sh (Unicode string functions): Add the new modules.
66535
66536 2007-01-08  Bruno Haible  <bruno@clisp.org>
66537
66538         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66539         (Depends-on): Add unitypes.
66540         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66541         (u8_mbtouc_aux): Move out to separate file.
66542         (u8_mbtouc): Use ucs4_t, uint8_t types.
66543         * lib/unistr/utf8-ucs4.c: New file.
66544
66545         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66546         (Depends-on): Add unitypes.
66547         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66548         (u16_mbtouc_aux): Move out to separate file.
66549         (u16_mbtouc): Use ucs4_t, uint16_t types.
66550         * lib/unistr/utf16-ucs4.c: New file.
66551
66552         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66553         (Depends-on): Add unitypes.
66554         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66555         (u8_uctomb_aux): Move out to separate file.
66556         (u8_uctomb): Use ucs4_t, uint8_t types.
66557         * lib/unistr/ucs4-utf8.c: New file.
66558
66559         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66560         (Depends-on): Add unitypes.
66561         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66562         (u16_uctomb_aux): Move out to separate file.
66563         (u16_uctomb): Use ucs4_t, uint16_t types.
66564         * lib/unistr/ucs4-utf16.c: New file.
66565
66566 2006-12-25  Bruno Haible  <bruno@clisp.org>
66567
66568         * modules/unitypes: New file.
66569         * lib/unitypes.h: New file.
66570         * MODULES.html.sh (func_all_modules): New section "Unicode string
66571         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66572         this section. Add unitypes.
66573
66574 2007-01-08  Bruno Haible  <bruno@clisp.org>
66575
66576         Avoid variable names that conflict with those from libtool.
66577         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66578         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66579         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66580         library_names_spec to acl_library_names_spec, hardcode_* to
66581         acl_hardcode_*.
66582         Reported by Ralf Wildenhues.
66583
66584 2007-01-08  Bruno Haible  <bruno@clisp.org>
66585
66586         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66587         definition.
66588         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66589         definition.
66590         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66591         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66592         definition.
66593         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66594         definition.
66595         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66596         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66597         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66598         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66599         definition.
66600         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66601         definition.
66602         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66603         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66604         GC_USE_<algorithm>.
66605         * lib/gc-libgcrypt.c: Likewise.
66606         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66607         * modules/gc-arctwo (configure.ac): Likewise.
66608         * modules/gc-des (configure.ac): Likewise.
66609         * modules/gc-hmac-md5 (configure.ac): Likewise.
66610         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66611         * modules/gc-md2 (configure.ac): Likewise.
66612         * modules/gc-md4 (configure.ac): Likewise.
66613         * modules/gc-md5 (configure.ac): Likewise.
66614         * modules/gc-random (configure.ac): Likewise.
66615         * modules/gc-rijndael (configure.ac): Likewise.
66616         * modules/gc-sha1 (configure.ac): Likewise.
66617
66618 2007-01-08  Bruno Haible  <bruno@clisp.org>
66619
66620         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66621         macro definition.
66622         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66623         definition.
66624         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66625         definition.
66626         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66627         * modules/fcntl-safer (configure.ac): Likewise.
66628         * modules/fopen-safer (configure.ac): Likewise.
66629         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66630         GNULIB_FWRITEERROR macro definition.
66631
66632 2007-01-08  Bruno Haible  <bruno@clisp.org>
66633
66634         * m4/gnulib-common.m4: New file.
66635         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66636         (func_get_filelist): Add m4/gnulib-common.m4.
66637
66638 2007-01-08  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66641         command.
66642
66643 2007-01-08  Jim Meyering  <jim@meyering.net>
66644
66645         Use a more robust test for a "can't happen" condition.
66646         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66647         narrowed the st_size value.  Presuming the "can't happen" condition
66648         is true, that narrowing could conceivably convert an invalid st_size
66649         value into a valid one.  Instead, use a change based on Matthew
66650         Woehlke's original patch.
66651
66652         Slight readability improvement: use an assert-like macro
66653         in place of literal "abort ()" uses.
66654         * lib/fts.c (fts_assert): Define.
66655         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66656         Use this macro instead of a bare 'abort'.
66657
66658 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66659
66660         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66661         simply work around them.
66662         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66663         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66664         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66665         declaring.
66666         Don't bother to define as macros, since the standard doesn't require it.
66667         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66668         longer worry about IRIX 5.3.
66669         (HAVE_WCTYPE_CTMP_BUG): Remove.
66670
66671 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66674         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66675         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66676         Problems reported by Georg Schwarz for IRIX 5.3.
66677
66678         * gnulib-tool (autoconf_minversion): Take the maximum version number
66679         found, not the minimum.  Problem reported by James Youngman.
66680
66681 2007-01-03  Karl Berry  <karl@gnu.org>
66682
66683         * doc/error.texi: new file, explaining interaction with progname.
66684         * doc/gnulib.texi: include it.  Update copyright.
66685
66686 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66687
66688         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66689         AC_CANONICAL_HOST, to improve autobuild outputs.
66690
66691 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66692             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66693
66694         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66695         sockets, server sockets, and other file descriptors.  Count errors
66696         to compute the return value.  Reorder the code a bit to be easier
66697         to follow.  Don't set event bits that were not requested (except
66698         POLLERR and POLLHUP).
66699
66700 2007-01-01  Bruno Haible  <bruno@clisp.org>
66701
66702         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66703
66704 2007-01-03  Jim Meyering  <jim@meyering.net>
66705
66706         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66707
66708 2007-01-02  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/settime (Include): Require timespec.h.
66711         * modules/nanosleep (Include): Likewise.
66712
66713 2007-01-01  Bruno Haible  <bruno@clisp.org>
66714
66715         * gnulib-tool (func_emit_copyright_notice): Bump year.
66716         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66717
66718 2007-01-01  Bruno Haible  <bruno@clisp.org>
66719
66720         Improve support for OpenBSD.
66721         * build-aux/config.rpath (libname_spec): Export.
66722         (library_names_spec): New variable. Export.
66723         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66724         library_names_spec from the config.rpath output. Locate shared library
66725         through the name pattern in library_names_spec.
66726
66727 2007-01-01  Eric Blake  <ebb9@byu.net>
66728
66729         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66730
66731 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66732
66733         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66734         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66735         assume the C locale, and avoid an "eval" that could cause trouble.
66736         Problem with SORT reported by Bob Proulx.
66737
66738         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66739         Define.  Trivial patch from Henning Nielsen Lund, originally
66740         sent to bug-grep@gnu.org today.
66741
66742 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66745         struct stat.  Problem reported by Henning Nielsen Lund.
66746         * lib/acl.c: Include acl.h first, to check interface.  Don't
66747         bother to include sys/types.h and sys/stat.h again.
66748
66749 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         Import the following change from libc; problem reported by
66752         Sven Verdoolaege.
66753
66754         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66755
66756         [BZ #1373]
66757         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66758
66759 2006-12-28  Jim Meyering  <jim@meyering.net>
66760
66761         * build-aux/announce-gen: Do not assume that the package
66762         builds any of tar.gz, tar.bz2, and .xdelta files.
66763         Suggestion from Simon Josefsson.
66764
66765 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66766
66767         * modules/announce-gen: New file.
66768
66769 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66772         handles its gotchas now.
66773         * lib/mbswidth.c: Likewise.
66774         * lib/wcwidth.h: Likewise.
66775         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66776         and iswcntrl; the wctype module does this stuff now.
66777         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66778         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66779         * modules/mbchar (Depends-on): Add wctype.
66780         * modules/mbswidth (Depends-on): Likewise.
66781         * modules/wcwidth (Depends-on): Likewise.
66782
66783 2006-12-27  Eric Blake  <ebb9@byu.net>
66784
66785         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66786         module uses more than what <wctype.h> is required to provide.
66787
66788 2006-12-26  Eric Blake  <ebb9@byu.net>
66789
66790         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66791
66792 2006-12-26  Eric Blake  <ebb9@byu.net>
66793
66794         * modules/absolute-header: New module.
66795         * modules/fcntl (Depends-on): Depend on it.
66796         * modules/inttypes (Depends-on): Likewise.
66797         * modules/stdint (Depends-on): Likewise.
66798         * modules/sys_stat (Depends-on): Likewise.
66799         * modules/wctype (Depends-on): Likewise.
66800         * MODULES.html.sh (Support for building libraries and
66801         executables): Document it.
66802
66803 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66804
66805         * gnulib-tool (SED): Remove, undoing previous change.
66806         The problem was that it broke coreutils on Solaris, because
66807         "sed --posix" leaked into a makefile.
66808         (sed): New alias, if 'alias' and GNU sed.
66809
66810 2006-12-24  Jim Meyering  <jim@meyering.net>
66811
66812         Work around an fchownat bug in glibc-2.4:
66813         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66814         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66815         in spite of the -P option.
66816         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66817         New macros.
66818         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66819         * modules/openat (Files): Add lib/fchownat.c.
66820         * lib/openat.c (fchownat): Don't define here.  Move to...
66821         * lib/fchownat.c: ...this new file.
66822
66823 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         Fix bug reported by Bruno Haible in
66826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66827         where quotearg.c didn't compile on Mac OS X 10.2 because it
66828         lacks <wchar.h> and wint_t.
66829         * lib/wctype_.h (__wctype_wint_t): New type.
66830         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66831         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66832         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66833         Arg is now of type __wctype_wint_t, not wint_t.
66834         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66835         substitute HAVE_WINT_T.
66836         * modules/wctype (Files): Add m4/wint_t.m4.
66837         (wctype.h): Substitute HAVE_WINT_T.
66838
66839 2006-12-23  Bruno Haible  <bruno@clisp.org>
66840
66841         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66842
66843 2006-12-23  Bruno Haible  <bruno@clisp.org>
66844
66845         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66846         S_ISLNK.
66847         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66848         mingw.
66849
66850 2006-12-22  Bruno Haible  <bruno@clisp.org>
66851
66852         * lib/copy-file.c: Include acl.h.
66853         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66854         Close the file descriptors only after being done with copy_acl.
66855         * modules/copy-file (Depends-on): Add acl.
66856
66857 2006-12-22  Bruno Haible  <bruno@clisp.org>
66858
66859         * gnulib-tool (SED): New variable.
66860         Use $SED instead of sed everywhere.
66861
66862 2006-12-22  Bruno Haible  <bruno@clisp.org>
66863
66864         * modules/no-c++: New file.
66865         * m4/no-c++.m4: New file.
66866         * MODULES.html.sh (Support for building libraries and executables):
66867         Add no-c++.
66868
66869 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66870
66871         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66872         Include <limits.h>, and use its INT_MAX to rewrite the
66873         j loop so that it does not overflow 'int'.  Problem reported by
66874         Ralf Wildenhues in
66875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66876         Play it safe by shifting left by 1 rather than multiplying by 2,
66877         as GCC is less likely to optimize this away when the value
66878         is signed (when it assumes overflow leads to undefined behavior).
66879         Also, don't assume time_t uses two's complement.
66880
66881 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * MODULES.html.sh: New module wctype.
66884         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66885         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66886         <wctype.h>, since the new wctype module should fix this.
66887         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66888         the wctype module should arrange for it.
66889         * lib/regex_internal.h: Likewise.
66890         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66891         since the wctype module should handle this now.
66892         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66893         * modules/fnmatch (Depends-on): Add wctype.
66894         * modules/quotearg (Depends-on): Likewise.
66895         * modules/regex (Depends-on): Likewise.
66896
66897 2006-12-19  Bruno Haible  <bruno@clisp.org>
66898
66899         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66900         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66901
66902 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66903
66904         * modules/savewd (Depends-on): Fix dependency on fcntl.
66905
66906 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66907
66908         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66909         conforms to C99, rather than relying on the user's environment
66910         setting of STDINT_H.
66911
66912 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66913         and Eric Blake  <ebb9@byu.net>
66914
66915         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66916         This is more consistent with the other defines here.
66917         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66918         Port to z/OS.  Problem reported by Paul Gilmartin.
66919         Change local vars to use gl_ prefix rather than ac_.
66920         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66921         with other defines.
66922         * modules/double-slash-root: New module.
66923         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66924         (Depends-on): Add double-slash-root.
66925         * MODULES.html.sh (File system functions): Mention new module.
66926
66927 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66928
66929         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66930         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66931         This is for the benefit of gzip, which doesn't do i18n.
66932
66933 2006-12-12  Jim Meyering  <jim@meyering.net>
66934
66935         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66936         Reported by Andreas Schwab <schwab@suse.de>.
66937
66938 2006-12-12  Bruno Haible  <bruno@clisp.org>
66939
66940         Merge these changes.
66941         2006-09-05  Bruno Haible  <bruno@clisp.org>
66942         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66943         iconv_alloc succeeded.
66944         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66945         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66946         test for " && dest " at the end - dest is always != NULL there. Call
66947         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66948         with 2xNULL arguments, also to flush the state storage. Handle the
66949         IRIX iconv behaviour. Realloc the final result, to throw away unused
66950         memory.
66951
66952 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66955         and fchmodat unconditionally, since glibc 2.4 has them.
66956         Problem reported by Arkadiusz Miskiewicz.
66957
66958 2006-12-10  Bruno Haible  <bruno@clisp.org>
66959
66960         * gnulib-tool (func_import): Show the include files only for those
66961         modules that are copied and specified.
66962         Reported by Karl Berry.
66963
66964 2006-12-08  Jim Meyering  <jim@meyering.net>
66965
66966         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66967         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66968
66969         * build-aux/announce-gen: Add two new options, both optional:
66970         --bootstrap-tools=TOOL_LIST
66971               a comma-separated list of tools, e.g.,
66972               autoconf,automake,bison,gnulib
66973         --gnulib-snapshot-date=DATE
66974               if gnulib is in the bootstrap tool list,
66975               then report this as the snapshot date.
66976               If not specified, use the current date/time.
66977               If you specify a date here, be sure it's UTC.
66978
66979 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66980
66981         * tests/test-argp-2.sh: Fix test to match actual output.
66982         (func_compare): Fix sed script to be portable.
66983
66984 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66985
66986         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66987         workaround for this case.  It is not autoconfigured now; offhand
66988         it's hard to see how to autoconfigure it.
66989
66990 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66993         a directory that is about to be chowned.  Such a directory's
66994         initial file permissions should permit the owner only and this
66995         should not be changed until after the chown, since the group and
66996         other bits would be incorrect if they granted permission before
66997         the chown.
66998
66999         Fix porting problem for iswctype reported by Georg Schwarz in:
67000         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67001         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67002         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67003         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67004         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67005
67006 2006-12-03  Jim Meyering  <jim@meyering.net>
67007
67008         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67009         p->fts_statp may not yet be defined.
67010         (fts_read): Instead, set it in the caller, once p->fts_statp is
67011         sure to be defined, and corresponds to a top-level directory.
67012         This bug made du -x fail.  Here's the coreutils test case:
67013         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67014         Reported by Mike Frysinger.
67015
67016 2006-12-01  Jim Meyering  <jim@meyering.net>
67017
67018         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67019         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67020         Reported by Simon Josefsson.
67021
67022 2006-11-30  Jim Meyering  <jim@meyering.net>
67023
67024         * m4/warning.m4: Use the all-permissive copyright notice
67025         recommended by RMS (rather than LGPL).
67026         * m4/vararrays.m4: Likewise.
67027         * m4/flexmember.m4: Likewise.
67028
67029 2006-11-29  Bruno Haible  <bruno@clisp.org>
67030
67031         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67032         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67033         using +=.
67034         Reported by Simon Josefsson <simon@josefsson.org>.
67035
67036 2006-11-28  James Youngman <jay@gnu.org>
67037
67038         * README: Advise users that they might find the bug-gnulib@gnu.org
67039         and autotools-announce@gnu.org mailing lists useful.
67040
67041 2006-11-28  Bruno Haible  <bruno@clisp.org>
67042
67043         * m4/ptrdiff_max.m4: Remove file.
67044
67045 2006-11-21  Bruno Haible  <bruno@clisp.org>
67046
67047         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67048         _AC_COMPUTE_INT.
67049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67050         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67051         _AC_COMPUTE_INT.
67052         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67053         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67054         _AC_COMPUTE_INT.
67055         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67056
67057 2006-11-28  Jim Meyering  <jim@meyering.net>
67058
67059         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67060         warning from "gcc -Wshadow" about shadowing the builtin.
67061
67062 2006-11-27  Bruno Haible  <bruno@clisp.org>
67063
67064         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67065         _AC_COMPUTE_INT.
67066         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67067
67068 2006-11-27  Bruno Haible  <bruno@clisp.org>
67069             Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67072
67073 2006-11-26  Bruno Haible  <bruno@clisp.org>
67074
67075         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67076         noinst_LTLIBRARIES.
67077
67078 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67079             Bruno Haible  <bruno@clisp.org>
67080
67081         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67082         if compiling with "gcc -ansi".
67083
67084 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67085
67086         Fix some incompatibilities with gcc -ansi -pedantic.
67087         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67088         if compiling pedantically with GCC, unless it's C99 or later.
67089         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67090         it mishandles gcc -ansi -pedantic as well.
67091         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67092         if gcc -pedantic.
67093         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67094         initializers for struct if -pedantic, unless it's C99 or later.
67095
67096 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67097
67098         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67099         Don't close an fd more than once. Identical atimes indicate
67100         success, not failure.
67101
67102 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67103
67104         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67105
67106 2006-11-23  Jim Meyering  <jim@meyering.net>
67107
67108         * build-aux/announce-gen: New file.  From coreutils.
67109
67110 2006-11-22  Jim Meyering  <jim@meyering.net>
67111
67112         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67113         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67114         (fts_read): Use a temporary to narrow the overused st_size member
67115         before using it in a switch statement.  Reported by Matthew Woehlke.
67116
67117         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67118         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67119
67120 2006-11-20  Bruno Haible  <bruno@clisp.org>
67121
67122         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67123         changequote instead of pairs of brackets.
67124         Reported by Andreas Schwab <schwab@suse.de>.
67125
67126 2006-11-21  Jim Meyering  <jim@meyering.net>
67127
67128         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67129         so as to remain compatible with older compilers.
67130         Patch from Michael Deutschmann.
67131
67132 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67133
67134         * MODULES.html.sh (File system functions): Add openat.
67135
67136         * lib/openat.h (rpl_fstatat): New macro, if
67137         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67138         (fstatat): Define to rpl_fstatat under the same conditions,
67139         unless COMPILING_FSTATAT.
67140         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67141         seems to have the bug.
67142         * lib/fstatat.c: New file.
67143         * modules/openat (Files): Add it.
67144
67145 2006-11-20  Bruno Haible  <bruno@clisp.org>
67146
67147         * Makefile: New file.
67148
67149 2006-11-20  Jim Meyering  <jim@meyering.net>
67150
67151         The beginnings of syntax-related checks for gnulib.
67152         * lib/Makefile: New file.
67153         * lib/t-idcache: New script.  Ensure that the two halves of
67154         idcache.c stay in sync.
67155
67156         * lib/idcache.c: Adjust comments in user- and group- portions to
67157         be more accurate, and to be consistent with one another.
67158
67159 2006-11-20  Jim Meyering  <jim@meyering.net>
67160
67161         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67162         continue using the flexible array member (thus, this module performs
67163         half as many malloc calls), with the addition that...
67164         (getgroup, getuser): Consistently record a non-match via an empty
67165         "name" string, and map an empty string match to a NULL return value.
67166         * modules/idcache (Depends-on): Re-add flexmember.
67167
67168         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67169         (getuidbyname, getgroup, getgidbyname): Likewise.
67170
67171         Use cleaner syntax: NULL rather than 0.
67172         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67173
67174 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67175
67176         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67177         It mishandled the case where the group was missing.
67178         Problem reported by Greg Schafer.
67179         * modules/idcache: Likewise.
67180
67181 2006-11-18  Jim Meyering  <jim@meyering.net>
67182
67183         * check-module (%exempt_header): Add exception for some
67184         conditionally-included headers.
67185
67186         * modules/i-ring (Depends-on): Add verify.
67187         (License): Change to LGPL.
67188
67189 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67190
67191         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67192         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67193         and inttostr.h.  Use snprintf rather than uinttostr, so that
67194         LGPLed code doesn't depend on GPLed.
67195
67196 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * modules/inline (License): Change from GPL to LGPL.
67199
67200 2006-11-17  Jim Meyering  <jim@meyering.net>
67201
67202         * modules/d-type (License): Switch to LGPL.
67203
67204 2006-11-15  Bruno Haible  <bruno@clisp.org>
67205
67206         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67207
67208 2006-11-15  Eric Blake  <ebb9@byu.net>
67209
67210         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67211         the module dependency.
67212
67213 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67214             Bruno Haible  <bruno@clisp.org>
67215
67216         * gnulib-tool (func_create_testdir): Add license consistency check.
67217
67218 2006-11-15  Eric Blake  <ebb9@byu.net>
67219
67220         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67221         random "(cached)" in configure output.
67222
67223 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67224
67225         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67226         test for conforming inttypes.h is both announced and cached.
67227
67228         * MODULES.html.sh (seen_modules, seen_files): New variables.
67229         (func_module): Rewrite to use a few less gnulib-tool and sed
67230         invocations.  Avoid a couple of quadratic algorithms for ...
67231         (missed_modules, missed_files): ... these, with ...
67232         (func_append, func_tmpdir): ... these new functions, from
67233         gnulib-tool.  Analogously, install traps for cleanup.
67234
67235         * tests/test-gc.c (main): Remove unused variables.
67236         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67237
67238 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67239
67240         * modules/inttostr (License): Change to LGPL.
67241
67242 2006-11-14  Eric Blake  <ebb9@byu.net>
67243
67244         * modules/tempname (License): Change to LGPL.
67245
67246 2006-11-14  Eric Blake  <ebb9@byu.net>
67247
67248         * doc/functions.texi (Function Portability): *printf functions on
67249         Cygwin now understand all POSIX size specifiers.
67250
67251 2006-11-14  Bruno Haible  <bruno@clisp.org>
67252
67253         * modules/c-ctype (License): Change to LGPL.
67254
67255 2006-11-12  Bruno Haible  <bruno@clisp.org>
67256
67257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67258         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67259         for GNOME libraries, for which the include files are installed in
67260         subdirectories of $prefix/include.
67261
67262 2006-11-12  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/lib-link.m4: Require at least autoconf-2.54.
67265         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67266         name to underscores for the --with option.
67267
67268 2006-11-13  Bruno Haible  <bruno@clisp.org>
67269
67270         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67271         the tests directory.
67272         Reported by Ralf Wildenhues.
67273
67274 2006-11-13  Bruno Haible  <bruno@clisp.org>
67275
67276         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67277         (func_emit_initmacro_end): Undo the override here.
67278         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67279         Works around the famous automake error in coreutils.
67280
67281 2006-11-13  Eric Blake  <ebb9@byu.net>
67282
67283         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67284         element, not its node.
67285
67286 2006-11-12  Bruno Haible  <bruno@clisp.org>
67287
67288         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67289         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67290
67291 2006-11-12  Bruno Haible  <bruno@clisp.org>
67292
67293         * gnulib-tool: New option --local-symlink.
67294         (func_usage): Document it.
67295         (lsymbolic): New variable.
67296         (func_import, func_create_testdir): If --symlink was not specified,
67297         test whether --local-symlink was specified and the file comes from
67298         the local_gnulib_dir.
67299
67300 2006-11-12  Bruno Haible  <bruno@clisp.org>
67301
67302         * gnulib-tool (func_ln): New function.
67303         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67304
67305 2006-11-12  Bruno Haible  <bruno@clisp.org>
67306
67307         Finish support for source files in subdirectories.
67308         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67309         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67310         AUTOMAKE_OPTIONS.
67311         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67312
67313 2006-11-12  Bruno Haible  <bruno@clisp.org>
67314
67315         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67316         EXTRA_lib_SOURCES augmentation.
67317         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67318
67319 2006-11-12  Jim Meyering  <jim@meyering.net>
67320
67321         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67322         file descriptors.  This also averts a failure on systems with
67323         native openat support when a traversed directory lacks "x" access.
67324         * lib/fts_.h: Include "i-ring.h"
67325         (struct FTS) [fts_fd_ring]: New member.
67326         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67327         (FCHDIR): Add parentheses.
67328         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67329         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67330         When descending, rather than simply closing the previous
67331         fts_cwd_fd value, push that file descriptor onto the ring.
67332         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67333         (fts_open): Initialize the new fd_ring member.
67334         (fts_close): Clear the ring.
67335         (fts_safe_changedir): When possible, use our new fd_ring to skip
67336         the diropen and fstat and dev/ino comparison that would normally
67337         accompany a virtual `chdir ("..")'.
67338
67339         * modules/fts (Depends-on): Add i-ring.
67340         * modules/i-ring: New module.
67341         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67342         * m4/i-ring.m4: New file.
67343
67344 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67345
67346         * gnulib-tool (func_create_testdir): Fix replacement of
67347         `build-aux' in configure.ac.  Run autotools in gltests
67348         subdirectory.
67349         (func_create_testdir, func_create_megatestdir, test): There is
67350         no need for '--force' in most autotool invocations in a new
67351         tree.  Actually fail the whole test if any of the tools, or the
67352         configure or make stages fail.
67353
67354         Sync from Automake.
67355         * build-aux/gnupload: Revert last change.  Add pointer to upload
67356         instructions of the GNU Maintenance Instructions.
67357         Suggestion by Karl Berry.
67358
67359 2006-11-10  Jim Meyering  <jim@meyering.net>
67360
67361         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67362
67363 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67364
67365         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67366         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67367         (bind_textdomain_codeset) [! ENABLE_NLS]:
67368         Evaluate all the arguments.  That way, callers get compatible behavior
67369         if the arguments have side effects.  Also, it avoids some GCC
67370         diagnostics in some cases; Joel E. Denny reported problems when Bison
67371         was configured with --enable-gcc-warnigs.
67372
67373 2006-11-10  Jim Meyering  <jim@meyering.net>
67374
67375         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67376         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67377         account.
67378
67379 2006-11-10  Jim Meyering  <jim@meyering.net>
67380
67381         * modules/inline: New file/module.
67382         * modules/xalloc (Files): Remove m4/inline.m4.
67383         (Depends-on): Add inline, instead.
67384         * modules/oset: Likewise.
67385         * modules/list: Likewise.
67386
67387 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67388
67389         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67390         Problem reported by Matthew Woehlke.
67391
67392 2006-11-09  Bruno Haible  <bruno@clisp.org>
67393
67394         * lib/tempname.c (gen_tempname): Remove variant that invokes
67395         __gen_tempname.
67396         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67397         __gen_tempname.
67398
67399 2006-11-08  Bruno Haible  <bruno@clisp.org>
67400
67401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67402         to 'yes' instead of 'cross-compiling'.
67403
67404 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67405
67406         * lib/quotearg.h (quotearg_free): New decl.
67407         * lib/quotearg.c (quotearg_free): New function.
67408         (slot0, nslots, slotvec0, slotvec):
67409         Now file-scope so that quotearg_free can get at them.
67410
67411 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67412
67413         Sync from Automake.
67414         * build-aux/gnupload: Add missing 'gnu' to example URL.
67415         Report by Karl Berry.
67416
67417 2006-11-08  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67420         Suggested by Paul Eggert.
67421
67422 2006-11-08  Jim Meyering  <jim@meyering.net>
67423
67424         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67425         It's already included if !_LIBC.
67426         (fts_safe_changedir): Add a comment.
67427
67428 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67431         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67432         Matthew Woehlke.
67433
67434         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67435         definitions up, to avoid colliding with change below.
67436         (static_inline) [HAVE_INLINE]: New macro.
67437         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67438         Provide extern decls when !HAVE_INLINE.  Do not define unless
67439         static_inline is defined, either by us or by xmalloc.c.  Use
67440         static_inline rather than static inline.
67441         (XCALLOC): Optimize sizeof(T) = 1 case.
67442         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67443
67444 2006-11-07  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67447         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67448         AC_C_INLINE.
67449         * modules/xalloc (Files): Add m4/inline.m4.
67450
67451 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67452
67453         * README: Fix typo.
67454         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67455         (Miscellanous Notes): ...from this.
67456
67457 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67460         Mention that offsetof should be used instead of sizeof.
67461         From Bruno Haible.
67462
67463 2006-11-07  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67466
67467 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67468
67469         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67470         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67471         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67472         (gl_tree_add_before, gl_tree_add_after):
67473         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67474         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67475         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67476         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67477         (gl_linked_add_after, gl_linked_add_at): Likewise.
67478         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67479         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67480         (gl_tree_add_before, gl_tree_add_after): Likewise.
67481         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67482         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67483         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67484
67485 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67486
67487         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67488
67489 2006-11-06  Bruno Haible  <bruno@clisp.org>
67490
67491         * m4/inline.m4: New file.
67492         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67493         * modules/list (Files): Add m4/inline.m4.
67494         * modules/oset (Files): Likewise.
67495
67496 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * lib/idcache.c: Include <stddef.h>, for offsetof.
67499         (struct userid.name): Change from char * to a flexible array member.
67500         All uses changed.
67501         * modules/idcache (Depends-on): Add flexmember.
67502
67503         * MODULES.html.sh (Core language properties): New module flexmember.
67504         * modules/flexmember, m4/flexmember.m4: New files.
67505
67506         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67507         inline functions that are identical with the old xnmalloc_inline,
67508         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67509         that we can avoid some unnecessary integer multiplications and
67510         divisions in the common case where the element size is known at
67511         compile time.
67512         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67513         needed.
67514         (xnboundedmalloc): Remove.
67515         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67516         arguments, for consistency with rest of this header.
67517         (xcharalloc): Rewrite using XNMALLOC.
67518         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67519         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67520         versions have been moved to lib/xalloc.h and renamed to be the
67521         non-*_inline versions.
67522         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67523         and xnrealloc functions, since those functions are now inline and
67524         now call us.
67525         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67526         renaming described above.
67527         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67528         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67529         captures the dependency in AC_C_INLINE.
67530
67531         New module canonicalize-lgpl, proposed by Charles Wilson in
67532         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67533         with a few small changes afterwards.
67534         * MODULES.html.sh (File system functions): New module
67535         canonicalize-lgpl.
67536         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67537         and canonicalize_file_name.
67538         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67539         * modules/canonicalize-lgpl: New files.
67540
67541 2006-11-05  Bruno Haible  <bruno@clisp.org>
67542
67543         * gnulib-tool (func_import, func_create_testdir): Create directories
67544         also for files in subdirectories of lib/.
67545
67546 2006-11-05  Bruno Haible  <bruno@clisp.org>
67547
67548         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67549         ANSI C compliant.
67550
67551 2006-11-03  Bruno Haible  <bruno@clisp.org>
67552
67553         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67554         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67555         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67556         (xnboundedmalloc): New inline function.
67557         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67558         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67559         xmalloc.
67560         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67561         xmalloc.
67562         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67563         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67564         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67565         xmalloc.
67566         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67567         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67568         xmalloc.
67569         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67570         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67571         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67572         xmalloc.
67573         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67574         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67575         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67576         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67577         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67578         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67579         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67580
67581 2006-11-03  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/c-ctype.h [C++]: Define functions without name mangling.
67584         * lib/fwriteerror.h [C++]: Likewise.
67585         * lib/gcd.h [C++]: Likewise.
67586         * lib/linebreak.h [C++]: Likewise.
67587
67588 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67591         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67592         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67593         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67594         Check for functions and headers just once.
67595         Check for declaration of canonicalize_file_name.
67596         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67597
67598 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67599
67600         * gnulib-tool (func_import): Fix typo in actioncmd.
67601
67602 2006-11-02  Bruno Haible  <bruno@clisp.org>
67603
67604         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67605         newline sequence in the Makefile.am snippet as a space, like "make"
67606         does.
67607         Reported by Roger Persson <perrog@gmail.com>.
67608
67609 2006-11-01  Bruno Haible  <bruno@clisp.org>
67610
67611         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67612         already declared in <string.h>.
67613         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67614
67615 2006-11-01  Bruno Haible  <bruno@clisp.org>
67616
67617         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67618         * lib/strcase.h: Include <string.h>.
67619         (strcasecmp): Define to rpl_strcasecmp here.
67620
67621 2006-11-01  Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67624
67625 2006-11-01  Eric Blake  <ebb9@byu.net>
67626
67627         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67628
67629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67630
67631 2006-10-29  Bruno Haible  <bruno@clisp.org>
67632
67633         Make it compile in C++ mode.
67634         * lib/full-write.c (full_rw): Add a cast.
67635
67636 2006-11-01  Bruno Haible  <bruno@clisp.org>
67637
67638         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67639         be POSIX compliant.
67640         Reported by Roger Persson <perrog@gmail.com>.
67641
67642 2006-11-01  Eric Blake  <ebb9@byu.net>
67643
67644         * lib/getopt_.h: Fix comments.
67645
67646 2006-10-31  Eric Blake  <ebb9@byu.net>
67647
67648         * modules/tmpdir (Depends-on): Add sys_stat.
67649         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67650         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67651         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67652         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67653         tempname.
67654
67655 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         Avoid some C++ diagnostics reported by Bruno Haible.
67658         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67659         xmalloc.
67660         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67661         (struct slotvec): Move to top level.
67662         (quotearg_n_options): Rewrite to avoid xmalloc.
67663         * lib/xalloc.h (xcharalloc): New function.
67664         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67665         [defined __cplusplus]: Add function template that provides result
67666         type propagation.  This part of the change is from Bruno Haible.
67667
67668 2006-10-29  Bruno Haible  <bruno@clisp.org>
67669
67670         Make it compile in C++ mode.
67671         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67672         * lib/strnlen1.c (strnlen1): Cast memchr result.
67673         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67674         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67675         (create_temp_dir): Rename local variable 'template'.
67676         (compile_csharp_using_sscli): Add cast.
67677         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67678         * lib/findprog.c (find_in_path): Likewise.
67679         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67680         * lib/wait-process.c (register_slave_subprocess): Likewise.
67681
67682 2006-10-22  Bruno Haible  <bruno@clisp.org>
67683
67684         * modules/tsearch: New file.
67685         * lib/tsearch.h: New file.
67686         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67687         * m4/tsearch.m4: New file.
67688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67689
67690 2006-10-29  Eric Blake  <ebb9@byu.net>
67691
67692         * lib/arcfour.c: Assume config.h.
67693         * lib/arctwo.c: Likewise.
67694         * lib/base64.c: Likewise.
67695         * lib/check-version.c: Likewise.
67696         * lib/crc.c: Likewise.
67697         * lib/des.c: Likewise.
67698         * lib/gc-gnulib.c: Likewise.
67699         * lib/gc-libgcrypt.c: Likewise.
67700         * lib/gc-pbkdf2-sha1.c: Likewise.
67701         * lib/getaddrinfo.c: Likewise.
67702         * lib/getdelim.c: Likewise.
67703         * lib/getline.c: Likewise.
67704         * lib/hmac-md5.c: Likewise.
67705         * lib/hmac-sha1.c: Likewise.
67706         * lib/iconvme.c: Likewise.
67707         * lib/md2.c: Likewise.
67708         * lib/md4.c: Likewise.
67709         * lib/memxor.c: Likewise.
67710         * lib/read-file.c: Likewise.
67711         * lib/readline.c: Likewise.
67712         * lib/rijndael-alg-fst.c: Likewise.
67713         * lib/rijndael-api-fst.c: Likewise.
67714         * lib/xgetdomainname.c: Likewise.
67715
67716 2006-10-28  Eric Blake  <ebb9@byu.net>
67717
67718         * lib/xstrndup.c: Assume config.h.
67719
67720 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67723         stat-macros.h is now for our own macros, whereas stat_h is for
67724         macros in the <sys/stat.h> name space.
67725         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67726         (STAT_MACROS_H): Remove.
67727         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67728         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67729         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67730         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67731         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67732         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67733         Move these macros to ...
67734         * lib/stat_.h: here.  Don't include stat-macros.h.
67735         * lib/canonicalize.c: Don't include stat-macros.h.
67736         * lib/chown.c: Likewise.
67737         * lib/euidaccess.c: Likewise.
67738         * lib/file-type.c: Likewise.
67739         * lib/filemode.c: Likewise.
67740         * lib/glob.c: Likewise.
67741         * lib/isapipe.c: Likewise.
67742         * lib/lchown.c: Likewise.
67743         * lib/lstat.c: Likewise.
67744         * lib/mkdir-p.c: Likewise.
67745         * lib/rmdir.c: Likewise.
67746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67748         unless mkdir isn't declared, to speed up 'configure'.
67749         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67750         would define all the S_* symbols.
67751         * modules/canonicalize (Depends-on):
67752         Depend on sys_stat, not stat-macros.
67753         * modules/chown: Likewise.
67754         * modules/euidaccess: Likewise.
67755         * modules/filemode: Likewise.
67756         * modules/file-type: Likewise.
67757         * modules/glob: Likewise.
67758         * modules/isapipe: Likewise.
67759         * modules/lchown: Likewise.
67760         * modules/lstat: Likewise.
67761         * modules/mkancesdirs: Likewise.
67762         * modules/rmdir: Likewise.
67763         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67764         * modules/modechange: Likewise.
67765         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67766         (configure.ac): Remove gl_STAT_MACROS.
67767         * modules/sys_stat (Depends-on): Remove stat-macros.
67768
67769 2006-10-27  Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/signed.m4: Remove file.
67772         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67773         invocation.
67774         * modules/vasnprintf (Files): Remove m4/signed.m4.
67775
67776 2006-10-27  Bruno Haible  <bruno@clisp.org>
67777
67778         Update to GNU gettext 0.16.
67779         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67780         m4/inttypes-h.m4, m4/signed.m4.
67781         * m4/gettext.m4: Update to GNU gettext 0.16.
67782         * m4/intl.m4: New file, from GNU gettext.
67783         * m4/intldir.m4: New file, from GNU gettext.
67784         * config/srclist.txt: Update
67785
67786 2006-10-27  Eric Blake  <ebb9@byu.net>
67787
67788         * MODULES.html.sh: Document tempname.
67789         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67790         dependencies.
67791         (Files): Move lib/tempname.c...
67792         * modules/tempname: ...to this new module.
67793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67794         (gl_PREREQ_TEMPNAME): Move...
67795         * m4/tempname.m4: ...to this new file.
67796         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67797         * modules/sys_stat (Depends-on): Add stat-macros.
67798         * lib/stat_.h (includes): Pick up stat macros.
67799         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67800         if stat macros are broken.
67801         * lib/tempname.c (includes): No need to include "stat-macros.h".
67802         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67803         (direxists, __path_search) [!_LIBC]: Don't compile these in
67804         gnulib; the tmpdir module covers that.
67805         * lib/tempname.h: New file.
67806
67807 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * COPYING: Explain how gnulib-tool converts licence headers.
67810         Almost all wording by Eric Blake.
67811
67812 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67813
67814         * lib/mbchar.h (is_basic_table): Make read-only.
67815         * lib/mbchar.c (is_basic_table): Likewise.
67816         Reported by John Darrington.
67817
67818 2006-10-25  Bruno Haible  <bruno@clisp.org>
67819
67820         * lib/progname.h (set_program_name): Undefine before defining.
67821
67822 2006-10-25  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67825         false for non-gcc C++ compilers.
67826         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67827
67828 2006-10-24  Bruno Haible  <bruno@clisp.org>
67829
67830         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67831         iconv implementations like Irix iconv.
67832
67833 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67834
67835         * modules/vararrays: New file.
67836         * m4/vararrays.m4: New file, taken from diffutils.
67837         * MODULES.html.sh: New module vararrays.
67838
67839 2006-10-24  Karl Berry  <karl@gnu.org>
67840
67841         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67842         Don't call GNU Unix.
67843
67844 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67845
67846         * users.txt: Add Libtool.
67847
67848         Sync from Libtool:
67849
67850         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67853         to gnulib's policy of including config.h unconditionally.
67854
67855 2006-10-24  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/wcwidth (Files): Add m4/wint_t.m4.
67858         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67859         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67860
67861 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67864         to pacify GCC with some -W flags enabled.  Problem reported by
67865         Bruno Haible.
67866
67867 2006-10-24  Jim Meyering  <jim@meyering.net>
67868
67869         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67870         Reported by Karl Berry.
67871
67872 2006-10-23  Bruno Haible  <bruno@clisp.org>
67873
67874         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67875
67876 2006-10-24  Bruno Haible  <bruno@clisp.org>
67877
67878         * lib/gl_list.h: Use C comment style, not C++ comment style.
67879
67880 2006-10-23  Eric Blake  <ebb9@byu.net>
67881
67882         * lib/getaddrinfo.c (includes): Add missing include.
67883
67884 2006-10-23  Bruno Haible  <bruno@clisp.org>
67885             Paul Eggert  <eggert@cs.ucla.edu>
67886
67887         Ability to rename obstack_free.
67888         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67889         obstack_free.
67890         (obstack_free): Invoke the __obstack_free macro.
67891         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67892
67893 2006-10-23  Bruno Haible  <bruno@clisp.org>
67894             Paul Eggert  <eggert@cs.ucla.edu>
67895
67896         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67897         __argc, __argv from the declaration. (They are defined as macros on
67898         mingw.)
67899
67900 2006-10-22  Bruno Haible  <bruno@clisp.org>
67901
67902         * doc/gnulib-intro.texi: New file.
67903         * doc/gnulib.texi: Include it.
67904
67905 2006-10-21  Bruno Haible  <bruno@clisp.org>
67906
67907         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67908         "Introduction", "Miscellanous Notes", "Particular Modules".
67909
67910 2006-10-21  Bruno Haible  <bruno@clisp.org>
67911
67912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67913         Change mostlyclean-local rule to avoid sh syntax error from bash
67914         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67915
67916 2006-10-23  Jim Meyering  <jim@meyering.net>
67917
67918         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67919         in place of snprintf.
67920
67921         * modules/inttostr (Files): Add lib/uinttostr.c.
67922         * lib/uinttostr.c (inttostr): New file/function.
67923         * lib/inttostr.h (uinttostr): Declare.
67924         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67925         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67926         Add uinttostr.
67927         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67928
67929 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * lib/canonicalize.c (ELOOP): Define if not already defined.
67932         Problem reported by Bruno Haible in
67933         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67934
67935 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67938         Problem reported by Perry Smith and Ville Laurikari.
67939
67940         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67941         uses.
67942
67943 2006-10-19  Bruno Haible  <bruno@clisp.org>
67944
67945         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67946         for mingw.
67947
67948 2006-10-19  Bruno Haible  <bruno@clisp.org>
67949
67950         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67951         Needed for mingw.
67952
67953 2006-10-19  Bruno Haible  <bruno@clisp.org>
67954
67955         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67956
67957 2006-10-19  Bruno Haible  <bruno@clisp.org>
67958
67959         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67960         it.
67961
67962 2006-10-19  Bruno Haible  <bruno@clisp.org>
67963
67964         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67965         invocation.
67966
67967 2006-10-19  Bruno Haible  <bruno@clisp.org>
67968
67969         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67970         mountlist by default.
67971
67972 2006-10-16  Bruno Haible  <bruno@clisp.org>
67973
67974         * lib/c-strstr.c: Include c-strstr.h.
67975
67976 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67977
67978         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67979         in a slash.
67980
67981 2006-10-18  Bruno Haible  <bruno@clisp.org>
67982
67983         * lib/lock.h [C++]: Wrap definitions in extern "C".
67984
67985 2006-10-18  Bruno Haible  <bruno@clisp.org>
67986
67987         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67988         gl_LIBOBJS list.
67989
67990 2006-10-18  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67993
67994 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         * lib/xstrtol.h: Include gettext.h.
67997         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67998         Problem reported by Eric Blake.
67999         * modules/xstrtol (Depends-on): Add gettext-h.
68000
68001 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68002
68003         * lib/strftime.c (advance): New macro.
68004         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68005         incomplete type, so you can't add 0 to it.  Problem and patch
68006         reported by Eelco Dolstra for dietlibc.
68007
68008 2006-10-18  Jim Meyering  <jim@meyering.net>
68009
68010         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68011         type for a local, and rename it: s/up/user_proc/.
68012
68013 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68014
68015         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68016         READ_UTMP_USER_PROCESS.
68017         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68018
68019 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68022         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68023
68024 2006-10-17  Eric Blake  <ebb9@byu.net>
68025
68026         * lib/sigprocmask.c (sigprocmask): Fix typo.
68027
68028         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68029
68030         * modules/clean-temp (Makefile.am): Don't add to make output...
68031         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68032         config.h.
68033
68034 2006-10-17  Bruno Haible  <bruno@clisp.org>
68035
68036         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68037         differently if DEFAULT_TEXT_DOMAIN is set.
68038
68039 2006-10-16  Bruno Haible  <bruno@clisp.org>
68040
68041         * lib/clean-temp.c: Include fwriteerror.h.
68042
68043 2006-10-16  Bruno Haible  <bruno@clisp.org>
68044
68045         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68046
68047 2006-10-16  Bruno Haible  <bruno@clisp.org>
68048
68049         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68050         * lib/sigprocmask.h: Include <sys/types.h>.
68051         (sigset_t): Use the system's definition if present.
68052
68053 2006-10-17  Eric Blake  <ebb9@byu.net>
68054
68055         * lib/xvasprintf.c (includes): Assume config.h.
68056         * lib/xasprintf.c (includes): Likewise.
68057
68058 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68059
68060         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68061         at least as wide as intmax_t.
68062
68063 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68064
68065         (Imported from Automake.)
68066         * build-aux/gnupload: Update to version 1.1 of directive file.
68067
68068 2006-10-16  Eric Blake  <ebb9@byu.net>
68069
68070         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68071         match Automake 1.10a.
68072
68073 2006-10-14  Bruno Haible  <bruno@clisp.org>
68074
68075         * modules/sigprocmask: New file.
68076         * lib/sigprocmask.h: New file.
68077         * lib/sigprocmask.c: New file.
68078         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68079         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68080         request sigprocmask.o.
68081         (gl_PREREQ_SIGPROCMASK): New macro.
68082         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68083         (Depends-on): Add sigprocmask.
68084         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68085         gt_SIGNALBLOCKING. Test for 'raise' only once.
68086         * lib/fatal-signal.c: Include sigprocmask.h.
68087         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68088         unblock_fatal_signals): Define always.
68089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68090         sigprocmask.
68091
68092 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68093
68094         Sync from Automake.
68095         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68096         which incorrectly sets the mode of an existing destination
68097         directory.  In some cases the unpatched install-sh could do the
68098         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68099         system.  We hope this is rare in practice, but it's clearly worth
68100         fixing.  Problem reported by Alex Unleashed in
68101         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68102         Also, don't bother to check for -m bugs unless we're using -m;
68103         suggested by Stepan Kasal.
68104
68105 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68106
68107         Sync from Automake.
68108         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68109         `-c' flag, so they appear at the same position as in %FASTDEP%
68110         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68111         which ignores unknown options only after the first non-option.
68112         Bug report against M4 by Nelson H. F. Beebe.
68113
68114 2006-10-13  Jim Meyering  <jim@meyering.net>
68115
68116         Fix a bug in yesterday's change.
68117         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68118         p->fts_statp->st_dev would be used uninitialized.
68119         Ensures that we always call fts_stat on the very first entry.
68120         Miklos Szeredi reported that find -xdev stopped working.
68121
68122 2006-10-12  Bruno Haible  <bruno@clisp.org>
68123
68124         * gnulib-tool (func_get_automake_snippet): Append an automatically
68125         computed EXTRA_DIST augmentation.
68126         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68127         * modules/alloca-opt (Makefile.am): Likewise.
68128         * modules/allocsa (Makefile.am): Likewise.
68129         * modules/arcfour (Makefile.am): Likewise.
68130         * modules/arctwo (Makefile.am): Likewise.
68131         * modules/argmatch (Makefile.am): Likewise.
68132         * modules/argz (Makefile.am): Likewise.
68133         * modules/atexit (Makefile.am): Likewise.
68134         * modules/backupfile (Makefile.am): Likewise.
68135         * modules/byteswap (Makefile.am): Likewise.
68136         * modules/c-strtod (Makefile.am): Likewise.
68137         * modules/c-strtold (Makefile.am): Likewise.
68138         * modules/calloc (Makefile.am): Likewise.
68139         * modules/canon-host (Makefile.am): Likewise.
68140         * modules/canonicalize (Makefile.am): Likewise.
68141         * modules/chdir-long (Makefile.am): Likewise.
68142         * modules/chdir-safer (Makefile.am): Likewise.
68143         * modules/check-version (Makefile.am): Likewise.
68144         * modules/chown (Makefile.am): Likewise.
68145         * modules/cloexec (Makefile.am): Likewise.
68146         * modules/close-stream (Makefile.am): Likewise.
68147         * modules/closeout (Makefile.am): Likewise.
68148         * modules/crc (Makefile.am): Likewise.
68149         * modules/csharpexec (Makefile.am): Likewise.
68150         * modules/cycle-check (Makefile.am): Likewise.
68151         * modules/des (Makefile.am): Likewise.
68152         * modules/dev-ino (Makefile.am): Likewise.
68153         * modules/dirfd (Makefile.am): Likewise.
68154         * modules/dirname (Makefile.am): Likewise.
68155         * modules/dup2 (Makefile.am): Likewise.
68156         * modules/eealloc (Makefile.am): Likewise.
68157         * modules/error (Makefile.am): Likewise.
68158         * modules/euidaccess (Makefile.am): Likewise.
68159         * modules/exclude (Makefile.am): Likewise.
68160         * modules/exitfail (Makefile.am): Likewise.
68161         * modules/fcntl-safer (Makefile.am): Likewise.
68162         * modules/fcntl (Makefile.am): Likewise.
68163         * modules/file-type (Makefile.am): Likewise.
68164         * modules/fileblocks (Makefile.am): Likewise.
68165         * modules/filemode (Makefile.am): Likewise.
68166         * modules/filenamecat (Makefile.am): Likewise.
68167         * modules/fnmatch (Makefile.am): Likewise.
68168         * modules/fopen-safer (Makefile.am): Likewise.
68169         * modules/fpending (Makefile.am): Likewise.
68170         * modules/fprintftime (Makefile.am): Likewise.
68171         * modules/free (Makefile.am): Likewise.
68172         * modules/fsusage (Makefile.am): Likewise.
68173         * modules/ftruncate (Makefile.am): Likewise.
68174         * modules/fts (Makefile.am): Likewise.
68175         * modules/gc-arcfour (Makefile.am): Likewise.
68176         * modules/gc-des (Makefile.am): Likewise.
68177         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68178         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68179         * modules/gc-md4 (Makefile.am): Likewise.
68180         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68181         * modules/gc-sha1 (Makefile.am): Likewise.
68182         * modules/gc (Makefile.am): Likewise.
68183         * modules/getaddrinfo (Makefile.am): Likewise.
68184         * modules/getcwd (Makefile.am): Likewise.
68185         * modules/getdelim (Makefile.am): Likewise.
68186         * modules/getdomainname (Makefile.am): Likewise.
68187         * modules/getgroups (Makefile.am): Likewise.
68188         * modules/gethostname (Makefile.am): Likewise.
68189         * modules/gethrxtime (Makefile.am): Likewise.
68190         * modules/getline (Makefile.am): Likewise.
68191         * modules/getloadavg (Makefile.am): Likewise.
68192         * modules/getlogin_r (Makefile.am): Likewise.
68193         * modules/getndelim2 (Makefile.am): Likewise.
68194         * modules/getopt (Makefile.am): Likewise.
68195         * modules/getpagesize (Makefile.am): Likewise.
68196         * modules/getpass-gnu (Makefile.am): Likewise.
68197         * modules/getpass (Makefile.am): Likewise.
68198         * modules/getsubopt (Makefile.am): Likewise.
68199         * modules/gettime (Makefile.am): Likewise.
68200         * modules/gettimeofday (Makefile.am): Likewise.
68201         * modules/getugroups (Makefile.am): Likewise.
68202         * modules/getusershell (Makefile.am): Likewise.
68203         * modules/glob (Makefile.am): Likewise.
68204         * modules/group-member (Makefile.am): Likewise.
68205         * modules/hard-locale (Makefile.am): Likewise.
68206         * modules/hash (Makefile.am): Likewise.
68207         * modules/hmac-md5 (Makefile.am): Likewise.
68208         * modules/hmac-sha1 (Makefile.am): Likewise.
68209         * modules/human (Makefile.am): Likewise.
68210         * modules/idcache (Makefile.am): Likewise.
68211         * modules/imaxabs (Makefile.am): Likewise.
68212         * modules/imaxdiv (Makefile.am): Likewise.
68213         * modules/inet_ntop (Makefile.am): Likewise.
68214         * modules/inet_pton (Makefile.am): Likewise.
68215         * modules/intprops (Makefile.am): Likewise.
68216         * modules/inttostr (Makefile.am): Likewise.
68217         * modules/inttypes (Makefile.am): Likewise.
68218         * modules/isapipe (Makefile.am): Likewise.
68219         * modules/javaversion (Makefile.am): Likewise.
68220         * modules/lchmod (Makefile.am): Likewise.
68221         * modules/lchown (Makefile.am): Likewise.
68222         * modules/localcharset (Makefile.am): Likewise.
68223         * modules/long-options (Makefile.am): Likewise.
68224         * modules/lstat (Makefile.am): Likewise.
68225         * modules/malloc (Makefile.am): Likewise.
68226         * modules/mathl (Makefile.am): Likewise.
68227         * modules/mbchar (Makefile.am): Likewise.
68228         * modules/md2 (Makefile.am): Likewise.
68229         * modules/md4 (Makefile.am): Likewise.
68230         * modules/md5 (Makefile.am): Likewise.
68231         * modules/memcasecmp (Makefile.am): Likewise.
68232         * modules/memchr (Makefile.am): Likewise.
68233         * modules/memcmp (Makefile.am): Likewise.
68234         * modules/memcoll (Makefile.am): Likewise.
68235         * modules/memcpy (Makefile.am): Likewise.
68236         * modules/memmem (Makefile.am): Likewise.
68237         * modules/memmove (Makefile.am): Likewise.
68238         * modules/mempcpy (Makefile.am): Likewise.
68239         * modules/memrchr (Makefile.am): Likewise.
68240         * modules/memset (Makefile.am): Likewise.
68241         * modules/memxor (Makefile.am): Likewise.
68242         * modules/mkancesdirs (Makefile.am): Likewise.
68243         * modules/mkdir-p (Makefile.am): Likewise.
68244         * modules/mkdir (Makefile.am): Likewise.
68245         * modules/mkdtemp (Makefile.am): Likewise.
68246         * modules/mkstemp (Makefile.am): Likewise.
68247         * modules/mktime (Makefile.am): Likewise.
68248         * modules/modechange (Makefile.am): Likewise.
68249         * modules/mountlist (Makefile.am): Likewise.
68250         * modules/nanosleep (Makefile.am): Likewise.
68251         * modules/obstack (Makefile.am): Likewise.
68252         * modules/openat (Makefile.am): Likewise.
68253         * modules/pagealign_alloc (Makefile.am): Likewise.
68254         * modules/pathmax (Makefile.am): Likewise.
68255         * modules/physmem (Makefile.am): Likewise.
68256         * modules/poll (Makefile.am): Likewise.
68257         * modules/posixtm (Makefile.am): Likewise.
68258         * modules/posixver (Makefile.am): Likewise.
68259         * modules/putenv (Makefile.am): Likewise.
68260         * modules/quote (Makefile.am): Likewise.
68261         * modules/quotearg (Makefile.am): Likewise.
68262         * modules/raise (Makefile.am): Likewise.
68263         * modules/read-file (Makefile.am): Likewise.
68264         * modules/readline (Makefile.am): Likewise.
68265         * modules/readlink (Makefile.am): Likewise.
68266         * modules/readtokens (Makefile.am): Likewise.
68267         * modules/readutmp (Makefile.am): Likewise.
68268         * modules/realloc (Makefile.am): Likewise.
68269         * modules/regex (Makefile.am): Likewise.
68270         * modules/rename-dest-slash (Makefile.am): Likewise.
68271         * modules/rename (Makefile.am): Likewise.
68272         * modules/rijndael (Makefile.am): Likewise.
68273         * modules/rmdir (Makefile.am): Likewise.
68274         * modules/rpmatch (Makefile.am): Likewise.
68275         * modules/safe-read (Makefile.am): Likewise.
68276         * modules/safe-write (Makefile.am): Likewise.
68277         * modules/same-inode (Makefile.am): Likewise.
68278         * modules/same (Makefile.am): Likewise.
68279         * modules/save-cwd (Makefile.am): Likewise.
68280         * modules/savedir (Makefile.am): Likewise.
68281         * modules/setenv (Makefile.am): Likewise.
68282         * modules/settime (Makefile.am): Likewise.
68283         * modules/sha1 (Makefile.am): Likewise.
68284         * modules/sig2str (Makefile.am): Likewise.
68285         * modules/snprintf (Makefile.am): Likewise.
68286         * modules/stat-macros (Makefile.am): Likewise.
68287         * modules/stat-time (Makefile.am): Likewise.
68288         * modules/stdbool (Makefile.am): Likewise.
68289         * modules/stdint (Makefile.am): Likewise.
68290         * modules/stdlib-safer (Makefile.am): Likewise.
68291         * modules/stpcpy (Makefile.am): Likewise.
68292         * modules/stpncpy (Makefile.am): Likewise.
68293         * modules/strcase (Makefile.am): Likewise.
68294         * modules/strcasestr (Makefile.am): Likewise.
68295         * modules/strchrnul (Makefile.am): Likewise.
68296         * modules/strcspn (Makefile.am): Likewise.
68297         * modules/strdup (Makefile.am): Likewise.
68298         * modules/strerror (Makefile.am): Likewise.
68299         * modules/strftime (Makefile.am): Likewise.
68300         * modules/strndup (Makefile.am): Likewise.
68301         * modules/strnlen (Makefile.am): Likewise.
68302         * modules/strpbrk (Makefile.am): Likewise.
68303         * modules/strsep (Makefile.am): Likewise.
68304         * modules/strstr (Makefile.am): Likewise.
68305         * modules/strtod (Makefile.am): Likewise.
68306         * modules/strtoimax (Makefile.am): Likewise.
68307         * modules/strtok_r (Makefile.am): Likewise.
68308         * modules/strtol (Makefile.am): Likewise.
68309         * modules/strtoll (Makefile.am): Likewise.
68310         * modules/strtoul (Makefile.am): Likewise.
68311         * modules/strtoull (Makefile.am): Likewise.
68312         * modules/strtoumax (Makefile.am): Likewise.
68313         * modules/strverscmp (Makefile.am): Likewise.
68314         * modules/sys_socket (Makefile.am): Likewise.
68315         * modules/sys_stat (Makefile.am): Likewise.
68316         * modules/sysexits (Makefile.am): Likewise.
68317         * modules/time_r (Makefile.am): Likewise.
68318         * modules/timegm (Makefile.am): Likewise.
68319         * modules/timespec (Makefile.am): Likewise.
68320         * modules/tmpfile-safer (Makefile.am): Likewise.
68321         * modules/trim (Makefile.am): Likewise.
68322         * modules/unistd-safer (Makefile.am): Likewise.
68323         * modules/unlinkdir (Makefile.am): Likewise.
68324         * modules/unlocked-io (Makefile.am): Likewise.
68325         * modules/userspec (Makefile.am): Likewise.
68326         * modules/utime (Makefile.am): Likewise.
68327         * modules/utimecmp (Makefile.am): Likewise.
68328         * modules/utimens (Makefile.am): Likewise.
68329         * modules/vasnprintf (Makefile.am): Likewise.
68330         * modules/vasprintf (Makefile.am): Likewise.
68331         * modules/vsnprintf (Makefile.am): Likewise.
68332         * modules/xalloc (Makefile.am): Likewise.
68333         * modules/xgetcwd (Makefile.am): Likewise.
68334         * modules/xnanosleep (Makefile.am): Likewise.
68335         * modules/xreadlink (Makefile.am): Likewise.
68336         * modules/xstrtod (Makefile.am): Likewise.
68337         * modules/xstrtol (Makefile.am): Likewise.
68338         * modules/xstrtold (Makefile.am): Likewise.
68339         * modules/yesno (Makefile.am): Likewise.
68340         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68341
68342 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * modules/error (Makefile.am): Distribute files through
68345         EXTRA_DIST, not lib_SOURCES.
68346
68347 2006-10-12  Eric Blake  <ebb9@byu.net>
68348
68349         * modules/error (Makefile.am): Distribute files in /lib.
68350         * modules/obstack (Makefile.am): Likewise.
68351
68352 2006-10-12  Bruno Haible  <bruno@clisp.org>
68353
68354         * modules/acl (Makefile.am): Distribute all files in lib/ through
68355         EXTRA_DIST.
68356         * modules/arcfour (Makefile.am): Likewise.
68357         * modules/arctwo (Makefile.am): Likewise.
68358         * modules/argmatch (Makefile.am): Likewise.
68359         * modules/argz (Makefile.am): Likewise.
68360         * modules/atexit (Makefile.am): Likewise.
68361         * modules/backupfile (Makefile.am): Likewise.
68362         * modules/c-strtod (Makefile.am): Likewise.
68363         * modules/c-strtold (Makefile.am): Likewise.
68364         * modules/calloc (Makefile.am): Likewise.
68365         * modules/canon-host (Makefile.am): Likewise.
68366         * modules/canonicalize (Makefile.am): Likewise.
68367         * modules/chdir-long (Makefile.am): Likewise.
68368         * modules/chdir-safer (Makefile.am): Likewise.
68369         * modules/check-version (Makefile.am): Likewise.
68370         * modules/chown (Makefile.am): Likewise.
68371         * modules/cloexec (Makefile.am): Likewise.
68372         * modules/close-stream (Makefile.am): Likewise.
68373         * modules/closeout (Makefile.am): Likewise.
68374         * modules/crc (Makefile.am): Likewise.
68375         * modules/cycle-check (Makefile.am): Likewise.
68376         * modules/des (Makefile.am): Likewise.
68377         * modules/dirfd (Makefile.am): Likewise.
68378         * modules/dirname (Makefile.am): Likewise.
68379         * modules/dup2 (Makefile.am): Likewise.
68380         * modules/euidaccess (Makefile.am): Likewise.
68381         * modules/exclude (Makefile.am): Likewise.
68382         * modules/exitfail (Makefile.am): Likewise.
68383         * modules/fcntl-safer (Makefile.am): Likewise.
68384         * modules/file-type (Makefile.am): Likewise.
68385         * modules/fileblocks (Makefile.am): Likewise.
68386         * modules/filemode (Makefile.am): Likewise.
68387         * modules/filenamecat (Makefile.am): Likewise.
68388         * modules/fnmatch (Makefile.am): Likewise.
68389         * modules/fopen-safer (Makefile.am): Likewise.
68390         * modules/fpending (Makefile.am): Likewise.
68391         * modules/fprintftime (Makefile.am): Likewise.
68392         * modules/free (Makefile.am): Likewise.
68393         * modules/fsusage (Makefile.am): Likewise.
68394         * modules/ftruncate (Makefile.am): Likewise.
68395         * modules/fts (Makefile.am): Likewise.
68396         * modules/gc (Makefile.am): Likewise.
68397         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68398         * modules/getaddrinfo (Makefile.am): Likewise.
68399         * modules/getcwd (Makefile.am): Likewise.
68400         * modules/getdelim (Makefile.am): Likewise.
68401         * modules/getdomainname (Makefile.am): Likewise.
68402         * modules/getgroups (Makefile.am): Likewise.
68403         * modules/gethostname (Makefile.am): Likewise.
68404         * modules/gethrxtime (Makefile.am): Likewise.
68405         * modules/getline (Makefile.am): Likewise.
68406         * modules/getloadavg (Makefile.am): Likewise.
68407         * modules/getlogin_r (Makefile.am): Likewise.
68408         * modules/getopt (Makefile.am): Likewise.
68409         * modules/getpass (Makefile.am): Likewise.
68410         * modules/getpass-gnu (Makefile.am): Likewise.
68411         * modules/getsubopt (Makefile.am): Likewise.
68412         * modules/gettime (Makefile.am): Likewise.
68413         * modules/gettimeofday (Makefile.am): Likewise.
68414         * modules/getugroups (Makefile.am): Likewise.
68415         * modules/getusershell (Makefile.am): Likewise.
68416         * modules/glob (Makefile.am): Likewise.
68417         * modules/group-member (Makefile.am): Likewise.
68418         * modules/hard-locale (Makefile.am): Likewise.
68419         * modules/hash (Makefile.am): Likewise.
68420         * modules/hmac-md5 (Makefile.am): Likewise.
68421         * modules/hmac-sha1 (Makefile.am): Likewise.
68422         * modules/human (Makefile.am): Likewise.
68423         * modules/idcache (Makefile.am): Likewise.
68424         * modules/imaxabs (Makefile.am): Likewise.
68425         * modules/imaxdiv (Makefile.am): Likewise.
68426         * modules/inet_ntop (Makefile.am): Likewise.
68427         * modules/inet_pton (Makefile.am): Likewise.
68428         * modules/inttostr (Makefile.am): Likewise.
68429         * modules/isapipe (Makefile.am): Likewise.
68430         * modules/lchown (Makefile.am): Likewise.
68431         * modules/long-options (Makefile.am): Likewise.
68432         * modules/lstat (Makefile.am): Likewise.
68433         * modules/malloc (Makefile.am): Likewise.
68434         * modules/mathl (Makefile.am): Likewise.
68435         * modules/mbchar (Makefile.am): Likewise.
68436         * modules/md2 (Makefile.am): Likewise.
68437         * modules/md4 (Makefile.am): Likewise.
68438         * modules/md5 (Makefile.am): Likewise.
68439         * modules/memcasecmp (Makefile.am): Likewise.
68440         * modules/memchr (Makefile.am): Likewise.
68441         * modules/memcmp (Makefile.am): Likewise.
68442         * modules/memcoll (Makefile.am): Likewise.
68443         * modules/memcpy (Makefile.am): Likewise.
68444         * modules/memmem (Makefile.am): Likewise.
68445         * modules/memmove (Makefile.am): Likewise.
68446         * modules/mempcpy (Makefile.am): Likewise.
68447         * modules/memrchr (Makefile.am): Likewise.
68448         * modules/memset (Makefile.am): Likewise.
68449         * modules/memxor (Makefile.am): Likewise.
68450         * modules/mkancesdirs (Makefile.am): Likewise.
68451         * modules/mkdir (Makefile.am): Likewise.
68452         * modules/mkdir-p (Makefile.am): Likewise.
68453         * modules/mkdtemp (Makefile.am): Likewise.
68454         * modules/mkstemp (Makefile.am): Likewise.
68455         * modules/mktime (Makefile.am): Likewise.
68456         * modules/modechange (Makefile.am): Likewise.
68457         * modules/mountlist (Makefile.am): Likewise.
68458         * modules/nanosleep (Makefile.am): Likewise.
68459         * modules/openat (Makefile.am): Likewise.
68460         * modules/pagealign_alloc (Makefile.am): Likewise.
68461         * modules/physmem (Makefile.am): Likewise.
68462         * modules/poll (Makefile.am): Likewise.
68463         * modules/posixtm (Makefile.am): Likewise.
68464         * modules/posixver (Makefile.am): Likewise.
68465         * modules/putenv (Makefile.am): Likewise.
68466         * modules/quote (Makefile.am): Likewise.
68467         * modules/quotearg (Makefile.am): Likewise.
68468         * modules/raise (Makefile.am): Likewise.
68469         * modules/read-file (Makefile.am): Likewise.
68470         * modules/readline (Makefile.am): Likewise.
68471         * modules/readlink (Makefile.am): Likewise.
68472         * modules/readtokens (Makefile.am): Likewise.
68473         * modules/readutmp (Makefile.am): Likewise.
68474         * modules/realloc (Makefile.am): Likewise.
68475         * modules/regex (Makefile.am): Likewise.
68476         * modules/rename (Makefile.am): Likewise.
68477         * modules/rename-dest-slash (Makefile.am): Likewise.
68478         * modules/rijndael (Makefile.am): Likewise.
68479         * modules/rmdir (Makefile.am): Likewise.
68480         * modules/rpmatch (Makefile.am): Likewise.
68481         * modules/safe-read (Makefile.am): Likewise.
68482         * modules/safe-write (Makefile.am): Likewise.
68483         * modules/same (Makefile.am): Likewise.
68484         * modules/save-cwd (Makefile.am): Likewise.
68485         * modules/savedir (Makefile.am): Likewise.
68486         * modules/setenv (Makefile.am): Likewise.
68487         * modules/settime (Makefile.am): Likewise.
68488         * modules/sha1 (Makefile.am): Likewise.
68489         * modules/sig2str (Makefile.am): Likewise.
68490         * modules/snprintf (Makefile.am): Likewise.
68491         * modules/stdlib-safer (Makefile.am): Likewise.
68492         * modules/stpcpy (Makefile.am): Likewise.
68493         * modules/stpncpy (Makefile.am): Likewise.
68494         * modules/strcase (Makefile.am): Likewise.
68495         * modules/strcasestr (Makefile.am): Likewise.
68496         * modules/strchrnul (Makefile.am): Likewise.
68497         * modules/strcspn (Makefile.am): Likewise.
68498         * modules/strdup (Makefile.am): Likewise.
68499         * modules/strerror (Makefile.am): Likewise.
68500         * modules/strftime (Makefile.am): Likewise.
68501         * modules/strndup (Makefile.am): Likewise.
68502         * modules/strnlen (Makefile.am): Likewise.
68503         * modules/strpbrk (Makefile.am): Likewise.
68504         * modules/strsep (Makefile.am): Likewise.
68505         * modules/strstr (Makefile.am): Likewise.
68506         * modules/strtod (Makefile.am): Likewise.
68507         * modules/strtoimax (Makefile.am): Likewise.
68508         * modules/strtok_r (Makefile.am): Likewise.
68509         * modules/strtol (Makefile.am): Likewise.
68510         * modules/strtoll (Makefile.am): Likewise.
68511         * modules/strtoul (Makefile.am): Likewise.
68512         * modules/strtoull (Makefile.am): Likewise.
68513         * modules/strtoumax (Makefile.am): Likewise.
68514         * modules/strverscmp (Makefile.am): Likewise.
68515         * modules/time_r (Makefile.am): Likewise.
68516         * modules/timegm (Makefile.am): Likewise.
68517         * modules/tmpfile-safer (Makefile.am): Likewise.
68518         * modules/unistd-safer (Makefile.am): Likewise.
68519         * modules/unlinkdir (Makefile.am): Likewise.
68520         * modules/userspec (Makefile.am): Likewise.
68521         * modules/utime (Makefile.am): Likewise.
68522         * modules/utimecmp (Makefile.am): Likewise.
68523         * modules/utimens (Makefile.am): Likewise.
68524         * modules/vasnprintf (Makefile.am): Likewise.
68525         * modules/vasprintf (Makefile.am): Likewise.
68526         * modules/vsnprintf (Makefile.am): Likewise.
68527         * modules/xalloc (Makefile.am): Likewise.
68528         * modules/xgetcwd (Makefile.am): Likewise.
68529         * modules/xnanosleep (Makefile.am): Likewise.
68530         * modules/xreadlink (Makefile.am): Likewise.
68531         * modules/xstrtod (Makefile.am): Likewise.
68532         * modules/xstrtol (Makefile.am): Likewise.
68533         * modules/xstrtold (Makefile.am): Likewise.
68534         * modules/yesno (Makefile.am): Likewise.
68535
68536 2006-10-12  Jim Meyering  <jim@meyering.net>
68537
68538         * m4/getloadavg.m4: Revert the change below.
68539
68540         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68541         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68542         fail with a symlink, which is what coreutils' ./bootstrap now
68543         creates by default.
68544
68545 2006-10-12  Bruno Haible  <bruno@clisp.org>
68546
68547         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68548         mingw.
68549         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68550         MSVC and mingw explicitly.
68551
68552 2006-10-11  Simon Josefsson  <jas@extundo.com>
68553             Bruno Haible  <bruno@clisp.org>
68554
68555         Add support for multiple gnulib-tool invocations in the scope of a
68556         single configure.ac file.
68557         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68558         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68559         with the same contents as the _LIBADD variable.
68560         (func_emit_initmacro_start, func_emit_initmacro_end,
68561         func_emit_initmacro_done): New functions.
68562         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68563         gl_LIBOBJS and gl_LTLIBOBJS.
68564
68565 2006-10-11  Bruno Haible  <bruno@clisp.org>
68566
68567         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68568         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68569         autoreconf. Instead, invoke autopoint explicitly but move back the
68570         *.m4 files from gnulib.
68571
68572 2006-10-11  Bruno Haible  <bruno@clisp.org>
68573
68574         * gnulib-tool (func_usage): Make module names after --create-testdir
68575         optional.
68576         (func_create_testdir): If no module was specified, use nearly all
68577         modules.
68578
68579 2006-10-12  Jim Meyering  <jim@meyering.net>
68580
68581         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68582         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68583         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68584         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68585         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68586         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68587         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68588         (fts_set_stat_required): New function.
68589         (fts_open): Defer the calls to fts_stat, if possible or requested.
68590         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68591         into fts_stat itself.
68592         (fts_read): Perform any required (deferred) fts_stat call.
68593         (fts_build): Likewise, for the directory we're about to open and read.
68594         In the readdir loop, carefully decide whether each entry will require
68595         an eventual call to fts_stat, using dirent.d_type info if available.
68596         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68597         a command line argument into this function.  Update all callers.
68598         Map a return value of FTS_DOT to FTS_D for a command line argument.
68599         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68600         Thanks to Miklos Szeredi for his tenacity and for the initial
68601         bug report about "find" failing on a FUSE-based file system.
68602
68603         * lib/fts.c (fts_open): Use consistent indentation.
68604
68605 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68608         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68609         reported by Jim Meyering.  All uses of cache variables renamed
68610         to match Autoconf's.
68611         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68612         the other one.
68613
68614         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68615         Fix misspelling in diagnostic.
68616
68617 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68620         defined.  Problem reported by Matthew Woehlke.
68621
68622         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68623         Add support for Tandem NonStop R series.
68624         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68625         Use new macro.
68626
68627         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68628         (has_trailing_slash): Omit size arg; all callers changed.
68629         Omit 'inline', since it doesn't help performance and we'd
68630         need to configure it.
68631         Don't count //, ///, etc. as having a trailing slash.
68632         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68633         (rpl_rename_dest_slash): On failure, use rename's errno rather
68634         than (in some cases) an incorrect or junk errno.
68635         Simplify code by removing need to compute length; this does
68636         cause it to make two passes instead of one over the file name,
68637         but it's worth it.
68638
68639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68640         change, since Autoconf's version may no longer be appropriate now
68641         that we are using CVS Autoconf's version.  Add support for Tandem.
68642
68643 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68644             Bruno Haible  <bruno@clisp.org>
68645
68646         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68647         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68648         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68649         gl_AC_TYPE_LONG_LONG.
68650
68651         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68652         instead of HAVE_LONG_LONG.
68653         * lib/printf-args.c (printf_fetchargs): Likewise.
68654         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68655         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68656         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68657         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68658         gl_AC_TYPE_LONG_LONG.
68659
68660 2006-10-11  Bruno Haible  <bruno@clisp.org>
68661
68662         * m4/longlong.m4: Add comments.
68663         * m4/ulonglong.m4: Likewise.
68664
68665 2006-10-10  Bruno Haible  <bruno@clisp.org>
68666
68667         Make it possible to #define stpcpy, strdup to aliases.
68668         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68669         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68670
68671 2006-10-10  Bruno Haible  <bruno@clisp.org>
68672
68673         Make it possible to #define gcd to an alias.
68674         * lib/gcd.c: Include config.h.
68675
68676 2006-10-10  Bruno Haible  <bruno@clisp.org>
68677
68678         Make it possible to #define c_isascii to an alias.
68679         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68680         defined. Undefine the macros before defining them, to avoid gcc
68681         warnings.
68682         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68683         define NO_C_CTYPE_MACROS early.
68684
68685 2006-10-10  Bruno Haible  <bruno@clisp.org>
68686
68687         Make it possible to #define set_program_name to an alias.
68688         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68689         ENABLE_RELOCATABLE early.
68690
68691 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68694         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68695         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68696         More generally, don't assume that 64-bit signed int is available
68697         if unsigned int is, and vice versa.
68698         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68699         unsigned symbols, not on their signed counterparts.
68700         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68701         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68702         (UINT64_C, UINTMAX_C):
68703         Likewise.
68704         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68705         unsigned counterparts.
68706         (Have_long_long, Unsigned): New macros.
68707         (Int): Renamed from INT.
68708         (strtoimax): Use the new macros.
68709         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68710         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68711         * modules/inttypes (inttypes.h): Substitute
68712         HAVE_UNSIGNED_LONG_LONG_INT.
68713         * modules/stdint (stdint.h): Likewise.
68714         (Files): Add m4/ulonglong.m4.
68715
68716 2006-10-10  Bruno Haible  <bruno@clisp.org>
68717
68718         Fix a gcc -Wshadow warning.
68719         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68720         to 'bucket'.
68721         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68722         gl_linked_indexof_from_to): Likewise.
68723         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68724         Likewise.
68725         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68726         Likewise.
68727         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68728         Reported by Eric Blake.
68729
68730 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68733         for NetBSD.  Problem reported by Bruno Haible.
68734
68735 2006-10-09  Jim Meyering  <jim@meyering.net>
68736
68737         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68738         Patch from Bruno Haible.
68739
68740 2006-10-09  Jim Meyering  <jim@meyering.net>
68741
68742         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68743         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68744         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68745
68746 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         Don't include <config.h> twice; this doesn't work in some cases,
68749         e.g., when config.h has "#define intmax_t long long int" and
68750         we include <config.h>, <inttypes.h>, <config.h> in that order.
68751         Problem reported by Matthew Woehlke in:
68752         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68753         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68754         * lib/fts-cycle.c: Don't include config.h.
68755         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68756         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68757         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68758         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68759         inttypes.h.
68760         * lib/xstrtoumax.c: Likewise.
68761         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68762         __strtol and the like, so that this module is more like its siblings.
68763         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68764         Remove; no longer needed now that we assume gnulib inttypes.h.
68765
68766 2006-10-08  Bruno Haible  <bruno@clisp.org>
68767
68768         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68769         option.
68770
68771 2006-10-07  Jim Meyering  <jim@meyering.net>
68772
68773         * modules/inttypes (inttypes.h): Revert what seems to have been
68774         an inadvertent part of today's change: use "|", not "/" in the
68775         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68776
68777 2006-10-07  Bruno Haible  <bruno@clisp.org>
68778
68779         * modules/sublist: New file.
68780
68781 2006-10-07  Bruno Haible  <bruno@clisp.org>
68782
68783         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68784         * modules/argz (argz.h): Likewise.
68785         * modules/arpa_inet (arpa/inet.h): Likewise.
68786         * modules/byteswap (byteswap.h): Likewise.
68787         * modules/configmake (configmake.h): Likewise.
68788         * modules/fcntl (fcntl.h): Likewise.
68789         * modules/fnmatch (fnmatch.h): Likewise.
68790         * modules/getopt (getopt.h): Likewise.
68791         * modules/glob (glob.h): Likewise.
68792         * modules/inttypes (inttypes.h): Likewise.
68793         * modules/netinet_in (netinet/in.h): Likewise.
68794         * modules/poll (poll.h): Likewise.
68795         * modules/stdbool (stdbool.h): Likewise.
68796         * modules/stdint (stdint.h): Likewise.
68797         * modules/sys_select (sys/select.h): Likewise.
68798         * modules/sys_socket (sys/socket.h): Likewise.
68799         * modules/sys_stat (sys/stat.h): Likewise.
68800         * modules/sysexits (sysexits.h): Likewise.
68801         * modules/unistd (unistd.h): Likewise.
68802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68803         Add a "DO NOT EDIT" comment to the generated file.
68804         (func_import): Likewise for gnulib-comp.m4.
68805
68806 2006-10-07  Bruno Haible  <bruno@clisp.org>
68807
68808         * lib/gl_sublist.h: New file.
68809         * lib/gl_sublist.c: New file.
68810
68811 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68812
68813         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68814         name (relative to the original working directory) and the file
68815         name component (relative to the temporary working directory).  All
68816         callers changed.
68817         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68818         * lib/mkdir-p.c (make_dir_parents): Likewise.
68819         * lib/mkdir-p.h (make_dir_parents): Likewise.
68820
68821 2006-10-06  Eric Blake  <ebb9@byu.net>
68822
68823         Define several macros for use by the clean-temp module.
68824         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68825         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68826         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68827
68828         * lib/clean-temp.h (close_stream_temp): New declaration.
68829         * lib/clean-temp.c (includes): Pull in headers according to what
68830         other modules are in use.
68831         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68832
68833 2006-10-06  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68836         instead of fopen, fwriteerror.
68837
68838 2006-10-06  Bruno Haible  <bruno@clisp.org>
68839
68840         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68841         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68842         int.
68843         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68844         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68845         Return an error indicator.
68846         Suggested by Eric Blake.
68847
68848 2006-10-06  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68851         Reported by Eric Blake.
68852
68853 2006-10-06  Bruno Haible  <bruno@clisp.org>
68854
68855         * modules/closeout (Description): Mention stderr too.
68856
68857 2006-10-06  Bruno Haible  <bruno@clisp.org>
68858         and Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * lib/closeout.c (close_stdout): Also close stderr.
68861         * lib/closeout.h: Update comment.
68862
68863 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68866         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68867         * lib/dirchownmod.c: Include lchown.h.
68868         * lib/lchown.c: Don't include files that lchown.h now includes.
68869         Don't declare chown, since lchown.h now does that.
68870         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68871         (lchown): Define to rpl_chown if lchown is declared but
68872         does not exist.  Declare using a prototype if lchown is not
68873         declared.  Add a copyright notice.
68874         * lib/mkstemp.h: Include <unistd.h>.
68875         * lib/openat.c: Include lchown.h.
68876
68877         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68878         we now test for that separately.
68879         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68880         rather than O_NOFOLLOW, when testing whether it's possible to
68881         avoid a race condition reliably.
68882         * lib/savewd.c (savewd_chdir): Likewise.
68883
68884         Remove macros that are no longer needed now that stdint.h is
68885         reliable.
68886         * lib/fsusage.c (UINTMAX_MAX): Remove.
68887         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68888         * lib/utimecmp.c (SIZE_MAX): Remove.
68889
68890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68891
68892         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68893         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68894         O_NOATIME works.
68895
68896 2006-10-05  Bruno Haible  <bruno@clisp.org>
68897
68898         * lib/gl_list.h (gl_sortedlist_search_from_to,
68899         gl_sortedlist_indexof_from_to): New declarations.
68900         (gl_list_implementation): New fields sortedlist_search_from_to,
68901         sortedlist_indexof_from_to.
68902         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68903         inline functions.
68904         * lib/gl_list.c (gl_sortedlist_search_from_to,
68905         gl_sortedlist_indexof_from_to): New functions.
68906         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68907         function.
68908         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68909         (gl_array_sortedlist_search_from_to): New function.
68910         (gl_array_list_implementation): Update.
68911         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68912         function.
68913         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68914         (gl_carray_sortedlist_search_from_to): New function.
68915         (gl_carray_list_implementation): Update.
68916         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68917         gl_linked_sortedlist_indexof_from_to): New functions.
68918         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68919         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68920         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68921         gl_tree_sortedlist_indexof_from_to): New functions.
68922         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68923         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68924         Update.
68925         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68926         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68927         Update.
68928
68929 2006-10-05  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68932         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68933         (struct gl_list_implementation): Add fields search_from_to,
68934         indexof_from_to. Remove fields search, indexof.
68935         (gl_list_search): Use the search_from_to method.
68936         (gl_list_search_from, gl_list_search_from_to): New functions.
68937         (gl_list_indexof): Use the indexof_from_to method.
68938         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68939         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68940         (gl_list_search_from, gl_list_search_from_to): New functions.
68941         (gl_list_indexof): Use the indexof_from_to method.
68942         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68943         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68944         gl_array_indexof. Add start_index, end_index arguments.
68945         (gl_array_search_from_to): Renamed from gl_array_search. Add
68946         start_index, end_index arguments.
68947         (gl_array_remove, gl_array_list_implementation): Update.
68948         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68949         gl_carray_indexof. Add start_index, end_index arguments.
68950         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68951         start_index, end_index arguments.
68952         (gl_carray_remove, gl_carray_list_implementation): Update.
68953         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68954         gl_linked_search. Add start_index, end_index arguments.
68955         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68956         start_index, end_index arguments.
68957         (gl_linked_remove): Update.
68958         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68959         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68960         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68961         field to 'size_t'.
68962         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68963         gl_tree_search. Add start_index, end_index arguments.
68964         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68965         start_index, end_index arguments.
68966         (gl_tree_remove): Update.
68967         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68968         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68969         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68970         function.
68971         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68972         gl_tree_search. Add start_index, end_index arguments.
68973         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68974         start_index, end_index arguments.
68975         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68976         Update.
68977         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68978
68979 2006-10-05  Bruno Haible  <bruno@clisp.org>
68980
68981         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68982
68983         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68984         fwriteerror_temp): New declarations.
68985         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68986         (descriptors): New variable.
68987         (cleanup): First, close the descriptors.
68988         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68989         fclose_temp, fwriteerror_temp): New functions.
68990
68991 2006-10-04  Jim Meyering  <jim@meyering.net>
68992
68993         * lib/fts.c (fts_open): Tiny comment change.
68994
68995 2006-10-04  Bruno Haible  <bruno@clisp.org>
68996
68997         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68998         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68999         gl_LOCK_BODY.
69000         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69001         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69002         gl_LOCK_EARLY_BODY.
69003         (gl_LOCK): Require gl_LOCK_BODY.
69004
69005 2006-10-04  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69008         (gl_oset_search_atleast): New declaration.
69009         (struct gl_oset_implementation): Add field 'search_atleast'.
69010         (gl_oset_search_atleast): New inline function.
69011         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69012         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69013         (gl_array_oset_implementation): Update.
69014         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69015         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69016         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69017
69018 2006-10-04  Bruno Haible  <bruno@clisp.org>
69019
69020         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69021
69022 2006-10-03  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69025         from gl_avltreehash_list_implementation.
69026
69027 2006-10-03  Bruno Haible  <bruno@clisp.org>
69028
69029         * lib/gl_oset.c (gl_oset_add): Fix return type.
69030
69031 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69032
69033         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69034
69035 2006-10-02  Eric Blake  <ebb9@byu.net>
69036
69037         * modules/strnlen (Depends-on): Add extensions.
69038
69039 2006-10-02  Eric Blake  <ebb9@byu.net>
69040
69041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69042         definition in 2.60+.
69043
69044 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69045
69046         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69047         checks.
69048
69049 2006-10-02  Bruno Haible  <bruno@clisp.org>
69050
69051         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69052         to the AUTOMAKE_OPTIONS.
69053         Reported by Jim Meyering.
69054
69055 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         Work around bug in Solaris 10 /proc file system:
69058         /proc/self/fd/NNN/.. isn't the parent directory of
69059         the directory whose file descriptor is NNN.  This needs to
69060         be worked around at run time, not compile time, since a
69061         program might be built on Solaris 8, where things work, and
69062         run on Solaris 10.
69063         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69064         to use the following interface instead:
69065         (OPENAT_BUFFER_SIZE): New macro.
69066         (openat_proc_name): New function.
69067         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69068         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69069         Likewise.
69070         * lib/openat-proc.c: New file.
69071         * modules/openat (Files): Add lib/openat-proc.c.
69072         (Depends-on): Add same-inode, stdbool.
69073         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69074
69075 2006-09-29  Bruno Haible  <bruno@clisp.org>
69076
69077         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69078         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69079         argument. Set stdout_closed before testing for ferror, not after.
69080         (fwriteerror, fwriteerror_no_ebadf): New functions.
69081
69082 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69083
69084         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69085
69086 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69087
69088         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69089         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69090
69091 2006-09-28  Jim Meyering  <jim@meyering.net>
69092
69093         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69094         Include <unistd.h>.
69095
69096 2006-09-28  Bruno Haible  <bruno@clisp.org>
69097
69098         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69099         * modules/linkedhash-list (Depends-on): Likewise.
69100         * modules/rbtreehash-list (Depends-on): Likewise.
69101
69102 2006-09-28  Bruno Haible  <bruno@clisp.org>
69103
69104         * lib/strndup.h: Simplify the redefinition of strndup.
69105         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69106         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69107
69108 2006-09-28  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69111         * lib/gl_linkedhash_list.c: Likewise.
69112         * lib/gl_rbtreehash_list.c: Likewise.
69113
69114 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69117         getaddrinfo.
69118
69119         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69120         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69121         it causes <stdio_ext.h> to cause a compile-time error.
69122         Problem reported by Nelson H. F. Beebe.
69123         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69124         of HAVE_DECL___PENDING.
69125
69126         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69127         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69128         declaration.
69129
69130 2006-09-27  Jim Meyering  <jim@meyering.net>
69131
69132         This file could end up with a definition for a function
69133         named __strndup, rather than rpl_strndup on a system with
69134         incomplete weak_alias support.
69135         * lib/strndup.c (strndup): Rename from __strndup.
69136         Remove #defines that used to map __strndup to strndup.
69137         Don't use K&R prototypes.
69138         Remove LIBC-related code, since this file is not sync'd with glibc.
69139         * lib/strndup.h: Revamp, accordingly.
69140         * m4/strndup.m4: Modernize.
69141
69142 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * modules/savewd (Depends-on): Add 'raise'.
69145         * lib/savewd.c: Include <signal.h>, for 'raise'.
69146
69147 2006-09-26  Jim Meyering  <jim@meyering.net>
69148
69149         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69150         when we detect Darwin 8.7.0's acl_get_file bug.
69151         Rearrange to perform the new (below) run-test while $LIBS
69152         contains any acl-related library.  Set USE_ACL at the end.
69153         (gl_ACL_GET_FILE): New function.
69154
69155 2006-09-26  Eric Blake  <ebb9@byu.net>
69156
69157         * lib/verror.c: Include <config.h> unconditionally.
69158
69159 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * modules/clock-time (Maintainer): Add self.
69162         * modules/getlogin_r (Depends-on): Add extensions.
69163
69164 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69165
69166         * modules/clock-time: New module.
69167         * modules/nanosleep (Depends-on): Add clock-time.
69168         * modules/gethrxtime (Depends-on): Likewise.
69169         * modules/gettime (Depends-on): Likewise.
69170         * modules/settime (Depends-on): Likewise.
69171
69172         * modules/fts-lgpl: Depend on openat.
69173         * modules/mkancesdirs: Depend on savewd.
69174         * modules/mkdir-p: Likewise.
69175
69176 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69177
69178         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69179
69180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69181         `gl_have_arbitrary_file_name_length_limit' to
69182         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69183         actually works between configure runs.
69184
69185 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69186             Bruno Haible  <bruno@clisp.org>
69187
69188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69189
69190 2006-09-25  Jim Meyering  <jim@meyering.net>
69191
69192         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69193         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69194
69195 2006-09-25  Eric Blake  <ebb9@byu.net>
69196
69197         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69198         exec's in 2006-09-18 patch when shuffling fds.
69199
69200 2006-09-25  Bruno Haible  <bruno@clisp.org>
69201
69202         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69203         Reported by Jim Meyering.
69204
69205 2006-09-24  Jim Meyering  <jim@meyering.net>
69206
69207         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69208         compare a pointer against a literal "0".  That caused failures with
69209         at least HP-UX's hpcc.
69210
69211 2006-09-22  Simon Josefsson  <jas@extundo.com>
69212
69213         * modules/gc-sha1:
69214         * modules/gc-md4:
69215         * modules/gc-hmac-sha1:
69216         * modules/gc-hmac-md5:
69217         * modules/gc-des:
69218         * modules/gc-arcfour: Distribute more files.
69219
69220 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69221
69222         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69223         (gl_linked_iterator_from_to): Initialize struct completely.
69224         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69225         (gl_tree_iterator_from_to): Likewise
69226         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69227         * lib/gl_array_list.c [lint] (gl_array_iterator)
69228         (gl_array_iterator_from_to): Likewise.
69229         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69230         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69231         (gl_carray_iterator_from_to): Likewise.
69232
69233         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69234         * lib/md4.c (md4_process_block): Remove unused variable.
69235         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69236         parentheses for clarity.
69237
69238 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69239
69240         * modules/bison-i18n (Depends-on): Add gettext.
69241
69242 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69243
69244         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69245         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69246         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69247         also add missing comma that caused broken test.
69248         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69249         stdlib.h, for `abort'.
69250         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69251         variables.
69252         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69253         include unistd.h if present, for `rmdir'.
69254         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69255         variables.
69256         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69257         in the process include standard headers for prototypes.
69258         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69259         gets declared on GNU/Linux.
69260         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69261         unistd.h, for `rmdir'.
69262         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69263
69264         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69265         always true.
69266         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69267
69268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69269
69270 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69271
69272         * gnulib-tool (func_version): Create output all at once.  This
69273         may help avoid triggering unnecessary SIGPIPEs, and at any
69274         rate it doesn't hurt.
69275
69276 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69277             Bruno Haible  <bruno@clisp.org>
69278
69279         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69280         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69281         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69282
69283         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69284         (gl_FUNC_VASPRINTF): Invoke it.
69285
69286 2006-09-22  Bruno Haible  <bruno@clisp.org>
69287
69288         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69289         getloadavg.c as first argument.
69290
69291 2006-09-22  Bruno Haible  <bruno@clisp.org>
69292
69293         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69294         at the beginning of the gl_INIT macro.
69295         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69296         gl_GETLOADAVG.
69297
69298 2006-09-22  Bruno Haible  <bruno@clisp.org>
69299
69300         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69301         module.
69302         Suggested by Ralf Wildenhues.
69303
69304 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         Import this patch from libc:
69307
69308         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69309
69310         * lib/regex_internal.c (re_string_reconstruct): Handle
69311         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69312         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69313         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69314         re_string_context_at.
69315
69316         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69317         now requires it.
69318         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69319         gl_REGEX now does it for us.
69320         (gl_REGEX): Add test taken from
69321         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69322
69323         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69324         Check that large offsets work.  Modernize Autoconf usages.
69325         Prefer "yes" to mean a good thing rather than a bad.
69326         Don't put "#define mkstemp" in config.h, as this might interfere
69327         with standard system headers that "#define mkstemp mkstemp64".
69328
69329         * modules/mkstemp (Depends-on): Add extensions, so that
69330         mkstemp is visible on some platforms.
69331         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69332         (Include): Change to "mkstemp.h" from <stdlib.h>.
69333         (Files): Add mkstemp.h.
69334
69335         * lib/mkstemp.h: New file, since some standard headers
69336         #define mkstemp.
69337         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69338         Include "mkstemp.h".
69339         Make the _LIBC code resemble glibc original more,
69340         e.g., use K&R style.
69341         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69342         (mkstemp): Remove, since mkstemp.h does this for us.
69343         * lib/stdlib--.h: Include mkstemp.h.
69344
69345         Import this patch from libc:
69346
69347         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69348
69349         * lib/tempname.c (__gen_tempname): Change attempts_min
69350         into a macro.  Use preprocessor to decide how to initialize
69351         attempts [Coverity CID 67].
69352
69353 2006-09-20  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/mkdtemp.c: Import from libc.
69356         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69357                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69358                 attempts_min into a macro.  Use preprocessor to decide how to
69359                 initialize attempts [Coverity CID 67].
69360         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69361                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69362                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69363
69364 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69365
69366         * gnulib-tool (func_exit): New function, to allow to pass the
69367         exit status portably through the trap.  Use everywhere.
69368         (--help, --version): Signal a write error.
69369         (trap): catch SIGPIPE, for write errors.
69370         Exit at the end of the trap, with the correct exit status.
69371
69372 2006-09-19  Karl Berry  <karl@gnu.org>
69373
69374         * doc/gnulib.texi: note about the license texinfo files.
69375
69376 2006-09-19  Eric Blake  <ebb9@byu.net>
69377
69378         * gnulib-tool: Avoid space-tab.
69379
69380 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69383         that prevented coreutils 6.1 from building.  Problem reported
69384         by Petter Reinholdtsen.
69385
69386 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * gnulib-tool (avoidlist): Fix typo that broke options like
69389         --avoid=lock that are used by coreutils bootstrap.
69390
69391 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69392
69393         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69394         more systematically.
69395
69396 2006-09-18  Jim Meyering  <jim@meyering.net>
69397
69398         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69399
69400 2006-09-18  Bruno Haible  <bruno@clisp.org>
69401
69402         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69403
69404 2006-09-18  Bruno Haible  <bruno@clisp.org>
69405
69406         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69407         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69408         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69409         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69410         * m4/gettext.m4: Require autoconf >= 2.52.
69411         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69412         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69413         of gl_cv_header_inttypes_h.
69414
69415 2006-09-18  Bruno Haible  <bruno@clisp.org>
69416
69417         * lib/javaversion.c: Include configmake.h.
69418
69419 2006-09-18  Bruno Haible  <bruno@clisp.org>
69420
69421         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69422         avoid that the while loops be executed in a subshell.
69423
69424 2006-09-18  Bruno Haible  <bruno@clisp.org>
69425
69426         * MODULES.html.sh (func_module): Break long lines.
69427         Suggested by Bruce Korb <bkorb@gnu.org>.
69428
69429 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69430
69431         Speed up by a factor of 1.12.
69432         * gnulib-tool (nl): New variable.
69433         (func_import): Rewrite include directive extraction to only read each
69434         directive once.
69435
69436 2006-09-17  Bruno Haible  <bruno@clisp.org>
69437
69438         * modules/javaversion (Makefile.am): Remove DEFS setting.
69439         (Depends-on): Add configmake, for PKGDATADIR definition.
69440
69441 2006-09-17  Bruno Haible  <bruno@clisp.org>
69442
69443         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69444
69445 2006-09-17  Bruno Haible  <bruno@clisp.org>
69446
69447         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69448         (func_modules_transitive_closure, func_modules_add_dummy,
69449         func_modules_to_filelist, func_import, func_create_testdir,
69450         func_create_megatestdir, ...): Use it wherever possible.
69451         Suggested by Ralf Wildenhues.
69452
69453 2006-09-16  Karl Berry  <karl@gnu.org>
69454
69455         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69456         to avoid sectioning errors.
69457         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69458         [ifinfo]: blank line after @center-ed titles.
69459         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69460         Spell FSF address consistently with others.
69461         (These changes approved by rms.)
69462
69463 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69464
69465         Speed up by a factor of 1.61.
69466         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69467         already checked module names again.
69468
69469 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69470
69471         Speed up by a factor of 1.13.
69472         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69473         for new_files, and the input to func_add_or_update.
69474
69475 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69476
69477         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69478         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69479
69480 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * modules/mkancesdirs (Depends-on): Add fcntl.
69483         * modules/savewd: New file.
69484         * MODULES.html.sh (File system functions): Add savewd.
69485
69486         * modules/configmake (Makefile.am): Add support for the
69487         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69488
69489 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * m4/savewd.m4: New file.
69492
69493 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69494
69495         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69496         (dirchownmod): New arg FD.  All callers changed.
69497         Use FD rather than opening the directory ourself, as opening is
69498         now the caller's responsibility.
69499         * lib/dirchownmod.h: Likewise.
69500         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69501         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69502         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69503         (test_dir): Remove.
69504         (mkancesdirs): Return length of prefix of FILE that has already
69505         been made, or -2 if there is a child doing the work.  Redo
69506         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69507         ".", and treat ".." specially since it might stray back into
69508         already-created areas.  Use a subprocess if necessary.  New arg
69509         WD; all users changed.  MAKE_DIR function should now return 1
69510         if it creates a directory that is not readable.  Return -2 if
69511         a child process is spun off.
69512         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69513         Adjust signature to match code.
69514         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69515         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69516         all users changed.
69517         * lib/savewd.c, lib/savewd.h: New files.
69518
69519 2006-09-15  Jim Meyering  <jim@meyering.net>
69520
69521         * modules/rename-dest-slash: New module.
69522         * MODULES.html.sh (posix_compat): Add it here.
69523
69524         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69525
69526 2006-09-15  Jim Meyering  <jim@meyering.net>
69527
69528         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69529         file.
69530
69531         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69532
69533 2006-09-15  Jim Meyering  <jim@meyering.net>
69534
69535         * lib/rename-dest-slash.c (has_trailing_slash): Use
69536         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69537         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69538         test before testing whether SRC is a directory.
69539         Suggestions from Bruno Haible.
69540
69541         Avoid a warning about an unused variable.
69542         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69543         into the #ifdef block where it's used.
69544
69545         * lib/rename-dest-slash.c: New file.
69546
69547 2006-09-14  Bruno Haible  <bruno@clisp.org>
69548
69549         * lib/allocsa.c: Include <config.h> unconditionally.
69550         * lib/asnprintf.c: Likewise.
69551         * lib/asprintf.c: Likewise.
69552         * lib/c-strcasecmp.c: Likewise.
69553         * lib/c-strcasestr.c: Likewise.
69554         * lib/c-strncasecmp.c: Likewise.
69555         * lib/c-strstr.c: Likewise.
69556         * lib/classpath.c: Likewise.
69557         * lib/clean-temp.c: Likewise.
69558         * lib/concatpath.c: Likewise.
69559         * lib/copy-file.c: Likewise.
69560         * lib/csharpcomp.c: Likewise.
69561         * lib/csharpexec.c: Likewise.
69562         * lib/execute.c: Likewise.
69563         * lib/fatal-signal.c: Likewise.
69564         * lib/findprog.c: Likewise.
69565         * lib/fwriteerror.c: Likewise.
69566         * lib/gl_array_list.c: Likewise.
69567         * lib/gl_array_oset.c: Likewise.
69568         * lib/gl_avltree_list.c: Likewise.
69569         * lib/gl_avltree_oset.c: Likewise.
69570         * lib/gl_avltreehash_list.c: Likewise.
69571         * lib/gl_carray_list.c: Likewise.
69572         * lib/gl_linked_list.c: Likewise.
69573         * lib/gl_linkedhash_list.c: Likewise.
69574         * lib/gl_list.c: Likewise.
69575         * lib/gl_oset.c: Likewise.
69576         * lib/gl_rbtree_list.c: Likewise.
69577         * lib/gl_rbtree_oset.c: Likewise.
69578         * lib/gl_rbtreehash_list.c: Likewise.
69579         * lib/imaxabs.c: Likewise.
69580         * lib/imaxdiv.c: Likewise.
69581         * lib/javacomp.c: Likewise.
69582         * lib/javaexec.c: Likewise.
69583         * lib/javaversion.c: Likewise.
69584         * lib/linebreak.c: Likewise.
69585         * lib/localcharset.c: Likewise.
69586         * lib/lock.c: Likewise.
69587         * lib/mbchar.c: Likewise.
69588         * lib/mbswidth.c: Likewise.
69589         * lib/mkdtemp.c: Likewise.
69590         * lib/pipe.c: Likewise.
69591         * lib/printf-args.c: Likewise.
69592         * lib/printf-parse.c: Likewise.
69593         * lib/progname.c: Likewise.
69594         * lib/progreloc.c: Likewise.
69595         * lib/readlink.c: Likewise.
69596         * lib/sh-quote.c: Likewise.
69597         * lib/stpcpy.c: Likewise.
69598         * lib/stpncpy.c: Likewise.
69599         * lib/strcasecmp.c: Likewise.
69600         * lib/strcasestr.c: Likewise.
69601         * lib/strcspn.c: Likewise.
69602         * lib/striconv.c: Likewise.
69603         * lib/strncasecmp.c: Likewise.
69604         * lib/strnlen1.c: Likewise.
69605         * lib/strstr.c: Likewise.
69606         * lib/strtok_r.c: Likewise.
69607         * lib/tls.c: Likewise.
69608         * lib/tmpdir.c: Likewise.
69609         * lib/unicodeio.c: Likewise.
69610         * lib/unsetenv.c: Likewise.
69611         * lib/vasnprintf.c: Likewise.
69612         * lib/vasprintf.c: Likewise.
69613         * lib/wait-process.c: Likewise.
69614         * lib/xallocsa.c: Likewise.
69615         * lib/xsetenv.c: Likewise.
69616         * lib/xstriconv.c: Likewise.
69617
69618 2006-09-13  Simon Josefsson  <jas@extundo.com>
69619
69620         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69621         that internally, suggested by Ralf Wildenhues
69622         <Ralf.Wildenhues@gmx.de>.
69623
69624 2006-09-13  Simon Josefsson  <jas@extundo.com>
69625
69626         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69627         @LIBOBJS@.
69628         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69629
69630 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69633         longer worry about uses that don't define HAVE_CONFIG_H.
69634         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69635         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69636         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69637         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69638         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69639         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69640         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69641         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69642         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69643         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69644         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69645         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69646         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69647         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69648         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69649         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69650         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69651         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69652         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69653         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69654         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69655         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69656         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69657         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69658         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69659         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69660         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69661         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69662         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69663         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69664         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69665         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69666         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69667         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69668         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69669         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69670         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69671         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69672         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69673         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69674         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69675         Likewise.
69676
69677 2006-09-13  Eric Blake  <ebb9@byu.net>
69678
69679         * lib/getopt.c: Fix typo in last commit.
69680
69681 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69682
69683         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69684         dgettext.
69685
69686 2006-09-12  Jim Meyering  <jim@meyering.net>
69687
69688         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69689         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69690         Reported by Nelson H. F. Beebe.
69691
69692 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69693
69694         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69695         program_invocation_name and program_invocation_short_name are
69696         initialized.
69697         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69698         and program_invocation_short_name to argp.h, so they are visible
69699         to user programs.
69700         * lib/argp.h: Likewise
69701
69702 2006-09-10  Bruno Haible  <bruno@clisp.org>
69703
69704         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69705         m4/inttypes_h.m4, m4/uintmax_t.m4.
69706
69707 2006-09-10  Bruno Haible  <bruno@clisp.org>
69708
69709         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69710         gl_AC_TYPE_UINTMAX_T.
69711
69712 2006-09-10  Bruno Haible  <bruno@clisp.org>
69713
69714         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69715
69716 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69717
69718         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69719         convention.  Text proposed by Bruno Haible.
69720         (struct argp_option): Document the use of N_() wrappers.
69721
69722         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69723         '\v', and translate the two parts separately, instead of feeding
69724         the whole string to gettext.  This allows to exclude
69725         '\v' from the strings visible to the translator by writing doc
69726         strings as N_("..") "\v" N_("..").
69727
69728 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * config/srclist.txt: Undo latest change; the bug was fixed.
69731
69732 2006-09-09  Bruno Haible  <bruno@clisp.org>
69733
69734         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69735         assignments if building a library without libtool.
69736         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69737         in func_emit_lib_Makefile_am.
69738         (func_import): When building a static library libfoo.a, arrange to
69739         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69740         (func_create_testdir): Likewise.
69741         * modules/gc (configure.ac, Makefile.am): If building statically,
69742         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69743         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69744         * modules/striconv (configure.ac, Makefile.am): Likewise.
69745         Based on a suggestion by Ralf Wildenhues.
69746
69747 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69750         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69751         Also:
69752
69753         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69754         Add year_2050_test to catch glibc bug 2821
69755         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69756
69757         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69758         Prefer #ifdef to #if.
69759
69760         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69761         Return from 'main' instead of calling 'exit'.
69762
69763 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69766         returned the maximum time_t value rather than (time_t) -1.
69767         Problem originally reported by William Bardwell
69768         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69769
69770         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69771         Moved to here ...
69772         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69773         ... from here.
69774
69775 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69778         2821 is fixed.
69779
69780 2006-09-08  Jim Meyering  <jim@meyering.net>
69781
69782         Don't make generated files read-only.  That would bother too many
69783         people.  However, do retain the ability to work when targets are
69784         read-only: remove the destination and temporary files before writing
69785         them (when generated via sed or echo), or by using the -f option for
69786         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69787         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69788         * modules/byteswap, modules/configmake, modules/fcntl:
69789         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69790         * modules/localcharset, modules/netinet_in, modules/poll:
69791         * modules/stdbool, modules/stdint, modules/sys_select:
69792         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69793
69794 2006-09-08  Jim Meyering  <jim@meyering.net>
69795
69796         Avoid new build failure on FreeBSD 6.0.
69797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69798         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69799         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69800
69801 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69802
69803         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69804
69805 2006-09-07  Jim Meyering  <jim@meyering.net>
69806
69807         Fix global typo in last change: use chmod u-w, not chmod u-x.
69808         Spotted by Paul Eggert and Bruce Korb.
69809         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69810         * modules/byteswap, modules/configmake, modules/fcntl:
69811         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69812         * modules/localcharset, modules/netinet_in, modules/poll:
69813         * modules/stdbool, modules/stdint, modules/sys_select:
69814         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69815
69816 2006-09-06  Jim Meyering  <jim@meyering.net>
69817
69818         Make generated files be read-only.
69819         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69820         Ensure that each generated file is now read-only.
69821         * modules/argz: Likewise.
69822         * modules/arpa_inet: Likewise.
69823         * modules/byteswap: Likewise.
69824         * modules/configmake: Likewise.
69825         * modules/fcntl: Likewise.
69826         * modules/fnmatch: Likewise.
69827         * modules/getopt: Likewise.
69828         * modules/glob: Likewise.
69829         * modules/inttypes: Likewise.
69830         * modules/netinet_in: Likewise.
69831         * modules/poll: Likewise.
69832         * modules/stdbool: Likewise.
69833         * modules/stdint: Likewise.
69834         * modules/sys_select: Likewise.
69835         * modules/sys_socket: Likewise.
69836         * modules/sys_stat: Likewise.
69837         * modules/sysexits: Likewise.
69838         * modules/localcharset: Same as above, but continue using temporary
69839         file named "t-$@" (why different?) rather than the "$@-t" used
69840         everywhere else.
69841
69842         * modules/sysexits (Makefile.am): Replace literal occurrences
69843         of "sysexit.h" more readable, and more consistent, "$@".
69844
69845 2006-09-06  Bruno Haible  <bruno@clisp.org>
69846
69847         * modules/striconv: New file.
69848         * modules/xstriconv: New file.
69849         * MODULES.html.sh (Internationalization functions): Add striconv,
69850         xstriconv.
69851
69852 2006-09-06  Bruno Haible  <bruno@clisp.org>
69853
69854         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69855         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69856         not using libtool correctly.
69857
69858 2006-09-06  Bruno Haible  <bruno@clisp.org>
69859
69860         * lib/striconv.h: New file.
69861         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69862         iconvstring.c.
69863         * lib/xstriconv.h: New file.
69864         * lib/xstriconv.c: New file.
69865
69866 2006-09-06  Bruno Haible  <bruno@clisp.org>
69867
69868         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69869         lib_..._LDFLAGS.
69870
69871 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69872
69873         * lib/argz_.h: Sync from Libtool.
69874
69875         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69876                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69877
69878         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69879
69880 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69881
69882         * modules/trim: New file.
69883
69884 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69885
69886         * lib/trim.h: New file.
69887         * lib/trim.c: New file.
69888
69889 2006-09-05  Bruno Haible  <bruno@clisp.org>
69890
69891         * MODULES.html.sh (String handling): Add trim.
69892
69893 2006-09-04  Karl Berry  <karl@gnu.org>
69894
69895         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69896         until next release.
69897
69898 2006-09-03  Bruno Haible  <bruno@clisp.org>
69899
69900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69901         correctly.
69902
69903 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69904
69905         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69906         not gl_GETLOADAVG.  Omit unneeded semicolons.
69907         Problems reported by Ralf Wildenhues in
69908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69909         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69910         at the end, which is the usual gnulib style.
69911
69912         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69913         of doing all the work ourselves.
69914         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69915         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69916
69917 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69920         Problem reported by Ralf Wildenhues in
69921         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69922
69923         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69924         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69925
69926 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69929         yesterday's patch by changing test -n to test -z.
69930
69931 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69934         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69935         the former is now obsolescent.
69936
69937         * modules/chdir-long (Depends-on): Add fcntl.
69938
69939 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69942         obsolescent, and programs should use gnulib instead.
69943         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69944         but with prefixes changed.
69945
69946 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69947
69948         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69949         or stdbool.h, because they might not exist while configuring.
69950
69951         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69952         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69953         does that for us.
69954         (O_DIRECTORY): Remove.
69955
69956 2006-08-31  Eric Blake  <ebb9@byu.net>
69957
69958         * gnulib-tool: Don't let emacs change spaces to TAB.
69959
69960 2006-08-31  Bruno Haible  <bruno@clisp.org>
69961
69962         * gnulib-tool: When calling func_import more than once, do it in a
69963         subshell.
69964         Reported by Eric Blake <ebb9@byu.net>.
69965
69966 2006-08-31  Bruno Haible  <bruno@clisp.org>
69967
69968         * gnulib-tool (nl): Remove variable.
69969         (sed_transform_lib_file): Use more robust test for config-h module.
69970         (func_import): Fix typo in 2006-08-25 patch.
69971
69972 2006-08-31  Bruno Haible  <bruno@clisp.org>
69973
69974         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69975         specified, augment Makefile.am variables instead of assigning them.
69976
69977 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         Work around a bug in both the Linux and SunOS 64-bit kernels:
69980         nanosleep mishandles sleeps for longer than 2**31 seconds.
69981         Problem reported by Frank v Waveren in
69982         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69984         Check for nanosleep bug.
69985         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69986
69987 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69988
69989         Work around a bug in both the Linux and SunOS 64-bit kernels:
69990         nanosleep mishandles sleeps for longer than 2**31 seconds.
69991         Problem reported by Frank v Waveren in
69992         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69993         * lib/nanosleep.c (BILLION): New constant.
69994         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69995         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69996         implementation.
69997
69998 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * modules/nanosleep (Depends-on): Add gettime.
70001
70002 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70003         and Simon Josefsson  <jas@extundo.com>
70004         and Oskar Liljeblad  <oskar@osk.mine.nu>
70005
70006         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70007         * gnulib-tool (func_import): New license type 'unmodifiable license
70008         text'.
70009         * modules/fdl: Use it.  Longer description.
70010         * module/gpl, module/lgpl: New files.
70011
70012 2006-08-30  Jim Meyering  <jim@meyering.net>
70013
70014         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70015         shadowing the parameter.
70016
70017 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70018
70019         Sync from Libtool:
70020
70021         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70022
70023         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70024         sharing with gnulib.  Report by Eric Blake.
70025
70026 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * modules/isapipe: New file.
70029         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70030
70031 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * modules/configmake (Makefile.am): Add a comment, and omit
70034         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70035         by Bruno Haible.
70036
70037 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         * m4/isapipe.m4: New file.
70040
70041 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         * lib/isapipe.c, lib/isapipe.h: New files.
70044
70045 2006-08-29  Jim Meyering  <jim@meyering.net>
70046
70047         * modules/configmake (Makefile.am): Make configmake.h depend on
70048         Makefile.  Otherwise, a stale configmake.h could hang around.
70049
70050 2006-08-29  Eric Blake  <ebb9@byu.net>
70051
70052         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70053         resolution of upstream bug 3044.
70054
70055 2006-08-29  Bruno Haible  <bruno@clisp.org>
70056
70057         * modules/localcharset (Depends-on): Add configmake.
70058         (Makefile.am): Remove setting of LIBDIR through DEFS.
70059
70060 2006-08-29  Bruno Haible  <bruno@clisp.org>
70061
70062         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70063         defined.
70064
70065 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         * modules/fcntl: New file.
70068         * modules/chdir-safer (Depends-on): Add fcntl.
70069         * modules/fts: Likewise.
70070         * modules/mkdir-p: Likewise.
70071
70072         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70073         This undoes the most recent change, since we're now addressing the
70074         problem in a different way.
70075
70076         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70077         into output, since the output might be called Makefile.am even
70078         if $makefile_name is something different.
70079         (func_import): Use $makefile_am rather than
70080         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70081         empty.
70082
70083         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70084
70085 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70088         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70089         recent change to stdint.m4, since we're now addressing the problem in a
70090         different way.
70091
70092 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70093
70094         * m4/fcntl_h.m4: New file.
70095
70096 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         * lib/fcntl_.h: New file.
70099         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70100         the fcntl module.
70101         * lib/dirchownmod.c: Likewise.
70102         * lib/fts.c: Likewise.
70103
70104         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70105         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70106         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70107         just before including <inttypes.h>, to avoid circular inclusion.
70108
70109 2006-08-28  Jim Meyering  <jim@meyering.net>
70110
70111         * doc/visibility.texi: Actually read and correct the grammar of the
70112         sentence affected by yesterday's change.
70113
70114 2006-08-28  Eric Blake  <ebb9@byu.net>
70115
70116         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70117         needs wrapper.
70118
70119 2006-08-28  Eric Blake  <ebb9@byu.net>
70120
70121         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70122
70123 2006-08-28  Eric Blake  <ebb9@byu.net>
70124
70125         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70126
70127 2006-08-28  Bruno Haible  <bruno@clisp.org>
70128
70129         * modules/c-strstr: New file, from GNU gettext.
70130         * MODULES.html.sh (String handling): Add c-strstr.
70131
70132 2006-08-28  Bruno Haible  <bruno@clisp.org>
70133
70134         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70135         macros.
70136         Reported by Eric Blake.
70137
70138 2006-08-28  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70141         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70142         * lib/vasprintf.c: Include errno.h, limits.h.
70143         (EOVERFLOW): New fallback definition.
70144         (vasprintf): Test here whether the string length is > INT_MAX.
70145         * lib/vsnprintf.c: Include errno.h, limits.h.
70146         (EOVERFLOW): New fallback definition.
70147         (vsnprintf): Fix bug when generated string was too long for the buffer.
70148         Test here whether the string length is > INT_MAX.
70149
70150 2006-08-28  Bruno Haible  <bruno@clisp.org>
70151
70152         * lib/inttypes_.h (SCNX*): Remove definitions.
70153         Reported by Eric Blake.
70154
70155 2006-08-28  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/c-strstr.h: New file, from GNU gettext.
70158         * lib/c-strstr.c: New file, from GNU gettext.
70159
70160 2006-08-28  Bruno Haible  <bruno@clisp.org>
70161
70162         * gnulib-tool: Reorder some statements.
70163
70164 2006-08-28  Bruno Haible  <bruno@clisp.org>
70165
70166         * gnulib-tool: New option --makefile-name.
70167         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70168         $makefile_name.
70169         (func_import): Write $makefile_name to the cache file, and read it from
70170         there unless explicitly specified. Use $makefile_name as file name
70171         instead of Makefile.am. Adjust the recommendations accordingly.
70172
70173 2006-08-28  Bruno Haible  <bruno@clisp.org>
70174
70175         * gnulib-tool (func_verify_module): Check against misapplying patch.
70176
70177 2006-08-28  Bruno Haible  <bruno@clisp.org>
70178
70179         * gnulib-tool (func_relativize, func_relconcat): New functions.
70180         Give an error if --local-dir is given with --update.
70181         Remove trailing slashes from $local_gnulib_dir.
70182         (func_import): Store the relativized $local_gnulib_dir in
70183         gnulib-cache.m4, and read it from there if not specified explicitly.
70184
70185 2006-08-28  Bruno Haible  <bruno@clisp.org>
70186
70187         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70188         is the current directory. Respect also $local_gnulib_dir.
70189
70190 2006-08-28  Bruno Haible  <bruno@clisp.org>
70191             Simon Josefsson  <jas@extundo.com>
70192
70193         BeOS portability.
70194         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70195
70196 2006-08-27  Jim Meyering  <jim@meyering.net>
70197
70198         * doc/visibility.texi: Remove duplicate word: "pointer".
70199
70200 2006-08-26  Bruno Haible  <bruno@clisp.org>
70201
70202         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70203         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70204         (Makefile.am): Create inttypes.h from inttypes_.h.
70205         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70206
70207         * modules/imaxabs: New file.
70208
70209         * modules/imaxdiv: New file.
70210
70211 2006-08-26  Bruno Haible  <bruno@clisp.org>
70212
70213         * m4/inttypes.m4: New file.
70214         * m4/_inttypes_h.m4: Remove file.
70215         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70216         PRI_MACROS_BROKEN.
70217         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70218
70219         * m4/imaxabs.m4: New file.
70220
70221         * m4/imaxdiv.m4: New file.
70222
70223 2006-08-26  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/inttypes_.h: New file.
70226         * lib/inttypes.h: Remove file.
70227         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70228
70229         * lib/imaxabs.c: New file.
70230
70231         * lib/imaxdiv.c: New file.
70232
70233 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         New config-h module, so that "make" output needn't be cluttered
70236         by -DHAVE_CONFIG_H.
70237         * MODULES.html.sh (Support for building libraries and executables):
70238         Add config-h.
70239         * modules/config-h: New file.
70240         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70241         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70242         the config-h module is used.
70243
70244         New configmake module, so that "make" output needn't be cluttered
70245         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70246         * MODULES.html.sh (Support for building libraries and executables):
70247         Add configmake.
70248         * modules/configmake: New file.
70249
70250 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70251
70252         * m4/config-h.m4: New file.
70253
70254 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70255
70256         * config/srclist.txt: Add elisp-comp.
70257
70258 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70259
70260         * MODULES.html.sh (Support for building libraries and executables):
70261         Add elisp-comp.
70262         * build-aux/elisp-comp: New file.
70263         * modules/elisp-comp: New file.
70264
70265 2006-08-24  Bruno Haible  <bruno@clisp.org>
70266
70267         * gnulib-tool (func_create_testdir): Use non-default values of
70268         sourcebase and m4base.
70269
70270 2006-08-24  Bruno Haible  <bruno@clisp.org>
70271
70272         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70273         HTML structure.
70274
70275 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * modules/openat (Depends-on): Add lchown.
70278
70279 2006-08-23  Bruno Haible  <bruno@clisp.org>
70280
70281         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70282         of gl_LOCK_EARLY instead of gl_LOCK.
70283
70284 2006-08-23  Bruno Haible  <bruno@clisp.org>
70285
70286         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70287         on OSF/1 to no.
70288         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70289
70290 2006-08-23  Bruno Haible  <bruno@clisp.org>
70291
70292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70293         as unusable.
70294
70295         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70296         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70297         (gl_LOCK): New macro.
70298
70299 2006-08-22  Simon Josefsson  <jas@extundo.com>
70300
70301         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70302         to md5 module.
70303
70304 2006-08-22  Simon Josefsson  <jas@extundo.com>
70305
70306         * MODULES.html.sh: Add "Support for maintaining and release
70307         projects".
70308
70309         * build-aux/gnupload: New file, from coreutils.
70310
70311 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         Avoid the need for AC_LIBSOURCES in m4 macros.
70314         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70315         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70316         * modules/check-version (EXTRA_DIST): Add check-version.h.
70317         * modules/crc (EXTRA_DIST): Add crc.h.
70318         * modules/des (EXTRA_DIST): Add des.h.
70319         * modules/gc (EXTRA_DIST): Add gc.h.
70320         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70321         * modules/getline (EXTRA_DIST): Add getline.h.
70322         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70323         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70324         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70325         * modules/md2 (EXTRA_DIST): Add md2.h.
70326         * modules/md4 (EXTRA_DIST): Add md4.h.
70327         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70328         * modules/read-file (EXTRA_DIST): Add read-file.h.
70329         * modules/readline (EXTRA_DIST): Add readline.h.
70330         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70331         rijndael-api-fst.h.
70332
70333 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * m4/rijndael.m4 (gl_ARCFOUR):
70336         * m4/arctwo.m4 (gl_ARCTWO):
70337         * m4/check-version.m4 (gl_CHECK_VERSION):
70338         * m4/crc.m4 (gl_CRC):
70339         * m4/des.m4 (gl_DES):
70340         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70341         * m4/gc.m4 (gl_GC):
70342         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70343         * m4/getline.m4 (gl_FUNC_GETLINE):
70344         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70345         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70346         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70347         * m4/md2.m4 (gl_MD2):
70348         * m4/md4.m4 (gl_MD4):
70349         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70350         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70351         * m4/readline.m4 (gl_FUNC_READLINE):
70352         * m4/rijndael.m4 (gl_RIJNDAEL):
70353         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70354         to get the necessary .h files and whatnot.
70355
70356 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70359         gnulib rather than the other way around.
70360         * config/srclistvars.sh (COREUTILS): Remove.
70361
70362 2006-08-22  Jim Meyering  <jim@meyering.net>
70363
70364         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70365
70366         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70367
70368 2006-08-22  Eric Blake  <ebb9@byu.net>
70369
70370         * modules/regexprops-generic: New file.
70371         * MODULES.html.sh (Support for building documentation): List it.
70372
70373 2006-08-22  Eric Blake  <ebb9@byu.net>
70374
70375         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70376         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70377         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70378         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70379
70380 2006-08-22  Bruno Haible  <bruno@clisp.org>
70381
70382         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70383         and lib_LTLIBRARIES like the other lib_* variables.
70384
70385 2006-08-22  Bruno Haible  <bruno@clisp.org>
70386
70387         * build-aux/x-to-1.in: New file, from GNU gettext.
70388
70389 2006-08-22  Bruno Haible  <bruno@clisp.org>
70390
70391         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70392         <utmpx.h> exists.
70393
70394 2006-08-22  Bruno Haible  <bruno@clisp.org>
70395
70396         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70397         <utmpx.h> exists.
70398
70399 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         BeOS portability.
70402         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70403         exist.
70404         Problem reported by Bruno Haible.
70405
70406 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         Avoid the need for AC_LIBSOURCES in m4 macros.
70409         * modules/acl (EXTRA_DIST): Add acl.h.
70410         * modules/argmatch (Files): Add m4/argmatch.m4.
70411         (configure.ac): Add gl_ARGMATCH.
70412         (EXTRA_DIST): Renamed from lib_SOURCES, for
70413         consistency with the other modules.  Remove argmatch.c.
70414         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70415         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70416         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70417         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70418         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70419         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70420         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70421         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70422         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70423         * modules/closeout (EXTRA_DIST): Add closeout.h.
70424         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70425         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70426         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70427         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70428         dirname.h; remove basename.c and stripslash.c.
70429         * modules/exclude (EXTRA_DIST): Add exclude.h.
70430         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70431         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70432         * modules/file-type (EXTRA_DIST): Add file-type.h.
70433         * modules/filemode (EXTRA_DIST): Add filemode.h.
70434         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70435         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70436         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70437         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70438         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70439         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70440         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70441         * modules/getdate (EXTRA_DIST): Add getdate.c.
70442         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70443         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70444         * modules/getpass (EXTRA_DIST): Add getpass.h.
70445         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70446         * modules/group-member (EXTRA_DIST): Add group-member.h.
70447         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70448         * modules/hash (EXTRA_DIST): Add hash.h.
70449         * modules/human (EXTRA_DIST): Add human.h.
70450         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70451         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70452         * modules/lchown (EXTRA_DIST): Add lchown.h.
70453         * modules/long-options (EXTRA_DIST): Add long-options.h.
70454         * modules/lstat (EXTRA_DIST): Add lstat.h.
70455         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70456         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70457         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70458         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70459         * modules/memxor (EXTRA_DIST): Add memxor.h.
70460         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70461         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70462         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70463         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70464         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70465         * modules/physmem (EXTRA_DIST): Add physmem.h.
70466         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70467         * modules/posixver (EXTRA_DIST): Add posixver.h.
70468         * modules/quote (EXTRA_DIST): Add quote.h.
70469         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70470         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70471         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70472         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70473         regex_internal.h regexec.c.
70474         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70475         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70476         * modules/same (EXTRA_DIST): Add same.h.
70477         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70478         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70479         * modules/savedir (EXTRA_DIST): Add savedir.h.
70480         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70481         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70482         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70483         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70484         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70485         * modules/strdup (EXTRA_DIST): Add strdup.h.
70486         * modules/strftime (EXTRA_DIST): Add strftime.h.
70487         * modules/strndup (EXTRA_DIST): Add strndup.h.
70488         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70489         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70490         * modules/time_r (EXTRA_DIST): Add time_r.h.
70491         * modules/timespec (EXTRA_DIST): Add timespec.h.
70492         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70493         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70494         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70495         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70496         * modules/userspec (EXTRA_DIST): Add userspec.h.
70497         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70498         * modules/utimens (EXTRA_DIST): Add utimens.h.
70499         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70500         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70501         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70502         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70503         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70504         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70505         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70506         * modules/yesno (EXTRA_DIST): Add yesno.h.
70507
70508 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70509
70510         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70511
70512         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70513         * m4/dev-ino.m4, same-inode.m4: Remove.
70514
70515         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70516         * m4/acl.m4 (AC_FUNC_ACL):
70517         * m4/backupfile.m4 (gl_BACKUPFILE):
70518         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70519         * m4/canon-host.m4 (gl_CANON_HOST):
70520         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70521         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70522         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70523         * m4/cloexec.m4 (gl_CLOEXEC):
70524         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70525         * m4/closeout.m4 (gl_CLOSEOUT):
70526         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70527         * m4/dirname.m4 (gl_DIRNAME):
70528         * m4/exclude.m4 (gl_EXCLUDE):
70529         * m4/exitfail.m4 (gl_EXITFAIL):
70530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70531         * m4/file-type.m4 (gl_FILE_TYPE):
70532         * m4/filemode.m4 (gl_FILEMODE):
70533         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70534         * m4/fpending.m4 (gl_FUNC_FPENDING):
70535         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70536         * m4/fts.m4 (gl_FUNC_FTS):
70537         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70538         * m4/getdate.m4 (gl_GETDATE):
70539         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70540         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70541         * m4/getpass.m4 (gl_FUNC_GETPASS):
70542         * m4/gettime.m4 (gl_GETTIME):
70543         * m4/getugroups.m4 (gl_GETUGROUPS):
70544         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70545         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70546         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70547         * m4/hash.m4 (gl_HASH):
70548         * m4/idcache.m4 (gl_IDCACHE):
70549         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70550         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70551         * m4/long-options.m4 (gl_LONG_OPTIONS):
70552         * m4/lstat.m4 (gl_FUNC_LSTAT):
70553         * m4/md5.m4 (gl_MD5):
70554         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70555         * m4/memcoll.m4 (gl_MEMCOLL):
70556         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70557         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70558         * m4/memxor.m4 (gl_MEMXOR):
70559         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70560         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70561         * m4/modechange.m4 (gl_MODECHANGE):
70562         * m4/mountlist.m4 (gl_MOUNTLIST):
70563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70564         * m4/openat.m4 (gl_FUNC_OPENAT):
70565         * m4/pathmax.m4 (gl_PATHMAX):
70566         * m4/physmem.m4 (gl_PHYSMEM):
70567         * m4/posixtm.m4 (gl_POSIXTM):
70568         * m4/posixver.m4 (gl_POSIXVER):
70569         * m4/quote.m4 (gl_QUOTE):
70570         * m4/quotearg.m4 (gl_QUOTEARG):
70571         * m4/readtokens.m4 (gl_READTOKENS):
70572         * m4/readutmp.m4 (gl_READUTMP):
70573         * m4/regex.m4 (gl_REGEX):
70574         * m4/safe-read.m4 (gl_SAFE_READ):
70575         * m4/safe-write.m4 (gl_SAFE_WRITE):
70576         * m4/same.m4 (gl_SAME):
70577         * m4/save-cwd.m4 (gl_SAVE_CWD):
70578         * m4/savedir.m4 (gl_SAVEDIR):
70579         * m4/settime.m4 (gl_SETTIME):
70580         * m4/sha1.m4 (gl_SHA1):
70581         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70582         * m4/stat-macros.m4 (gl_STAT_MACROS):
70583         * m4/stat-time.m4 (gl_STAT_TIME):
70584         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70585         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70586         * m4/strdup.m4 (gl_FUNC_STRDUP):
70587         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70588         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70589         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70590         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70591         * m4/time_r.m4 (gl_TIME_R):
70592         * m4/timespec.m4 (gl_TIMESPEC):
70593         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70594         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70595         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70596         * m4/userspec.m4 (gl_USERSPEC):
70597         * m4/utimecmp.m4 (gl_UTIMECMP):
70598         * m4/utimens.m4 (gl_UTIMENS):
70599         * m4/xalloc.m4 (gl_XALLOC):
70600         * m4/xgetcwd.m4 (gl_XGETCWD):
70601         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70602         * m4/xreadlink.m4 (gl_XREADLINK):
70603         * m4/xstrtod.m4 (gl_XSTRTOD):
70604         * m4/yesno.m4 (gl_YESNO):
70605         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70606         to get the necessary .h files and whatnot.
70607
70608 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70609             Bruno Haible  <bruno@clisp.org>
70610
70611         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70612         /bin/sh understanding of '!' conditional negation.
70613
70614 2006-08-21  Jim Meyering  <jim@meyering.net>
70615
70616         * modules/openat (Depends-on): Really alphabetize.
70617
70618         * modules/acl (Depends-on): Add error and quote.
70619
70620         * check-module (find_included_lib_files): Add at-func.c to the
70621         ok-to-include-more-than-once white list.
70622
70623         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70624
70625 2006-08-21  Bruno Haible  <bruno@clisp.org>
70626
70627         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70628         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70629         Reported by Martin Lambers <marlam@marlam.de>.
70630
70631 2006-08-21  Bruno Haible  <bruno@clisp.org>
70632
70633         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70634         specify an installation location, don't emit a noinst_LIBRARIES or
70635         noinst_LTLIBRARIES assignment.
70636
70637 2006-08-21  Bruno Haible  <bruno@clisp.org>
70638
70639         BeOS portability.
70640         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70641         BeOS has mbrtowc() but no <wctype.h>.
70642
70643 2006-08-21  Bruno Haible  <bruno@clisp.org>
70644
70645         BeOS portability.
70646         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70647         exist.
70648
70649 2006-08-21  Bruno Haible  <bruno@clisp.org>
70650
70651         BeOS portability.
70652         * lib/mbchar.h: Include <wctype.h> only if it exists.
70653
70654 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         Remove files that are no longer needed by their respective modules.
70657         * m4/obstack.m4: Remove.
70658         * m4/strerror_r.m4: Remove.
70659         * m4/uint32_t.m4: Remove.
70660         * m4/uintptr_t.m4: Remove.
70661         * m4/ullong_max.m4: Remove.
70662         * m4/xstrtoimax.m4: Remove.
70663         * m4/xstrtoumax.m4: Remove.
70664
70665         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70666         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70667         dependencies now capture this.
70668
70669         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70670         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70671         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70672         * m4/human.m4 (gl_HUMAN): Likewise.
70673         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70674         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70675
70676         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70677
70678         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70679         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70680         stdint.
70681         * m4/human.m4 (gl_HUMAN): Likewise.
70682         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70683         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70684         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70685         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70686         * m4/xstrtol (gl_XSTRTOL): Likewise.
70687
70688         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70689         AC_TYPE_LONG_LONG_INT.
70690         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70691         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70692         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70693         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70694
70695         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70696         on stdbool.
70697
70698         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70699         (gl_PREREQ_XSTRTOUL): Remove.
70700
70701         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70702
70703         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70704         mode.
70705
70706 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         Add and change modules to make it easier for coreutils to use
70709         gnulib-tool.
70710         * modules/backupfile (Files): Remove m4/d-ino.m4.
70711         (Depends-on): Add d-ino.
70712         * modules/cycle-check (Depends-on): Add stdint.
70713         (lib_SOURCES): Add cycle-check.h.
70714         * modules/d-ino: New module.
70715         * modules/d-type: New module.
70716         * modules/error (Files): Remove m4/strerror_r.m4.
70717         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70718         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70719         m4/inttypes_h.m4, m4/uintmax_t.m4.
70720         (Depends-on): Add stdint.
70721         (lib_SOURCES): Add fsusage.h.
70722         * modules/getcwd (Files): Remove d-ino.m4.
70723         (Depends-on): Add d-ino.
70724         * modules/getndelim2 (Depends-on): Add stdint.
70725         * modules/glob (Files): Remove m4/d-type.m4.
70726         (Depends-on): Add d-type.
70727         * modules/host-os: New module.
70728         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70729         m4/inttypes_h.m4, m4/uintmax_t.m4.
70730         * Depends-on: Add stdint.
70731         (lib_SOURCES): Add human.h.
70732         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70733         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70734         m4/uintmax_t.m4, m4/ulonglong.m4.
70735         (Depends-on): Add stdint.
70736         (EXTRA_DIST): Add inttostr.h.
70737         * modules/lchmod: New module.
70738         * modules/link-follow: New module.
70739         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70740         (Depends-on): Add lchmod.
70741         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70742         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70743         (Depends-on): Add stdint.
70744         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70745         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70746         (Depends-on): Add stdint.
70747         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70748         * modules/perl: New module.
70749         * modules/regex (Depends-on): Add stdint.
70750         * modules/rmdir-errno: New module.
70751         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70752         m4/intmax_t.m4.
70753         (Depends-on): Add stdint.
70754         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70755         m4/uintmax_t.m4.
70756         (Depends-on): Add stdint.
70757         * modules/unlink-busy: New module.
70758         * modules/utimecmp (Depends-on): Add stdint.
70759         * modules/uptime: New module.
70760         * modules/winsz-ioctl: New module.
70761         * modules/winsz-termios: New module.
70762         * modules/xnanosleep (Depends-on): Add nanosleep.
70763         * modules/ullong_max: Remove.
70764         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70765         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70766         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70767         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70768         (Depends-on): Add inttypes.
70769         (lib_SOURCES): Add xstrtol.h.
70770         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70771         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70772         * MODULES.html.sh: Move 'assert' into the assert section.
70773         Move 'dummy' into the linking section.
70774         Remove ullong_max.
70775         Add section for compatibility checks for POSIX:2001 functions,
70776         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70777         winsz-ioctl, and winsz-termios into it.
70778         Add lchmod.
70779         Add top-level Misc section and put host-os, perl, and uptime
70780         into it.
70781
70782 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70785         now assume the stdint module.  Do not include inttypes.h.
70786         * lib/fsusage.h: Likewise.
70787         * lib/getndelim2.c: Likewise.
70788         * lib/human.h: Likewise.
70789         * lib/inttostr.h: Likewise.
70790         * lib/obstack.c: Likewise.
70791         * lib/regex_internal.h: Likewise.
70792         * lib/tempname.c: Likewise.
70793         * lib/utimecmp.c: Likewise.
70794         * lib/xstrtol.h: Likewise.
70795
70796         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70797
70798         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70799         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70800         * lib/xtime.h: Likewise.
70801
70802 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * modules/openat (Files): Add lib/fchmodat.c.
70805         Fixes problem reported by Jay Youngman.
70806
70807 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70810         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70811
70812 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70813             Bruno Haible  <bruno@clisp.org>
70814
70815         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70816         and is a script that invokes bison. Tighten the code. Add comments.
70817
70818 2006-08-18  Jim Meyering  <jim@meyering.net>
70819
70820         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70821         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70822         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70823         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70824
70825 2006-08-18  Bruno Haible  <bruno@clisp.org>
70826
70827         * modules/bison-i18n: New file.
70828         * MODULES.html.sh (Internationalization functions): Add it.
70829
70830 2006-08-18  Bruno Haible  <bruno@clisp.org>
70831
70832         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70833         sys/statvfs.h. When getmntinfo was found, check its declaration and
70834         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70835
70836 2006-08-18  Bruno Haible  <bruno@clisp.org>
70837
70838         * m4/bison-i18n.m4: New file, from bison.
70839
70840 2006-08-18  Bruno Haible  <bruno@clisp.org>
70841
70842         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70843         (ME_DUMMY): Treat "kernfs" as a dummy.
70844         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70845
70846 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         Update from coreutils.
70849
70850         2006-08-15  Jim Meyering  <jim@meyering.net>
70851
70852         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70853
70854         2006-01-17  Jim Meyering  <jim@meyering.net>
70855
70856         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70857
70858         2006-01-11  Jim Meyering  <jim@meyering.net>
70859
70860         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70861         Check for the lchmod function.
70862
70863 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         Update from coreutils.
70866
70867         * lib/__fpending.h: Add copyright notice.
70868         * lib/fprintftime.h: Likewise.
70869         * lib/savedir.c: Use (C) in copyright notice.
70870         * lib/savedir.h: Likewise.
70871
70872         2006-08-15  Jim Meyering  <jim@meyering.net>
70873
70874         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70875         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70876         in support of the EXPECTED_ERRNO macro.
70877         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70878         definitions.  Instead, define the appropriate symbols and include
70879         "at-func.c".
70880         * lib/mkdirat.c (mkdirat): Likewise.
70881         * lib/fchmodat.c (fchmodat): Likewise.
70882         (ENOSYS): Remove definition.
70883         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70884         it.  Don't include "unistd--.h" -- it wasn't ever used.
70885
70886         2006-01-17  Jim Meyering  <jim@meyering.net>
70887
70888         Rewrite fts.c not to change the current working directory,
70889         by using openat, fstatat, fdopendir, etc..
70890
70891         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70892         (HAVE_OPENAT_SUPPORT): Define.
70893         [_LIBC] (fchdir): Don't undef or define; no longer used.
70894         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70895         Now, this `function' always succeeds, and consumes its file descriptor
70896         parameter -- so callers must not close such FDs.  Update callers.
70897         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70898         (diropen): Add parameter, SP.  Adjust all callers.
70899         Implement using diropen_fd, rather than open.
70900         (fts_open): Initialize new member, fts_cwd_fd.
70901         Remove fts_rft-setting code.
70902         (fts_close): Close fts_cwd_fd, if necessary.
70903         (__opendir2): Define in terms of opendir or opendirat,
70904         depending on whether the FST_NOCHDIR flag is set.
70905         (fts_build): Since fts_safe_changedir consumes its FD, and since
70906         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70907         and close the dup'd file descriptor upon failure.
70908         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70909         (fts_safe_changedir): Tweak semantics to reflect that this function
70910         now calls cwd_advance_fd and hence consumes its FD argument.
70911         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70912         [struct FTS] (fts_rft): Remove now-unused member.
70913         [struct FTS] (fts_cycle.state): Improve comment.
70914
70915         * lib/openat.c (openat_needs_fchdir): New function.
70916         * lib/openat.h (openat_needs_fchdir): Declare it.
70917
70918 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70921         Problem and fix reported by Pádraig Brady in
70922         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70923
70924 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70927
70928 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * lib/memcoll.c (memcoll): Optimize for the common case where the
70931         arguments are bytewise equal.
70932
70933 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70934
70935         * doc/regexprops-generic.texi: Add a copyright notice.
70936
70937 2006-08-15  Bruno Haible  <bruno@clisp.org>
70938
70939         * modules/tmpdir (License): Change to LGPL.
70940
70941 2006-08-15  Bruno Haible  <bruno@clisp.org>
70942
70943         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70944         module.
70945
70946 2006-08-14  Simon Josefsson  <jas@extundo.com>
70947
70948         * config/srclist.txt: Add gnupload.
70949
70950 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         Change copyright notice from LGPL 2 to GPL 2, since that's the
70953         standard form used in the gnulib repository.
70954         * tests/test-lock.c: Likewise.
70955         * tests/test-stdint.c: Likewise.
70956         * tests/test-tls.c: Likewise.
70957
70958         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70959         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70960         Add copyright notice.
70961
70962         * check-module: Add copyright notice.  Output a copyright
70963         notice if "--version" is specified.
70964         * modules/COPYING: New file.
70965         * tests/test-getaddrinfo.c: Add copyright notice.
70966         * tests/test-verify.c: Likewise.
70967
70968 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         Change copyright notice from LGPL 2 to GPL 2, since that's the
70971         standard form used in the gnulib repository.
70972         * lib/lock.c: LGPL -> GPL.
70973         * lib/lock.h: Likewise.
70974         * lib/strnlen1.c: Likewise.
70975         * lib/strnlen1.h: Likewise.
70976         * lib/tls.c: Likewise.
70977         * lib/tls.h: Likewise.
70978         * lib/tmpdir.c: Likewise.
70979
70980         * lib/TODO: Remove; this belongs only in coreutils.
70981
70982 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         Add copyright notices to long-enough files that lack them, since
70985         otherwise the files aren't clearly free.  Use the same notice that
70986         getdate.texi already uses.
70987         * doc/alloca-opt.texi: Add copyright notice.
70988         * doc/alloca.texi: Likewise.
70989         * doc/ctime.texi: Likewise.
70990         * doc/functions.texi: Likewise.
70991         * doc/gcd.texi: Likewise.
70992         * doc/gnulib-tool.texi: Likewise.
70993         * doc/inet_ntoa.texi: Likewise.
70994         * doc/visibility.texi: Likewise.
70995
70996         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70997         * doc/quote.texi: Add copyright notice.
70998
70999         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71000         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71001         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71002         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71003         is now obsolete, and give a pointer to the Sun list.
71004         Add copyright notice.
71005
71006 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * config/srclistvars.sh: Add copyright notice.
71009
71010 2006-08-14  Eric Blake  <ebb9@byu.net>
71011
71012         Import the following change from libc:
71013
71014         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71015
71016         Upstream bug 2997.
71017         * lib/misc/error.c: Add space between program name and message if file
71018         name is missing.
71019
71020 2006-08-12  Karl Berry  <karl@gnu.org>
71021
71022         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71023         remove, these originate in gnulib now.
71024
71025 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71026
71027         * doc/Makefile (standards.info standards.html standards.dvi):
71028         Also depend on make-stds.texi.
71029
71030 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71033         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71034
71035         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71036         in wchar_t.  Problem reported by Eric Blake.
71037
71038         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71039         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71040         Also, help the compiler to keep LEN in a register.
71041
71042 2006-08-11  Eric Blake  <ebb9@byu.net>
71043
71044         * users.txt: Sort.  Add tar.
71045
71046 2006-08-11  Bruno Haible  <bruno@clisp.org>
71047
71048         * users.txt: New file.
71049
71050 2006-08-11  Bruno Haible  <bruno@clisp.org>
71051
71052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71053         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71054
71055 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         * modules/snprintf (Depends-on): Remove minmax.
71058         (Maintainer): Add self and Bruno.
71059
71060 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71063         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71064         (EOVERFLOW): Define if the system does not.
71065         Do not include "minmax.h"; it wasn't used.
71066         (snprintf): Don't assume size_t promotes to an unsigned type.
71067         Fix bug when generated string was too long for the buffer: the
71068         buffer's contents are supposed to be the initial prefix of the
71069         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71070         exceeds INT_MAX; do the check ourselves.
71071
71072         Import the following changes from libc:
71073
71074         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71075
71076         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71077         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71078         set wc to the byte which couldn't be converted.
71079         (re_string_reconstruct): Don't clear valid_raw_len before calling
71080         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71081         tip_context using re_string_context_at.
71082
71083         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71084
71085         * lib/posix/regex.h: g++ still cannot handled [restrict].
71086
71087         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71088
71089         * lib/posix/regex.h: Remove special handling for VMS.
71090
71091 2006-08-10  Jim Meyering  <jim@meyering.net>
71092
71093         * modules/same-inode: New module.
71094         * modules/dev-ino: New module.
71095         * modules/cycle-check: Depend on these modules, rather than simply
71096         including their .h files.
71097         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71098         required via m4/cycle-check.m4.
71099         * modules/same: Depend on new same-inode module, rather than
71100         including same-inode.h.
71101         * modules/chdir-safer: New file.
71102
71103         * modules/chown (Depends-on): Add stat-macros.
71104
71105 2006-08-10  Jim Meyering  <jim@meyering.net>
71106
71107         * m4/cycle-check.m4: New file.
71108         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71109         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71110
71111 2006-08-10  Eric Blake  <ebb9@byu.net>
71112
71113         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71114         in from original proposal.
71115
71116 2006-08-10  Eric Blake  <ebb9@byu.net>
71117         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71118
71119         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71120         namespace.
71121
71122 2006-08-10  Bruno Haible  <bruno@clisp.org>
71123
71124         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71125         as well.
71126
71127 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71128
71129         Sync from coreutils.
71130
71131         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71132
71133         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71134         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71135
71136 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * modules/restrict: Remove; no longer needed now that we assume
71139         Autoconf 2.59 or later.
71140         * MODULES.html.sh: Remove 'restrict'.
71141         * modules/argp (Depends-on): Remove 'restrict'.
71142         * modules/base64 (Depends-on): Likewise.
71143         * modules/gc (Depends-on): Likewise.
71144         * modules/getaddrinfo (Depends-on): Likewise.
71145         * modules/glob (Depends-on): Likewise.
71146         * modules/inet_ntop (Depends-on): Likewise.
71147         * modules/inet_pton (Depends-on): Likewise.
71148         * modules/memxor (Depends-on): Likewise.
71149         * modules/regex (Depends-on): Likewise.
71150         * modules/strtok_r (Depends-on): Likewise.
71151         * modules/time_r (Depends-on): Likewise.
71152
71153 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71156         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71157         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71158         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71159         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71160         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71161         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71162         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71163
71164         Merge from coreutils.
71165         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71166         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71167         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71168         * m4/time_r.m4 (gl_TIME_R): Likewise.
71169
71170 2006-08-09  Karl Berry  <karl@gnu.org>
71171
71172         * config/srclist.txt: no more gettext-tools, per Bruno.
71173
71174 2006-08-08  Eric Blake  <ebb9@byu.net>
71175
71176         * modules/verror: New module.
71177         * MODULES.html.sh: Document it.
71178
71179 2006-08-08  Eric Blake  <ebb9@byu.net>
71180
71181         * lib/verror.h, lib/verror.c: New files.
71182
71183 2006-08-08  Eric Blake  <ebb9@byu.net>
71184
71185         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71186         verror_at_line output complies with GNU Coding Standards even when
71187         file is NULL.
71188
71189 2006-08-07  Bruno Haible  <bruno@clisp.org>
71190
71191         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71192         versions of AIX.
71193         Reported by Ralf Wildenhues.
71194
71195 2006-08-07  Bruno Haible  <bruno@clisp.org>
71196
71197         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71198         in an AC_DEFUN. Needed so that the autoconf snippets can use
71199         AC_REQUIRE.
71200
71201 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71202
71203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71204         Initialize pkgdata_DATA.
71205         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71206         overriding it.
71207
71208 2006-08-06  Eric Blake  <ebb9@byu.net>
71209
71210         * lib/error.h: Fold in some upstream changes from glibc.
71211         * lib/error.c: Likewise.
71212
71213 2006-08-04  Bruno Haible  <bruno@clisp.org>
71214
71215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71216         Make the mostlyclean-local rule depend on mostlyclean-generic.
71217         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71218
71219 2006-07-31  Bruno Haible  <bruno@clisp.org>
71220
71221         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71222         <stdlib.h>, <string.h>.
71223
71224 2006-07-30  Bruno Haible  <bruno@clisp.org>
71225
71226         * modules/readlink (License): Change to LGPL.
71227
71228 2006-07-30  Bruno Haible  <bruno@clisp.org>
71229
71230         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71231         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71232         set PKGDATADIR to point to it.
71233
71234 2006-07-30  Bruno Haible  <bruno@clisp.org>
71235
71236         * modules/csharpexec (configure.ac): Comment out macro invocation.
71237         * modules/javaexec (configure.ac): Likewise.
71238         * modules/javacomp-script (configure.ac): Likewise.
71239
71240         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71241
71242 2006-07-30  Bruno Haible  <bruno@clisp.org>
71243
71244         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71245         linked-list.
71246
71247 2006-07-30  Bruno Haible  <bruno@clisp.org>
71248
71249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71250
71251 2006-07-30  Bruno Haible  <bruno@clisp.org>
71252
71253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71254         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71255         get removed.
71256
71257 2006-07-29  Bruno Haible  <bruno@clisp.org>
71258
71259         Make it possible for gnulib-tool to work with locally modified or
71260         augmented gnulib repositories.
71261         * gnulib-tool (func_usage): Document --local-dir option.
71262         (local_gnulib_dir): New variable.
71263         Handle --local-dir option.
71264         (func_lookup_file): New function.
71265         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71266         (func_get_description, func_get_filelist, func_get_description,
71267         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71268         func_get_automake_snippet, func_get_include_directive,
71269         func_get_license, func_get_maintainer): Use func_lookup_file.
71270         (func_import, func_create_testdir): Use func_lookup_file.
71271
71272 2006-07-29  Bruno Haible  <bruno@clisp.org>
71273
71274         * modules/setenv (Depends-on): Add unistd.
71275
71276 2006-07-29  Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71279
71280 2006-07-29  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71283
71284 2006-07-29  Bruno Haible  <bruno@clisp.org>
71285
71286         * gnulib-tool (import, update): If there is no Makefile.am, look at
71287         aclocal.m4, instead of bailing out.
71288
71289 2006-07-29  Bruno Haible  <bruno@clisp.org>
71290
71291         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71292         Categorize the options by when they are useful.
71293
71294 2006-07-29  Bruno Haible  <bruno@clisp.org>
71295
71296         * gnulib-tool (func_usage): Document option --no-libtool.
71297         Handle option --no-libtool.
71298         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71299         for changed semantics of $libtool variable.
71300         (func_import): Likewise. If libtool is not used, show this through
71301         an option --no-libtool.
71302         (func_create_testdir): Update.
71303
71304 2006-07-29  Bruno Haible  <bruno@clisp.org>
71305
71306         * gnulib-tool (func_import): Extend error message about missing
71307         --doc-base.
71308
71309 2006-07-29  Bruno Haible  <bruno@clisp.org>
71310
71311         * gnulib-tool (func_import): Don't create the $docbase directory if
71312         there is no file to store there.
71313
71314 2006-07-29  Bruno Haible  <bruno@clisp.org>
71315
71316         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71317         relevant, look for configure.ac there, not in the current directory.
71318         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71319
71320 2006-07-29  Bruno Haible  <bruno@clisp.org>
71321
71322         * gnulib-tool (SORT): New variable.
71323         (func_usage): Undocument --assume-autoconf option.
71324         Remove --assume-autoconf option handling.
71325         (autoconf_minversion): Determine from the contents of configure.ac.
71326         (func_import): Remove autoconf_minversion handling.
71327         Suggested by Eric Blake.
71328
71329 2006-07-29  Bruno Haible  <bruno@clisp.org>
71330
71331         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71332
71333 2006-07-29  Bruno Haible  <bruno@clisp.org>
71334
71335         * config/srclist.txt (*setenv.[ch]): Remove rules.
71336
71337 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71338
71339         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71340
71341 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71342
71343         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71344         arpa/inet.h.
71345
71346 2006-07-28  Simon Josefsson  <jas@extundo.com>
71347
71348         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71349         * modules/inet_pton (Depends-on): Likewise.
71350
71351 2006-07-28  Simon Josefsson  <jas@extundo.com>
71352
71353         * m4/netinet_in_h.m4: New file.
71354
71355 2006-07-28  Simon Josefsson  <jas@extundo.com>
71356
71357         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71358         #include's.
71359
71360 2006-07-28  Simon Josefsson  <jas@extundo.com>
71361
71362         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71363         #include's.
71364
71365 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71366
71367         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71368         setgid on directories only if they set these bits.
71369         * lib/modechange.h: Remove obsolete comment about masks.
71370
71371 2006-07-28  Eric Blake  <ebb9@byu.net>
71372
71373         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71374         macro expansion.
71375
71376 2006-07-28  Bruno Haible  <bruno@clisp.org>
71377
71378         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71379
71380 2006-07-28  Bruno Haible  <bruno@clisp.org>
71381
71382         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71383
71384 2006-07-28  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71387         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71388         Define fallbacks.
71389         Avoids link error on FreeBSD 4.x.
71390         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71391
71392         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71393         encoding.
71394         * lib/mbswidth.c (iswcntrl): Likewise.
71395
71396 2006-07-27  Bruno Haible  <bruno@clisp.org>
71397
71398         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71399         test.
71400
71401 2006-07-27  Bruno Haible  <bruno@clisp.org>
71402
71403         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71404         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71405         defined.
71406
71407 2006-07-26  Eric Blake  <ebb9@byu.net>
71408
71409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71410
71411 2006-07-26  Eric Blake  <ebb9@byu.net>
71412
71413         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71414         like mingw that lack mkstemp.
71415         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71416         avoid compilation warning on mingw.
71417
71418 2006-07-26  Bruno Haible  <bruno@clisp.org>
71419
71420         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71421         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71422         INT_FAST*_MIN, INTPTR_MIN.
71423
71424 2006-07-25  Bruno Haible  <bruno@clisp.org>
71425
71426         * modules/version-etc (Depends-on): Add stdarg.
71427
71428 2006-07-25  Bruno Haible  <bruno@clisp.org>
71429
71430         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71431         complex commands.
71432
71433 2006-07-25  Bruno Haible  <bruno@clisp.org>
71434
71435         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71436         defined in <stdarg.h> or config.h.
71437
71438 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71441         (gl_STDIO_SAFER): Remove.
71442
71443 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71444
71445         * MODULES.html.sh (File stream based Input/Output):
71446         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71447         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71448         * modules/fopen-safer, modules/tmpfile-safer: New files.
71449         * modules/stdio-safer: Remove.
71450
71451 2006-07-24  Bruno Haible  <bruno@clisp.org>
71452
71453         * modules/tmpdir: New file.
71454         * MODULES.html.sh (File system functions): Add it.
71455
71456 2006-07-24  Bruno Haible  <bruno@clisp.org>
71457
71458         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71459         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71460
71461 2006-07-24  Bruno Haible  <bruno@clisp.org>
71462
71463         * modules/clean-temp: New file.
71464
71465 2006-07-24  Bruno Haible  <bruno@clisp.org>
71466
71467         * m4/tmpdir.m4: New file, from GNU gettext.
71468
71469 2006-07-24  Bruno Haible  <bruno@clisp.org>
71470
71471         * lib/tmpdir.h: New file, from GNU gettext.
71472         * lib/tmpdir.c: New file, from GNU gettext.
71473
71474 2006-07-24  Bruno Haible  <bruno@clisp.org>
71475
71476         * lib/clean-temp.h: New file, from GNU gettext.
71477         * lib/clean-temp.c: New file, from GNU gettext.
71478
71479 2006-07-23  Eric Blake  <ebb9@byu.net>
71480
71481         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71482         (Depends-on): Add binary-io.
71483
71484 2006-07-23  Eric Blake  <ebb9@byu.net>
71485
71486         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71487
71488 2006-07-23  Eric Blake  <ebb9@byu.net>
71489
71490         * lib/tmpfile-safer.c: New file.
71491         * lib/stdio-safer.h (fopen_safer): Add prototype.
71492         * lib/stdio--.h (tmpfile): Make safer.
71493
71494 2006-07-23  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71497         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71498         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71499         gl_linked_remove_at): Use it.
71500
71501 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71502         and Simon Josefsson <jas@extundo.com>
71503
71504         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71505
71506         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71507
71508 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         * modules/close-stream: New file.
71511         * modules/closeout (Description): Make it clear that it exits
71512         with a diagnostic on error.
71513         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71514         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71515
71516 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * m4/close-stream.m4: New file.
71519
71520 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * lib/close-stream.c, lib/close-stream.h: New files.
71523
71524 2006-07-22  Bruno Haible  <bruno@clisp.org>
71525
71526         Merge from GNU gettext 0.15.
71527
71528         2006-05-01  Bruno Haible  <bruno@clisp.org>
71529
71530                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71531
71532         2006-07-22  Bruno Haible  <bruno@clisp.org>
71533
71534                 * modules/javaversion: New file.
71535                 * MODULES.html.sh (Java): Add javaversion.
71536
71537         2006-03-12  Bruno Haible  <bruno@clisp.org>
71538
71539                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71540
71541         2005-12-04  Bruno Haible  <bruno@clisp.org>
71542
71543                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71544                 (untested).
71545
71546         2006-06-21  Bruno Haible  <bruno@clisp.org>
71547
71548                 Avoid warnings from recent versions of mcs.
71549                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71550                 -o, -L, -r any more. Use options documented since mcs-1.0
71551                 instead. Similarly for -g.
71552
71553         2005-12-04  Bruno Haible  <bruno@clisp.org>
71554
71555                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71556                 .resources, not .resource.
71557
71558         2005-07-09  Bruno Haible  <bruno@clisp.org>
71559
71560                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71561                 add a .dll suffix.
71562                 Reported by Mark Junker <mjscod@gmx.de>.
71563
71564         2006-07-22  Bruno Haible  <bruno@clisp.org>
71565
71566                 * modules/gettext: Upgrade to gettext-0.15.
71567                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71568                 m4/visibility.m4.
71569                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71570
71571 2006-07-22  Bruno Haible  <bruno@clisp.org>
71572
71573         Merge from GNU gettext 0.15.
71574
71575         2006-03-25  Bruno Haible  <bruno@clisp.org>
71576
71577                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71578
71579         2006-07-21  Bruno Haible  <bruno@clisp.org>
71580
71581                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71582                 "1.1".
71583
71584         2006-05-09  Bruno Haible  <bruno@clisp.org>
71585
71586                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71587                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71588                 for the conftestver execution.
71589
71590         2006-05-01  Bruno Haible  <bruno@clisp.org>
71591
71592                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71593                 optional target-version argument. Verify that the compiler
71594                 groks source of the specified source-version, or add -source
71595                 option as necessary. Verify that the compiler produces
71596                 bytecode in the specified target-version, or add -target and
71597                 -source options as necessary. Make the result of the test
71598                 available as variable CONF_JAVAC. Also log error output in
71599                 config.log.
71600
71601         2006-03-11  Bruno Haible  <bruno@clisp.org>
71602
71603                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71604
71605         2006-05-09  Bruno Haible  <bruno@clisp.org>
71606
71607                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71608                 CLASSPATH_SEPARATOR to a semicolon.
71609
71610         2006-03-12  Bruno Haible  <bruno@clisp.org>
71611
71612                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71613                 available as variable CONF_JAVA, for subsequent autoconf
71614                 tests. Also log error output in config.log.
71615
71616         2006-07-19  Bruno Haible  <bruno@clisp.org>
71617
71618                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71619                 that getline works on glibc2 systems. Needed to avoid trouble
71620                 in relocatable.c.
71621                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71622
71623         2005-12-04  Bruno Haible  <bruno@clisp.org>
71624
71625                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71626                 launcher (untested).
71627
71628         2005-12-04  Bruno Haible  <bruno@clisp.org>
71629
71630                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71631
71632         2006-07-22  Bruno Haible  <bruno@clisp.org>
71633
71634                 * gettext.m4: Update from GNU gettext-0.15.
71635                 * nls.m4: Likewise.
71636                 * po.m4: Likewise.
71637                 * inttypes-pri.m4: Likewise.
71638                 * inttypes-h.m4: Renamed from inttypes.m4.
71639                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71640
71641 2006-07-22  Bruno Haible  <bruno@clisp.org>
71642
71643         Merge from GNU gettext 0.15.
71644
71645         2005-07-05  Bruno Haible  <bruno@clisp.org>
71646
71647                 * printf-args.c (printf_fetchargs): Work around broken
71648                 definition of wint_t on mingw.
71649
71650         2005-02-12  Bruno Haible  <bruno@clisp.org>
71651
71652                 * xallocsa.h: Add extern "C" for C++.
71653
71654         2006-05-17  Bruno Haible  <bruno@clisp.org>
71655
71656                 Cygwin portability.
71657                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71658
71659         2006-04-30  Bruno Haible  <bruno@clisp.org>
71660
71661                 * progreloc.c: Include <mach-o/dyld.h> if available.
71662                 (find_executable): Use _NSGetExecutablePath when possible.
71663
71664         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71665
71666                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71667                 function.
71668
71669         2005-12-29  Bruno Haible  <bruno@clisp.org>
71670
71671                 * progreloc.c (set_program_name_and_installdir): Fix
71672                 compilation error.
71673
71674         2005-12-04  Bruno Haible  <bruno@clisp.org>
71675
71676                 Cygwin portability.
71677                 * progreloc.c: Include <windows.h> also on Cygwin.
71678                 (find_executable): Add support for Cygwin.
71679                 (set_program_name_and_installdir): Handle also platforms with
71680                 nonempty EXEEXT.
71681
71682         2006-07-11  Bruno Haible  <bruno@clisp.org>
71683
71684                 * javacomp.c: Fix a comment.
71685                 Reported by Jim Meyering.
71686
71687         2006-04-30  Bruno Haible  <bruno@clisp.org>
71688
71689                 * javacomp.h (compile_java_class): Add source_version,
71690                 target_version arguments.
71691                 * javacomp.c: Rewritten to choose only a compiler that
71692                 respects the specified source_version and target_version.
71693
71694         2006-06-27  Bruno Haible  <bruno@clisp.org>
71695
71696                 Assume correct S_ISDIR macro.
71697                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71698
71699         2006-07-22  Bruno Haible  <bruno@clisp.org>
71700
71701                 * javaversion.h: New file, from GNU gettext.
71702                 * javaversion.c: New file, from GNU gettext.
71703                 * javaversion.java: New file, from GNU gettext.
71704                 * javaversion.class: New file, from GNU gettext.
71705
71706         2006-05-17  Bruno Haible  <bruno@clisp.org>
71707
71708                 Cygwin portability.
71709                 * javaexec.c (execute_java_class): Test for jview program
71710                 also on Cygwin.
71711
71712         2006-04-09  Bruno Haible  <bruno@clisp.org>
71713
71714                 * fatal-signal.c: Don't include string.h.
71715                 (at_fatal_signal): Use a copying loop instead of memcpy.
71716
71717         2005-12-04  Bruno Haible  <bruno@clisp.org>
71718
71719                 * csharpexec.c: Add support for 'clix' launcher (untested).
71720                 (execute_csharp_using_sscli): New function.
71721                 (execute_csharp_program): Call it.
71722
71723         2006-06-21  Bruno Haible  <bruno@clisp.org>
71724
71725                 Avoid warnings from recent versions of mcs.
71726                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71727                 -o, -L, -r any more. Use options documented since mcs-1.0
71728                 instead. Similarly for -g.
71729
71730         2005-07-09  Bruno Haible  <bruno@clisp.org>
71731
71732                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71733                 add a .dll suffix.
71734                 Reported by Mark Junker <mjscod@gmx.de>.
71735
71736         2006-06-17  Bruno Haible  <bruno@clisp.org>
71737
71738                 * config.charset: Update for NetBSD 3.0.
71739
71740         2006-05-17  Bruno Haible  <bruno@clisp.org>
71741
71742                 Cygwin portability.
71743                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71744
71745         2006-05-16  Bruno Haible  <bruno@clisp.org>
71746
71747                 * localcharset.c [CYGWIN]: Include <windows.h>.
71748                 (get_charset_aliases): For Cygwin, return the same CPxxx
71749                 aliases list as under WIN32.
71750                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71751                 the environment variables. Fall back to GetACP().
71752
71753         2006-04-05  Bruno Haible  <bruno@clisp.org>
71754
71755                 * config.charset: Update Juan Manuel Guerrero's address.
71756
71757         2005-02-12  Bruno Haible  <bruno@clisp.org>
71758
71759                 * allocsa.h: Add extern "C" for C++.
71760
71761         2005-02-10  Bruno Haible  <bruno@clisp.org>
71762
71763                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71764                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71765
71766         2006-07-22  Bruno Haible  <bruno@clisp.org>
71767
71768                 * gettext.h: Update to GNU gettext-0.15.
71769
71770 2006-07-22  Bruno Haible  <bruno@clisp.org>
71771
71772         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71773         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71774         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71775
71776 2006-07-21  Eric Blake  <ebb9@byu.net>
71777
71778         * modules/stdlib-safer: New file.
71779         * MODULES.html.sh (File stream based Input/Output): Add
71780         stdlib-safer.
71781
71782 2006-07-21  Eric Blake  <ebb9@byu.net>
71783
71784         * lib/stdlib-safer.h: New file from coreutils, required by
71785         stdlib--.h.
71786
71787 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71790
71791 2006-07-20  Bruno Haible  <bruno@clisp.org>
71792
71793         * gnulib-tool: Recognize new option --assume-autoconf.
71794         (autoconf_minversion): New variable.
71795         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71796
71797 2006-07-20  Bruno Haible  <bruno@clisp.org>
71798
71799         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71800
71801 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71802
71803         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71804         Reindent and repaginate.
71805
71806 2006-07-19  Derek Price  <derek@ximbiot.com>
71807
71808         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71809         Correct grammar.
71810
71811 2006-07-17  Bruno Haible  <bruno@clisp.org>
71812
71813         * modules/list: New file.
71814         * modules/array-list: New file.
71815         * modules/carray-list, modules/carray-list-tests: New files.
71816         * modules/linked-list, modules/linked-list-tests: New files.
71817         * modules/avltree-list, modules/avltree-list-tests: New files.
71818         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71819         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71820         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71821         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71822         * modules/oset: New file.
71823         * modules/array-oset: New file.
71824         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71825         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71826         * tests/test-carray_list.c: New file.
71827         * tests/test-linked_list.c: New file.
71828         * tests/test-avltree_list.c: New file.
71829         * tests/test-rbtree_list.c: New file.
71830         * tests/test-linkedhash_list.c: New file.
71831         * tests/test-avltreehash_list.c: New file.
71832         * tests/test-rbtreehash_list.c: New file.
71833         * tests/test-avltree_oset.c: New file.
71834         * tests/test-rbtree_oset.c: New file.
71835         * MODULES.html.sh (Container data structures): New section.
71836
71837 2006-07-17  Bruno Haible  <bruno@clisp.org>
71838
71839         * m4/gl_list.m4: New file.
71840
71841 2006-07-17  Bruno Haible  <bruno@clisp.org>
71842
71843         * lib/gl_list.h: New file.
71844         * lib/gl_list.c: New file.
71845         * lib/gl_array_list.h: New file.
71846         * lib/gl_array_list.c: New file.
71847         * lib/gl_carray_list.h: New file.
71848         * lib/gl_carray_list.c: New file.
71849         * lib/gl_linked_list.h: New file.
71850         * lib/gl_linked_list.c: New file.
71851         * lib/gl_anylinked_list1.h: New file.
71852         * lib/gl_anylinked_list2.h: New file.
71853         * lib/gl_avltree_list.h: New file.
71854         * lib/gl_avltree_list.c: New file.
71855         * lib/gl_anyavltree_list1.h: New file.
71856         * lib/gl_anyavltree_list2.h: New file.
71857         * lib/gl_rbtree_list.h: New file.
71858         * lib/gl_rbtree_list.c: New file.
71859         * lib/gl_anyrbtree_list1.h: New file.
71860         * lib/gl_anyrbtree_list2.h: New file.
71861         * lib/gl_anytree_list1.h: New file.
71862         * lib/gl_anytree_list2.h: New file.
71863         * lib/gl_linkedhash_list.h: New file.
71864         * lib/gl_linkedhash_list.c: New file.
71865         * lib/gl_anyhash_list1.h: New file.
71866         * lib/gl_anyhash_list2.h: New file.
71867         * lib/gl_avltreehash_list.h: New file.
71868         * lib/gl_avltreehash_list.c: New file.
71869         * lib/gl_rbtreehash_list.h: New file.
71870         * lib/gl_rbtreehash_list.c: New file.
71871         * lib/gl_anytreehash_list1.h: New file.
71872         * lib/gl_anytreehash_list2.h: New file.
71873
71874         * lib/gl_oset.h: New file.
71875         * lib/gl_oset.c: New file.
71876         * lib/gl_array_oset.h: New file.
71877         * lib/gl_array_oset.c: New file.
71878         * lib/gl_avltree_oset.h: New file.
71879         * lib/gl_avltree_oset.c: New file.
71880         * lib/gl_rbtree_oset.h: New file.
71881         * lib/gl_rbtree_oset.c: New file.
71882         * lib/gl_anytree_oset.h: New file.
71883
71884 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * m4/mkancesdirs.m4: New file.
71887         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71888         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71889         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71890         it.
71891
71892 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71893
71894         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71895         * lib/mkancesdirs.h: New files.
71896         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71897         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71898         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71899         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71900         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71901         callers changed.  Revamp internals significantly, by not
71902         attempting to create directories that are temporarily more
71903         permissive than the final results.  Do not attempt to use
71904         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71905         This removes some race conditions, fixes some bugs, and simplifies
71906         things.  Use new dirchownmod function to do owner and mode changes.
71907         * lib/mkdir-p.h: Likewise.
71908         * lib/modechange.c (octal_to_mode): New function.
71909         (struct mode_change): New member mentioned.
71910         (make_node_op_equals): New arg mentioned.  All callers changed.
71911         (mode_compile): Keep track of which mode bits the user has explicitly
71912         mentioned.
71913         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71914         New arg PMODE_BITS, to keep track of which mode bits the user
71915         mentioned; it treats S_ISUID and S_ISGID speciall.
71916         All callers changed.
71917         * lib/modechange.h: Likewise.
71918
71919 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71920
71921         * MODULES.html.sh: Add mkancestors.
71922         * modules/mkancesdirs: New module.
71923         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71924         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71925         The chdir-safer and afs files are now orphans; I'll remove them
71926         unless someone speaks up.
71927         Add lib/dirchownmod.c, lib/dirchownmod.h.
71928         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71929         Add lchown, mkancesdirs.
71930         (Maintainer): Add self.
71931
71932 2006-07-15  Karl Berry  <karl@gnu.org>
71933
71934         * gnulib-tool: help message wording/arrangement.
71935
71936 2006-07-14  Simon Josefsson  <jas@extundo.com>
71937
71938         * doc/gnulib.texi (Libtool and Windows): New section.
71939
71940 2006-07-12  Simon Josefsson  <jas@extundo.com>
71941
71942         * modules/gendocs (License): Fix license, approved by Karl.
71943
71944 2006-07-12  Eric Blake  <ebb9@byu.net>
71945
71946         * MODULES.html.sh: Add gendocs.
71947
71948 2006-07-11  Eric Blake  <ebb9@byu.net>
71949
71950         * modules/fdl: New module, to install doc/fdl.texi.
71951         * MODULES.html.sh: Add new section for documentation modules.
71952         * gnulib-tool: Avoid space-tab.
71953         (--doc-base): New option, to manage files from doc.
71954
71955 2006-07-11  Eric Blake  <ebb9@byu.net>
71956
71957         * m4/absolute-header.m4: Fix comments to match recent change.
71958
71959 2006-07-11  Eric Blake  <ebb9@byu.net>
71960
71961         * gnulib-tool: List --doc-base before --tests-base.
71962
71963 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71964
71965         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71966
71967 2006-07-11  Bruno Haible  <bruno@clisp.org>
71968
71969         * README: Mention where to put documentation.
71970
71971 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71972
71973         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71974
71975 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71978         to stdint.m4.
71979
71980 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71981
71982         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71983         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71984         "no/such/file/stdint.h" when there is no such file, so that
71985         the resulting C code can be parsed by dodgy compilers.
71986         Problems reported by Bob Proulx.
71987
71988 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71989
71990         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71991         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71992         macros into the GNU _D_EXACT_NAMLEN.
71993         * lib/savedir.c:  Likewise.
71994         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71995
71996 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71997         and Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72000         * m4/savedir.m4:
72001         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72002         macros into the GNU _D_EXACT_NAMLEN.
72003
72004 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72007         around the absolute name, to work around a problem with the HP-UX
72008         11.23 native C compiler, reported by Bob Proulx.
72009
72010 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * doc/maintain.texi, make-stds.texi: Sync from
72013         <http://savannah.gnu.org/projects/gnustandards>.
72014
72015 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72018
72019 2006-07-09  Jim Meyering  <jim@meyering.net>
72020
72021         * m4/glob.m4: Remove a doubled word in a comment.
72022
72023 2006-07-09  Jim Meyering  <jim@meyering.net>
72024
72025         * lib/argp-pv.c: Remove a doubled word in a comment.
72026         * lib/check-version.c (check_version): Likewise.
72027         * lib/javacomp.c (compile_java_class): Likewise.
72028
72029 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72032         for the benefit of people using Autoconf 2.60.  If you want to
72033         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72034         (or m4/onceonly.m4, if pre-2.57) manually.
72035
72036 2006-07-08  Jim Meyering  <jim@meyering.net>
72037
72038         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72039         comment.
72040         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72041         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72042         comment.
72043
72044 2006-07-08  Jim Meyering  <jim@meyering.net>
72045
72046         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72047
72048 2006-07-07  Simon Josefsson  <jas@extundo.com>
72049
72050         * tests/test-crc.c: Change expected crc value, the test vector
72051         were probably computed using the old broken crc.c?
72052
72053 2006-07-06  Simon Josefsson  <jas@extundo.com>
72054
72055         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72056         now the canonical place for the M4 file).
72057
72058         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72059         from the sys_socket dependency now.
72060
72061         * modules/inet_pton (Files): Ditto.
72062
72063         * modules/inet_ntop (Files): Ditto.
72064
72065 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72066
72067         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72068         not gl_PREREQ_GETUSERSHELL.
72069
72070 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72071
72072         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72073         with only one argument, for Autoconf 2.60.
72074         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72075         expand to nothing, so add a shell command to avoid syntax error.
72076         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72077
72078 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72079
72080         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72081
72082 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72085         no longer needed.  Check for isblank decl.
72086         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72087         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72088         of existence.
72089
72090 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         * lib/getloadavg.c: Use __VMS, not VMS.
72093         * lib/getopt.c: Likewise.
72094         * lib/getpagesize.h: Likewise.
72095         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72096         and probably does not work.
72097
72098 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72099
72100         * lib/.cppi-disable: Add wcwidth.
72101         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72102         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72103         (ISGRAPH): Remove.  All uses changed to isgraph.
72104         (FOLD) [!defined _LIBC]: Remove special case.
72105         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72106         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72107         HAVE_ISBLANK.
72108         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72109         case.
72110
72111 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72112
72113         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72114         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72115         brackets.  Other minor changes to suppress some compiler
72116         warnings.
72117
72118 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72119         and Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72122         of invoking obsolescent AC_HEADER_DIRENT macro.
72123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72124         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72125         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72126         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72127         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72128         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72129         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72130         * m4/readdir.m4: Remove; no longer needed.
72131
72132 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72133         and Paul Eggert  <eggert@cs.ucla.edu>
72134
72135         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72136         Don't worry about this obsolete case any more.
72137         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72138         directories.
72139         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72140         worry about this obsolete case any more.
72141         * lib/fts.c: Likewise.
72142         * lib/getcwd.c: Likewise.
72143         * lib/glob.h: Likewise.
72144         * lib/savedir.c: Likewise.
72145
72146 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72149         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72150         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72151         needed.
72152         All uses removed.
72153         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72154         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72155         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72156         needed.
72157         * m4/getdate.m4 (gl_GETDATE): Likewise.
72158         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72159         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72160         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72161         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72162         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72163         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72164         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72165         needed.
72166
72167 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * lib/memcasecmp.c: Include <limits.h>.
72170         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72171         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72172         Don't assume isdigit succeeds only on '0' through '9'.
72173
72174 2006-07-05  Eric Blake  <ebb9@byu.net>
72175
72176         * modules/getaddrinfo (Depends-on): Add snprintf.
72177
72178 2006-07-05  Eric Blake  <ebb9@byu.net>
72179
72180         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72181         to avoid 'header present but could not be compiled' on cygwin.
72182
72183 2006-07-05  Eric Blake  <ebb9@byu.net>
72184
72185         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72186         missing from netdb.h.
72187         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72188
72189 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72190
72191         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72192         no longer needed.
72193         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72194         * m4/getdate.m4 (gl_GETDATE): Likewise.
72195         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72196         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72197         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72198         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72199         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72200
72201 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72202
72203         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72204         All uses of is_space replaced by isspace.
72205         * lib/exit.h: Don't talk about STDC_HEADERS.
72206         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72207         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72208         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72209         replaced by isprint etc.
72210         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72211         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72212         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72213         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72214         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72215         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72216
72217 2006-07-05  Bruno Haible  <bruno@clisp.org>
72218
72219         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72220         the function exists, before testing against AIX.
72221         Reported by Martin Lambers <marlam@marlam.de>.
72222
72223 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72226         From Mark D. Baushke.
72227
72228 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72231         to the absolute name, not just one, to bypass Sun C 5.8's
72232         "warning: #include of /usr/include/... may be non-portable".
72233
72234 2006-07-04  Eric Blake  <ebb9@byu.net>
72235
72236         * modules/dirname-tests: New test module.
72237         * tests/test-dirname.c: New file, replacing dirname.c
72238         TEST_DIRNAME section that was recently deleted.
72239
72240 2006-07-04  Bruno Haible  <bruno@clisp.org>
72241
72242         Assume ANSI C header files and <ctype.h> functions.
72243         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72244         (mbsnwidth): Use isprint, iscntrl instead.
72245
72246 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72247
72248         Merge from coreutils.
72249         * MODULES.html.sh: Add xstrtold.
72250         * modules/xstrtold: New file.
72251         * modules/cycle-check (Files): Add lib/same-inode.h.
72252         * modules/dirname (Files): Add m4/double-slash-root.m4.
72253         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72254         * modules/mkdir-p (Files): Add lib/same-inode.h.
72255         * modules/same (Files): Add lib/same-inode.h.
72256
72257 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72260         This is to keep the terminology clean; POSIX talks about
72261         "absolute pathnames", not "full pathnames", but the GNU
72262         Coding Standards say to use "path" for something else;
72263         so use "absolute" to keep both sides happy.
72264         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72265         Set gl_absolute_header, not gl_full_header_path.
72266         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72267         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72268         All uses changed.
72269
72270         Merge from coreutils.
72271
72272         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72275         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72276         want to require the building of c-strtod.o.
72277         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72278         needs -lm directly.
72279         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72280
72281         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72284         --as-needed option if available.  Problem reported by Albert Chin in
72285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72286         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72287         cc merely issues a bunch of annoying warnings for --as-needed
72288         (this problem was reported by Bob Proulx).  Also, try linking with
72289         -lm to detect a bug in binutils 2.16 (this problem was reported
72290         by Ralf Wildenhues).
72291
72292         2006-06-18  Jim Meyering  <jim@meyering.net>
72293
72294         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72295         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72296         macro.
72297         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72298         also check for glibc-2.4's abort-inducing bug.
72299
72300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72301         Low-probability clean-up should be to use rmdir to get rid of
72302         the just-created directory, not unlink.
72303
72304         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72305         configure fail, and request a bug report to inform us about it.
72306         Add a comment that, barring reports to the contrary, in 2007 we'll
72307         assume ftruncate is universally available.
72308
72309         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72312
72313         2006-03-12  Jim Meyering  <jim@meyering.net>
72314
72315         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72316         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72317         * m4/same.m4 (gl_SAME): Likewise.
72318         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72319
72320         2006-03-11  Eric Blake  <ebb9@byu.net>
72321
72322         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72323         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72324         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72325         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72326
72327 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72330         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72331         reported by Mark D. Baushke, one in
72332         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72333
72334         Merge from coreutils.
72335
72336         * lib/.cppi-disable: Add stdint_.h.
72337         * lib/.cvsignore: Add stdint.h.
72338
72339         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72340
72341         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72342         both double and long double versions.
72343         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72344         * lib/xstrtold.c: New file.
72345         * lib/xstrtod.h (xstrtold): New decl.
72346
72347         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72348
72349         * lib/filemode.c (setst): Remove.
72350         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72351         (arguably) clearer, and the generated code is a bit smaller on my
72352         Debian GNU/Linux stable x86 host.
72353
72354         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72357         Assume that filemode.h includes sys/types.h and sys/stat.h.
72358         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72359         (ftypelet): Reorder to put common cases first, for efficiency.
72360         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72361         to do 'M'.
72362         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72363         of 10, for compatibility with FreeBSD.  All callers changed.
72364         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72365         types that can't be deduced solely from st_mode.  First arg is now a
72366         const pointer.
72367         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72368         (strmode): Renamed from mode_string.
72369         (filemodestring): New decl.
72370         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72371         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72372         needed.
72373         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72374
72375         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72378         fsusage.h now does that.  Include fsusage.h first, to test interface.
72379         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72380         at most one method (the old code could have generated decls that
72381         didn't conform to C89, not that this was ever exercised).
72382         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72383
72384         2006-03-19  Jim Meyering  <jim@meyering.net>
72385
72386         Work even in a chroot where d_ino values for entries in "/"
72387         don't match the stat.st_ino values for the same names.
72388         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72389         number, iterate through all entries again, using lstat instead.
72390         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72391         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72392
72393         * lib/getcwd.c (__getcwd): Clarify a comment.
72394         Use memcpy in place of a call to strcpy.
72395
72396         2006-03-12  Jim Meyering  <jim@meyering.net>
72397
72398         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72399         matches that of the current directory (which we're about to chdir ".."
72400         out of), then save the dev-ino of the parent, instead.
72401
72402         * lib/same-inode.h (SAME_INODE): New file/macro.
72403         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72404         Include "same-inode.h", instead.
72405         * lib/same.c: Likewise.
72406         * lib/cycle-check.h: Include "same-inode.h".
72407         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72408         * lib/cycle-check.c (SAME_INODE): Remove definition.
72409         * lib/root-dev-ino.h: Include "same-inode.h".
72410
72411         2006-03-11  Eric Blake  <ebb9@byu.net>
72412
72413         * lib/same.c (same_name): s/base_name/last_component/
72414         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72415         * lib/filenamecat.c (file_name_concat): Likewise.
72416
72417         2006-03-11  Eric Blake  <ebb9@byu.net>,
72418                     Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72421         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72422         drive prefix.
72423         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72424         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72425         (last_component): New method.
72426         * lib/dirname.c (dir_len): Determine when drive letters need a
72427         subsequent slash.  Preserve // when it is special.
72428         (dir_name): Don't append dot when drive letter is absolute.
72429         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72430         * lib/basename.c (base_name): New semantics - malloc the result.
72431         Preserve // when it is special.  Preserve relative files that look
72432         like drive letters.
72433         (base_len): Preserve // when it is special.
72434         (last_component): New method, similar to old base_name semantics.
72435         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72436         base_name.  Strip redundant slashes from ///.
72437
72438 2006-07-03  Jim Meyering  <jim@meyering.net>
72439
72440         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72441         macro is used before the first cycle_check call.
72442
72443 2006-07-03  Eric Blake  <ebb9@byu.net>
72444
72445         * modules/dirname (Depends-on): Add xstrndup.
72446
72447 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72448
72449         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72450         test cases, so that config.log is a bit easier to follow.
72451
72452 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72453
72454         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72455         both are 64 bits, since this seems to be the tradition, and this
72456         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72457         we ever run into a host that prefers long long to long in this
72458         case, we'll need another configure-time test.  Problem reported by
72459         Jim Meyering.
72460
72461 2006-07-02  Eric Blake  <ebb9@byu.net>
72462
72463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72464
72465 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * modules/inttypes (Depends-on): No longer depends on stdint.
72468         * modules/stdint (Description): Say more about assumptions.
72469         Say that the fast types might differ.  Say macros are used.
72470         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72471         (Makefile.am): Revise list of substituted symbols to match
72472         new stdint.m4.
72473         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72474         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72475         * tests/test-stdint.c (verify_same_types)
72476         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72477         the code conforms to C99/C89.
72478         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72479         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72480
72481 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72484         but fix a bug, by requiring at least 64 bits.
72485         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72486         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72487         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72488         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72489
72490         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72491         changes.  Make 2.59 a prerequisite.  Check and substitute for
72492         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72493         inttypes.h.  Do not use special include files; just use the
72494         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72495         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72496         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72497         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72498         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72499         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72500         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72501         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72502         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72503         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72504         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72505         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72506         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72507         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72508         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72509         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72510         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72511         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72512         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72513         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72514         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72515         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72516         not check for things that C99 does not require, e.g., int8_t.  If
72517         a test isn't needed unless <stdint.h> isn't working, and is
72518         unlikely to be needed for any other reason, then don't do it
72519         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72520         size_t, since we assume C89 freestanding at least.  Do not check
72521         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72522         the right thing even if the types are not defined.  Instead use:
72523         (gl_STDINT_TYPE_PROPERTIES): New macro.
72524         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72525         testing whether <sys/types.h> clashes, as Autoconf does this for
72526         us now.  All uses removed.
72527         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72528         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72529         (gl_CHECK_TYPE_SAME):
72530         Remove; no longer needed.
72531         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72532         exists, since we'll return 0 anyway in that case.
72533         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72534
72535 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72538         possible collision with system files.
72539         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72540         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72541         WCHAR_MIN and WCHAR_MAX in this case.
72542         (<stddef.h>): Do not include; no longer needed.
72543         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72544         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72545         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72546         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72547         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72548         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72549         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72550         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72551         !defined(__c99))]: Include in this case too, since it's harmless
72552         now.
72553         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72554         dangerous to do so.
72555         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72556         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72557         (_STDINT_MIN, _STDINT_MAX): New macros.
72558         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72559         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72560         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72561         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72562         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72563         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72564         macros, not typedefs; this simplifies things quite a bit.
72565         Use long int for all types narrower than int64_t.
72566         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72567         Define in terms of long long int or int64_t or long int,
72568         not int64_t or int32_t.  This saves some compile-time testing.
72569         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72570         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72571         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72572         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72573         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72574         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72575         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72576         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72577         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72578         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72579         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72580         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72581         undef any previous version and define our own version, for
72582         simplicity and consistency with the new macros for types.
72583         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72584         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72585         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72586         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72587         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72588         @WINT_T_SUFFIX@ to keep things simple here.
72589         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72590         Simplify by assuming typical 8/16/32/64 host, since we're
72591         already doing that elsewhere anyway.
72592         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72593         and assume long long int is 64 bits if available.  This
72594         speeds up 'configure'.
72595
72596 2006-07-01  Eric Blake  <ebb9@byu.net>
72597
72598         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72599         Reported by Andreas Buening.
72600
72601 2006-07-01  Eric Blake  <ebb9@byu.net>
72602
72603         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72604
72605 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72606
72607         * lib/getaddrinfo.c: fixed typo
72608
72609 2006-06-29  Jim Meyering  <jim@meyering.net>
72610
72611         * modules/strftime (Maintainer): Add my name, since with the
72612         FPRINTFTIME changes strftime.c has forked from glibc.
72613
72614 2006-06-29  Eric Blake  <ebb9@byu.net>
72615
72616         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72617
72618 2006-06-29  Eric Blake  <ebb9@byu.net>
72619
72620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72621
72622 2006-06-29  Eric Blake  <ebb9@byu.net>
72623
72624         * lib/stat_.h: New file.
72625
72626 2006-06-29  Eric Blake  <ebb9@byu.net>
72627
72628         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72629         unused static function.
72630
72631 2006-06-29  Eric Blake  <ebb9@byu.net>
72632
72633         * doc/functions.texi (Function Portability): Document missing lstat
72634         on mingw.
72635
72636 2006-06-29  Eric Blake  <ebb9@byu.net>
72637
72638         * MODULES.html.sh: Add sys_stat.
72639         * modules/sys_stat: New module.
72640         * modules/mkstemp (Depends-on): Add sys_stat.
72641
72642 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72643
72644         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72645
72646 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72647
72648         * m4/c-bs-a.m4: Removed.
72649
72650 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72651
72652         * lib/strftime.c: Assume strftime() exists.
72653
72654 2006-06-29  Derek Price  <derek@ximbiot.com>
72655
72656         * modules/c-bs-a: Removed - \a is C89.
72657         * MODULES.html.sh: Remove c-bs-a.
72658
72659 2006-06-29  Bruno Haible  <bruno@clisp.org>
72660
72661         * modules/wcwidth (License): Change to LGPL.
72662
72663 2006-06-28  Simon Josefsson  <jas@extundo.com>
72664
72665         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72666         on _WIN32.
72667
72668         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72669         getnameinfo.
72670
72671 2006-06-28  Simon Josefsson  <jas@extundo.com>
72672
72673         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72674
72675 2006-06-28  Simon Josefsson  <jas@extundo.com>
72676
72677         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72678         functions there.  It will succeed on Windows XP, but on Windows
72679         2000 and (presumably) earlier, it will fail, and use the internal
72680         re-implementation.
72681         (use_win32_p): New function.
72682         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72683         Support AI_NUMERICSERV to disable getservbyname.
72684         (getnameinfo): New function, only supports
72685         NI_NUMERICHOST|NI_NUMERICSERV for now.
72686
72687         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72688         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72689         getnameinfo.
72690
72691 2006-06-28  Eric Blake  <ebb9@byu.net>
72692
72693         * modules/wcwidth: New file.
72694         * modules/mbchar (Depends-on): Add wcwidth.
72695         * modules/mbswidth (Depends-on): Add wcwidth.
72696         * MODULES.html.sh: Add wcwidth.
72697
72698 2006-06-28  Eric Blake  <ebb9@byu.net>
72699
72700         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72702
72703 2006-06-28  Eric Blake  <ebb9@byu.net>
72704
72705         * lib/xvasprintf.h: Fix comments.
72706
72707 2006-06-28  Eric Blake  <ebb9@byu.net>
72708
72709         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72710         * lib/mbswidth.c (wcwidth): Move from here...
72711         * lib/wcwidth.h: ...to this new file.
72712
72713 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72714
72715         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72716
72717         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72718         it's obsolete.
72719         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72720
72721 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72722
72723         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72724         Autoconf 2.60 says this stuff was obsolete.
72725
72726 2006-06-28  Bruno Haible  <bruno@clisp.org>
72727
72728         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72729
72730 2006-06-28  Bruno Haible  <bruno@clisp.org>
72731
72732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72733         gt_TYPE_WCHAR_T.
72734
72735 2006-06-28  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72738         declaration for wcwidth.
72739         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72740
72741 2006-06-28  Bruno Haible  <bruno@clisp.org>
72742
72743         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72744         (mkdir): Define using _mkdir.
72745
72746 2006-06-28  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/getaddrinfo.h: Fix POSIX URL.
72749         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72750         _WIN32.
72751         (use_win32_p): Make static.
72752         (getaddrinfo): Reject service name if it is empty or does not consist
72753         solely of decimal digits, or if its value is > 65535.
72754         (getnameinfo): Remove useless casts.
72755
72756 2006-06-27  Simon Josefsson  <jas@extundo.com>
72757
72758         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72759         Eggert and Martin Lambers.
72760
72761 2006-06-27  Simon Josefsson  <jas@extundo.com>
72762
72763         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72764         Eggert and Martin Lambers.
72765
72766 2006-06-27  Bruno Haible  <bruno@clisp.org>
72767
72768         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72769         result to 0, not to empty.
72770         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72771
72772 2006-06-27  Bruno Haible  <bruno@clisp.org>
72773
72774         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72775
72776 2006-06-26  Simon Josefsson  <jas@extundo.com>
72777
72778         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72779         present.
72780
72781 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72782
72783         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72784         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72786
72787 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72788
72789         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72790
72791 2006-06-26  Bruno Haible  <bruno@clisp.org>
72792
72793         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72794
72795 2006-06-26  Bruno Haible  <bruno@clisp.org>
72796
72797         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72798
72799 2006-06-26  Bruno Haible  <bruno@clisp.org>
72800
72801         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72802         SGI C compiler in pre-C99 mode.
72803         Suggested by Mark D. Baushke and Larry Jones.
72804
72805 2006-06-26  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72808         WCHAR_MAX.
72809         Reported by Mark D. Baushke and Larry Jones.
72810
72811 2006-06-26  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72814         in pre-C99 mode.
72815         Suggested by Mark D. Baushke and Larry Jones.
72816
72817 2006-06-23  Simon Josefsson  <jas@extundo.com>
72818             Bruno Haible  <bruno@clisp.org>
72819
72820         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72821         Emit mostlyclean-local rule.
72822         (func_emit_tests_Makefile_am): Likewise.
72823         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72824
72825 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72826
72827         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72828
72829 2006-06-23  Bruno Haible  <bruno@clisp.org>
72830
72831         * tests/test-stdint.c: Update to match ISO C 99 Technical
72832         Corrigendum 1.
72833
72834 2006-06-23  Bruno Haible  <bruno@clisp.org>
72835
72836         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72837
72838 2006-06-23  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/stdint_.h: Treat IRIX like OpenBSD.
72841
72842 2006-06-23  Bruno Haible  <bruno@clisp.org>
72843
72844         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72845         ISO C 99 Technical Corrigendum 1.
72846
72847 2006-06-22  Simon Josefsson  <jas@extundo.com>
72848
72849         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72850         MinGW.
72851
72852 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72853
72854         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72855         needed.  Some compiler complained about some of them.  Problem reported
72856         by Larry Jones in
72857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72858
72859 2006-06-21  Simon Josefsson  <jas@extundo.com>
72860
72861         * tests/test-getaddrinfo.c: New file.
72862
72863         * modules/getaddrinfo-tests: New file.
72864
72865         * MODULES.html.sh: Add inet_pton.
72866
72867         * modules/inet_pton: New file.
72868
72869 2006-06-21  Simon Josefsson  <jas@extundo.com>
72870
72871         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72872         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72873         of using the (limited) gnulib implementation on Windows XP.
72874
72875         * m4/inet_pton.m4: New file.
72876
72877 2006-06-21  Simon Josefsson  <jas@extundo.com>
72878
72879         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72880         variable.
72881
72882         * lib/socket_.h: Don't define WINVER.
72883
72884         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72885         slightly modified to work in gnulib.
72886
72887 2006-06-21  Simon Josefsson  <jas@extundo.com>
72888
72889         * doc/gnulib.texi (Windows sockets): Add.
72890
72891 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * lib/read-file.c (fread_file): Start with buffer allocation of
72894         0 bytes rather than 1 byte; this simplifies the code.
72895         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72896         code to free buffer and save/restore errno.
72897         (internal_read_file): Remove unused local.
72898
72899 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72902         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72903         Problem reported by Denis Excoffier in
72904         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72905
72906 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72907
72908         * modules/sys_socket, modules/socklen: Include sys/types since
72909         FreeBSD 4.x's sys/socket.h needs it.
72910
72911 2006-06-19  Simon Josefsson  <jas@extundo.com>
72912
72913         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72914
72915 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72918
72919 2006-06-19  Bruno Haible  <bruno@clisp.org>
72920
72921         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72922         and FULL_PATH_INTTYPES_H in angle brackets.
72923         Reported by Mark D. Baushke <mdb@gnu.org>.
72924
72925 2006-06-17  Eric Blake  <ebb9@byu.net>
72926
72927         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72928         errno.
72929
72930 2006-06-17  Bruno Haible  <bruno@clisp.org>
72931
72932         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72933         <sys/inttypes.h>.
72934
72935 2006-06-17  Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72938         whether errno is declared. Assume <errno.h> declares errno.
72939
72940 2006-06-17  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72943
72944 2006-06-17  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72947         problem on Solaris 2.5.1.
72948
72949 2006-06-16  Eric Blake  <ebb9@byu.net>
72950
72951         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72952         * lib/unicodeio.c [!defined errno]: Likewise.
72953         * lib/strtol.c [!defined errno]: Likewise.
72954         * lib/strtod.c [!defined errno]: Likewise.
72955
72956 2006-06-15  Eric Blake  <ebb9@byu.net>
72957
72958         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72959
72960 2006-06-15  Eric Blake  <ebb9@byu.net>
72961
72962         * config/srclist.txt (ssize_t.m4): Lose sync.
72963
72964 2006-06-15  Bruno Haible  <bruno@clisp.org>
72965
72966         * modules/stdint (Files): Include m4/full-header-path.m4,
72967         m4/size_max.m4, m4/wchar_t.m4.
72968         (Makefile.am): Many more substitutions.
72969         * modules/stdint-tests: New file.
72970         * tests/test-stdint.c: New file.
72971
72972 2006-06-15  Bruno Haible  <bruno@clisp.org>
72973
72974         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72975         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72976         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72977         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72978         gl_CHECK_TYPE_SAME): New macros.
72979
72980 2006-06-15  Bruno Haible  <bruno@clisp.org>
72981
72982         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72983
72984 2006-06-15  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/stdint_.h: Rewritten to be fully auto-configured.
72987         Fixes bug on HP-UX/IA64.
72988
72989 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72990
72991         * lib/getdate.y (__attribute__): Don't define if already defined.
72992         Problem reported by Larry Jones.
72993         * lib/utimens.c (__attribute__): Likewise.
72994
72995 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72996
72997         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72998         reported by Andreas Schwab.
72999
73000 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73001             Bruno Haible  <bruno@clisp.org>
73002
73003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73004         check for the declaration of strnlen and a run test that exposes the
73005         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73006         rpl_strndup.
73007
73008 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73009             Bruno Haible  <bruno@clisp.org>
73010
73011         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73012
73013 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73014
73015         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73016         compile test, for Tru64 4.0D.
73017
73018 2006-05-28  Karl Berry  <karl@gnu.org>
73019
73020         * config/srclist.txt (printf-args.c): lose sync.
73021
73022 2006-05-26  Martin Lambers  <marlam@marlam.de>
73023
73024         * lib/getpass.c: Updates the test for the native W32 API, and adds
73025         missing includes, thus fixing compilation warnings.
73026
73027 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73028
73029         * lib/exclude.c (exclude_fnmatch): New function.
73030         (excluded_file_name): Call exclude_fnmatch.
73031         * lib/exclude.h (excluded_file_name): New prototype
73032
73033 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * lib/tempname.c (small_open, large_open): New macros.
73036         (__open, __open64) [!_LIBC]: Remove.
73037         (__gen_tempname): Use small_open and large_open instead of __open
73038         and __open64.  This fixes a portability bug on HP-UX 11.11i
73039         reported by Simon Wing-Tang in
73040         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73041
73042 2006-05-24  Bruno Haible  <bruno@clisp.org>
73043
73044         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73045         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73046         Reported by Thorsten Maerz <torte@netztorte.de> via
73047         Aaron Stone <aaron@serendipity.cx>.
73048
73049 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73052         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73053         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73054         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73055         not really conditional on the cache.
73056         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73057
73058 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73061         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73062         (my_usleep): Don't mishandle maximum value.
73063
73064 2006-05-19  Jim Meyering  <jim@meyering.net>
73065
73066         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73067
73068 2006-05-17  Bruno Haible  <bruno@clisp.org>
73069
73070         Cygwin portability.
73071         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73072
73073 2006-05-17  Bruno Haible  <bruno@clisp.org>
73074
73075         * lib/stdint_.h: Fix recognition of Cygwin.
73076
73077 2006-05-15  Bruno Haible  <bruno@clisp.org>
73078
73079         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73080         on libtool patch by Ralf Wildenhues.
73081
73082 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73083
73084         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73085         test for C99 conformance; (bool) 0.5 is an integer constant
73086         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73087         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73088
73089 2006-05-11  Simon Josefsson  <jas@extundo.com>
73090
73091         * m4/xvasprintf.m4: Fix obvious typo.
73092
73093 2006-05-11  Jim Meyering  <jim@meyering.net>
73094
73095         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73096         James Lemley.
73097
73098 2006-05-10  Simon Josefsson  <jas@extundo.com>
73099
73100         * lib/md4.c: Typo fix, update copyright years.
73101         (K1, K2): Don't use L because it turn computations into 64-bit on
73102         64-bit platforms.
73103
73104 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73107         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73108         unwanted sign propagation, e.g., on hosts with 64-bit int.
73109         There still are some problems with reeelly weird theoretical hosts
73110         (e.g., 33-bit int) but it's not worth worrying about now.
73111         * lib/sha1.c (rol): Likewise.
73112         (K1, K2, K3, K4): Remove unnecessary L suffix.
73113
73114 2006-05-10  Bruno Haible  <bruno@clisp.org>
73115
73116         * lib/des.c: Cast to avoid warnings.
73117
73118 2006-05-09  Bruno Haible  <bruno@clisp.org>
73119
73120         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73121         (Depends-on): Depend also on xsize, stdarg.
73122         (configure.ac): Add gl_XVASPRINTF.
73123
73124 2006-05-09  Bruno Haible  <bruno@clisp.org>
73125
73126         * m4/xvasprintf.m4: New file.
73127
73128 2006-05-09  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73131         (EOVERFLOW): Define fallback value.
73132         (xstrcat): New function.
73133         (xvasprintf): Recognize the special case of a string concatenation.
73134
73135 2006-05-08  Eric Blake  <ebb9@byu.net>
73136
73137         * gnulib-tool (func_version): Base copyright year on CVS date.
73138         (func_emit_copyright_notice): New function.
73139         (func_emit_lib_Makefile_am): Use it.
73140         (func_emit_tests_Makefile_am): Likewise.
73141         (func_import): Likewise.
73142
73143 2006-05-08  Bruno Haible  <bruno@clisp.org>
73144
73145         * modules/stdarg: New file.
73146         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73147
73148 2006-05-08  Bruno Haible  <bruno@clisp.org>
73149
73150         * m4/stdarg.m4: New file, from GNU gettext.
73151
73152 2006-05-08  Bruno Haible  <bruno@clisp.org>
73153
73154         * config/srclist.txt (build-aux/config.rpath): different from latest
73155         release.
73156
73157 2006-05-08  Bruno Haible  <bruno@clisp.org>
73158
73159         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73160
73161 2006-05-05  Jim Meyering  <jim@meyering.net>
73162
73163         * m4/warning.m4: New file, derived from bison's file by the same name.
73164
73165 2006-05-03  Bruno Haible  <bruno@clisp.org>
73166
73167         * lib/stdint_.h: Shorter URL.
73168         * lib/inttypes.h: Likewise.
73169
73170 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73173
73174 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * lib/verify.h: Document the internals better.  Most of this change
73177         was written by Bruno Haible.
73178
73179 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * doc/verify.texi: New file, partly based on a proposal by
73182         Bruno Haible.
73183
73184 2006-05-02  Bruno Haible  <bruno@clisp.org>
73185
73186         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73187         test from here...
73188         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73189
73190 2006-04-29  Bruno Haible  <bruno@clisp.org>
73191
73192         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73193         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73194
73195 2006-04-29  Bruno Haible  <bruno@clisp.org>
73196
73197         * gnulib-tool: Make --update option actually work.
73198
73199 2006-04-29  Bruno Haible  <bruno@clisp.org>
73200
73201         * doc/gcd.texi: New file.
73202         * doc/gnulib.texi: Include it.
73203
73204 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * lib/getdate.y (get_date): When adding relative date, start with the
73207         initial time, not with the result of the first mktime call.
73208
73209 2006-04-25  Bruno Haible  <bruno@clisp.org>
73210
73211         * gnulib-tool (func_import): Output the include directives in three
73212         blocks, sorted separately.
73213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73214
73215 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73218         to define main with arguments, for C++.  Reported by Eric Blake.
73219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73220         Prefer 'int main ()' to 'int main (void)', for C++.
73221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73223         for 'main', for C99 and C++.
73224
73225 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73228         Don't assume that exit status -1 is valid.
73229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73230         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73231         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73232         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73233         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73234         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73235         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73236         functions can be used without declaring them, or that you can
73237         exit with status -1.
73238         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73239
73240 2006-04-24  Karl Berry  <karl@gnu.org>
73241
73242         * config/srclist.txt (longdouble.m4): sync lost.
73243
73244 2006-04-24  Eric Blake  <ebb9@byu.net>
73245
73246         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73247
73248 2006-04-24  Bruno Haible  <bruno@clisp.org>
73249
73250         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73251         poll() implementation in AIX.
73252         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73253
73254 2006-04-24  Bruno Haible  <bruno@clisp.org>
73255
73256         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73257         assigned exactly once.
73258
73259 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73260             Bruno Haible  <bruno@clisp.org>
73261
73262         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73263         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73264         for AM_CPPFLAGS.
73265
73266 2006-04-23  Bruno Haible  <bruno@clisp.org>
73267
73268         * modules/copy-file: Depend on unistd.
73269         * modules/execute: Likewise.
73270         * modules/fatal-signal: Likewise.
73271         * modules/findprog: Likewise.
73272         * modules/mkdtemp : Likewise.
73273         * modules/pipe: Likewise.
73274         * modules/wait-process: Likewise.
73275
73276 2006-04-23  Bruno Haible  <bruno@clisp.org>
73277
73278         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73279         condition was already detected.
73280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73281
73282 2006-04-23  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/copy-file.c: Include <unistd.h> unconditionally.
73285         * lib/execute.c: Likewise.
73286         * lib/fatal-signal.c: Likewise.
73287         * lib/findprog.c: Likewise.
73288         * lib/mkdtemp.c: Likewise.
73289         * lib/pipe.h: Likewise.
73290         * lib/pipe.c: Likewise.
73291         * lib/wait-process.h: Likewise.
73292
73293 2006-04-23  Bruno Haible  <bruno@clisp.org>
73294
73295         * gnulib-tool (func_usage): Fix --import description. Document
73296         --update.
73297         (func_import): Create temporary file in a temporary directory, if
73298         --dry-run is specified. Silence errors from 'grep' when there are no
73299         m4 files in $m4dir.
73300         (func_create_testdir): Silence errors from 'grep' when there are no
73301         m4 files in $m4dir.
73302         Reported by Karl Berry <karl@freefriends.org>.
73303
73304 2006-04-20  Bruno Haible  <bruno@clisp.org>
73305
73306         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73307         one argument, so that the code will be portable to Autoconf 2.60.
73308         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73309         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73310         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73311
73312 2006-04-19  Derek Price  <derek@ximbiot.com>
73313             Eric Blake  <ebb9@byu.net>
73314
73315         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73316         rather than "/full/path.h".  Update comment to match.  Shorten &
73317         generalize m4_translit call via AS_TR_CPP.
73318
73319 2006-04-19  Derek Price  <derek@ximbiot.com>
73320             Eric Blake  <ebb9@byu.net>
73321
73322         * lib/inttypes.h: Correct grammar in comment.
73323
73324 2006-04-18  Derek Price  <derek@ximbiot.com>
73325             Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * modules/inttypes: New file.
73328         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73329
73330 2006-04-18  Derek Price  <derek@ximbiot.com>
73331             Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73334         New files.
73335
73336 2006-04-18  Derek Price  <derek@ximbiot.com>
73337             Paul Eggert  <eggert@cs.ucla.edu>
73338
73339         * lib/inttypes.h: New file.
73340         * lib/strtoimax.c: Assume <inttypes.h>.
73341
73342 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73343
73344         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73345         isn't mounted.  Problem reported by Kir Kolyshkin.
73346
73347 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73350         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73351         Derek R. Price.
73352         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73353         implementation.
73354
73355 2006-04-12  Eric Blake  <ebb9@byu.net>
73356
73357         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73358         is now done automatically by the corresponding Autoconf macro.
73359
73360 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73361
73362         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73363         time_r.h.
73364
73365 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         Merge regex changes from libc, removing some of our
73368         POSIX-conformance changes that were rejected and redoing them in a
73369         less-intrusive way.
73370
73371         * lib/regcomp.c (re_compile_internal, init_dfa):
73372         Length arg is now size_t, not Idx.  All uses changed.
73373         (peek_token): Forward decl now says internal_function.
73374         (__re_error_msgid, __re_error_msgid_idx):
73375         Now static rather than extern with attribute_hidden.
73376         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73377         For some reason libc prefers K&R style defns for external functions.
73378         (regerror) [!defined _LIBC]: Likewise.
73379         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73380         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73381         (build_range_exp, build_collating_symbol):
73382         Use K&R-style defn.
73383         (re_compile_fastmap): Use '\0' to memset, not 0.
73384         (utf8_sb_map): Make the calculations more obvious.
73385         (init_dfa, parse_bracket_exp, build_charclass_op):
73386         Call calloc and cast result, as glibc does.
73387         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73388         (build_range_exp, build_collating_symbol):
73389         Now internal functions.
73390
73391         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73392
73393         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73394         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73395         Don't depend on VMS; depend on __VMS instead, for POSIX
73396         namespace cleanness.
73397         (regoff_t): Define to ssize_t, not long int.
73398
73399         Remove the REG_ macros named below.  Instead, make the old names
73400         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73401         __USE_GNU_REGEX.
73402         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73403         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73404         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73405         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73406         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73407         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73408         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73409         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73410         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73411         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73412         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73413         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73414         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73415         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73416         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73417         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73418         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73419         (REG_NREGS):
73420         Remove.  All uses replaced by the old RE_* names.
73421         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73422         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73423         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73424         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73425         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73426         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73427         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73428         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73429         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73430         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73431         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73432         Don't bother having these macros be independent of each others'
73433         values, since they no longer exist in the POSIX name space.
73434
73435         Rename the following member names back to their old names,
73436         unless !__USE_GNU_REGEX.  All uses changed back.
73437         (buffer): Renamed from re_buffer.
73438         (allocated): Renamed from re_allocated.
73439         (used): Renamed from re_used.
73440         (syntax): Renamed from re_syntax.
73441         (fastmap): Renamed from re_fastmap.
73442         (translate): Renamed from re_translate.
73443         (can_be_null): Renamed from re_can_be_null.
73444         (regs_allocated): Renamed from re_regs_allocated.
73445         (fastmap_accurate): Renamed from re_fastmap_accurate.
73446         (no_sub): Renamed from re_no_sub.
73447         (not_bol): Renamed from re_not_bol.
73448         (not_eol): Renamed from re_not_eol.
73449         (newline_anchor): Renamed from re_newline_anchor.
73450         (num_regs): Renamed from rm_num_regs.
73451         (start): Renamed from rm_start.
73452         (end): Renamed from rm_end.
73453
73454         (free_state): Move up a bit.
73455
73456         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73457         #define to be empty.
73458         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73459         when that is what is intended.
73460         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73461         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73462         (MAX): New macro.
73463         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73464         All uses changed back to re_malloc, etc.  It's now the caller's
73465         responsibility to check for overflow; all callers changed.
73466         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73467         (re_x2nrealloc): Remove.
73468         (free_state): Remove decl.
73469
73470         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73471         (re_set_registers, re_exec):
73472         Use K&R-style defn.
73473
73474         2006-01-31  Roland McGrath  <roland@redhat.com>
73475
73476         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73477         Reported by Mike Frysinger <vapier@gentoo.org>.
73478
73479         2006-01-15  Andreas Jaeger  <aj@suse.de>
73480
73481         [BZ #1950]
73482         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73483         build_wcs_upper_buffer change.
73484         (build_wcs_upper_buffer): Change return type.
73485
73486         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73487
73488         * lib/regex_internal.h: Include <stdint.h> if available.
73489
73490         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73491
73492         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73493
73494         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73495
73496         * lib/regcomp.c: Adjust for changed secondary hash function.
73497
73498         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73499
73500         * lib/regex.h: Pretty printing.
73501         Clean up namespace a bit.
73502
73503         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73504
73505         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73506         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73507
73508         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73509                     Ulrich Drepper  <drepper@redhat.com>
73510
73511         [BZ #1302]
73512         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73513         changed.
73514         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73515
73516         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73517
73518         [BZ #281]
73519         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73520         * lib/regcomp.c: Remove unnecessary uses of
73521         unsigned RE_TRANSLATE_TYPE.
73522         * lib/regex_internal.h: Likewise.
73523         * lib/regex_internal.c: Likewise.
73524         * lib/regexec.c: Likewise.
73525         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73526
73527         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73528
73529         * lib/regexec.c (find_recover_state): Remove unnecessary
73530         initialization.
73531         (transit_state_bkref): Make DFA a const pointer.
73532         (get_subexp): Likewise.
73533         (check_arrival): Likewise.
73534         (update_cur_sifted_state): Likewise.
73535         (re_search_internal): Likewise.
73536         (prune_impossible_nodes): Likewise.
73537         (acquire_init_state_context): Likewise.
73538         (proceed_next_node): Likewise.
73539         (set_regs): Likewise.
73540         (free_fail_stack_return): Likewise.
73541         (check_arrival_expand_ecl): Mark DFA parameter as const.
73542         (check_arrival_expand_ecl_sub): Likewise.
73543         (check_subexp_limits): Likewise.
73544         (sub_epsilon_src_nodes):  Likewise.
73545         (add_epsilon_src_nodes):  Likewise.
73546         (merge_state_array): Likewise.
73547         (update_regs): Likewise.
73548         (build_trtable): Likewise.
73549         (sift_states_backward): Mark MCTX parameter as const.
73550         (build_sifted_states): Likewise.
73551         (update_cur_sifted_state): Likewise.
73552         (sift_states_mkref): Likewise.
73553         (check_arrival_expand_ecl): Mark eclosure as const.
73554         (check_dst_limits_calc_pos_1): Likewise.
73555         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73556         pointer.
73557
73558         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73559
73560         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73561         (transit_state_sb): Likewise.
73562         (transit_state_mb): Likewise.
73563         (sift_states_iter_mb): Likewise.
73564         (check_arrival_add_next_nodes): Likewise.
73565         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73566         [_LIBC] (re_search_2_stub): Use mempcpy.
73567
73568         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73569         mbrtowc for very simple UTF-8 case.
73570
73571         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73572         a pointer-to-const.
73573         (re_acquire_state_context): Likewise.
73574         * lib/regex_internal.h: Adjust prototypes.
73575
73576         * lib/regex.c: Prevent using C++ compilers.
73577
73578         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73579         (re_acquire_state_context): Likewise.
73580
73581 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * modules/regex (Depends-on): Add ssize_t.
73584
73585 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73588         translation table.
73589
73590 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73593
73594 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73595             Bruno Haible  <bruno@clisp.org>
73596
73597         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73598         <sys/types.h> and <inttypes.h>.
73599
73600 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73601
73602         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73603         `__error_t_defined', so argp.h will not typedef the former.
73604
73605 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73606
73607         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73608         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73609         glibc names.  Even if glibc is changed to conform to POSIX, the
73610         traditional names will be available anyway, since regex depends on
73611         the extensions module.  Also, fix a longstanding typo in the
73612         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73613         reported by Emanuele Giaquinta.  Also, change sense of cached
73614         variable, so that the message makes sense.
73615
73616 2006-03-24  Simon Josefsson  <jas@extundo.com>
73617
73618         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73619         including some doc fixes.
73620         (base64_encode_alloc): Fix +1 bug on allocation failures.
73621
73622 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73623
73624         * lib/base64.c (base64_encode): Do not read past end of array with
73625         unsanitized input on systems with CHAR_BIT > 8.
73626
73627 2006-03-24  Eric Blake  <ebb9@byu.net>
73628
73629         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73630
73631 2006-03-22  Karl Berry  <karl@gnu.org>
73632
73633         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73634         * config/srclistvars.sh (COREUTILS): new var.
73635
73636 2006-03-17  Jim Meyering  <jim@meyering.net>
73637
73638         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73639         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73640
73641 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73644         no longer needs it.  Instead, check that regoff_t is as least
73645         as wide as ptrdiff_t.
73646
73647         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73648         so that our regex.h stays compatible with the installed regex.
73649         This is helpful for installers who configure --without-included-regex.
73650         Problem reported by Emanuele Giaquinta.
73651
73652 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73653
73654         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73655         Typedef to long int, not to off_, as POSIX will likely change
73656         in that direction.
73657
73658 2006-03-15  Eric Blake  <ebb9@byu.net>
73659
73660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73661
73662 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73663
73664         * lib/argp-help.c (validate_uparams): Fix typo
73665         * lib/argp-parse.c (argp_default_options): Consistently begin help
73666         messages with a lowercase letter.
73667
73668 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73671         overrun buffers and shouldn't be used (much as gets shouldn't be
73672         used).
73673         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73674
73675 2006-03-08  Simon Josefsson  <jas@extundo.com>
73676
73677         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73678         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73679
73680 2006-03-08  Simon Josefsson  <jas@extundo.com>
73681
73682         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73683         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73684
73685 2006-03-08  Simon Josefsson  <jas@extundo.com>
73686
73687         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73688         signal that configure disabled the device.
73689
73690 2006-03-08  Simon Josefsson  <jas@extundo.com>
73691
73692         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73693         languages.
73694
73695 2006-03-07  Simon Josefsson  <jas@extundo.com>
73696
73697         * modules/getopt (Depends-on): Add unistd.
73698
73699         * modules/unistd: New file.
73700
73701 2006-03-07  Simon Josefsson  <jas@extundo.com>
73702
73703         * modules/gc-random: New file.
73704
73705 2006-03-07  Simon Josefsson  <jas@extundo.com>
73706
73707         * m4/unistd_h.m4: New file.
73708
73709 2006-03-07  Simon Josefsson  <jas@extundo.com>
73710
73711         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73712         test to be side-effect free by storing the result in the cache
73713         variable gl_cv_lib_readline, and moving the assignment of
73714         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73715         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73716
73717 2006-03-07  Simon Josefsson  <jas@extundo.com>
73718
73719         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73720         error on missing devices (the functions will return an error).
73721
73722         * m4/gc.m4: Move random stuff to gc-random.m4
73723
73724 2006-03-07  Simon Josefsson  <jas@extundo.com>
73725
73726         * lib/unistd_.h: New file.
73727
73728 2006-03-07  Simon Josefsson  <jas@extundo.com>
73729
73730         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73731
73732 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73733
73734         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73735         Problem reported by Juan Manuel Guerrero.
73736
73737 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73740         the unistd module.
73741         * lib/getlogin_r.c: Likewise.
73742         * lib/getlogin_r.h: Likewise.
73743         * lib/glob.c: Likewise.
73744         * lib/pagealign_alloc.c: Likewise.
73745         * lib/unistd_.h: Remove; no longer needed.
73746
73747 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73750         Add unistd.
73751         * modules/c-stack (Depends-on): Add unistd.
73752         * modules/getlogin_r: Likewise.
73753         * modules/glob: Likewise.
73754         * modules/pagealign_alloc: Likewise.
73755         * modules/unistd (Files): Remove lib/unistd_.h.
73756         (EXTRA_DIST): Remove.
73757         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73758         need unistd_.h.
73759         (MOSTLYCLEANFILES): Remove unistd.h-t.
73760
73761 2006-03-03  Simon Josefsson  <jas@extundo.com>
73762
73763         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73764
73765 2006-03-03  Simon Josefsson  <jas@extundo.com>
73766
73767         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73768         libidn and bison.
73769
73770 2006-03-03  Simon Josefsson  <jas@extundo.com>
73771
73772         * build-aux/maint.mk: Add indent target.
73773
73774 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73775
73776         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73777         our replacement poll.h in any case, to avoid a differing
73778         declaration from a system header.  Seen on AIX.
73779
73780 2006-03-01  Simon Josefsson  <jas@extundo.com>
73781
73782         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73783         <kasal@ucw.cz>.
73784
73785 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         * modules/gettime (Depends-on): Add extensions module.
73788         * modules/nanosleep (Depends-on): Likewise.
73789         * modules/settime (Depends-on): Likewise.
73790
73791 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73794         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73795         pedantically.
73796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73797         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73798
73799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73800         not "==".  Reported by Ralf Wildenhues.
73801
73802 2006-03-01  Karl Berry  <karl@gnu.org>
73803
73804         * doc/Copyright/request-*: new files, synced from gnuorg.
73805
73806 2006-03-01  Karl Berry  <karl@gnu.org>
73807
73808         * config/srclist.txt (Copyright/*): new entries.
73809
73810 2006-02-28  Simon Josefsson  <jas@extundo.com>
73811
73812         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73813
73814 2006-02-27  Simon Josefsson  <jas@extundo.com>
73815
73816         * lib/base64.h: Indent #define's.  From Jim Meyering
73817         <jim@meyering.net>.
73818
73819 2006-02-27  Jim Meyering  <jim@meyering.net>
73820
73821         Revert the change of 2006-02-24, so these files can continue
73822         to be sync'd from gettext.
73823         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73824         of `config.h'.
73825
73826 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * modules/intprops: New file.
73829         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73830         Add intprops.
73831         * modules/getloadavg (Files): Remove lib/intprops.h.
73832         (Depends-on): Add intprops.
73833         * modules/human: Likewise.
73834         * modules/inttostr: Likewise.
73835         * modules/openat: Likewise.
73836         * modules/sig2str: Likewise.
73837         * modules/userspec: Likewise.
73838         * modules/utimecmp: Likewise.
73839         * modules/xnanosleep: Likewise.
73840         * modules/xstrtol: Likewise.
73841
73842 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73843
73844         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73845         * modules/lock-tests (TESTS): Use $(EXEEXT).
73846         * modules/tls-tests: Likewise.
73847         * modules/argp-tests: Likewise.
73848         (check_PROGRAMS): New var, replacing...
73849         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73850
73851 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73852
73853         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73854         `config.h'.
73855
73856 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73859
73860 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73861
73862         Sync from coreutils.
73863         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73864         gl_CHDIR_SAFER.
73865
73866 2006-02-22  Jim Meyering  <jim@meyering.net>
73867
73868         Sync from coreutils.
73869         * m4/chdir-safer.m4: New file.
73870
73871 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73872
73873         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73874         AT_FDCWD exceeds INT_MAX.
73875         * lib/openat.h (AT_FDCWD): Likewise.
73876
73877 2006-02-17  Eric Blake  <address@hidden>
73878
73879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73880
73881 2006-02-16  Simon Josefsson  <jas@extundo.com>
73882
73883         * modules/getaddrinfo (Depends-on): Add sys_socket.
73884
73885 2006-02-15  Simon Josefsson  <jas@extundo.com>
73886
73887         * build-aux/maint.mk: Add dsyntax-check rule.
73888
73889 2006-02-15  Eric Blake  <ebb9@byu.net>
73890
73891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73892         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73893         'present but cannot compile' warnings on cygwin.
73894         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73895         use ws2tcpip.h if sys/socket.h works.
73896         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73897         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73898
73899 2006-02-14  Simon Josefsson  <jas@extundo.com>
73900
73901         * modules/maintainer-makefile (Files): Rename.
73902
73903         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73904         and (the local) Makefile.cfg to maint-cfg.mk.
73905
73906         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73907         to the latter.
73908
73909         * modules/maintainer-makefile: New module.
73910
73911         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73912         severaly stripped to make it possible to build it up from scratch
73913         with reliable tests.
73914
73915         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73916         fixes to permit overriding the default actions when configure and
73917         makefile are not available.
73918
73919 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         Sync from coreutils.
73922         * modules/lstat (Depends-on): Don't depend on xalloc.
73923         (License): Change from GPL to LGPL, since this is now simply a
73924         replacement for a libc function.
73925
73926 2006-02-14  Jim Meyering  <jim@meyering.net>
73927
73928         Sync from coreutils.
73929
73930         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73931         failure on deficient systems, and simplify gnulib lgpl dependencies.
73932         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73933         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73934
73935         * lib/xalloc-die.c: Remove unused definition of N_.
73936
73937 2006-02-14  Jim Meyering  <jim@meyering.net>
73938
73939         Sync from coreutils.
73940         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73941         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73942         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73943         double-quote uses of that variable, to accommodate the rare case in
73944         which getmntent is available in none of the libraries checked.  This
73945         happens at least on FreeBSD 5.0.
73946
73947 2006-02-13  Simon Josefsson  <jas@extundo.com>
73948
73949         * gnulib-tool (Usage): Fix --import, from
73950         karl@freefriends.org (Karl Berry).
73951
73952 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73953
73954         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73955
73956 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73957
73958         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73959         "autoupdate" on 2005-12-12.
73960
73961 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * modules/closeout (Depends-on): Remove atexit.
73964
73965 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73968         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73969
73970 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73973         __EXTENSIONS__ if this causes compilation to fail.  Problem
73974         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73975         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73976
73977 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73980         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73982         All uses changed.
73983
73984 2006-01-26  Simon Josefsson  <jas@extundo.com>
73985
73986         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73987         prototype is visible on mingw32.
73988
73989         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73990         for mingw32.
73991
73992         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73993         mingw32).
73994
73995 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73998         attempt to open for write; this always fails, at least on POSIX
73999         hosts.  This reinstates the 2006-01-09 change, which was
74000         inadvertently removed.
74001
74002 2006-01-26  Bruno Haible  <bruno@clisp.org>
74003
74004         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74005         Reported by Paul Eggert.
74006
74007 2006-01-26  Bruno Haible  <bruno@clisp.org>
74008             Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/stdbool_.h (_Bool)
74011         [(! (defined __cplusplus || defined __BEOS__)
74012           && !defined __GNUC__
74013           && !(defined __HP_cc || defined __xlc__
74014                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74015                || defined __sgi))]:
74016         #define to signed char in these cases too; this simplifies
74017         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74018         etc., separately) and makes it more conservative.
74019
74020 2006-01-25  Simon Josefsson  <jas@extundo.com>
74021
74022         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74023         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74024         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74025
74026 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74027
74028         * lib/argp-namefrob.h: Bugfix. Remove stray #
74029
74030 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74033         so that we test the test.
74034         Check for yet another HP-UX cc bug involving *bool |= bool.
74035
74036 2006-01-25  Karl Berry  <karl@gnu.org>
74037
74038         * config/srclist.txt (vasnprintf.c): sync lost.
74039
74040 2006-01-25  Jim Meyering  <jim@meyering.net>
74041
74042         Sync from the stable (b5) branch of coreutils:
74043
74044         * lib/fts.c (fts_children): Don't let close() clobber errno from
74045         failed fchdir().
74046
74047         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74048         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74049         a dangling symlink.  That can also happen at least for ELOOP.
74050         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74051         FYI, this bug predates the inclusion of fts.c in coreutils.
74052
74053         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74054         in their own block, so pre-c99 compilers don't object.
74055
74056         Avoid the double-free (first in fts_read, second in fts_close) that
74057         would occur when an `active' directory is made inaccessible (e.g.,
74058         via chmod a-x) during a traversal.
74059         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74060         before returning.  Reproduce this failure by
74061         mkdir -p a/b; cd a; chmod a-x . b
74062         Reported by Stavros Passas.
74063
74064 2006-01-25  Jim Meyering  <jim@meyering.net>
74065
74066         * lib/fileblocks.c: Remove more useless parentheses.
74067         * lib/readutmp.h: Likewise.
74068
74069 2006-01-25  Bruno Haible  <bruno@clisp.org>
74070
74071         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74072         warnings.
74073         Reported by Paul Eggert.
74074
74075 2006-01-25  Bruno Haible  <bruno@clisp.org>
74076
74077         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74078         rid of a trap command. For Solaris sh.
74079         Reported by Mark D. Baushke <mdb@gnu.org>.
74080
74081 2006-01-24  Simon Josefsson  <jas@extundo.com>
74082
74083         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74084         Bruno.
74085
74086 2006-01-24  Karl Berry  <karl@gnu.org>
74087
74088         * config/srclist.txt (argp-namefrob.h): sync lost.
74089
74090 2006-01-24  Jim Meyering  <jim@meyering.net>
74091
74092         * modules/openat (Files): Add lib/intprops.h.
74093         From Mark D. Baushke.
74094
74095 2006-01-24  Jim Meyering  <jim@meyering.net>
74096
74097         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74098         Reported by Mark D. Baushke.
74099
74100 2006-01-24  Jim Meyering  <jim@meyering.net>
74101
74102         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74103
74104 2006-01-24  Bruno Haible  <bruno@clisp.org>
74105
74106         * modules/strnlen (Maintainer): Change from glibc to all.
74107
74108 2006-01-24  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74111         Patch by Paul Eggert.
74112
74113 2006-01-24  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74116         already has it.
74117         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74118         2005-11-26.
74119
74120         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74121         'signed char' to avoid problems with the built-in _Bool type.
74122         Reported by Paul Eggert on 2005-11-26.
74123
74124 2006-01-24  Bruno Haible  <bruno@clisp.org>
74125
74126         * gnulib-tool (func_import): Avoid constructing complicated sed
74127         expressions inside backquote.
74128         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74129
74130 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74131
74132         These changes imported from libc.
74133         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74134         test and two separate function calls.
74135         * lib/strndup.c (__strndup): Add libc_hidden_def.
74136
74137 2006-01-23  Simon Josefsson  <jas@extundo.com>
74138
74139         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74140         Remove the test_*_SOURCES variable: automake infers it by default.
74141         * modules/tls-tests: Likewise.
74142
74143 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74144
74145         Work around porting bugs reported by Dieter in
74146         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74147         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74148         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74149         Include "getopt.h" first, to check interface.
74150         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74151         !HAVE_DECL_GETENV.
74152         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74153         (__strndup): Revert to K&R-style function dfns, the glibc style.
74154         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74155         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74156         Include strnlen.h first, to get prototype properly.
74157         (strnlen): Renamed from __strnlen.
74158         Remove weak alias.
74159
74160 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74163
74164 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         * config/srclist.txt: Adjust to reflect glibc reorganization.
74167         This affects only comments.
74168
74169 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74170
74171          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74172          Reported by Bruce Korb <bkorb@gnu.org>.
74173
74174 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74177         to pacify gcc -Wswitch-default.
74178
74179 2006-01-22  Bruno Haible  <bruno@clisp.org>
74180
74181         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74182         temporary buffer for sprintf, take into account the precision also
74183         for 'd', 'i', 'u', 'o', 'x', 'X'.
74184
74185 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74186
74187         * modules/argp-tests: New module
74188         * tests/test-argp.c: New file
74189         * tests/test-argp-2.sh: New file
74190
74191 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74192
74193         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74194         (__argp_base_name): Removed
74195         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74196         typo.
74197         (__argp_base_name): Provide macro definition or extern declaration
74198         depending on the configuration
74199
74200 2006-01-20  Simon Josefsson  <jas@extundo.com>
74201
74202         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74203
74204 2006-01-20  Simon Josefsson  <jas@extundo.com>
74205
74206         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74207
74208 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74211         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74212         Suggested by Bruno Haible.
74213
74214 2006-01-20  Karl Berry  <karl@gnu.org>
74215
74216         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74217         until changes propagate, I guess.
74218
74219 2006-01-19  Simon Josefsson  <jas@extundo.com>
74220
74221         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74222
74223 2006-01-19  Simon Josefsson  <jas@extundo.com>
74224
74225         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74226
74227 2006-01-19  Simon Josefsson  <jas@extundo.com>
74228
74229         * gnulib-tool: Set check_PROGRAMS.
74230
74231         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74232         modules/des-tests, modules/gc-arcfour-tests,
74233         modules/gc-arctwo-tests, modules/gc-des-tests,
74234         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74235         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74236         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74237         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74238         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74239         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74240         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74241         test_*_SOURCES.
74242
74243 2006-01-18  Simon Josefsson  <jas@extundo.com>
74244
74245         * modules/socklen (Depends-on): Depend on sys_socket.
74246
74247 2006-01-18  Simon Josefsson  <jas@extundo.com>
74248
74249         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74250         modules/des-tests, modules/gc-arcfour-tests,
74251         modules/gc-arctwo-tests, modules/gc-des-tests,
74252         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74253         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74254         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74255         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74256         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74257         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74258         $(EXEEXT) to automake TESTS variable, for mingw32.
74259
74260 2006-01-17  Simon Josefsson  <jas@extundo.com>
74261
74262         * modules/socklen (Include): Need sys/socket.h.
74263
74264 2006-01-17  Bruno Haible  <bruno@clisp.org>
74265
74266         * modules/ssize_t (Include): Add <sys/types.h>.
74267
74268 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74269
74270         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74271         it's not portable and it doesn't work with cross-compiles.
74272         Problem reported by Bruno Haible.  Fix missing-$ typo in
74273         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74274         -zignore from being used with Sun's C compiler.
74275
74276 2006-01-12  Simon Josefsson  <jas@extundo.com>
74277
74278         * lib/base64.c: Fix warning, reported by Bruno Haible
74279         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74280
74281 2006-01-12  Bruno Haible  <bruno@clisp.org>
74282
74283         * modules/ldd: New file.
74284         * build-aux/ldd.sh.in: New file.
74285         * MODULES.html.sh (Support for building libraries and executables): Add
74286         ldd.
74287
74288 2006-01-12  Bruno Haible  <bruno@clisp.org>
74289
74290         * m4/ldd.m4: New file.
74291
74292 2006-01-12  Bruno Haible  <bruno@clisp.org>
74293
74294         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74295         endless loop while replacing $auxdir with build-aux.
74296
74297 2006-01-11  Simon Josefsson  <jas@extundo.com>
74298
74299         * lib/stdint_.h (SIZE_MAX): Add missing (.
74300
74301 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         Sync from coreutils.
74304         * lib/md5.c: Fix commentary typos.
74305         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74306         * lib/md5.h (__attribute__): Remove; unused.
74307         * lib/sha1.c: Fix commentary to match md5 better.
74308         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74309         so that we don't need to worry about alignment.  All uses changed.
74310         This merges the 2005-10-28 md5 change into sha1.
74311
74312 2006-01-11  Jim Meyering  <jim@meyering.net>
74313
74314         Sync from coreutils.
74315         * lib/md5.c (OP): Fix spacing.
74316
74317 2006-01-11  Bruno Haible  <bruno@clisp.org>
74318
74319         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74320         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74321         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74322
74323 2006-01-11  Bruno Haible  <bruno@clisp.org>
74324
74325         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74326         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74327         the "early" section as well.
74328
74329 2006-01-11  Bruno Haible  <bruno@clisp.org>
74330
74331         Avoid "ar: no archive members specified" error on MacOS X.
74332         * gnulib-tool (func_modules_add_dummy): New function.
74333         (func_import, func_create_testdir): Invoke it.
74334
74335 2006-01-11  Bruno Haible  <bruno@clisp.org>
74336
74337         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74338         with $auxdir in AC_CONFIG_FILES statements.
74339
74340 2006-01-11  Bruno Haible  <bruno@clisp.org>
74341
74342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74343         Initialize also noinst_HEADERS to empty.
74344
74345 2006-01-11  Bruno Haible  <bruno@clisp.org>
74346
74347         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74348         variables.
74349         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74350         autoreconf.
74351
74352 2006-01-11  Bruno Haible  <bruno@clisp.org>
74353
74354         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74355         overridable by the user.
74356         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74357
74358 2006-01-10  Simon Josefsson  <jas@extundo.com>
74359
74360         * modules/sys_socket: New file.
74361
74362 2006-01-10  Simon Josefsson  <jas@extundo.com>
74363
74364         * m4/sys_socket_h.m4: New file.
74365
74366 2006-01-10  Simon Josefsson  <jas@extundo.com>
74367
74368         * lib/socket_.h: New file.
74369
74370 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         * modules/readutmp (Maintainer): Add myself.
74373
74374 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74377         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74378         People who are still concerned with buggy memcmp implementations
74379         can invoke gl_FUNC_MEMCMP themselves.
74380
74381 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * lib/regex_internal.h (BITSET_WORD_BITS):
74384         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74385         preprocessor mishandles large unsigned values as if they were signed.
74386         Problem reported by Claudio Fontana in
74387         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74388
74389 2006-01-10  Jim Meyering  <jim@meyering.net>
74390
74391         Avoid the double-free (first in fts_read, second in fts_close) that
74392         would occur when an `active' directory is made inaccessible (e.g.,
74393         via chmod a-x) during a traversal.
74394         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74395         before returning.  Reproduce this failure by
74396         mkdir -p a/b; cd a; chmod a-x . b
74397         Reported by Stavros Passas.
74398
74399         Sync from coreutils.
74400         * lib/sha1.c: Tweak grammar in a comment.
74401
74402 2006-01-10  Jim Meyering  <jim@meyering.net>
74403
74404         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74405         Patch by Joerg Sonnenberger.
74406
74407 2006-01-10  Bruno Haible  <bruno@clisp.org>
74408
74409         * modules/readutmp: Depend on module free.
74410         * modules/strtok_r: Depend on module restrict.
74411
74412 2006-01-10  Bruno Haible  <bruno@clisp.org>
74413
74414         * modules/gettext (configure.ac): Add an invocation of
74415         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74416
74417 2006-01-10  Bruno Haible  <bruno@clisp.org>
74418
74419         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74420         Reported by Werner Lemberg <wl@gnu.org>.
74421
74422 2006-01-10  Bruno Haible  <bruno@clisp.org>
74423
74424         * lib/localcharset.c: Update from GNU gettext.
74425
74426 2006-01-10  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/argp.h (__const): Remove macro. Use const instead.
74429         * lib/argp-fmtstream.h (__const): Likewise.
74430         * lib/glob_.h (__const): Remove macro.
74431         * lib/glob-libc.h: Use const instead of __const.
74432
74433 2006-01-10  Bruno Haible  <bruno@clisp.org>
74434
74435         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74436         variable.
74437         Needed to avoid an automake error regarding the 'gettext' module.
74438
74439 2006-01-09  Simon Josefsson  <jas@extundo.com>
74440
74441         * modules/inet_ntop (Depends-on): Add restrict.
74442
74443 2006-01-09  Simon Josefsson  <jas@extundo.com>
74444
74445         * modules/gc-rijndael-tests (License): Put under LGPL.
74446
74447         * modules/gc-des-tests (License): Likewise.
74448
74449         * modules/gc-arcfour-tests (License): Likewise.
74450
74451         * modules/gc-arctwo-tests (License): Likewise.
74452
74453         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74454
74455         * modules/gc-hmac-sha1-tests (Files): Likewise.
74456
74457         * modules/gc-hmac-md5-tests (License): Likewise.
74458
74459         * modules/gc-sha1-tests (License): Likewise.
74460
74461         * modules/gc-md5-tests (License): Likewise.
74462
74463         * modules/gc-md4-tests (License): Likewise.
74464
74465         * modules/gc-md2-tests (License): Likewise.
74466
74467         * modules/gc-tests (License): Likewise.
74468
74469         * modules/des-tests (License): Likewise.
74470
74471         * modules/md4-tests (License): Likewise.
74472
74473         * modules/md2-tests (License): Likewise.
74474
74475 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         Sync from coreutils:
74478
74479         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74480         * modules/lib-ignore: New file.
74481         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74482         chdir-safer.m4, lchmod.m4.
74483         * modules/openat: Add mkdirat.c, openat-priv.h.
74484
74485 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         Sync from coreutils.
74488         * m4/lib-ignore.m4: New file.
74489         * m4/lchmod.m4: New file.
74490
74491 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         Sync from coreutils.
74494         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74495         for write access: POSIX says that must fail.
74496         * lib/fts.c (diropen): Likewise.
74497         * lib/save-cwd.c (save_cwd): Likewise.
74498         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74499         well, for minor improvements on hosts that lack O_DIRECTORY.
74500         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74501         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74502         Fall back on chown if open failed with EACCES.
74503
74504         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74505         Report an error at compile-time if only a 1-second nominal clock
74506         resolution is found.
74507
74508         * lib/lchmod.h: New file.
74509         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74510         (make_dir_parents): Use lchown rather than chown, and
74511         lchmod rather than chmod.
74512
74513         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74514         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74515         "proc" reported by n0dalus.
74516
74517         * lib/mountlist.c: Include <limits.h>.
74518         (dev_from_mount_options)
74519         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74520         New function.  It no longer assumes "dev=" has the System V meaning
74521         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74522         (read_file_system_list)
74523         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74524         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74525         dev= in that case.
74526
74527         * lib/posixtm.h (PDS_PRE_2000): New macro.
74528         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74529         allow_century.  All usages changed.  Reject dates outside the range
74530         1969-1999 if PDS_PRE_2000 is used.
74531
74532 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         Sync from coreutils.
74535         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74536         (Time of day items): Mention the possibility of leap seconds.
74537         Problem reported by Dr. David Alan Gilbert.
74538
74539 2006-01-09  Jim Meyering  <jim@meyering.net>
74540
74541         Sync from coreutils.
74542
74543         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74544
74545         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74546
74547         * lib/modechange.c (mode_compile): Reject an invalid mode string
74548         that starts with an octal digit.  From Andreas Gruenbacher.
74549
74550         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74551         and dup to open_safer and dup_safer, respectively.
74552         (openat_permissive): Fix typo in comment.
74553
74554         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74555         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74556         (_): Remove; no longer needed.
74557         (openat): Renamed from rpl_openat; no need for rpl_openat
74558         since openat.h renames openat for us.
74559         Replace most of the body with a call to openat_permissive,
74560         to avoid duplicate code.
74561         Port to (probably hypothetical) environments were mode_t is
74562         wider than int.
74563         (openat_permissive): Require mode arg, so that we can check
74564         types better.  Put it just after flags.  Change cwd failure
74565         indicator from pointer-to-bool to pointer-to-errno-value.
74566         All callers changed.
74567         Invoke openat_save_fail and/or openat_restore_fail if
74568         cwd_errno is null, so that openat can call us.
74569         (openat_permissive, fdopendir, fstatat, unlinkat):
74570         Simplify errno handling to avoid some duplicate code,
74571         as it's OK to set errno on success.
74572         * lib/openat.h: Revamp code so that function macros depend on
74573         __OPENAT_PREFIX only, not also on AT_FDCWD.
74574         (openat_ro): Remove.  Caller changed to use openat_permissive.
74575         (openat_permissive): Now a macro, if not a function.
74576         (openat_restore_fail, openat_save_fail): Now always functions,
74577         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74578
74579         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74580         and openat.c.
74581         * lib/mkdirat.c: Include openat-priv.h.
74582         Remove definitions of macros defined therein.
74583         * lib/openat.c: Likewise.
74584
74585         * lib/mkdirat.c (mkdirat): New file and function.
74586         * lib/openat.h (mkdirat): Declare.
74587
74588         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74589
74590         * lib/openat.h (openat_permissive): Declare.
74591         (openat_ro): Define.
74592
74593         * lib/openat.c (EXPECTED_ERRNO): New macro.
74594         (openat_permissive): New function -- used in remove.c rewrite.
74595         (all functions): Set errno just before returning, only if there
74596         was an actual failure.
74597         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74598
74599         Emulate openat-family functions using Linux's procfs, if possible.
74600         Idea and some code based on Ulrich Drepper's glibc changes.
74601
74602         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74603         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74604         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74605         before falling back on save_cwd and restore_cwd.
74606         (fdopendir, fstatat, unlinkat): Likewise.
74607
74608         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74609         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74610
74611         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74612         as second argument to va_arg.  Otherwise, some versions of gcc
74613         warn that `if this code is reached, the program will abort'.
74614
74615 2006-01-09  Jim Meyering  <jim@meyering.net>
74616
74617         Sync from coreutils.
74618         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74619         Require openat-priv.h.
74620
74621 2006-01-09  Bruno Haible  <bruno@clisp.org>
74622
74623         * modules/strnlen (Include): Use strnlen.h.
74624
74625 2006-01-09  Bruno Haible  <bruno@clisp.org>
74626
74627         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74628
74629 2006-01-09  Bruno Haible  <bruno@clisp.org>
74630
74631         * lib/sysexit_.h (EX_OK): New macro.
74632         Suggested by Martin Lambers <marlam@marlam.de>.
74633
74634 2006-01-09  Bruno Haible  <bruno@clisp.org>
74635
74636         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74637         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74638
74639 2006-01-09  Bruno Haible  <bruno@clisp.org>
74640
74641         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74642         numbers.
74643
74644 2006-01-09  Bruno Haible  <bruno@clisp.org>
74645
74646         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74647         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74648         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74649         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74650
74651 2006-01-09  Bruno Haible  <bruno@clisp.org>
74652
74653         * build-aux/javacomp.sh.in: New file, moved from lib/.
74654         * modules/javacomp-script (Files): Update.
74655         (configure.ac): Add AC_CONFIG_FILES invocation.
74656         (EXTRA_DIST): Remove variable.
74657
74658         * build-aux/javaexec.sh.in: New file, moved from lib/.
74659         * modules/javaexec (Files): Update.
74660         (configure.ac): Add AC_CONFIG_FILES invocation.
74661         (EXTRA_DIST): Remove javaexec.sh.in.
74662
74663         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74664         * modules/csharpcomp-script (Files): Update.
74665         (configure.ac): Add AC_CONFIG_FILES invocation.
74666         (EXTRA_DIST): Remove variable.
74667
74668         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74669         * modules/csharpexec (Files): Update.
74670         (configure.ac): Add AC_CONFIG_FILES invocation.
74671         (EXTRA_DIST): Remove csharpexec.sh.in.
74672
74673 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74674
74675         Sync from coreutils.
74676
74677         Add POSIX ACL support
74678         * lib/acl.h (copy_acl, set_acl): Add declarations.
74679         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74680         systems other than Linux.
74681         (chmod_or_fchmod): New function: use fchmod when possible,
74682         and chmod otherwise.
74683         (file_has_acl): Add a POSIX ACL implementation, with a
74684         Linux-specific subcase.
74685         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74686         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74687         acls are unsupported.
74688         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74689         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74690         are unsupported.
74691
74692 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74693
74694         Sync from coreutils.
74695         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74696
74697 2006-01-07  Bruno Haible  <bruno@clisp.org>
74698
74699         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74700         gl_EARLY.
74701
74702 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74705         Problem reported for Mingw by Mark Junker.
74706
74707 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         * README: Gnulib normally doesn't generate a tarball.
74710
74711 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74714         long int, not int, for nanosecond counts, so that people who are
74715         used to POSIX struct timespec won't be surprised.  Reported by Jim
74716         Meyering.
74717
74718 2005-12-28  Bruno Haible  <bruno@clisp.org>
74719
74720         * build-aux/config.rpath: Update from GNU gettext.
74721
74722 2005-12-16  Jim Meyering  <jim@meyering.net>
74723
74724         * modules/fprintftime: New module.
74725         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74726
74727 2005-12-16  Jim Meyering  <jim@meyering.net>
74728
74729         * m4/fprintftime.m4: New file.
74730
74731 2005-12-16  Jim Meyering  <jim@meyering.net>
74732
74733         * lib/fprintftime.c, lib/fprintftime.h: New files.
74734
74735 2005-12-15  Simon Josefsson  <jas@extundo.com>
74736
74737         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74738         new m4/socklen.m4.
74739
74740 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74741
74742         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74743         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74744
74745 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74746
74747         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74748         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74749         struct uparams is valid. Fall back to the default values if it is
74750         not.
74751
74752 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74753
74754         * modules/argp (Files): Add argp-pin.c
74755         (Depends-on): dirname
74756         (lib_SOURCES): Add argp-pin.c
74757
74758 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74759
74760         * m4/argp.m4:  Check if program_invocation_name and
74761         program_invocation_short_name are declared and define appropriate
74762         macros if they are not.
74763
74764 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74765
74766         * lib/argp-help.c (__argp_base_name): New function
74767         (__argp_short_program_name): Rewrite using __argp_base_name
74768         * lib/argp-namefrob.h: Define program_invocation_name and
74769         program_invocation_short_name if requested
74770         (__argp_base_name): Add prototype
74771         * lib/argp-parse.c (argp_def): Use gettext wrappers
74772         (argp_default_parser): Use __argp_base_name
74773         * lib/argp-pin.c: New file. Defines program_invocation_name and
74774         program_invocation_short_name on systems that lack them.
74775
74776 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74779         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74780         porting problem reported by Georg Schwarz in
74781         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74782
74783 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74786         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74787         porting problem reported by Georg Schwarz in
74788         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74789
74790 2005-12-05  Bruno Haible  <bruno@clisp.org>
74791
74792         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74793         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74794         Reported by Mark Junker <mjscod@gmx.de>.
74795
74796 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74799         Use implementation from Albert Chin, with some
74800         comments/corrections by Stepan Kasal and myself.
74801
74802 2005-12-02  Bruno Haible  <bruno@clisp.org>
74803
74804         * gnulib-tool (func_import): Accept GPLed build tool modules when
74805         --lgpl is given.
74806         * modules/csharpcomp-script: New file.
74807         * modules/csharpcomp: Depend on it.
74808         * modules/javacomp-script: New file.
74809         * modules/javacomp: Depend on it.
74810         Suggested by Simon Josefsson.
74811
74812 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74815         statement, to work around an HP-UX 10.20 compiler bug reported by
74816         Peter O'Gorman.
74817
74818 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * modules/savedir (Depends-on): Add openat.
74821
74822 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74825         (uintmax_t) [defined uintmax_t]: Do not declare.
74826         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74827         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74828         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74829         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74830         sake of portability to weird hosts that C allows (though we don't
74831         know of any practical examples).
74832
74833         * lib/savedir.h (fdsavedir): New decl.
74834         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74835         contains most of the former guts of savedir.
74836         (savedir): Use savedirstream.
74837         Include "openat.h".
74838
74839 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * modules/obstack (Files): Add m4/ulonglong.m4.
74842         Problem reported by Davide Angelocola.
74843
74844 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74847         coreutils no longer futzes with rounding modes.
74848
74849 2005-11-14  Jim Meyering  <jim@meyering.net>
74850
74851         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74852         replacement of mkstemp.
74853
74854 2005-11-10  Simon Josefsson  <jas@extundo.com>
74855
74856         * lib/readline.c: Remove EOL.
74857
74858 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         * modules/gethrxtime (Depends-on): Add gettime.
74861
74862 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74865         or gettimeofday; no longer needed.
74866
74867 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74870         time business.
74871         (gethrxtime) [! (HAVE_NANOUPTIME
74872         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74873         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74874         our own approximation.
74875
74876 2005-11-08  Eric Blake  <ebb9@byu.net>
74877
74878         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74879
74880 2005-11-08  Eric Blake  <ebb9@byu.net>
74881
74882         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74883
74884 2005-11-04  Bruno Haible  <bruno@clisp.org>
74885
74886         * gnulib-tool: Implement --update mode.
74887
74888 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         Fix porting problem reported by Theodoros V. Kalamatianos.
74891         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74892         Don't assume that futimes failing means we must fail.
74893
74894 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74895
74896         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74897         variables to suggest the intended function of the PATH_MAX check.
74898
74899 2005-10-30  Kean Johnston  <jkj@sco.com>
74900
74901         Trivial changes to support SCO systems.
74902         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74903         as PATH_MAX.
74904         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74905         where __ptr is null when no I/O is pending.
74906
74907 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74910         leave errno alone.  Problem reported by Dmitry V. Levin.
74911
74912 2005-10-28  Simon Josefsson  <jas@extundo.com>
74913
74914         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74915         Test more.
74916
74917         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74918
74919         * modules/md2, modules/md2-tests: New files.
74920
74921 2005-10-28  Simon Josefsson  <jas@extundo.com>
74922
74923         * m4/inet_ntop.m4: More tests.
74924
74925         * m4/gc-md2.m4, md2.m4: New file.
74926
74927 2005-10-28  Simon Josefsson  <jas@extundo.com>
74928
74929         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74930         "restrict" keywords, as per POSIX.  Protect the function
74931         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74932         Don't use K&R prototypes.  Check the sprintf return values.
74933         Re-define EAFNOSUPPORT if not present.  Indent.
74934
74935         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74936         suggested by Bruno Haible <bruno@clisp.org>.
74937
74938         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74939
74940         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74941
74942         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74943         libgcrypt).
74944
74945         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74946
74947         * lib/md2.h, lib/md2.c: New files.
74948
74949 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74952         errno alone.  Problem reported by Frederic Jolliton.
74953
74954 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * modules/verify (License): Change from GPL to LGPL.  This is a
74957         tiny module and there are apparently near-equivalents that are
74958         under the BSD license.
74959
74960 2005-10-24  Simon Josefsson  <jas@extundo.com>
74961
74962         * modules/sha1: Relicense to LGPL.
74963
74964 2005-10-24  Simon Josefsson  <jas@extundo.com>
74965
74966         * lib/md4.h: Shrink buffer size, now that we changed the type.
74967
74968 2005-10-23  Simon Josefsson  <jas@extundo.com>
74969
74970         * gnulib-tool (func_import): Fix --tests-base.
74971
74972 2005-10-22  Simon Josefsson  <jas@extundo.com>
74973
74974         * modules/arcfour (Depends-on): Need stdint.
74975
74976 2005-10-22  Simon Josefsson  <jas@extundo.com>
74977
74978         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74979         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74980
74981 2005-10-22  Simon Josefsson  <jas@extundo.com>
74982
74983         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74984         suggested by Bruno Haible <bruno@clisp.org>.
74985
74986 2005-10-22  Simon Josefsson  <jas@extundo.com>
74987
74988         * lib/crc.h: Include stddef.h, for size_t.
74989
74990 2005-10-22  Simon Josefsson  <jas@extundo.com>
74991
74992         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74993         arcfour_context struct (simplify test vector testing in GNU
74994         Shishi).
74995
74996 2005-10-21  Simon Josefsson  <jas@extundo.com>
74997
74998         * modules/des, modules/des-tests: New files.
74999
75000         * modules/gc-des, modules/gc-des-tests: New files.
75001
75002         * tests/test-des.c, tests/test-gc-des.c: New file.
75003
75004 2005-10-21  Simon Josefsson  <jas@extundo.com>
75005
75006         * modules/arctwo, modules/arctwo-tests: New files.
75007
75008         * tests/test-arctwo.c: New file.
75009
75010         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75011
75012         * tests/test-gc-arctwo.c: New file.
75013
75014 2005-10-21  Simon Josefsson  <jas@extundo.com>
75015
75016         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75017         Bruno Haible <bruno@clisp.org>.
75018
75019         * m4/gc-des.m4: New file.
75020
75021 2005-10-21  Simon Josefsson  <jas@extundo.com>
75022
75023         * m4/arctwo.m4: New file.
75024
75025         * m4/gc-arctwo.m4: New file.
75026
75027 2005-10-21  Simon Josefsson  <jas@extundo.com>
75028
75029         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75030         block.
75031
75032 2005-10-21  Simon Josefsson  <jas@extundo.com>
75033
75034         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75035         <bruno@clisp.org>.
75036
75037         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75038
75039         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75040         Bruno Haible <bruno@clisp.org>.
75041
75042         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75043         <bruno@clisp.org>.
75044
75045 2005-10-21  Simon Josefsson  <jas@extundo.com>
75046
75047         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75048
75049 2005-10-21  Simon Josefsson  <jas@extundo.com>
75050
75051         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75052
75053 2005-10-21  Simon Josefsson  <jas@extundo.com>
75054
75055         * lib/des.h, lib/des.c: New files.
75056
75057         * lib/gc-gnulib.c: Support DES.c
75058
75059 2005-10-21  Simon Josefsson  <jas@extundo.com>
75060
75061         * lib/arctwo.h, lib/arctwo.c: New files.
75062
75063         * lib/gc-gnulib.c: Support ARCTWO.
75064
75065 2005-10-21  Simon Josefsson  <jas@extundo.com>
75066
75067         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75068         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75069
75070 2005-10-21  Simon Josefsson  <jas@extundo.com>
75071
75072         * gnulib-tool (func_import, func_create_testdir): Define automake
75073         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75074         Makefile.am snippet),
75075         suggested by Bruno Haible <bruno@clisp.org>.
75076
75077         * modules/gc (Makefile.am): Use it.
75078
75079 2005-10-21  Bruno Haible  <bruno@clisp.org>
75080
75081         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75082         patch.
75083
75084 2005-10-19  Simon Josefsson  <jas@extundo.com>
75085
75086         * tests/test-gc-rijndael.c: New file.
75087
75088         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75089
75090 2005-10-19  Simon Josefsson  <jas@extundo.com>
75091
75092         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75093         interface too.
75094
75095 2005-10-19  Simon Josefsson  <jas@extundo.com>
75096
75097         * tests/test-gc-arcfour.c: New file.
75098
75099         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75100
75101 2005-10-19  Simon Josefsson  <jas@extundo.com>
75102
75103         * modules/gc-md4, modules/gc-md4-tests: New file.
75104
75105         * tests/test-gc-md4.c: New file.
75106
75107 2005-10-19  Simon Josefsson  <jas@extundo.com>
75108
75109         * m4/gc-md4.m4: New file.
75110
75111 2005-10-19  Simon Josefsson  <jas@extundo.com>
75112
75113         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75114         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75115         <kasal@ucw.cz>.
75116
75117 2005-10-19  Simon Josefsson  <jas@extundo.com>
75118
75119         * m4/gc-arcfour.m4: New file.
75120
75121         * m4/gc-rijndael.m4: New file.
75122
75123 2005-10-19  Simon Josefsson  <jas@extundo.com>
75124
75125         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75126
75127 2005-10-19  Simon Josefsson  <jas@extundo.com>
75128
75129         * lib/gc-gnulib.c: Support ARCFOUR.
75130
75131 2005-10-19  Simon Josefsson  <jas@extundo.com>
75132
75133         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75134         support.
75135
75136         * lib/gc.h: Add ECB enum type.
75137
75138         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75139
75140 2005-10-18  Simon Josefsson  <jas@extundo.com>
75141
75142         * tests/test-md5.c: New file.
75143
75144         * modules/md5-tests: New file.
75145
75146 2005-10-18  Simon Josefsson  <jas@extundo.com>
75147
75148         * tests/test-md4.c: New file.
75149
75150         * modules/md4, modules/md4-tests: New files.
75151
75152 2005-10-18  Simon Josefsson  <jas@extundo.com>
75153
75154         * m4/md4.m4: New file.
75155
75156 2005-10-18  Simon Josefsson  <jas@extundo.com>
75157
75158         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75159
75160 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75161
75162         * gnulib-tool (func_create_testdir): Omit the second check whether
75163         BUILT_SOURCES in nonempty.
75164
75165 2005-10-17  Simon Josefsson  <jas@extundo.com>
75166
75167         * tests/test-rijndael.c: New file.
75168
75169 2005-10-17  Simon Josefsson  <jas@extundo.com>
75170
75171         * modules/sha1: Depend on stdint instead of md5.
75172
75173         * modules/md5: Depend on stdint, remove uint32_t.
75174
75175 2005-10-17  Simon Josefsson  <jas@extundo.com>
75176
75177         * modules/gc-sha1-tests: New file.
75178
75179         * tests/test-gc-sha1.c: New file.
75180
75181 2005-10-17  Simon Josefsson  <jas@extundo.com>
75182
75183         * m4/md5.m4: Remove call to uint32_t.m4.
75184
75185 2005-10-17  Simon Josefsson  <jas@extundo.com>
75186
75187         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75188
75189         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75190         md5.h.
75191
75192         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75193
75194         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75195
75196 2005-10-17  Simon Josefsson  <jas@extundo.com>
75197
75198         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75199
75200 2005-10-17  Simon Josefsson  <jas@extundo.com>
75201
75202         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75203
75204 2005-10-17  Simon Josefsson  <jas@extundo.com>
75205
75206         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75207
75208         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75209
75210 2005-10-17  Bruno Haible  <bruno@clisp.org>
75211
75212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75213         that it can also be used in a test.
75214
75215 2005-10-16  Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75218         TESTS_ENVIRONMENT, so that individual tests can augment it.
75219
75220         * gnulib-tool (func_create_testdir): Use an intermediate target for
75221         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75222         macros, like $(ALLOCA_H), which cannot be passed through the command
75223         line.
75224
75225 2005-10-15  Simon Josefsson  <jas@extundo.com>
75226
75227         * modules/rijndael-tests: New file.
75228
75229         * modules/rijndael: New file.
75230
75231 2005-10-15  Simon Josefsson  <jas@extundo.com>
75232
75233         * m4/rijndael.m4: New file.
75234
75235 2005-10-15  Simon Josefsson  <jas@extundo.com>
75236
75237         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75238
75239         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75240
75241 2005-10-14  Simon Josefsson  <jas@extundo.com>
75242
75243         * tests/test-arcfour.c: New file.
75244
75245         * modules/arcfour, modules/arcfour-tests: New files.
75246
75247 2005-10-14  Simon Josefsson  <jas@extundo.com>
75248
75249         * m4/arcfour.m4: New file.
75250
75251 2005-10-14  Simon Josefsson  <jas@extundo.com>
75252
75253         * lib/arcfour.h, lib/arcfour.c: New files.
75254
75255 2005-10-14  Roland McGrath  <roland@redhat.com>
75256
75257         Import from libc.  [BZ #1331]
75258         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75259         macro argument.
75260         Reported by Matej Vela <vela@debian.org>.
75261
75262 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75265         include <wchar.h>; no longer needed.
75266
75267 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75270
75271 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75272         and  Ulrich Drepper  <drepper@redhat.com>
75273
75274         Import from libc.
75275         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75276         instead of inline stream orientation test and two separate
75277         function calls.  Pay no attention to USE_IN_LIBIO.
75278
75279 2005-10-13  Simon Josefsson  <jas@extundo.com>
75280
75281         * modules/gc-hmac-md5-tests: New file.
75282
75283         * tests/test-gc-hmac-sha1.c: New file.
75284
75285         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75286
75287         * modules/gc-hmac-md5-tests: New file.
75288
75289         * tests/test-gc-md5.c: New file.
75290
75291         * modules/gc-md5-tests: New file.
75292
75293 2005-10-13  Simon Josefsson  <jas@extundo.com>
75294
75295         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75296         Move memory allocation outside of loop.
75297
75298 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75301         intermediate directory is in a read-only file system.  Problem
75302         reported by Eric Blake.
75303
75304 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75305
75306         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75307
75308 2005-10-12  Simon Josefsson  <jas@extundo.com>
75309
75310         * tests/test-hmac-sha1.c: New file.
75311
75312         * modules/hmac-sha1-tests: New file.
75313
75314         * modules/hmac-sha1: New file.
75315
75316 2005-10-12  Simon Josefsson  <jas@extundo.com>
75317
75318         * modules/gc-sha1: New file.
75319
75320 2005-10-12  Simon Josefsson  <jas@extundo.com>
75321
75322         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75323
75324         * tests/test-gc-pbkdf2-sha1.c: New file.
75325
75326 2005-10-12  Simon Josefsson  <jas@extundo.com>
75327
75328         * modules/gc-md5, modules/gc-hmac-md5: New files.
75329
75330         * modules/gc (Files): Remove md5, memxor and hmac files.
75331
75332 2005-10-12  Simon Josefsson  <jas@extundo.com>
75333
75334         * m4/gc-pbkdf2-sha1.m4: New file.
75335
75336         * m4/gc-hmac-sha1.m4: New file.
75337
75338         * m4/gc-sha1: New file.
75339
75340         * m4/hmac-sha1.m4: New file.
75341
75342 2005-10-12  Simon Josefsson  <jas@extundo.com>
75343
75344         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75345
75346         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75347
75348 2005-10-12  Simon Josefsson  <jas@extundo.com>
75349
75350         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75351         suggested by Bruno Haible <bruno@clisp.org>.
75352
75353 2005-10-12  Simon Josefsson  <jas@extundo.com>
75354
75355         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75356
75357 2005-10-12  Simon Josefsson  <jas@extundo.com>
75358
75359         * lib/gc-pbkdf2-sha1.c: New file.
75360
75361         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75362
75363 2005-10-12  Simon Josefsson  <jas@extundo.com>
75364
75365         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75366
75367         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75368
75369 2005-10-12  Simon Josefsson  <jas@extundo.com>
75370
75371         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75372         GC_USE_HMAC_MD5, respectively.
75373
75374         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75375         (gc_md5): Fix typo.
75376
75377         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75378
75379         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75380
75381         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75382
75383 2005-10-12  Bruno Haible  <bruno@clisp.org>
75384
75385         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75386         Reported by Stepan Kasal <kasal@ucw.cz>.
75387
75388 2005-10-11  Simon Josefsson  <jas@extundo.com>
75389
75390         * tests/test-crc.c: New file.
75391
75392         * modules/crc, modules/crc-tests: New files.
75393
75394 2005-10-11  Simon Josefsson  <jas@extundo.com>
75395
75396         * m4/crc.m4: New file.
75397
75398 2005-10-11  Simon Josefsson  <jas@extundo.com>
75399
75400         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75401
75402         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75403
75404         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75405
75406 2005-10-11  Simon Josefsson  <jas@extundo.com>
75407
75408         * lib/crc.h, lib/crc.c: New files.
75409
75410         * lib/gc.h (gc_hash_buffer): Add doc.
75411
75412 2005-10-11  Bruno Haible  <bruno@clisp.org>
75413
75414         * modules/c-strcasestr: New file.
75415         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75416
75417 2005-10-11  Bruno Haible  <bruno@clisp.org>
75418
75419         * modules/c-strcase: New file.
75420         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75421
75422 2005-10-11  Bruno Haible  <bruno@clisp.org>
75423
75424         * lib/strcasecmp.c: Include limits.h.
75425         (strcasecmp): Avoid integer overflow on exotic platforms.
75426         * lib/strncasecmp.c: Include limits.h.
75427         (strncasecmp): Avoid integer overflow on exotic platforms.
75428         Reported by Paul Eggert.
75429
75430 2005-10-11  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/c-strcasestr.h: New file, from GNU gettext.
75433         * lib/c-strcasestr.c: New file, from GNU gettext.
75434
75435 2005-10-11  Bruno Haible  <bruno@clisp.org>
75436
75437         * lib/c-strcase.h: New file, from GNU gettext.
75438         * lib/c-strcasecmp.c: New file, from GNU gettext.
75439         * lib/c-strncasecmp.c: New file, from GNU gettext.
75440
75441 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75442
75443         * modules/mempcpy (License): GPL -> LGPL.
75444         * modules/strchrnul (License): Likewise.
75445         * modules/sysexits (License): Likewise.
75446
75447 2005-10-08  Simon Josefsson  <jas@extundo.com>
75448
75449         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75450
75451 2005-10-07  Simon Josefsson  <jas@extundo.com>
75452
75453         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75454
75455 2005-10-06  Simon Josefsson  <jas@extundo.com>
75456
75457         * tests/test-hmac-md5.c: New file.
75458
75459         * modules/hmac-md5-tests: New file.
75460
75461         * modules/hmac-md5: New file.
75462
75463 2005-10-06  Simon Josefsson  <jas@extundo.com>
75464
75465         * m4/hmac-md5.m4: New file.
75466
75467         * m4/memxor.m4: Require gl_C_RESTRICT.
75468
75469 2005-10-06  Simon Josefsson  <jas@extundo.com>
75470
75471         * lib/memxor.c (memxor): Avoid casts and warnings.
75472
75473 2005-10-06  Simon Josefsson  <jas@extundo.com>
75474
75475         * lib/hmac-md5.c: New file.
75476
75477         * lib/hmac.h: New file.
75478
75479 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75480
75481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75482         promotes to int, not unsigned int, to catch the AIX 5.3
75483         compiler bug.
75484
75485 2005-10-05  Simon Josefsson  <jas@extundo.com>
75486
75487         * modules/memxor: New file.
75488
75489         * modules/iconv (Files): Move config.rpath to havelib, it is used
75490         there.
75491
75492         * modules/havelib (Files): Add config.rpath.
75493
75494 2005-10-05  Simon Josefsson  <jas@extundo.com>
75495
75496         * m4/memxor.m4: New file.
75497
75498 2005-10-05  Simon Josefsson  <jas@extundo.com>
75499
75500         * lib/memxor.c (memxor): Fix compiler error.
75501
75502         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75503         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75504
75505         * lib/memxor.h, lib/memxor.c: New files.
75506
75507         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75508         we assume all systems have it, suggested by Jim Meyering
75509         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75510         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75511         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75512         same reasons.
75513
75514 2005-10-05  Simon Josefsson  <jas@extundo.com>
75515
75516         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75517
75518 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75519
75520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75521         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75522         needed, since the source code now assumes these .h files.
75523
75524 2005-10-05  Derek Price  <derek@ximbiot.com>
75525
75526         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75527
75528 2005-10-05  Bruno Haible  <bruno@clisp.org>
75529
75530         * modules/stdint (License): Change to LGPL.
75531
75532 2005-10-04  Simon Josefsson  <jas@extundo.com>
75533
75534         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75535         D. Baushke" <mdb@gnu.org>.
75536
75537 2005-10-04  Bruno Haible  <bruno@clisp.org>
75538
75539         * lib/verify.h (verify_true): Provide alternative definition for C++.
75540
75541 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75544         (SSIZE_MAX): New macro, if not already defined.
75545         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75546         than 2 GiB.
75547
75548 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75549
75550         Sync from coreutils.
75551         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75552         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75553         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75554         ULLONG_MAX doesn't work with 2.7.2.1.
75555
75556 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75559         From Ben Pfaff.
75560
75561         * modules/exclude (Depends-on): Depend on verify.
75562         * modules/strtoimax (Depends-on): Likewise.
75563         * modules/utimecmp (Depends-on): Likewise.
75564
75565 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75566
75567         * lib/exclude.c: Include verify.h.
75568         (verify): Remove.  All callers changed to use verify.h's version.
75569         * lib/strtoimax.c: Likewise.
75570         * lib/utimecmp.c: Likewis.e
75571
75572         Sync from coreutils.
75573         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75574         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75575         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75576         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75577         bother returning ENOSYS if settimeofday or stime fails; just let
75578         them return whatever errno they want to return.
75579         * lib/utimens.c: Include unistd.h, for dup2.
75580         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75581         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75582
75583 2005-10-02  Jim Meyering  <jim@meyering.net>
75584
75585         Sync from coreutils.
75586         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75587         from glibc-2.2.5 that fails for read-only files.
75588
75589 2005-10-02  Jim Meyering  <jim@meyering.net>
75590
75591         Sync from coreutils.
75592         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75593         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75594         `#if HAVE_CONFIG_H'.
75595         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75596         Remove AT_FDCWD test.
75597         Do not consume the fd unless successful.
75598         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75599         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75600         block, so that we don't even try to compile it if settimeofday is
75601         available.  This works around a compilation failure on OSF1 V5.1,
75602         due to stime requiring a `long int*' while tv_sec is `int'.
75603
75604 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75605
75606         Sync from coreutils.
75607         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75608         against `yes', rather than just testing for nonempty.
75609
75610 2005-10-01  Simon Josefsson  <jas@extundo.com>
75611
75612         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75613         and Darwin.
75614
75615         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75616         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75617         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75618         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75619         Check if struct addrinfo is declared.
75620
75621 2005-10-01  Simon Josefsson  <jas@extundo.com>
75622
75623         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75624         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75625         AI_* and EAI_* definitions.  Protect function declarations.
75626
75627 2005-10-01  Jim Meyering  <jim@meyering.net>
75628
75629         Sync from coreutils.
75630
75631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75632         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75633         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75635         in the inet and nsl libraries.  Required on Solaris 5.7.
75636
75637 2005-10-01  Jim Meyering  <jim@meyering.net>
75638
75639         Sync from coreutils.
75640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75641         in the inet and nsl libraries.  Required on Solaris 5.7.
75642
75643 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75644
75645         * lib/getdelim.c (getdelim): Remove unused variables.
75646
75647 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75650         so that the code works even with ancient cpp.  Portability problem
75651         with GCC 2.7.2.1 reported by Thomas M.Ott.
75652
75653 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * modules/regex (Depends-on): Add strcase.
75656
75657         * modules/gethostname (Licence): Change from GPL to LGPL, since
75658         gethostname.c is a trivial implementation of a standard library
75659         function.
75660         * modules/poll (License): Change from GPL to LGPL, since it's
75661         derived from LGPL code.
75662
75663 2005-09-27  Jim Meyering  <jim@meyering.net>
75664
75665         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75666         HAVE_CONFIG_H.
75667
75668         * lib/intprops.h (signed_type_or_expr__): Define.
75669         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75670         for unsigned types.
75671
75672 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * lib/verify.h (verify_expr): Remove, replacing with:
75675         (verify_true): New macro that returns true instead of void.
75676         (verify_type__): Remove.
75677         (verify): Use verify_true rather than verify_type__.
75678
75679 2005-09-26  Bruno Haible  <bruno@clisp.org>
75680
75681         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75682         is necessary.
75683         (lib_SOURCES): Remove mbchar.c.
75684         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75685         (Files): Add m4/mbrtowc.m4.
75686         * modules/mbiter: Likewise.
75687         * modules/mbuiter: Likewise.
75688
75689 2005-09-26  Bruno Haible  <bruno@clisp.org>
75690
75691         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75692         compile mbchar.c if they are not both present.
75693         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75694         * m4/mbiter.m4 (gl_MBITER): Likewise.
75695         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75696         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75697         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75698
75699 2005-09-25  Jim Meyering  <jim@meyering.net>
75700
75701         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75702         also uses socklen_t.
75703
75704 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75705
75706         * lib/utimens.c (ENOSYS): Define if not already defined.
75707         (futimens): Support having a null PATH if the file descriptor
75708         is nonnegative.
75709
75710         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75711         Remove.
75712         (__attribute): Define to empty unless GCC 3.1 or later.
75713         This works around a core dump on OpenBSD 3.4, which has GCC
75714         2.95.3, which dumps core when given __attribute__(()).  It also
75715         simplifies other tests, since we really don't want to bother with
75716         worrying about which ancient version of GCC supported what.
75717         Original problem reported by Yoann Vandoorselaere, with part of
75718         the fix suggested by Derek Price.
75719
75720 2005-09-24  Jim Meyering  <jim@meyering.net>
75721
75722         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75723         so we can once again use a positive bitfield width of 1 -- now we
75724         don't have to explain why we were using a bitfield width of 2.
75725
75726 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75729         and similarly for the other external symbols.  Problem reported
75730         by James Gallager.
75731
75732         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75733         bug reported by Jim Meyering.
75734
75735         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75737         not needed, since socklen is a prerequisite module.
75738
75739 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75742         Problem reported by Eric Blake.
75743         (getaddrinfo): Initialize se so that it's not garbage.
75744         Redo internal storage allocation so that it doesn't make unportable
75745         assumptions about alignment.
75746         Fix a memory leak.
75747
75748         * lib/utimens.c (futimens): Use futimesat if available.
75749         Prefer it to futimes since it doesn't have the futimes bug.
75750
75751         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75752         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75753         Instead, declare a function that returns a pointer to an array,
75754         and use verify_type__ to declare the size of the array.
75755         Problem and germ of a solution reported by Bruno Haible.
75756         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75757         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75758
75759 2005-09-23  Jim Meyering  <jim@meyering.net>
75760
75761         Sync from coreutils.
75762         Correct build failure (socklen_t not defined) on at least
75763         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75765
75766 2005-09-23  Jim Meyering  <jim@meyering.net>
75767
75768         * modules/getaddrinfo (Depends-on): Add socklen.
75769
75770 2005-09-23  Bruno Haible  <bruno@clisp.org>
75771
75772         * tests/test-verify.c: New file.
75773
75774 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         Sync from coreutils.
75777
75778         * modules/argmatch (Depends-on): Add verify.
75779         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75780         unistd-safer.
75781         * modules/save-cwd (Depends-on): Likewise.
75782
75783         * modules/openat (Files): Add lib/openat-die.c.
75784         (Depends-on): Remove error, exitfail.
75785         Add dirname.
75786
75787         * modules/verify: New file.
75788         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75789         with "verify" module.
75790
75791 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75792
75793         Sync from coreutils.
75794
75795         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75796         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75797         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75798         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75799         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75800         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75801         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75802         Don't bother checking for string.h, stdlib.h, unistd.h.
75803         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75804         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75805         module's job.
75806         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75807         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75808
75809         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75810         (gl_GETDATE): Use it.
75811
75812         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75813
75814 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75815
75816         Sync from coreutils.
75817
75818         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75819         stat-time.h.
75820         * lib/argmatch.h: Include verify.h
75821         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75822         (ARGMATCH_ASSERT): Remove; unused.
75823         * lib/canonicalize.c: Assume STDC_HEADERS.
75824         * lib/exclude.c: Include "strcase.h".
75825         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75826         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75827         and stdio-safer.h.
75828         (getusershell): Call fopen, not fopen_safer.
75829         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75830         Do not include unistd-safer.h.
75831         (save_cwd): Don't call fd_safer; no longer needed
75832         now that we include fcntl--.h.
75833
75834         * lib/getdate.y (relative_time): New type.
75835         (RELATIVE_TIME_0): New constant.
75836         (parser_control): Use relative_time instead of doing it ourselves.
75837         (%union): Add new relative_time rel member.
75838         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75839         Now typeless.
75840         (relunit, relunit_snumber): Now of type rel.
75841         (zone, rel, relunit, get_date): Adjust to above changes.
75842
75843         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75844         Do not include unistd-safer.h.
75845         (getloadavg): Don't call fd_safer; no longer needed
75846         now that we include fcntl--.h.
75847
75848         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75849         (make_dir_parents): Treat ENOSYS like EEXIST.
75850
75851         Improve quality of diagnostics on restore_cwd failure.
75852         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75853         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75854         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75855         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75856         each time through the loop.  Do not diagnose restore_cwd failure;
75857         that is the caller's job (and perhaps the caller does not care).
75858
75859         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75860         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75861         If the file already exists but is not a directory, don't bother
75862         to try to make its parents.
75863         Close potential file descriptor leak if we can't chdir("/") (!).
75864         Don't always return true if chdir($PWD) fails; return true only
75865         if the requested action was done successfully (except for the
75866         chdir($PWD)).
75867         Don't log final directory unless we actually made it.
75868         Refactor to avoid duplicate code to fix up permissions.
75869         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75870
75871         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75872         to make it a bit faster and (I hope) clearer.
75873         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75874         Fix bug in formats like %2N.
75875
75876         * lib/verify.h: New file.
75877
75878 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         Sync from coreutils.
75881         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75882
75883 2005-09-22  Jim Meyering  <jim@meyering.net>
75884
75885         Sync from coreutils.
75886
75887         * m4/lstat.m4 (gl_FUNC_LSTAT):
75888         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75889         Remove obsolete comment.
75890         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75891         * m4/xstrtod.m4: Likewise.
75892
75893         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75894
75895 2005-09-22  Jim Meyering  <jim@meyering.net>
75896
75897         Sync from coreutils.
75898
75899         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75900
75901         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75902         the .tm_year member, since otherwise gcc-4.0 would now warn about
75903         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75904
75905         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75906         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75907
75908         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75909         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75910         when run in a time zone for which daylight savings time is in effect
75911         for the starting date.
75912
75913         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75914         stop us from restricting permissions of just-created absolute-named
75915         directories.
75916         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75917         to restore initial working directory.
75918         * lib/mkdir-p.c (make_dir_parents): New parameter:
75919         different_working_dir, to tell caller if/when we change the working
75920         directory and are unable to return to the initial one.
75921         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75922         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75923         `return false'.  This fixes a bug introduced on 2004-07-30.
75924
75925         * lib/openat.c (fdopendir): Be sure to close the supplied
75926         file descriptor before returning.  This makes our replacement
75927         implementation a little closer to Solaris's, where fdopendir
75928         ties the file descriptor to the returned DIR* pointer.
75929         * lib/openat.c (unlinkat): New function.
75930         * lib/openat.h (unlinkat): Add prototype.
75931         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75932         (openat_restore_fail): Rename from openat_restore_die.
75933         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75934
75935         Provide an alternative to exiting immediately upon save_cwd or
75936         restore_cwd failure.  Now, an application can arrange e.g.,
75937         to perform a longjump in that case.
75938         * lib/openat.c: Include dirname.h.
75939         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75940         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75941         and openat_restore_die rather than calling error directly.
75942         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75943
75944         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75945         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75946         define.
75947
75948         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75949         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75950                             int utc, int nanoseconds);
75951         Background:
75952         date should not have to allocate a megabyte of virtual memory to
75953         handle a format argument like +%1048575T.  When implemented with
75954         strftime, it must allocate such a buffer, use strftime to fill it
75955         in, print it, then free it.
75956         With fprintftime, it simply prints everything and exits.
75957         With no need for memory allocation, that's one fewer way to fail.
75958         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75959         optional field width, not before, so we accept %9:z, not %:9z.
75960         (my_strftime): Be sure to use L_('x') for literals.
75961
75962         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75963         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75964         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75965         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75966         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75967         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75968         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75969         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75970         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75971         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75972         * lib/xgethostname.c, lib/xreadlink.c:
75973         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75974
75975         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75976         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75977         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75978         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75979         and don't include <sys/file.h>).
75980
75981 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75982
75983         Sync from coreutils.
75984
75985         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75986         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75987         [!LDAV_DONE]: Avoid unused variable warning.
75988
75989 2005-09-21  Bruno Haible  <bruno@clisp.org>
75990
75991         * lib/unicodeio.h (unicode_to_mb): New declaration.
75992
75993 2005-09-20  Derek Price  <derek@ximbiot.com>
75994
75995         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75996         getaddrinfo.h.
75997
75998 2005-09-20  Bruno Haible  <bruno@clisp.org>
75999
76000         * gnulib-tool: Remove trailing slashes from the values specified for
76001         --source-base, --m4-base, --tests-base, --aux-dir.
76002         Suggested by Simon Josefsson <jas@extundo.com>.
76003
76004 2005-09-20  Bruno Haible  <bruno@clisp.org>
76005
76006         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76007         func_modules_to_filelist, func_import, func_create_testdir): Make all
76008         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76009         change when gnulib-tool is invoked in a different locale.
76010
76011 2005-09-19  Simon Josefsson  <jas@extundo.com>
76012
76013         * m4/socklen.m4: Fix typo.
76014
76015 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76016
76017         Use a consistent style for including <config.h>.
76018         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76019         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76020         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76021         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76022         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76023         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76024         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76025         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76026         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76027         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76028         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76029         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76030         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76031         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76032         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76033         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76034         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76035         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76036         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76037         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76038         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76039         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76040         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76041         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76042         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76043         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76044         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76045         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76046         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76047         lib/xstrtoumax.c, lib/yesno.c:
76048         Standardize inclusion of config.h.
76049         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76050         lib/inttostr.h:  Removed inclusion of config.h from header files.
76051         * lib/inttostr.c:  Adjusted in-tree users.
76052         * lib/timespec.h: Remove superfluous warning to include config.h.
76053         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76054         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76055         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76056         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76057         config.h with HAVE_CONFIG_H.
76058
76059 2005-09-19  Jim Meyering  <jim@meyering.net>
76060
76061         * modules/pathmax (License): Change to LGPL.
76062
76063 2005-09-19  Derek Price  <derek@ximbiot.com>
76064
76065         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76066
76067 2005-09-19  Bruno Haible  <bruno@clisp.org>
76068
76069         * gnulib-tool (import): Provide default for --tests-base.
76070
76071 2005-09-19  Bruno Haible  <bruno@clisp.org>
76072
76073         * doc/quote.texi: New file, extracted from gnulib.texi.
76074         * doc/ctime.texi: New file, extracted from gnulib.texi.
76075         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76076         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76077         * doc/gnulib.texi: Include them.
76078
76079 2005-09-18  Bruno Haible  <bruno@clisp.org>
76080
76081         Portability fix.
76082         * gnulib-tool (func_readlink): New function.
76083         (func_ln_if_changed): Use it.
76084
76085 2005-09-18  Bruno Haible  <bruno@clisp.org>
76086
76087         * gnulib-tool: Support --with-tests also with --import.
76088         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76089         (func_import): Use variables $testsbase and $inctests. Emit a
76090         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76091         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76092         SUBDIRS += $testsdir.
76093         (func_create_testdir): Update.
76094
76095 2005-09-18  Bruno Haible  <bruno@clisp.org>
76096
76097         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76098         instead of $dry_run.
76099         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76100         (func_ln_if_changed): Don't handle dry-run here.
76101         (func_import): In dry-run mode, detect more precisely which actions
76102         would be performed, and don't use "...ing" verbs.
76103
76104 2005-09-18  Bruno Haible  <bruno@clisp.org>
76105
76106         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76107         (func_import): Use join on two temporary files instead of three nested
76108         loops, in order to determine which files are new or old.
76109
76110 2005-09-18  Bruno Haible  <bruno@clisp.org>
76111
76112         * gnulib-tool (func_import): Comment out code that spits out the
76113         new files with --dry-run.
76114
76115 2005-09-18  Bruno Haible  <bruno@clisp.org>
76116
76117         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76118
76119 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         * lib/stat-time.h: New file.
76122         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76123         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76124         in a different way.
76125         (timespec_cmp): New function.
76126         * lib/utimecmp.c: Include stat-time.h.
76127         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76128         members exist, not on the obsolescent ST_MTIM_NSEC.
76129         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76130
76131 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76134
76135 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * MODULES.html.sh (File system functions): Add stat-time.
76138         * modules/stat-time: New file.
76139         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76140         is now done in a different way, by the stat-time module.
76141         * modules/utimecmp (Depends-on): Add stat-time.
76142
76143 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76144
76145         * m4/st_mtim.m4: Remove.  Superseded by...
76146         * m4/stat-time.m4: New file.
76147         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76148         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76149
76150 2005-09-15  Derek Price  <derek@ximbiot.com>
76151
76152         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76153
76154 2005-09-15  Derek Price  <derek@ximbiot.com>
76155
76156         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76157         * lib/regex_internal.c: Ditto, using this...
76158         (__GNUC_PREREQ): ...new macro.
76159         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76160         using...
76161         (__GNUC_PREREQ): ...this new macro.
76162
76163         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76164
76165 2005-09-15  Derek Price  <derek@ximbiot.com>
76166             Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76169         changes, consolidating in...
76170         * lib/regex_internal.h: ...this file.
76171
76172 2005-09-13  Jim Meyering  <jim@meyering.net>
76173
76174         * lib/canon-host.c: Filter through gnu indent and reword comments
76175         slightly.
76176         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76177
76178 2005-09-13  Derek Price  <derek@ximbiot.com>
76179
76180         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76181         failure.
76182         Reported by Jim Meyering  <jim@meyering.net>.
76183
76184 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76185
76186         * lib/base64.c: Typo.
76187         (base64_encode): Put b64str in initialized data section.
76188
76189 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         Merge glibc and coreutils changes into gnulib, plus a few
76192         extra fixes.
76193         * lib/md5.c: Use #error rather than a string.
76194         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76195         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76196         (__attribute__): Define to empty for non recent-GCC.
76197         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76198         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76199         Renamed from their non-__ counterparts, with new macros replacing
76200         them if not _LIBC.  Add __THROW attribute.
76201         (rol): Remove.
76202         (struct md5_ctx): Align buffer if using GCC.
76203         * lib/sha1.h (struct sha1_ctx): Likewise.
76204         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76205         The old name was backwards.
76206         (NOTSWAP): Remove; not used.
76207         (rol): New macro, moved here from md5.h.
76208         (sha1_process_block): Remove a FIXME that doesn't make sense.
76209
76210 2005-09-12  Derek Price  <derek@ximbiot.com>
76211
76212         Return usable errors from canon-host.
76213         * lib/canon-host.h: New file.
76214         * lib/canon-host.c (canon_host): Wrap...
76215         (canon_host_r): ...this new function, which now relies exclusively on
76216         getaddrinfo.
76217         (ch_strerror): New function.
76218         (last_cherror): New global.
76219         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76220         interface.
76221         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76222         void *.
76223         (freeaddrinfo): Free ai->ai_canonname when set.
76224
76225 2005-09-12  Derek Price  <derek@ximbiot.com>
76226
76227         Make canon-host require getaddrinfo.
76228         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76229         AC_LIBSOURCE canon-host.h.  Call...
76230         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76231         gl_GETADDRINFO.
76232         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76233
76234 2005-09-12  Derek Price  <derek@ximbiot.com>
76235
76236         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76237         LGPL.
76238         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76239
76240 2005-09-12  Derek Price  <derek@ximbiot.com>
76241
76242         * lib/gai_strerror.c: Include config.h when available.  Include
76243         getaddrinfo.h before other headers to test interface.
76244         Reported by Larry Jones <lawrence.jones@ugs.com>.
76245
76246 2005-09-12  Derek Price  <derek@ximbiot.com>
76247             Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * modules/glob (Files): Add glob-libc.h.
76250
76251 2005-09-12  Derek Price  <derek@ximbiot.com>
76252             Paul Eggert  <eggert@cs.ucla.edu>
76253
76254         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76255         glob_.h, glob-libc.h.
76256         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76257
76258 2005-09-12  Derek Price  <derek@ximbiot.com>
76259             Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76262         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76263         protecting things that should be done only in gnulib contexts.
76264         * lib/glob_.h: New file, containing only the glob things needed for
76265         gnulib.
76266         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76267         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76268         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76269         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76270         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76271         and to respect the namespace rules better.
76272
76273 2005-09-08  Simon Josefsson  <jas@extundo.com>
76274
76275         * modules/socklen: New file.
76276
76277 2005-09-08  Simon Josefsson  <jas@extundo.com>
76278
76279         * m4/socklen.m4: New file.
76280
76281 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76282
76283         * modules/utimens (Files): Add m4/utimbuf.m4, since
76284         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76285         Reported by Sergey Poznyakoff.
76286
76287 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76290         definitions, since that's the preferred style in glibc.
76291         Fix a minor spacing issue, and update copyright notice to match
76292         glibc's.
76293
76294 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76297
76298 2005-09-06  Simon Josefsson  <jas@extundo.com>
76299
76300         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76301         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76302
76303 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76306         warning.
76307
76308 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * config/srclist.txt: Add glibc bug 1302.
76311
76312 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         Change bitset word type from unsigned int to unsigned long int,
76315         as this has better performance on typical 64-bit hosts.
76316         Port bitset code to hosts with unusual word sizes.
76317         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76318         (build_collating_symbol):
76319         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76320         argument is a bitset.  This is merely a style issue, but it makes
76321         it clearer that an entire array is expected.
76322         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76323         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76324         Port to the case where bitset_word is not the same as unsigned int.
76325         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76326         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76327         Likewise.
76328         * lib/regexec.c (check_dst_limits_calc_pos_1,
76329         check_subexp_matching_top):
76330         (build_trtable, group_nodes_into_DFAstates):
76331         Likewise.
76332         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76333         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76334         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76335         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76336         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76337         * lib/regcomp.c (optimize_subexps, lower_subexp):
76338         Work even if bitset_word has holes in its bitwise representation.
76339         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76340         * lib/regexec.c (check_dst_limits_calc_pos_1,
76341         check_subexp_matching_top):
76342         Likewise.
76343         * lib/regex_internal.c (re_string_reconstruct):
76344         Don't assume UCHAR_MAX == 255.
76345         * lib/regex_internal.h (bitset_set_all): Likewise.
76346         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76347         All uses changed.
76348         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76349         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76350         All uses changed.
76351         (BITSET_WORD_MAX): New macro.
76352         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76353         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76354         (bitset_empty, bitset_copy):
76355         Prefer sizeof (bitset) to multiplying it out ourselves.
76356         (bitset_not_merge): Remove; unused.
76357         (bitset_contain): Return bool, not unsigned int with one bit on.
76358         All callers changed.
76359         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76360         alignment than re_node_set; do this by defining a new internal
76361         type struct dests_alloc and using it to allocate memory.
76362
76363 2005-09-05  Bruno Haible  <bruno@clisp.org>
76364
76365         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76366         links.
76367
76368 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76369
76370         * modules/size_max (Makefile.am): Add size_max.h
76371
76372 2005-09-04  Derek Price  <derek@ximbiot.com>
76373
76374         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76375
76376 2005-09-03  Simon Josefsson  <jas@extundo.com>
76377
76378         * gnulib-tool: Fix typo.
76379
76380 2005-09-03  Simon Josefsson  <jas@extundo.com>
76381
76382         * config/srclist.txt: Add glibc bug 1293.
76383
76384 2005-09-03  Derek Price  <derek@ximbiot.com>
76385
76386         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76387         From Larry Jones <lawrence.jones@ugs.com>.
76388
76389 2005-09-02  Simon Josefsson  <jas@extundo.com>
76390
76391         * modules/socklen: New file.
76392
76393 2005-09-02  Simon Josefsson  <jas@extundo.com>
76394
76395         * modules/havelib: New module.
76396
76397         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76398         Use havelib.
76399
76400 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         Check for arithmetic overflow when calculating sizes, to prevent
76403         some buffer-overflow issues.  These patches are conservative, in the
76404         sense that when I couldn't determine whether an overflow was possible,
76405         I inserted a run-time check.
76406         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76407         macros.
76408         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76409         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76410         (re_xnrealloc, re_x2nrealloc): New inline functions.
76411         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76412         parse_bracket_exp):
76413         (build_equiv_class, build_charclass): Check for arithmetic overflow
76414         in size expression calculations.
76415         * lib/regex_internal.c (re_string_realloc_buffers):
76416         (build_wcs_upper_buffer, re_node_set_add_intersect):
76417         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76418         (re_dfa_add_node, register_state): Likewise.
76419         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76420         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76421         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76422         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76423
76424 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76427         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76428
76429 2005-09-02  Bruno Haible  <bruno@clisp.org>
76430
76431         Support for lib vs. lib64 distinction on biarch platforms.
76432         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76433         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76434         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76435
76436 2005-09-02  Bruno Haible  <bruno@clisp.org>
76437
76438         * gnulib-tool (import): In the other first-use case, provide defaults
76439         as well.
76440
76441 2005-09-02  Bruno Haible  <bruno@clisp.org>
76442
76443         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76444         patches not yet found in the latest gettext release.
76445
76446 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76449         to avoid a collision with bits/local_lim.h in glibc.
76450         All uses changed.  Problem reported by Dmitry V. Levin in
76451         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76452
76453         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76454         bugs in int versus size_t comparisons.
76455         (re_string_context_at): Fix bug where the code assumed that
76456         Idx is signed.
76457
76458         Use bool where appropriate.
76459         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76460         All callers changed.
76461         (calc_eclosure_iter): Likewise, for ROOT arg.
76462         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76463         (build_charclass_op): Likewise, for NON_MATCH arg.
76464         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76465         (re_string_construct_common): Likewise, for ICASE arg.
76466         * lib/regexec.c (re_search_2_stub, re_search_stub):
76467         Likewise, for RET_LEN arg.
76468         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76469         (set_regs): Likewise, for FL_BACKTRACK arg.
76470         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76471         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76472         (calc_eclosure_iter, parse_bracket_exp):
76473         Use bool for internal variables that are booleans.
76474         * lib/regexec.c (re_search_internal, check_matching,
76475         proceed_next_node):
76476         (set_regs, build_sifted_states, sift_states_bkref):
76477         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76478         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76479         (find_collation_sequence_value):
76480         Likewise.
76481         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76482         (re_node_set_compare):
76483         Return bool, not int. All callers changed.
76484         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76485         (build_trtable, check_node_accept): Likewise.
76486         * lib/regex_internal.h: Include stdbool.h.
76487
76488         Fix bugs uncovered when converting to bool.
76489         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76490         failure instead of charging ahead blindly.
76491         * lib/regex_internal.c (register_state): Likewise.
76492         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76493         for freeing internal storage.
76494         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76495         bitset pieces used as boolean, to avoid undefined behavior
76496         on hosts that do int overflow checking.
76497
76498 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * config/srclist.txt: Add glibc bugs 1285-1287.
76501
76502 2005-09-01  Jim Meyering  <jim@meyering.net>
76503
76504         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76505         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76506         Require gl_STAT_MACROS, too.
76507
76508 2005-09-01  Bruno Haible  <bruno@clisp.org>
76509
76510         * gnulib-tool (import): In the first-use case, provide defaults.
76511
76512 2005-09-01  Bruno Haible  <bruno@clisp.org>
76513
76514         * gnulib-tool (func_import): Remove the .tmp files.
76515
76516 2005-09-01  Bruno Haible  <bruno@clisp.org>
76517
76518         * gnulib-tool (func_import): Fix handling of symbolic links.
76519
76520 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76521
76522         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76523         old glibc regex code mishandles strings longer than 2**31 bytes.
76524         This patch fixes this when the regex code is used in gnulib
76525         (i.e., outside glibc).
76526
76527         This patch should not affect the use of the regex code inside
76528         glibc.  No doubt this problem also needs to be handled for glibc
76529         as well, but the result will be an incompatible change to the
76530         glibc ABI, and the old ABI will have to be supported too.  That
76531         can be the the subject for another patch.
76532
76533         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76534         governing whether the rest of this patch is active.  By default,
76535         the macro is disabled and the patch has no effect.
76536         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76537         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76538         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76539         (re_match_2, re_set_registers): Use the new types.
76540         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76541         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76542         New macros.
76543         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76544         (re_string_context_at, bin_tree_t, re_dfastate_t):
76545         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76546         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76547         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76548         (re_string_char_size_at, re_string_wchar_at):
76549         (re_string_elem_size_at):
76550         Use the new types and macros to port to 64-bit hosts.
76551         Use unsigned types for internal values, so that the code
76552         mostly works even for arrays larger than SSIZE_MAX.
76553         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76554         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76555         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76556         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76557         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76558         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76559         (calc_inveclosure, parse_dup_op, build_range_exp):
76560         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76561         (fetch_number, create_token_tree, mark_opt_subexp):
76562         Likewise.
76563         * lib/regex_internal.c (re_string_construct_common,
76564         create_ci_newstate):
76565         (create_cd_newstate, re_string_allocate, re_string_construct):
76566         (re_string_realloc_buffers, build_wcs_upper_buffer):
76567         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76568         (re_string_reconstruct, re_string_peek_byte_case):
76569         (re_string_fetch_byte_case, re_string_context_at):
76570         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76571         (re_node_set_init_copy, re_node_set_add_intersect):
76572         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76573         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76574         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76575         (re_acquire_state, re_acquire_state_context, register_state):
76576         Likewise.
76577         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76578         search_cur_bkref_entry):
76579         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76580         (re_search_internal, re_search_2_stub, re_search_stub)
76581         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76582         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76583         (update_cur_sifted_state, check_dst_limits):
76584         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76585         (check_subexp_limits, sift_states_bkref, merge_state_array):
76586         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76587         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76588         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76589         (expand_bkref_cache, check_node_accept_bytes):
76590         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76591         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76592         (acquire_init_state_context, check_halt_node_context):
76593         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76594         (sift_states_backward, clean_state_log_if_needed):
76595         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76596         (find_recover_state, transit_state_sb, transit_state_mb):
76597         (transit_state_bkref, build_trtable, match_ctx_clean):
76598         Likewise.
76599         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76600         to work around an assumption that REG_MISSING is negative.
76601
76602         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76603         (seek_collating_symbol_entry) [defined _LIBC]:
76604         (lookup_collation_sequence_value) [defined _LIBC]:
76605         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76606         Use prototypes rather than old-style function definitions.
76607         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76608         (transit_state_sb) [0]:
76609         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76610
76611         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76612         rm_eo.
76613
76614         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76615         (optimize_subexps, lower_subexp):
76616         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76617         since the signed shift might overflow.  Use 1u<<31 instead.
76618         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76619         Likewise.
76620         * lib/regexec.c (check_dst_limits_calc_pos_1,
76621         check_subexp_matching_top): Likewise.
76622
76623         * lib/regcomp.c (optimize_subexps, lower_subexp):
76624         Use CHAR_BIT rather than 8, for clarity.
76625         * lib/regexec.c (check_dst_limits_calc_pos_1):
76626         (check_subexp_matching_top): Likewise.
76627         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76628         have to worry about portability issues when shifting it left.
76629         Remove no-longer-needed test for table_size > 0.
76630         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76631         in a word, as the resulting behavior is undefined.
76632         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76633         in one case, a <= should have been an <, and in another case the
76634         whole test was missing.
76635         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76636         the standard name CHAR_BIT.
76637         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76638         this is not true on one's complement and signed-magnitude hosts.
76639
76640         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76641         next_last_offset.
76642         (struct re_dfa_t): Remove unused member states_alloc.
76643         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76644
76645 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76648         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76649         and large-file glibc and in 32-bit large-file Solaris.
76650
76651 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76654         lengths fit in regoff_t; this isn't true if regoff_t is the same
76655         width as size_t.
76656         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76657         (= START + RANGE) instead of RANGE.  This avoids overflow
76658         problems when regoff_t is the same width as size_t.
76659         All callers changed.
76660         (re_search_2_stub): Check for overflow when adding the
76661         sizes of the two strings.
76662         (re_search_stub): Check for overflow when adding START
76663         to RANGE; if it occurs, substitute the extreme value.
76664
76665 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76668
76669 2005-08-31  Jim Meyering  <jim@meyering.net>
76670
76671         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76672         a pointer-to-const.
76673         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76674         (register_state): Likewise.
76675         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76676         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76677         (group_nodes_into_DFAstates): Likewise.
76678
76679 2005-08-31  Jim Meyering  <jim@meyering.net>
76680
76681         * check-module: Add a FIXME comment.
76682
76683 2005-08-31  Eric Blake  <ebb9@byu.net>
76684
76685         * modules/unistd-safer (Files): Add unistd--.h.
76686         * modules/stdio-safer (Files): Add stdio--.h.
76687
76688 2005-08-31  Derek Price  <derek@ximbiot.com>
76689
76690         * lib/getdelim.c (getdelim): Return EOF on EOF.
76691         Reported by Larry Jones <lawrence.jones@ugs.com>.
76692
76693 2005-08-31  Bruno Haible  <bruno@clisp.org>
76694
76695         Avoid unnecessary diffs in the generated lib/Makefile.am.
76696         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76697         the generated files.
76698         (func_import): Don't set cmd.
76699
76700 2005-08-31  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/strstr.c: Include <stddef.h>, for NULL.
76703         * lib/strcasestr.c: Likewise.
76704         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76705
76706 2005-08-31  Bruno Haible  <bruno@clisp.org>
76707
76708         * gnulib-tool: New option --macro-prefix.
76709         (func_import): Use macro_prefix.
76710         (import): Handle option --macro-prefix.
76711
76712 2005-08-31  Bruno Haible  <bruno@clisp.org>
76713
76714         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76715         Also use new variables cached_lgpl, cached_libtool.
76716
76717 2005-08-31  Bruno Haible  <bruno@clisp.org>
76718
76719         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76720         always instantiating them.
76721
76722 2005-08-31  Bruno Haible  <bruno@clisp.org>
76723
76724         * gnulib-tool (func_import): Read the previous cached settings
76725         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76726         earlier added by gnulib but are now dropped. Warn when a gnulib file
76727         overwrites a non-gnulib file.
76728
76729 2005-08-31  Bruno Haible  <bruno@clisp.org>
76730
76731         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76732         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76733         projects that don't keep autogenerated files in CVS. Put into
76734         actioncmd only the specified modules, not the transitive closure.
76735
76736 2005-08-31  Bruno Haible  <bruno@clisp.org>
76737
76738         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76739         Create directories that shall be filled.
76740         (import): Don't look for gl_* macros in configure.ac. Recurse across
76741         all directories containing a gnulib-cache.m4 files, if meaningful.
76742
76743 2005-08-31  Bruno Haible  <bruno@clisp.org>
76744
76745         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76746         (import): Set seen_libtool when we see gl_LIBTOOL.
76747
76748 2005-08-31  Bruno Haible  <bruno@clisp.org>
76749
76750         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76751         declaration macro definitions from generated gnulib.m4.
76752
76753 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76754
76755         * lib/iconvme.h: Add prototype for iconv_alloc.
76756
76757 2005-08-29  Simon Josefsson  <jas@extundo.com>
76758
76759         * lib/iconvme.c: Fix errno.
76760
76761 2005-08-29  Bruno Haible  <bruno@clisp.org>
76762
76763         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76764         that it works when the directory contains spaces.
76765
76766 2005-08-29  Bruno Haible  <bruno@clisp.org>
76767
76768         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76769
76770 2005-08-29  Bruno Haible  <bruno@clisp.org>
76771
76772         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76773         Emit more advice.
76774
76775 2005-08-29  Bruno Haible  <bruno@clisp.org>
76776         and Stepan Kasal  <kasal@ucw.cz>
76777
76778         * check-module: If more parameters are given, check each of them
76779         separately; add more exceptions, as noted by Jim Meyering.
76780         (check_module): New procedure.
76781         (%exempt_header): Now contains all exceptions.
76782
76783 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76784
76785         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76786
76787 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76788
76789         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76790
76791 2005-08-28  Bruno Haible  <bruno@clisp.org>
76792
76793         * m4/gnulib-tool.m4: New file.
76794
76795 2005-08-27  Jim Meyering  <jim@meyering.net>
76796
76797         * modules/unistd-safer (Files): Add pipe-safer.c.
76798         * modules/fcntl-safer (Files): Add creat-safer.c.
76799
76800 2005-08-27  Jim Meyering  <jim@meyering.net>
76801
76802         * m4/stdlib-safer.m4: New file.  From coreutils.
76803         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76804         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76805         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76806         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76807         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76808
76809 2005-08-27  Jim Meyering  <jim@meyering.net>
76810
76811         * lib/fopen-safer.c: Merge minor changes from coreutils.
76812         * lib/dup-safer.c: Likewise.
76813         * lib/fd-safer.c: Likewise.
76814
76815         Merge from coreutils.
76816         * lib/stdio--.h: New file.
76817         * lib/stdlib--.h: New file.
76818         * lib/mkstemp-safer.c: New file.
76819
76820         GNU tar needs these.
76821         * lib/pipe-safer.c: New file.
76822         * lib/creat-safer.c: New file.
76823         * lib/fcntl--.h (creat): Define to creat_safer.
76824         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76825         * lib/unistd--.h (pipe): Define to pipe_safer.
76826         * lib/unistd-safer.h: Declare pipe_safer.
76827
76828 2005-08-26  Simon Josefsson  <jas@extundo.com>
76829
76830         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76831         Haible <bruno@clisp.org>.
76832
76833 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * lib/regex_internal.h: Remove all references to
76836         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76837         or better.
76838         (bitset_not, bitset_merge, bitset_not_merge):
76839         (bitset_mask, re_string_allocate, re_string_construct):
76840         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76841         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76842         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76843         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76844         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76845         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76846         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76847         (re_acquire_state_context):
76848         Remove unnecessary forward decls.
76849         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76850         Put __attribute at function definition,
76851         now that the function decl has been removed.
76852         * lib/regex_internal.c (re_string_peek_byte_case):
76853         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76854         Likewise.
76855
76856 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76857
76858         * m4/regex.m4: Add AC_PREREQ(2.50).
76859         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76860
76861 2005-08-25  Simon Josefsson  <jas@extundo.com>
76862
76863         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76864         __fsetlocking.
76865
76866 2005-08-25  Simon Josefsson  <jas@extundo.com>
76867
76868         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76869         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76870         GLIBC specific code.
76871
76872 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         Make regex safe for g++.  This fixes one real bug (an "err"
76875         that should have been "*err").  g++ problem reported by
76876         Sam Steingold.
76877         * lib/regex_internal.h (re_calloc): New macro, consistent with
76878         re_malloc etc.  All callers of calloc changed to use re_calloc.
76879         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76880         not int.  All callers changed.
76881         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76882         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76883         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76884         (find_recover_state): Change "err" to "*err"; this fixes what
76885         appears to be a real bug.
76886         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76887         versus int.
76888
76889 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76890
76891         * modules/regex (Depends-on): Add malloc, since the code
76892         assumes that !malloc(0) means failure.
76893
76894 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76895
76896         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76897
76898         alloca modernization/simplification for regex.
76899         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76900         needs to be at the start of the file, and can be moved into
76901         regex_internal.h and simplified.
76902         * lib/regex_internal.h: Include <alloca.h>.
76903         (__libc_use_alloca) [!defined _LIBC]: New macro.
76904         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76905         now works outside glibc.
76906
76907 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * config/srclist.txt: Add glibc bugs 1241, 1245.
76910
76911 2005-08-25  Jim Meyering  <jim@meyering.net>
76912
76913         * lib/open-safer.c: Include <config.h>.
76914         Otherwise, we'd lose LARGEFILE support in any file using
76915         e.g. "fcntl--.h"
76916
76917 2005-08-25  Bruno Haible  <bruno@clisp.org>
76918
76919         * m4/minmax.m4: Require autoconf 2.52.
76920         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76921         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76922         alternatives of translit over the alphabet.
76923         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76924
76925 2005-08-24  Simon Josefsson  <jas@extundo.com>
76926
76927         * tests/test-getpass.c: New file.
76928
76929 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76932         for GNU regex features.
76933
76934 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76937         * lib/regex.h (regerror): Likewise.
76938
76939         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76940         requires this.  (The code never needed it.)
76941
76942         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76943         All uses of recently-renamed identifiers changed to use the new,
76944         POSIX-compliant names.  The code will build and run just fine
76945         without these changes, but it's better to eat our own dog food
76946         and use the standard-conforming names.
76947
76948         * lib/regex.h: Fix a multitude of POSIX name space violations.
76949         These changes have an effect only for programs that define
76950         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76951         do not change anything for programs compiled in the normal way.
76952         Also, there is no effect on the ABI.
76953
76954         (_REGEX_SOURCE): New macro.
76955         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76956         defined and _GNU_SOURCE is not; this fixes a name space violation.
76957
76958         Rename the following macros to obey POSIX requirements.
76959         The old names are still visible as macros if _REGEX_SOURCE is defined.
76960         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76961         RE_BACKSLASH_ESCAPE_IN_LISTS.
76962         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76963         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76964         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76965         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76966         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76967         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76968         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76969         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76970         (REG_INTERVALS): renamed from RE_INTERVALS.
76971         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76972         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76973         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76974         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76975         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76976         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76977         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76978         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76979         RE_UNMATCHED_RIGHT_PAREN_ORD.
76980         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76981         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76982         (REG_DEBUG): renamed from RE_DEBUG.
76983         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76984         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76985         unusual, since we can't clash with the POSIX REG_ICASE.
76986         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76987         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76988         (REG_NO_SUB): renamed from RE_NO_SUB.
76989         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76990         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76991         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76992         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76993         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76994         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76995         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76996         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76997         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76998         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76999         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77000         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77001         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77002         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77003         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77004         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77005         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77006         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77007         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77008         (REG_FIXED): Renamed from REGS_FIXED.
77009         (REG_NREGS): Renamed from RE_NREGS.
77010
77011         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77012         of other REG_* macros, since POSIX says the user is allowed to
77013         #undef these macros selectively.
77014
77015         (reg_errcode_t): Update comment stating what other tables need
77016         to be consistent.
77017
77018         Rename the following enum values to obey POSIX requirements.
77019         The old names are still visible as macros.
77020         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77021         is not defined, since GNU is supposed to be a superset of POSIX as
77022         much as possible, and since we want reg_errcode_t to be a signed
77023         type for implementation consistency.
77024         (_REG_NOERROR): Renamed from REG_NOERROR.
77025         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77026         (_REG_BADPAT): Renamed from REG_BADPAT.
77027         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77028         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77029         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77030         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77031         (_REG_EBRACK): Renamed from REG_EBRACK.
77032         (_REG_EPAREN): Renamed from REG_EPAREN.
77033         (_REG_EBRACE): Renamed from REG_EBRACE.
77034         (_REG_BADBR): Renamed from REG_BADBR.
77035         (_REG_ERANGE): Renamed from REG_ERANGE.
77036         (_REG_ESPACE): Renamed from REG_ESPACE.
77037         (_REG_BADRPT): Renamed from REG_BADRPT.
77038         (_REG_EEND): Renamed from REG_EEND.
77039         (_REG_ESIZE): Renamed from REG_ESIZE.
77040         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77041         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77042         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77043         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77044         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77045
77046         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77047         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77048         changed.  But support the old name if the new one is not defined
77049         and if _REGEX_SOURCE.
77050
77051         Change the following member names in struct re_pattern_buffer.
77052         The old names are still supported if !_REGEX_SOURCE.
77053         The new names are always supported, regardless of _REGEX_SOURCE.
77054         (re_buffer): Renamed from buffer.
77055         (re_allocated): Renamed from allocated.
77056         (re_used): Renamed from used.
77057         (re_syntax): Renamed from syntax.
77058         (re_fastmap): Renamed from fastmap.
77059         (re_translate): Renamed from translate.
77060         (re_can_be_null): Renamed from can_be_null.
77061         (re_regs_allocated): Renamed from regs_allocated.
77062         (re_fastmap_accurate): Renamed from fastmap_accurate.
77063         (re_no_sub): Renamed from no_sub.
77064         (re_not_bol): Renamed from not_bol.
77065         (re_not_eol): Renamed from not_eol.
77066         (re_newline_anchor): Renamed from newline_anchor.
77067
77068         Change the following member names in struct re_registers.
77069         The old names are still supported if !_REGEX_SOURCE.
77070         The new names are always supported, regardless of _REGEX_SOURCE.
77071         (rm_num_regs): Renamed from num_regs.
77072         (rm_start): Renamed from start.
77073         (rm_end): Renamed from end.
77074
77075         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77076         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77077         Prepend __ to parameter names.
77078
77079         Undo yesterday's changes.
77080
77081 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77084         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77085         lib/regex.c.
77086
77087 2005-08-24  Jim Meyering  <jim@meyering.net>
77088
77089         Sync from coreutils.
77090         * m4/fcntl-safer.m4: New file.
77091
77092         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77093         and object files for this module.
77094
77095 2005-08-24  Jim Meyering  <jim@meyering.net>
77096
77097         Sync from coreutils.
77098         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77099
77100 2005-08-24  Jim Meyering  <jim@meyering.net>
77101
77102         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77103         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77104
77105 2005-08-24  Jim Meyering  <jim@meyering.net>
77106
77107         * modules/fcntl-safer: New module.
77108         * modules/fts (Depends-on): Add fcntl-safer.
77109         * MODULES.html.sh (File descriptor based Input/Output):
77110         Add fcntl-safer.
77111
77112 2005-08-24  Bruno Haible  <bruno@clisp.org>
77113
77114         Support for unit test modules.
77115         * modules/README: Mention tests modules.
77116         * modules/TEMPLATE-TESTS: New file.
77117         * gnulib-tool: New options --extract-tests-module, --with-tests and
77118         --tests-base (unused for the moment).
77119         (testsbase, inctests): New variables.
77120         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77121         (func_verify_module): Exclude TEMPLATE-TESTS.
77122         (func_verify_nontests_module, func_verify_tests_module): New functions.
77123         (func_get_dependencies): Add implicit dependency for tests modules.
77124         (func_get_tests_module): New function.
77125         (func_modules_transitive_closure): When --with-tests was specified,
77126         include the unit tests as well, unless explicitly avoided.
77127         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77128         (func_emit_tests_Makefile_am): New function.
77129         (func_create_testdir): When --with-tests was specified, emit a
77130         tests/ directory.
77131         * MODULES.html.sh (Future developments): Update.
77132
77133 2005-08-24  Bruno Haible  <bruno@clisp.org>
77134
77135         * modules/tls-tests: New file.
77136         * tests/test-tls.c: New file, from GNU gettext.
77137
77138 2005-08-24  Bruno Haible  <bruno@clisp.org>
77139
77140         * modules/lock-tests: New file.
77141         * tests/test-lock.c: New file, from GNU gettext.
77142
77143 2005-08-24  Bruno Haible  <bruno@clisp.org>
77144
77145         * lib/lock.h: Add multiple inclusion guard.
77146         * lib/tls.h: Add multiple inclusion guard.
77147
77148 2005-08-24  Bruno Haible  <bruno@clisp.org>
77149
77150         * gnulib-tool: Add support for the --aux-dir option to
77151         --create-testdir, --create-megatestdir, --test, --megatest.
77152         (func_create_testdir, func_create_megatestdir): Optionally emit a
77153         AC_CONFIG_AUX_DIR directive.
77154         (create-testdir, create-megatestdir, test, megatest): Provide a
77155         default value for $auxdir.
77156
77157 2005-08-24  Bruno Haible  <bruno@clisp.org>
77158
77159         * gnulib-tool (import): Use compound statement instead of subshell
77160         where possible.
77161
77162 2005-08-24  Bruno Haible  <bruno@clisp.org>
77163
77164         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77165
77166 2005-08-24  Bruno Haible  <bruno@clisp.org>
77167
77168         * gnulib-tool (func_version): Update.
77169
77170 2005-08-24  Bruno Haible  <bruno@clisp.org>
77171
77172         * gnulib-tool (func_import, func_create_testdir,
77173         func_create_megatestdir): Quote all autoconf macro arguments.
77174
77175 2005-08-24  Bruno Haible  <bruno@clisp.org>
77176
77177         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77178         option --force, because --force causes the aclocal.m4 of each
77179         subdirectory to be newer than the corresponding config.h.in.
77180
77181 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77182
77183         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77184         All contents moved to gl_REGEX.
77185         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77186         assume that it does.
77187
77188 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77189
77190         * lib/regex.h (REG_NOSYS)
77191         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77192         Define, since POSIX requires it as of 2001.
77193         (_REG_ENOSYS)
77194         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77195         New private symbol, used to keep the enum signed in all cases.
77196         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77197         Youngman in
77198         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77199
77200         * lib/regex_internal.c (re_string_skip_chars, register_state):
77201         (calc_state_hash):
77202         Remove forward decls; no longer needed now that we use prototypes.
77203         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77204         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77205         (clean_state_log_if_needed): Likewise.
77206
77207 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * config/srclist.txt: Add glibc bugs 1231-1233.
77210
77211 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77212
77213         Fix problems reported by Sam Steingold in
77214         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77215         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77216         assumed that reg_errcode_t is a signed type, which is not
77217         necessarily true if _XOPEN_SOURCE is not defined.
77218         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77219         since some compilers warn about it otherwise.
77220
77221 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77224         (init_word_char, create_initial_state, duplicate_node_closure):
77225         (fetch_token, peek_token_bracket, build_range_exp):
77226         (build_collating_symbol): Remove forward decls; no longer needed
77227         now that we use prototypes.
77228
77229         * lib/regcomp.c:
77230         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77231         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77232         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77233         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77234         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77235         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77236         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77237         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77238         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77239         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77240         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77241         (build_charclass, build_charclass_op, fetch_number, create_tree):
77242         (create_token_tree, mark_opt_subexp, duplicate_tree):
77243         Use prototypes rather than old-style definitions.
77244
77245         * lib/regex_internal.c:
77246         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77247         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77248         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77249         (re_string_reconstruct, re_string_peek_byte_case):
77250         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77251         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77252         (re_node_set_init_copy, re_node_set_add_intersect):
77253         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77254         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77255         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77256         (re_acquire_state, re_acquire_state_context, register_state):
77257         (create_ci_newstate, create_cd_newstate, free_state):
77258         Likewise.
77259         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77260         re_search_2):
77261         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77262         (re_search_internal, prune_impossible_nodes):
77263         (acquire_init_state_context, check_matching, static):
77264         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77265         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77266         (update_regs, sift_states_backward, build_sifted_states):
77267         (clean_state_log_if_needed, merge_state_array):
77268         (update_cur_sifted_state, add_epsilon_src_nodes):
77269         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77270         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77271         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77272         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77273         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77274         (check_arrival, check_arrival_add_next_nodes):
77275         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77276         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77277         (check_node_accept_bytes, check_node_accept, extend_buffers):
77278         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77279         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77280         (sift_ctx_init):
77281         Likewise.
77282
77283         * lib/regex_internal.h:
77284         (re_string_allocate, re_string_construct, re_string_reconstruct):
77285         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77286         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77287         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77288         (re_string_context_at, re_string_peek_byte_case):
77289         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77290         is defined, since we now use prototypes always.
77291
77292         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77293         C89 or better.  All uses removed.
77294
77295 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * config/srclist.txt: Add glibc bugs 1220-1227.
77298
77299 2005-08-20  Jim Meyering  <jim@meyering.net>
77300
77301         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77302         of unused local, dfa.
77303
77304 2005-08-20  Bruno Haible  <bruno@clisp.org>
77305
77306         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77307
77308 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77311         (re_node_set_insert_last, re_dfa_add_node):
77312         Rename local variables to avoid GCC shadowing warnings.
77313
77314 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77317         [defined lint]: Suppress bogus uninitialized-variable warnings.
77318
77319         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77320         and let the caller return REG_ESPACE if out of space.  This
77321         removes an uninitialied-variable warning with GCC 4.0.1, and also
77322         avoids taking the address of a local variable.  All callers
77323         changed.
77324
77325 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77328         $LIBCSRC/posix/regexec.c.
77329         Add glibc bug 1217 for regcomp.c.
77330
77331 2005-08-19  Jim Meyering  <jim@meyering.net>
77332
77333         * lib/regexec.c (proceed_next_node): Redo local variables to
77334         avoid GCC shadowing warnings.
77335
77336 2005-08-18  Bruno Haible  <bruno@clisp.org>
77337
77338         * lib/strstr.c (strstr): Fix return value in multibyte case.
77339         * lib/strcasestr.c (strcasestr): Likewise.
77340
77341 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77342
77343         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77344
77345 2005-08-17  Jim Meyering  <jim@meyering.net>
77346
77347         Make the %s format (seconds since the epoch) work for a negative
77348         number and when used with a zero-padded field width, e.g. %015s.
77349
77350         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77351         label so that it precedes the code to set `digits'.  Otherwise,
77352         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77353         print `00-22'.  Now, it prints `-0022', as it should.
77354
77355 2005-08-17  Bruno Haible  <bruno@clisp.org>
77356
77357         * modules/strstr (Files): Add m4/mbrtowc.m4.
77358         (Depends-on): Add mbuiter.
77359
77360 2005-08-17  Bruno Haible  <bruno@clisp.org>
77361
77362         * modules/strcasestr: New file.
77363         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77364         strcasestr.
77365
77366 2005-08-17  Bruno Haible  <bruno@clisp.org>
77367
77368         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77369
77370 2005-08-17  Bruno Haible  <bruno@clisp.org>
77371
77372         * modules/mbuiter: New file.
77373         * MODULES.html.sh (Extended multibyte and wide character utilities):
77374         Add mbuiter.
77375
77376 2005-08-17  Bruno Haible  <bruno@clisp.org>
77377
77378         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77379         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77380
77381 2005-08-17  Bruno Haible  <bruno@clisp.org>
77382
77383         * m4/strcasestr.m4: New file.
77384
77385 2005-08-17  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77388         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77389
77390 2005-08-17  Bruno Haible  <bruno@clisp.org>
77391
77392         * lib/strcasestr.h: New file.
77393         * lib/strcasestr.c: New file.
77394
77395 2005-08-17  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/strcasecmp.c: Use mbuiter.h.
77398
77399 2005-08-17  Bruno Haible  <bruno@clisp.org>
77400
77401         * lib/mbuiter.h: New file.
77402
77403 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77406         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77407         and gl_GETOPT are both invoked via different paths (as happens
77408         with GNU tar CVS because it uses both argp and getopt), the former
77409         wins.
77410
77411 2005-08-16  Bruno Haible  <bruno@clisp.org>
77412
77413         * modules/tls: New file.
77414         * MODULES.html.sh (Multithreading): Add tls.
77415
77416 2005-08-16  Bruno Haible  <bruno@clisp.org>
77417
77418         * modules/strnlen1: New file.
77419         * MODULES.html.sh (String handling): Add strnlen1.
77420
77421 2005-08-16  Bruno Haible  <bruno@clisp.org>
77422
77423         * modules/strcase (Files): Add m4/mbrtowc.m4.
77424         (Depends-on): Add strnlen1, mbchar.
77425
77426 2005-08-16  Bruno Haible  <bruno@clisp.org>
77427
77428         * modules/mbiter: New file.
77429         * MODULES.html.sh (Extended multibyte and wide character utilities):
77430         Add mbiter.
77431
77432 2005-08-16  Bruno Haible  <bruno@clisp.org>
77433
77434         * modules/mbfile: New file.
77435         * MODULES.html.sh (Extended multibyte and wide character utilities):
77436         Add mbfile.
77437
77438 2005-08-16  Bruno Haible  <bruno@clisp.org>
77439
77440         * modules/mbchar: New file.
77441         * MODULES.html.sh (Extended multibyte and wide character utilities):
77442         New section.
77443
77444 2005-08-16  Bruno Haible  <bruno@clisp.org>
77445
77446         * m4/tls.m4: New file, from GNU gettext.
77447
77448 2005-08-16  Bruno Haible  <bruno@clisp.org>
77449
77450         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77451         always.
77452         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77453
77454 2005-08-16  Bruno Haible  <bruno@clisp.org>
77455
77456         * m4/mbiter.m4: New file.
77457
77458 2005-08-16  Bruno Haible  <bruno@clisp.org>
77459
77460         * m4/mbfile.m4: New file.
77461
77462 2005-08-16  Bruno Haible  <bruno@clisp.org>
77463
77464         * m4/mbchar.m4: New file.
77465
77466 2005-08-16  Bruno Haible  <bruno@clisp.org>
77467
77468         * lib/tls.h: New file, from GNU gettext.
77469         * lib/tls.c: New file, from GNU gettext.
77470
77471 2005-08-16  Bruno Haible  <bruno@clisp.org>
77472
77473         * lib/strnlen1.h: New file.
77474         * lib/strnlen1.c: New file.
77475
77476 2005-08-16  Bruno Haible  <bruno@clisp.org>
77477
77478         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77479         (mbi_init): Update.
77480         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77481         NUL byte, not after it.
77482
77483 2005-08-16  Bruno Haible  <bruno@clisp.org>
77484
77485         * lib/strcase.h (strcasecmp): Add note in comments.
77486         * lib/strncasecmp.c: Use code from strcasecmp.c.
77487         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77488         (strcasecmp): Work correctly in multibyte locales.
77489
77490 2005-08-16  Bruno Haible  <bruno@clisp.org>
77491
77492         * lib/mbiter.h: New file.
77493
77494 2005-08-16  Bruno Haible  <bruno@clisp.org>
77495
77496         * lib/mbfile.h: New file.
77497
77498 2005-08-16  Bruno Haible  <bruno@clisp.org>
77499
77500         * lib/mbchar.h: New file.
77501         * lib/mbchar.c: New file.
77502
77503 2005-08-16  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77506         the valid ones. Makes the comparison operations transitive:
77507         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77508         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77509
77510 2005-08-15  Simon Josefsson  <jas@extundo.com>
77511
77512         * modules/ssize_t (License): Change to 'unlimited'.
77513
77514         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77515
77516 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77519         Add comments for each pending glibc patch.
77520
77521 2005-08-15  Bruno Haible  <bruno@clisp.org>
77522
77523         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77524         __cplusplus is defined.
77525
77526 2005-08-14  Jim Meyering  <jim@meyering.net>
77527
77528         Sync from coreutils.
77529
77530         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77531         Use the hash-table-based cycle-detection code not just when
77532         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77533         Reported by James Youngman in
77534         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77535         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77536         FTS_TIGHT_CYCLE_CHECK.
77537         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77538         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77539         once again.
77540         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77541         * lib/fts.c (fd_safer): Remove decl.
77542         Include fcntl--.h rather than unistd-safer.h
77543         (fts_safe_changedir): Don't call fd_safer; no longer needed
77544         now that we include fcntl--.h.
77545
77546 2005-08-12  Simon Josefsson  <jas@extundo.com>
77547
77548         * modules/getndelim2: Use ssize_t module.
77549         * modules/getnline: Likewise.
77550         * modules/safe-read: Likewise.
77551         * modules/xreadlink: Likewise.
77552
77553         * modules/ssize_t: New file.
77554
77555 2005-08-12  Simon Josefsson  <jas@extundo.com>
77556
77557         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77558
77559 2005-08-12  Simon Josefsson  <jas@extundo.com>
77560
77561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77562         ssize_t.
77563
77564 2005-08-12  Simon Josefsson  <jas@extundo.com>
77565
77566         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77567         readline, getdelim and check_version.
77568         (Support for systems lacking ISO C 99: Sizes of integer types):
77569         Add size_max.
77570
77571 2005-08-12  Bruno Haible  <bruno@clisp.org>
77572
77573         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77574
77575 2005-08-11  Simon Josefsson  <jas@extundo.com>
77576
77577         * modules/readline: New file.
77578
77579         * modules/strnlen (Files): Add strnlen.h.
77580
77581 2005-08-11  Simon Josefsson  <jas@extundo.com>
77582
77583         * m4/readline.m4: New file.
77584
77585 2005-08-11  Simon Josefsson  <jas@extundo.com>
77586
77587         * lib/readline.h, readline.c: New file.
77588
77589 2005-08-11  Simon Josefsson  <jas@extundo.com>
77590
77591         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77592         gl_AVOID.
77593
77594 2005-08-11  Bruno Haible  <bruno@clisp.org>
77595
77596         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77597
77598 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77599
77600         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77601
77602 2005-08-10  Simon Josefsson  <jas@extundo.com>
77603
77604         * tests/test-iconvme.c: New file.
77605
77606 2005-08-10  Simon Josefsson  <jas@extundo.com>
77607
77608         * m4/strnlen.m4: New file.
77609
77610         * m4/strndup.m4: Don't check for strnlen declaration, done in
77611         strnlen.m4.
77612
77613 2005-08-10  Simon Josefsson  <jas@extundo.com>
77614
77615         * lib/strndup.c: Use strnlen.h.
77616
77617         * lib/strnlen.h: New file.
77618
77619 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77620
77621         * README: Typos.
77622
77623 2005-08-02  Simon Josefsson  <jas@extundo.com>
77624
77625         * modules/readline: New file.
77626
77627 2005-08-02  Simon Josefsson  <jas@extundo.com>
77628
77629         * modules/getdelim: New file.
77630
77631         * modules/getline: Rewrite, don't use getndelim2.
77632
77633 2005-08-02  Simon Josefsson  <jas@extundo.com>
77634
77635         * m4/getline.m4: Separate out getdelim stuff into separate module.
77636
77637         * m4/getdelim.m4: New file.
77638
77639 2005-08-02  Simon Josefsson  <jas@extundo.com>
77640
77641         * lib/getline.h, getline.c: Rewrite.
77642
77643         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77644
77645 2005-07-31  Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/lock.h (gl_lock_initializer): New macro.
77648         (gl_lock_define_initialized): Use it.
77649         (gl_rwlock_initializer): New macro.
77650         (gl_rwlock_define_initialized): Use it.
77651         (gl_recursive_lock_initializer): New macro.
77652         (gl_recursive_lock_define_initialized): Use it.
77653
77654 2005-07-30  Karl Berry  <karl@gnu.org>
77655
77656         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77657         Report from Ben Pfaff, regarding getopt.
77658
77659 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77660
77661         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77662         normal way.
77663         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77664         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77665         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77666         (gl_GETOPT): Use the new macros.  Most of the implementation
77667         is moved to the new macros.  This is for programs like Emacs
77668         that don't want all the functionality of gl_GETOPT.
77669
77670 2005-07-26  Bruno Haible  <bruno@clisp.org>
77671
77672         * m4/lock.m4: Update from GNU gettext.
77673
77674 2005-07-26  Bruno Haible  <bruno@clisp.org>
77675
77676         * lib/lock.h: Update from GNU gettext.
77677         * lib/lock.c: Update from GNU gettext.
77678
77679 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77682         obsolescent AC_TRY_RUN.  Include the default includes files, for
77683         'exit'.
77684
77685 2005-07-24  Bruno Haible  <bruno@clisp.org>
77686
77687         * modules/visibility: New file.
77688         * MODULES.html.sh (Misc): Add visibility.
77689
77690 2005-07-24  Bruno Haible  <bruno@clisp.org>
77691
77692         * m4/visibility.m4: New file.
77693
77694 2005-07-24  Bruno Haible  <bruno@clisp.org>
77695
77696         * doc/visibility.texi: New file.
77697
77698 2005-07-22  Bruno Haible  <bruno@clisp.org>
77699
77700         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77701         $(ALLOCA_H), redundant through BUILT_SOURCES.
77702         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77703         redundant through BUILT_SOURCES.
77704         * modules/byteswap (Makefile.am): Remove explicit dependency on
77705         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77706         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77707         $(FNMATCH_H), redundant through BUILT_SOURCES.
77708         * modules/getopt (Makefile.am): Remove explicit dependency on
77709         $(GETOPT_H), redundant through BUILT_SOURCES.
77710         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77711         redundant through BUILT_SOURCES.
77712         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77713         redundant through BUILT_SOURCES.
77714         * modules/stdbool (Makefile.am): Remove explicit dependency on
77715         $(STDBOOL_H), redundant through BUILT_SOURCES.
77716         * modules/stdint (Makefile.am): Remove explicit dependency on
77717         $(STDINT_H), redundant through BUILT_SOURCES.
77718         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77719         Remove explicit dependency on $(SYSEXITS_H).
77720         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77721
77722 2005-07-18  Simon Josefsson  <jas@extundo.com>
77723
77724         * lib/check-version.c (check_version): Accept identical versions too.
77725
77726 2005-07-18  Bruno Haible  <bruno@clisp.org>
77727
77728         * modules/lock: New file.
77729         * MODULES.html.sh (Multithreading): New section.
77730
77731 2005-07-18  Bruno Haible  <bruno@clisp.org>
77732
77733         * m4/lock.m4: New file, from GNU gettext.
77734
77735 2005-07-18  Bruno Haible  <bruno@clisp.org>
77736
77737         * lib/lock.h: New file, from GNU gettext.
77738         * lib/lock.c: New file, from GNU gettext.
77739
77740 2005-07-18  Bruno Haible  <bruno@clisp.org>
77741
77742         * lib/lock.h (gl_once_t): New type.
77743         (gl_once_define, gl_once): New macros.
77744         * lib/lock.c (fresh_once): New variable.
77745         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77746         functions.
77747
77748 2005-07-16  Simon Josefsson  <jas@extundo.com>
77749
77750         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77751         workaround, suggested by Bruno.
77752
77753 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * modules/xalloc (Depends-on): Add xalloc-die.
77756         * modules/xvasprintf (Depends-on): Add xalloc-die.
77757
77758 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77761         with a minor change.
77762
77763 2005-07-15  Bruno Haible  <bruno@clisp.org>
77764
77765         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77766         When using lib/poll.c, define poll as rpl_poll.
77767
77768 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * modules/argp (Depends-on): Remove unlocked-io.
77771
77772 2005-07-14  Derek Price  <derek@ximbiot.com>
77773
77774         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77775         for glob symlink bug.
77776
77777 2005-07-14  Bruno Haible  <bruno@clisp.org>
77778
77779         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77780         Instead, test for *_unlocked function declarations directly.
77781
77782 2005-07-11  Simon Josefsson  <jas@extundo.com>
77783
77784         * modules/size_max: New file.
77785
77786         * modules/xsize: Depend on size_max module for size_max.m4.
77787
77788 2005-07-11  Simon Josefsson  <jas@extundo.com>
77789
77790         * lib/size_max.h: New file.
77791
77792 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77795         copyright symbol and the year.
77796         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77797         (version_etc_va): Use parameterized copyright notice.
77798         Reword to conform to the current GNU coding standards.
77799
77800 2005-07-11  Karl Berry  <karl@gnu.org>
77801
77802         * doc/gnulib.texi (Quoting): new node.
77803         (Initial import): more info, from Patrice.
77804
77805 2005-07-11  Bruno Haible  <bruno@clisp.org>
77806
77807         * gnulib-tool (func_usage): Document option --avoid.
77808         (Command line options): Handle --avoid.
77809         (func_acceptable): New function.
77810         (func_modules_transitive_closure): Use it.
77811
77812 2005-07-11  Bruno Haible  <bruno@clisp.org>
77813
77814         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77815         Reported by Jim Meyering.
77816
77817 2005-07-10  Bruno Haible  <bruno@clisp.org>
77818
77819         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77820         Needed when size_t is smaller than 'unsigned int'.
77821         Reported by Paul Eggert.
77822
77823 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77824
77825         * modules/argp (Depends-on): Add unlocked-io
77826
77827 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77828
77829         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77830         block of defines.
77831
77832 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77835         fix now.
77836
77837 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77838         and Paul Eggert  <eggert@cs.ucla.edu>
77839
77840         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77841         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77842
77843 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * modules/regex (Files): Add lib/regex_internal.c,
77846         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77847         (Depends-on): Add extensions.
77848         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77849
77850 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77853         pathconf.
77854         * m4/same.m4 (gl_SAME): Likewise.
77855         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77856
77857         * m4/regex.m4: Adjust to new libc regex implementation.
77858         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77859         all the .c and .h parts of (the new) regex.
77860         Quote the m4 stuff better.
77861         Check for RE_ICASE bug of old gnulib.
77862         Check for REG_STARTEND of recent libc.
77863         Rename local variables from jm_* to gl_*.
77864         Quote operand of "test -f".
77865         Say "recent enough" version of libc, not "version 2".
77866         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77867         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77868         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77869         Remove check for btowc, isascii.
77870         Require AM_LANGINFO_CODESET.
77871
77872 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         * lib/regex.c, regex.h: Sync from libc.
77875         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77876         * lib/regexec.c:
77877         New files, synced from libc, except that regex_internal.h
77878         currently has a small porting fix.
77879
77880 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77881
77882         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77883         regex_internal.c, regexec.c.
77884         Add regex_internal.h too, but as a comment, since the libc version
77885         is currently broken in gnulib mode.
77886
77887 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         Support programs like Emacs that use gnulib but not gettext.
77890         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77891         * modules/gettext-h: New file.
77892         * modules/gettext (Files): Remove lib/gettext.h.
77893         (Depends-on): Add gettext-h.
77894         (Makefile.am): Remove lib_SOURCES.
77895         * modules/argmatch, modules/c-stack, modules/closeout:
77896         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77897         * modules/execute, modules/file-type, modules/getaddrinfo:
77898         * modules/getopt, modules/human, modules/javacomp:
77899         * modules/javaexec, modules/mkdir-p, modules/obstack:
77900         * modules/openat, modules/pagealign_alloc, modules/pipe:
77901         * modules/quotearg, modules/regex, modules/rpmatch:
77902         * modules/unicodeio, modules/userspec, modules/version-etc:
77903         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77904         * modules/xsetenv:
77905         Depend on gettext-h, not gettext.
77906
77907 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * gnulib-tool (func_import): Add support for 'public domain' license.
77910         * modules/alloca, modules/atexit, modules/memmove:
77911         Now public domain, not GPL.
77912         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77913         * modules/realloc, modules/strerror, modules/strtod:
77914         Now LGPL, not GPL.
77915
77916 2005-07-05  Bruno Haible  <bruno@clisp.org>
77917
77918         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77919         autoconf CVS. Needed for mingw.
77920
77921 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77922
77923         Remove the dependency of the strftime module on the tzset module.
77924         * modules/strftime (Depends-on): Remove dependency on tzset.
77925
77926 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         Remove the dependency of the strftime module on the tzset module.
77929         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77930         gl_FUNC_TZSET_CLOBBER.
77931
77932 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         Remove the dependency of the strftime module on the tzset module.
77935         * lib/strftime.c (my_strftime)
77936         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77937         Copy the input structure, to work around some of the bug with
77938         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77939         Solaris releases, you should also use the tzset module, but we won't
77940         require it as a dependency any more since we don't want LGPLed code
77941         to depend on GPLed code.
77942
77943 2005-07-02  Jim Meyering  <jim@meyering.net>
77944
77945         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77946         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77947         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77948         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77949
77950 2005-07-02  Jim Meyering  <jim@meyering.net>
77951
77952         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77953
77954 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77955
77956         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77957         declares only 'struct timespec;' (!).
77958
77959 2005-07-01  Jim Meyering  <jim@meyering.net>
77960
77961         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77962         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77963         * lib/save-cwd.c, tempname.c:
77964         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77965         and don't include <sys/file.h>).
77966
77967 2005-06-29  Jim Meyering  <jim@meyering.net>
77968
77969         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77970         type name.  Use the variable name instead.
77971         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77972         Likewise.
77973
77974 2005-06-28  Simon Josefsson  <jas@extundo.com>
77975
77976         * modules/check-version (Files): Add check-version.m4.
77977
77978 2005-06-28  Simon Josefsson  <jas@extundo.com>
77979
77980         * m4/check-version.m4: New file, suggested by Jim Meyering
77981         <jim@meyering.net>.
77982
77983 2005-06-28  Simon Josefsson  <jas@extundo.com>
77984
77985         * lib/check-version.h, lib/check-version.c: New files.
77986
77987 2005-06-28  Simon Josefsson  <jas@extundo.com>
77988
77989         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77990         collision with global variable.  Better indentation.  Don't
77991         increment buffer pointer beyond buffer end.  Based on comments
77992         from Paul Eggert <eggert@cs.ucla.edu>.
77993
77994         * lib/base64.h: Indent.
77995
77996 2005-06-28  Simon Josefsson  <jas@extundo.com>
77997
77998         * doc/gnulib.texi (Library version handling): New section.
77999
78000 2005-06-28  Jim Meyering  <jim@meyering.net>
78001
78002         * check-module (find_included_lib_files): Hard-code another
78003         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78004         but modules/fts-lgpl (correctly) does not list those files.
78005
78006         * modules/canonicalize (Files): Add lib/pathmax.h.
78007
78008 2005-06-25  Simon Josefsson  <jas@extundo.com>
78009
78010         * modules/check-version: New file.
78011
78012 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78015         initializer of struct addrinfo, as an indication that we don't
78016         care how many members the structure has.
78017
78018 2005-06-24  Derek Price  <derek@ximbiot.com>
78019         and Bruno Haible  <bruno@clisp.org>
78020
78021         Remove stat module & update lstat.
78022         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78023         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78024         * m4/stat.m4: Remove this file.
78025
78026 2005-06-24  Derek Price  <derek@ximbiot.com>
78027         and Bruno Haible  <bruno@clisp.org>
78028
78029         Remove stat module & update lstat.
78030         * lib/stat.c: Remove this file...
78031         (slash_aware_lstat): ...moving this content and its support...
78032         * lib/lstat.c (rpl_lstat): ...into here.
78033         * lib/lstat.h: New file.
78034
78035 2005-06-24  Derek Price  <derek@ximbiot.com>
78036         and Bruno Haible  <bruno@clisp.org>
78037
78038         Remove stat module & update lstat.
78039         * config/srclist.txt (libc sources): Remove stat.
78040
78041 2005-06-24  Derek Price  <derek@ximbiot.com>
78042         and Bruno Haible  <bruno@clisp.org>
78043
78044         Remove stat module & update lstat.
78045         * MODULES.html.sh (stat): Remove.
78046         * MODULES.html: Regenerated.
78047         * modules/lstat (Description): Correct function name.
78048         (Files): Add "lstat.h".
78049         (Depends-on): Remove stat, add xalloc, stat-macros.
78050         * modules/stat: Remove this file.
78051         (Include): Add "lstat.h", remove <sys/stat.h>.
78052
78053 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78056         (ranged_convert): Don't save conversion in a temporary struct.
78057         This causes a warning with GCC 4.0.0, and anyway in the typical
78058         case it's not worth the extra 100 bytes or so of code.
78059         (ranged_convert, __mktime_internal): When calling a function via a
78060         pointer P, use P () rather than (*P) (), as we now assume C89 or
78061         better.
78062
78063 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78066         "who -r" failed to give output.  Problem reported by Tim Waugh.
78067
78068         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78069         (xcalloc): Use it to avoid needless tests.
78070         Problem reported by Jim Meyering.
78071
78072 2005-06-20  Derek Price  <derek@ximbiot.com>
78073
78074         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78075         unnecessary for Autoconfs > 2.59c.
78076
78077 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78078
78079         * lib/argp.h (__option_is_short): Check upper limit of
78080         __key. Isprint() requires its argument to have the value
78081         of an unsigned char or EOF.
78082
78083 2005-06-16  Jim Meyering  <jim@meyering.net>
78084
78085         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78086         when either N or S is zero.
78087
78088 2005-06-16  Derek Price  <derek@ximbiot.com>
78089
78090         * m4/bison.m4: Declare YACC & YFLAGS precious.
78091
78092 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78095         multibyte string or pattern, fall back on unibyte matching.
78096         Problem reported by James Youngman.
78097
78098 2005-06-08  Bruno Haible  <bruno@clisp.org>
78099
78100         * modules/csharpcomp: New file.
78101         * MODULES.html.sh (C#): Add csharpcomp.
78102
78103 2005-06-08  Bruno Haible  <bruno@clisp.org>
78104
78105         * m4/csharpcomp.m4: New file, from GNU gettext.
78106
78107 2005-06-08  Bruno Haible  <bruno@clisp.org>
78108
78109         * lib/csharpcomp.h: New file, from GNU gettext.
78110         * lib/csharpcomp.c: New file, from GNU gettext.
78111         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78112
78113 2005-06-08  Bruno Haible  <bruno@clisp.org>
78114
78115         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78116         warning on mingw.
78117
78118 2005-06-07  Derek Price  <derek@ximbiot.com>
78119
78120         Sync from CVS.
78121         * lib/glob_.h: Indent nested #ifdef.
78122
78123 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         Sync from coreutils.
78126         Use "file name" when talking about file names, instead of "filename"
78127         or "path", as per the GNU coding standards.
78128         * lib/mkdir-p.c: Renamed from makepath.c.
78129         (make_dir_parents): Renamed from make_path.  All callers changed.
78130         * lib/mkdir-p.h: Likewise.  All includers changed.
78131         * lib/filenamecat.c: Renamed from path-concat.c.
78132         (file_name_concat): Renamed from path_concat.  All callers changed.
78133         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78134         * lib/filenamecat.h: Likewise.  All includers changed.
78135         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78136         in comments or local variable names.
78137         * lib/basename.c: Likewise.
78138         * lib/canonicalize.c, canonicalize.h: Likewise.
78139         * lib/dirname.c, dirname.h: Likewise.
78140         * lib/euidaccess.c: Likewise.
78141         * lib/exclude.c: Likewise
78142         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78143         * lib/fsusage.c, fsuage.h: Likewise.
78144         * lib/fts.c, fts_.h: Likewise.
78145         * lib/getcwd.c: Likewise.
78146         * lib/getloadavg.c: Likewise.
78147         * lib/mkstemp.c: Likewise.
78148         * lib/mountlist.c, mountlist.h: Likewise.
78149         * lib/openat.c, openat.h: Likewise.
78150         * lib/readlink-stub.c: Likewise.
78151         * lib/readutmp.c, readutmp.h: Likewise.
78152         * lib/rename.c: Likewise.
78153         * lib/rmdir.c: Likewise.
78154         * lib/same.c: Likewise.
78155         * lib/savedir.c: Likewise.
78156         * lib/stripslash.c: Likewise.
78157         * lib/tempname.c: Likewise.
78158         * lib/xreadlink.c: Likewise.
78159         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78160         All uses changed.
78161         * lib/exclude.h: Likewise.
78162
78163         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78164         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78165         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78166         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78167         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78168         files have been getting away with it for years (MORE/BSD 4.3
78169         is extinct now).
78170         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78171         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78172
78173         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78174         Define to 256, not 255, as per modern POSIX.
78175
78176 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         Sync from coreutils.
78179         Use "file name" when talking about file names, instead of "filename"
78180         or "path", as per the GNU coding standards.
78181         * MODULES.html.sh: mkdir-p renamed from makepath.
78182         filenamecat renamed from path-concat.
78183         * modules/filenamecat: Renamed from modules/path-concat.
78184         (Files): filenamecat.h and filenamecat.c renamed from
78185         path-concat.h and path-concat.c.
78186         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78187         (Include): filenamecat.h, not path-concat.h.
78188         * modules/mkdir-p: Renamed from modules/makepath.
78189         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78190         makepath.c.
78191         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78192         (Include): mkdir-p.h, not makepath.h.
78193
78194 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         Sync from coreutils.
78197         * m4/mkdir-p.m4: Renamed from makepath.m4.
78198         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78199         Rename files from makepath.c to mkdir-p.c, and from
78200         makepath.h to mkdir-p.h.
78201         * m4/filenamecat.m4: Renamed from path-concat.m4.
78202         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78203         Rename files from path-concat.c to filenamecat.c,
78204         and from path-concat.h to filenamecat.h.
78205         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78206         "file name" in local variables or comments.
78207         * m4/rename.m4: Likewise.
78208
78209 2005-06-01  Bruno Haible  <bruno@clisp.org>
78210
78211         * modules/csharpexec: New file.
78212         * MODULES.html.sh (C#): New section.
78213
78214 2005-06-01  Bruno Haible  <bruno@clisp.org>
78215
78216         * m4/csharp.m4: New file, from GNU gettext.
78217         * m4/csharpexec.m4: New file, from GNU gettext.
78218
78219 2005-06-01  Bruno Haible  <bruno@clisp.org>
78220
78221         * lib/csharpexec.h: New file, from GNU gettext.
78222         * lib/csharpexec.c: New file, from GNU gettext.
78223         * lib/csharpexec.sh.in: New file, from GNU gettext.
78224
78225 2005-05-31  Derek Price  <derek@ximbiot.com>
78226             Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         Sync from cvs.
78229         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78230
78231 2005-05-31  Derek Price  <derek@ximbiot.com>
78232             Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         Sync from cvs.
78235         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78236
78237 2005-05-29  Derek Price  <derek@ximbiot.com>
78238
78239         * config/srclist.txt (glob_.h, glob.c): Add these files.
78240
78241 2005-05-29  Derek Price  <derek@ximbiot.com>
78242
78243         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78244         * modules/glob: New file.
78245         * modules/getlogin_r: Add link to POSIX spec in description.
78246
78247 2005-05-29  Derek Price  <derek@ximbiot.com>
78248             Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         * m4/glob.m4: New file.
78251
78252 2005-05-29  Derek Price  <derek@ximbiot.com>
78253             Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * lib/glob_.h, lib/glob.c: New files.
78256
78257 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78258
78259         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78260         * modules/fts-lgpl (Depends-on): Remove gettext.
78261
78262 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78265         and don't require gt_INTTYPES_PRI.
78266
78267 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78270
78271         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78272         the configuration hassle isn't worth it.
78273         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78274         (LONGEST_MODIFIER, PRIuMAX): Remove.
78275
78276 2005-05-27  Bruno Haible  <bruno@clisp.org>
78277
78278         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78279
78280 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78281
78282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78283         _POSIX_PTHREAD_SEMANTICS for Solaris.
78284
78285 2005-05-25  Derek Price  <derek@ximbiot.com>
78286
78287         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78288
78289 2005-05-25  Derek Price  <derek@ximbiot.com>
78290             Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78293         * lib/getlogin_r.c, getlogin_r.h: New files.
78294
78295 2005-05-25  Bruno Haible  <bruno@clisp.org>
78296             Derek Price  <derek@ximbiot.com>
78297
78298         * lib/getlogin_r.h: Simplify API documentation.
78299
78300 2005-05-23  Derek Price  <derek@ximbiot.com>
78301
78302         * modules/minmax (Files): Add m4/minmax.m4.
78303         (configure.ac): Add gl_MINMAX.
78304
78305 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78306
78307         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78308         so that unistd-safer.h (GPL'ed code) need not be included.
78309
78310 2005-05-22  Bruno Haible  <bruno@clisp.org>
78311
78312         * m4/minmax.m4: New file.
78313         Based on a patch by Derek Price <derek@ximbiot.com>.
78314
78315 2005-05-22  Bruno Haible  <bruno@clisp.org>
78316
78317         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78318         (INT64_MIN): Fix definition.
78319         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78320
78321         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78322         NEED_SIGNED_INT_TYPES.
78323
78324         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78325         HAVE_SYSTEM_INTTYPES.
78326
78327 2005-05-22  Bruno Haible  <bruno@clisp.org>
78328
78329         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78330         Also include <sys/param.h> if it defines MIN, MAX.
78331         Based on a patch by Derek Price <derek@ximbiot.com>.
78332
78333 2005-05-21  Jim Meyering  <jim@meyering.net>
78334
78335         * modules/fts (Files): Add m4/inttypes-pri.m4.
78336         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78337
78338 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         New fts module.
78341         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78342         (setup_dir, free_dir): New functions.
78343         (enter_dir, leave_dir): Define trivial
78344         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78345         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78346         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78347         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78348         Move to fts-cycle.c.
78349         (fts_open): Use setup_dir.
78350         (fts_close): Use free_dir.
78351         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78352         This adds a label and some gotos, but the alternatives were messier.
78353         Check for memory allocation failure when entering a dir.
78354         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78355         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78356         (FTS): New member fts_cycle, that is a union that contains the
78357         old active_dir_ht and cycle_state.  All uses changed to mention
78358         fts_cycle.ht and fts_cycle.state.
78359         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78360         fts.c, with the following changes:
78361         (setup_dir, free_dir): New functions.
78362         (enter_dir): Now returns bool.  Return true if successful, false
78363         if memory exhausted.  All callers changed.
78364         Do not bother partly cleaning up on
78365         memory allocation failure; that is free_dir's job.
78366         However, free ad if hash_insert fails, to avoid memory leak.
78367         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78368         fts->fts_options to see which union member to use.
78369
78370 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78373         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78374
78375 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78376
78377         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78378
78379 2005-05-20  Jim Meyering  <jim@meyering.net>
78380
78381         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78382         Now a macro, to pacify GCC.
78383
78384 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78385
78386         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78387         of -1.
78388
78389 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78390
78391         * lib/chown.c (rpl_chown): Return -1 on failure.
78392
78393 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78396         Don't check for stddef.h.
78397         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78398         don't use its results.
78399         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78400         since we include them unconditionally.  Don't require
78401         AM_STDBOOL_H, since stdbool is a prerequisite.
78402         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78403         since we assume C89 or better.
78404         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78405         as we don't use their results.
78406         Don't check for fchdir, memmove, memset, strrchr, as we use
78407         them unconditionally.
78408         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78409         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78410
78411 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78414         Include <stddef.h> unconditionally, since we assume C89 now.
78415         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78416         * lib/fts.c: Include fts_.h first, to check interface.
78417         Do not include intprops.h; no longer needed.
78418         Include cycle-check.h and hash.h, since fts_.h no longer does.
78419         Remove unnecessary casts of closedir to void.
78420         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78421         decide whether to decrement nlinks.
78422         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78423         (FTS): Use struct hash_table * instead of Hash_table, so that
78424         we no longer need to include hash.h here.
78425
78426 2005-05-18  Jim Meyering  <jim@meyering.net>
78427
78428         * modules/dirfd (License): Change to LGPL.  Most of the code
78429         is already in the public domain.
78430
78431 2005-05-18  Jim Meyering  <jim@meyering.net>
78432
78433         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78434         Reported by Yoann Vandoorselaere.
78435
78436 2005-05-17  Jim Meyering  <jim@meyering.net>
78437
78438         * m4/fts.m4: New file, from coreutils.
78439
78440 2005-05-17  Jim Meyering  <jim@meyering.net>
78441
78442         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78443
78444 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         Sync from coreutils.
78447         * m4/unlinkdir.m4: New file.
78448
78449 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78450
78451         Sync from coreutils.
78452         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78453         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78454         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78455         White space changes only.
78456         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78457         special.
78458         * lib/yesno.c: Include getline.h, not ctype.h.
78459         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78460         Use getline to remove arbitrary restriction on response length.
78461
78462 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78463
78464         * config/srclist-update: Spell out "Street" in FSF postal
78465         mail address; this is the style the FSF seems to prefer.
78466
78467         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78468         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78469         this updates FSF postal mail address.
78470
78471         Sync from coreutils.
78472         * modules/unlinkdir: New file.
78473         * modules/yesno (Depends-on): Add getline.
78474         * MODULES.html.sh (File system functions): Add unlinkdir.
78475
78476 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78479         lib/strsep.h:
78480         Change the initial comment to refer to GPL, not LGPL.
78481         gnulib-tool will change it to LGPL as needed.
78482
78483         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78484         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78485         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78486         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78487         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78488         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78489         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78490         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78491         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78492         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78493         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78494         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78495         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78496         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78497         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78498         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78499         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78500         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78501         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78502         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78503         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78504         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78505         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78506         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78507         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78508         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78509         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78510         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78511         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78512         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78513         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78514         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78515         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78516         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78517         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78518         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78519         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78520         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78521         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78522         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78523         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78524         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78525         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78526         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78527         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78528         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78529         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78530         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78531         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78532         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78533         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78534         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78535         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78536         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78537         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78538         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78539         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78540         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78541         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78542         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78543         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78544         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78545         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78546         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78547         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78548         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78549         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78550         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78551         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78552         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78553         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78554         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78555         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78556         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78557         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78558         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78559         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78560         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78561         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78562         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78563         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78564         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78565         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78566         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78567         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78568         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78569         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78570         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78571         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78572         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78573         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78574         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78575         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78576         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78577         lib/yesno.c, lib/yesno.h:
78578         Update FSF postal mail address.
78579
78580 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78583         tests/test-memmem.c, tests/test-stpncpy.c:
78584         Update FSF postal mail address.
78585
78586 2005-05-13  Bruno Haible  <bruno@clisp.org>
78587
78588         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78589         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78590         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78591         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78592         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78593         Add support for 64-bit integers in the MSVC compiler.
78594
78595 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78596
78597         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78598
78599 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78600
78601         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78602
78603 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         * doc/getdate.texi (General date syntax): Don't say that date
78606         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78607         Problem reported by Nic Ferrier.
78608
78609 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78610
78611         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78612         specified in ai_socktype. Fix invalid ai_protocol
78613         check. ai_protocol is usually set to 0 or depending on
78614         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78615         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78616         ai_socktype / ai_protocol in the returned addrinfo structure.
78617
78618 2005-05-10  Simon Josefsson  <jas@extundo.com>
78619
78620         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78621         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78622
78623 2005-05-10  Karl Berry  <karl@gnu.org>
78624
78625         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78626         (from http://www.gnu.org/licenses).
78627         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78628         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78629         fdl.texi suffices.
78630
78631 2005-05-10  Karl Berry  <karl@gnu.org>
78632
78633         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78634         (COPYING.DOC): remove.
78635
78636         * config/srclist-update: new FSF address.
78637
78638 2005-05-10  Derek Price  <derek@ximbiot.com>
78639
78640         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78641         possible.
78642
78643 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78644             Bruno Haible  <bruno@clisp.org>
78645
78646         * modules/inet_ntop: New file.
78647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78648         inet_ntop.
78649
78650 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78651             Bruno Haible  <bruno@clisp.org>
78652
78653         * m4/inet_ntop.m4: New file.
78654
78655 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78656             Bruno Haible  <bruno@clisp.org>
78657
78658         * lib/inet_ntop.h: New file.
78659         * lib/inet_ntop.c: New file, from glibc with modifications.
78660
78661 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * modules/time_r (License): Change to LGPL.
78664         * modules/extensions (License): Change to LGPL.  Actually,
78665         the license is more permissive than that, but currently gnulib-tool
78666         doesn't know how to handle more-permissive licenses.
78667
78668         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78669         Problem reported by Dave Love.
78670
78671 2005-05-08  Jim Meyering  <jim@meyering.net>
78672
78673         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78674         blank.
78675
78676 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * modules/argmatch (Depends-on): Add stdbool.
78679         * modules/backupfile (Depends-on): Likewise.
78680         * modules/chdir-long (Depends-on): Likewise.
78681         * modules/closeout (Depends-on): Likewise.
78682         * modules/cycle-check (Depends-on): Likewise.
78683         * modules/dirname (Depends-on): Likewise.
78684         * modules/fnmatch (Depends-on): Likewise.
78685         * modules/fsusage (Depends-on): Likewise.
78686         * modules/fwriteerror (Depends-on): Likewise.
78687         * modules/getcwd (Depends-on): Likewise.
78688         * modules/getloadavg (Depends-on): Likewise.
78689         * modules/hard-locale (Depends-on): Likewise.
78690         * modules/makepath (Depends-on): Likewise.
78691         * modules/mountlist (Depends-on): Likewise.
78692         * modules/nanosleep (Depends-on): Likewise.
78693         * modules/posixtm (Depends-on): Likewise.
78694         * modules/quotearg (Depends-on): Likewise.
78695         * modules/readtokens (Depends-on): Likewise.
78696         * modules/readtokens0 (Depends-on): Likewise.
78697         * modules/readutmp (Depends-on): Likewise.
78698         * modules/save-cwd (Depends-on): Likewise.
78699         * modules/strftime (Depends-on): Likewise.
78700         * modules/userspec (Depends-on): Likewise.
78701         * modules/utimecmp (Depends-on): Likewise.
78702         * modules/xgetcwd (Depends-on): Likewise.
78703         * modules/xnanosleep (Depends-on): Likewise.
78704         * modules/xstrtod (Depends-on): Likewise.
78705         * modules/yesno (Depends-on): Likewise.
78706
78707 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78710         needless checks.
78711
78712 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         Merge from coreutils.  Among other things,
78715         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78716         * lib/fd-safer.c: New file.
78717         * lib/fcntl-safer.h, open-safer.c: Remove.
78718         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78719         * lib/dup-safer.c: Include unistd-safer.h first.
78720         Don't include errno.h.
78721         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78722         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78723         * lib/file-type.c: Rely on file-type.h change.
78724         * lib/getloadavg.c: Include unistd-safer.h.
78725         (getloadavg): Use safer open.
78726         * lib/getusershell.c: Include "stdio-safer.h".
78727         (getusershell): Use safer fopen.
78728         * lib/long-options.c (long_options): Use NULL rather than 0.
78729         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78730         'free'.
78731         * lib/modechange.c: Likewise.
78732         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78733         (MODE_DONE): New constant.
78734         (struct mode_change): Remove 'next' member.
78735         (make_node_op_equals): New function; like the old one of the
78736         same name, except it allocates an array.
78737         (mode_compile, mode_create_from_ref): Use it.
78738         (mode_compile): Allocate result as an array, not a linked list.
78739         Parse octal string ourself, so that we catch mistakes like "+0".
78740         (mode_adjust): Arg is an array, not a linked list.
78741         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78742         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78743         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78744         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78745         Remove.  This is now stat-macros.h's job.
78746         (talloc): Remove.  All callers replaced by xalloc, so that
78747         our invokers don't have to worry about reporting memory failures.
78748         (make_node_op_equals): Remove.
78749         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78750         New constants.
78751         (struct mode_change): Moved here from modechange.h.
78752         (mode_append_entry): Remove.
78753         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78754         apps to have incorrect behavior.  Use simpler algorithm for head
78755         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78756         Detect more invalid usages rather than having somewhat-random behavior.
78757         Don't insert an "a=" action, as that leads to incorrect behavior.
78758         (mode_compile, mode_create_from_ref): Return NULL on error instead
78759         of an enum, since now there's only one way to have an error.  All
78760         callers changed.
78761         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78762         at the correct time.  Simplify calculation of "+u" and its ilk.
78763         Don't mishandle "+X".
78764         (mode_free): Remove "register" and localize decls.
78765         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78766         (struct mode_change): Move to modechange.c; callers don't
78767         need to see this stuff.
78768         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78769         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78770         (mode_change, mode_adjust): Reflect the new signatures noted above.
78771         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78772         that might redefine system include files.
78773         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78774         (my_usleep): Use NULL rather than (void *) 0.
78775         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78776         Use siginterrupt to specify that system calls should be interrupted.
78777         (rpl_nanosleep): Move initialization of suspended closer to call of
78778         my_usleep.
78779         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78780         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78781         (desirable_utmp_entry): New function.
78782         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78783         using x2nrealloc, to simplify logic.
78784         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78785         size calculation.  Do not assume utmp file is a regular file.
78786         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78787         (READ_UTMP_CHECK_PIDS): New constant.
78788         * lib/save-cwd.c: Include unistd-safer.h.
78789         (save_cwd): Use fd_safer.
78790         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78791         [!_LIBC] Include "stat-macros.h" instead.
78792         * lib/unistd-safer.h (fd_safer): New decl.
78793
78794 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78795
78796         * modules/getloadavg (Depends-on): Add unistd-safer.
78797         * modules/getusershell (Depends-on): Add stdio-safer.
78798         * modules/lstat (Depends-on): Remove xalloc.
78799         * modules/mkstemp (Depends-on): Add stat-macros.
78800         * modules/modechange (Depends-on): Remove xstrtol.
78801         Add stat-macros, xalloc.
78802         * modules/save-cwd (Depends-on): Add unistd-safer.
78803         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78804         * modules/unistd-safer (Files): Add lib/fd-safer.c
78805         (Makefile.am): Remove lib_SOURCES.
78806
78807         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78808         Remove fcntl-safer; unistd-safer supersedes it.
78809
78810 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78813         AC_HEADER_STAT.
78814         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78815         (gl_PREREQ_CHOWN): Remove.
78816         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78817         it.  Don't require AC_HEADER_STAT.
78818         (gl_PREREQ_LSTAT): Remove.
78819         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78820         Don't require AC_HEADER_STAT.
78821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78822         (gl_PREREQ_RMDIR): Remove.
78823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78824         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78825         the stat-macros module a prerequisite.
78826         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78827         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78828         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78829         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78830         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78831         variable names.
78832         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78833         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78834         variable prefixes.
78835         * m4/fcntl-safer.m4: Remove.
78836         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78837         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78838         Invoke gl_PREREQ_FD_SAFER.
78839         (gl_PREREQ_FD_SAFER): New macro.
78840         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78841         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78842         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78843         Remove duplicate call to AC_LIBOBJ(readutmp).
78844         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78845
78846         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78847         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78848
78849 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * MODULES.html.sh (Misc): Add byteswap.
78852
78853 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78854
78855         * modules/getcwd (Depends-on): Add extensions.
78856         * modules/openat (Depends-on): Likewise.
78857
78858 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78859
78860         * modules/byteswap: New file.
78861
78862 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78863
78864         * m4/byteswap.m4: New file.
78865
78866 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78867
78868         * lib/byteswap_.h: New file.
78869
78870 2005-04-25  Karl Berry  <karl@gnu.org>
78871
78872         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78873
78874 2005-04-25  Albert Chin  <china@thewrittenword.com>
78875
78876         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78877         Toolkit C bug.
78878
78879 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78880
78881         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78882         (func_ln_if_changed): Remove forcibly for no error message
78883         in case file does not exist.
78884
78885 2005-04-19  Simon Josefsson  <jas@extundo.com>
78886
78887         * gnulib-tool (Options): Make --symlink mean --symbolic.
78888
78889 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78890
78891         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78892
78893 2005-04-16  Simon Josefsson  <jas@extundo.com>
78894
78895         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78896
78897 2005-04-15  Simon Josefsson  <jas@extundo.com>
78898
78899         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78900
78901 2005-04-15  Simon Josefsson  <jas@extundo.com>
78902
78903         * gnulib-tool: Rename --symlink to --symbolic.
78904
78905 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78906
78907         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78908         symbolic links to files instead of copying/moving.  Add --aux-dir,
78909         specifying directory relative --dir where auxiliary build tools
78910         are placed.
78911
78912 2005-04-14  Bruno Haible  <bruno@clisp.org>
78913
78914         * modules/allocsa (License): Change to LGPL.
78915         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78916
78917 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78920         that "UTC +1 second" continues to work.  Problem reported
78921         by Dmitry V. Levin.
78922         (relunit_snumber): New rule.
78923         (relunit): Use it.
78924
78925 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         * lib/getdate.y (universal_time_zone_table): New constant.
78928         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78929         universal_time_zone_table.
78930         (lookup_zone): Prefer universal_time_zone_table to
78931         local_time_zone_table, so that "GMT" time stamps are allowed in
78932         London during the summer.  Problem reported by Ian Abbott.
78933
78934 2005-04-12  Jim Meyering  <jim@meyering.net>
78935
78936         * lib/human.c (humblock): Set *options even when returning due to
78937         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78938         warning from gcc-4.
78939
78940 2005-04-09  Jim Meyering  <jim@meyering.net>
78941
78942         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78943         -Wuninitialized: initialize tm0.tm_year.
78944
78945 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78948         count, since there's no maximum.  All uses changed.
78949         Add member dsts_seen.
78950         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78951         not being INT_MAX.
78952         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78953         Use pc_rels_seen to decide whther a date is absolute.
78954
78955         * lib/getdate.y (number): Don't overwrite year.
78956         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78957         check.
78958
78959 2005-04-02  Simon Josefsson  <jas@extundo.com>
78960
78961         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78962         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78963
78964 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78965
78966         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78967         where no absolute path name can be longer than PATH_MAX.
78968
78969 2005-03-27  Jim Meyering  <jim@meyering.net>
78970
78971         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78972
78973 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78976         "one's complement" -> "ones' complement" in comment, as per Knuth.
78977         "value of type" -> "type or expression" in comment.
78978         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78979
78980 2005-03-26  Jim Meyering  <jim@meyering.net>
78981
78982         Comment nits.
78983         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78984         Correct typos: s/or/of/.
78985
78986 2005-03-26  Jim Meyering  <jim@meyering.net>
78987
78988         * modules/check-include-files: Move to ../ and rename to...
78989         * check-module: ...this.
78990
78991 2005-03-25  Jim Meyering  <jim@meyering.net>
78992
78993         * modules/xvasprintf (Files): Add xalloc.h.
78994
78995 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * modules/gettext (Files): config/config.rpath ->
78998         build-aux/config.rpath
78999         * modules/iconv (Files): Likewise.
79000         Problem reported by Oskar Liljeblad.
79001
79002 2005-03-23  Jim Meyering  <jim@meyering.net>
79003
79004         * modules/check-include-files: New script to check for
79005         missing dependencies, multiple includes, etc.
79006
79007         * modules/c-strtold (Depends-on): Add xalloc.
79008         * modules/c-strtod (Depends-on): Add xalloc.
79009         * modules/hash (Depends-on): Add xalloc.
79010         (Files): Remove lib/xalloc.h.
79011
79012         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79013         * modules/userspec (Files): Add lib/inttostr.h.
79014
79015 2005-03-23  Jim Meyering  <jim@meyering.net>
79016
79017         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79018
79019 2005-03-22  Jim Meyering  <jim@meyering.net>
79020
79021         * modules/stat-macros: New module.
79022         * modules/canonicalize, modules/euidaccess, modules/file-type,
79023         * modules/filemode, modules/lchown, modules/makepath,
79024         * modules/rmdir, modules/stat: Depend on new stat-macros module
79025         rather than listing lib/stat-macros.h manually.
79026         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79027
79028 2005-03-22  Jim Meyering  <jim@meyering.net>
79029
79030         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79031
79032 2005-03-22  Bruno Haible  <bruno@clisp.org>
79033
79034         * config/srclist.txt: Replace target directory 'config' with
79035         'build-aux'.
79036         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79037         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79038         ../build-aux/.
79039
79040 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * modules/chdir-long (Depends-on): Add mempcpy.
79043
79044         * modules/acl, modules/backupfile, modules/c-strtod,
79045         modules/c-strtold, modules/canon-host, modules/canonicalize,
79046         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79047         modules/exclude, modules/exitfail, modules/file-type,
79048         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79049         modules/getdate, modules/getline, modules/getpagesize,
79050         modules/getpass, modules/getugroups, modules/group-member,
79051         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79052         modules/inttostr, modules/long-options, modules/makepath,
79053         modules/md5, modules/memcasecmp, modules/memcoll,
79054         modules/modechange, modules/mountlist, modules/path-concat,
79055         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79056         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79057         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79058         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79059         modules/strftime, modules/strndup, modules/strverscmp,
79060         modules/timespec, modules/unlocked-io, modules/userspec,
79061         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79062         modules/yesno:
79063         Remove lib_SOURCES line from Makefile.am section, as this is now
79064         done automatically by the corresponding Autoconf macro.
79065
79066 2005-03-21  Jim Meyering  <jim@meyering.net>
79067
79068         Changes imported from coreutils.
79069
79070         * lib/cycle-check.c: Don't include xalloc.h.
79071
79072         * lib/path-concat.c: Don't include assert.h.
79073         (path_concat): Remove assertion that would have triggered
79074         for ABASE starting with more than one slash.
79075         Reported by Andreas Schwab.
79076
79077         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79078         properly when ABASE is an absolute file name.
79079         Correct the description of this function.
79080         Include <assert.h>.
79081         Add an assertion and a test driver.
79082         This fixes a bug introduced on 2004-07-02.
79083         Andreas Schwab reported the resulting failure of cp --parents:
79084         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79085
79086 2005-03-21  Jim Meyering  <jim@meyering.net>
79087
79088         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79089         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79090
79091 2005-03-21  Jim Meyering  <jim@meyering.net>
79092         and  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79095         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79096         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79097         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79098         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79099         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79100         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79101         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79102         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79103         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79104         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79105         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79106         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79107         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79108         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79109         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79110         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79111         for these modules.
79112
79113 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79116         (which shouldn't happen), generate nothing instead of returning 0
79117         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79118
79119 2005-03-16  Bruno Haible  <bruno@clisp.org>
79120
79121         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79122         HAVE_LONGLONG_64BIT.
79123
79124 2005-03-16  Bruno Haible  <bruno@clisp.org>
79125
79126         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79127         HAVE_LONGLONG_64BIT.
79128
79129 2005-03-16  Bruno Haible  <bruno@clisp.org>
79130
79131         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79132         HAVE_LONGLONG_64BIT.
79133
79134 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79137         reliably distinguish strftime failure from empty output on POSIX
79138         hosts.
79139
79140 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79143         (iconv_string): Don't guess a size-zero buffer, as that might cause
79144         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79145         result would be 'too large', where 'too large' is (heuristically)
79146         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79147         overflow concerns.  This will prevent some unwanted malloc failures
79148         when the inputs are very large.
79149
79150 2005-03-15  Karl Berry  <karl@gnu.org>
79151
79152         * config/srclist.txt (config.rpath): from gettext.
79153         * config/config.rpath: update.
79154
79155 2005-03-15  Bruno Haible  <bruno@clisp.org>
79156
79157         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79158         to 'negate'.
79159
79160         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79161         variable.
79162
79163         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79164         results.
79165
79166 2005-03-14  Simon Josefsson  <jas@extundo.com>
79167
79168         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79169         <fx@gnu.org>.
79170
79171 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79174         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79175         intprops.h.
79176         * lib/strtol.c: Likewise.
79177
79178 2005-03-14  Jim Meyering  <jim@meyering.net>
79179
79180         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79181         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79182         to be nonzero so that we (and caller) can detect the difference
79183         between a valid zero-length expansion and an error return, even
79184         when the underlying strftime fails before writing anything into
79185         that location.
79186
79187 2005-03-14  Bruno Haible  <bruno@clisp.org>
79188
79189         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79190         Update from GNU gettext 0.14.3.
79191
79192 2005-03-10  Jim Meyering  <jim@meyering.net>
79193
79194         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79195
79196 2005-03-10  Jim Meyering  <jim@meyering.net>
79197
79198         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79199         so that this module works on systems without fchdir.
79200
79201 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         Factor int-properties macros into a single file, except for
79204         glibc-related files.
79205         * lib/intprops.h: New file.
79206         * lib/getloadavg.c: Include it instead of limits.h.
79207         (INT_STRLEN_BOUND): Remove.
79208         * lib/human.c: Include intprops.h.
79209         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79210         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79211         302/1000.
79212         * lib/inttostr.h: Include intprops.h instead of limits.h.
79213         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79214         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79215         for consistency with intprops.h.
79216         (time_t_is_integer, twos_complement_arithmetic): Use them.
79217         * lib/sig2str.h: Include <signal.h>, intprops.h.
79218         (INT_STRLEN_BOUND): Remove.
79219         * lib/strftime.c (TYPE_SIGNED): Remove.
79220         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79221         * lib/strtol.c: Adjust comments to match intprops.h.
79222         * lib/userspec.c: Include intprops.h.
79223         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79224         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79225         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79226         instead of rolling our own expressions.
79227         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79228
79229         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79230         instead of int.
79231         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79232         the right thing even if adding 1900 would overflow.  Similarly
79233         for tm_mon + 1 and tm_yday + 1.
79234         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79235         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79236         (DO_SIGNED_NUMBER): New macro.
79237         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79238
79239 2005-03-07  Bruno Haible  <bruno@clisp.org>
79240
79241         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79242
79243 2005-03-07  Bruno Haible  <bruno@clisp.org>
79244
79245         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79246
79247 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79248
79249         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79250         (func_import): Only replace files via --import when they have actually
79251         changed.
79252
79253 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79254
79255         * m4/mmap-anon.m4: New file.
79256         * m4/pagealign_alloc.m4: New file.
79257
79258 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79259             Bruno Haible  <bruno@clisp.org>
79260
79261         * modules/pagealign_alloc: New file.
79262         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79263
79264 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79265             Bruno Haible  <bruno@clisp.org>
79266
79267         * lib/pagealign_alloc.h: New file.
79268         * lib/pagealign_alloc.c: New file.
79269
79270 2005-03-03  Bruno Haible  <bruno@clisp.org>
79271
79272         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79273         Use an all-permissive copyright notice, recommended by RMS.
79274
79275 2005-03-02  Bruno Haible  <bruno@clisp.org>
79276
79277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79278         of AIX, the replacement has to be done only after <string.h> is
79279         included, therefore not in config.h. stpncpy.h does the replacement,
79280         and stpncpy.c uses it.
79281
79282 2005-03-02  Bruno Haible  <bruno@clisp.org>
79283
79284         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79285         stpncpy.c uses it.
79286
79287 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79290         The workaround isn't strictly needed for POSIX conformance, and
79291         it's too much of a pain to configure and maintain.  We'll ask
79292         people to fix their kernels instead.
79293         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79294         (NANOSLEEP_BUG_WORKAROUND): Remove.
79295         (xnanosleep): Remove the workaround.
79296
79297 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79300         Reported by Derek Price.
79301         (Include): Add "timespec.h".
79302
79303         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79304
79305 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79306
79307         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79308         to detect nanosleep bug.
79309
79310 2005-03-01  Bruno Haible  <bruno@clisp.org>
79311
79312         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79313
79314 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * modules/gethrxtime: New file.
79317         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79318         (Depends-on): Add gethrxtime.
79319         (configure.ac): Add gl_XNANOSLEEP.
79320         (Makefile.am): Remove lib_SOURCES line.
79321
79322 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79325         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79326
79327 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79330         * lib/timespec.h (gettime): Return void, since it always
79331         succeeds now.  All uses changed.
79332         * lib/gettime.c (gettime): Likewise.
79333         [HAVE_NANOTIME]: Prefer nanotime.
79334         Assume gettimeofday succeeds, as POSIX requires.
79335         Assime time () succeeds, since other code already does.
79336         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79337         (timespec_subtract): Remove.
79338         (NANOSLEEP_BUG_WORKAROUND): New constant.
79339         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79340         things considerably.  Use it only on GNU/Linux hosts, since the
79341         workaround shouldn't be needed elsewhere.
79342
79343 2005-02-24  Bruno Haible  <bruno@clisp.org>
79344
79345         * modules/gettext (Files): Add m4/glibc2.m4.
79346
79347 2005-02-24  Bruno Haible  <bruno@clisp.org>
79348
79349         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79350         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79351         * m4/progtest.m4:
79352         Update from GNU gettext 0.14.2.
79353         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79354
79355 2005-02-24  Bruno Haible  <bruno@clisp.org>
79356
79357         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79358         * lib/config.charset: Update from GNU gettext 0.14.2.
79359
79360 2005-02-24  Bruno Haible  <bruno@clisp.org>
79361
79362         * lib/gettext.h: Update from GNU gettext 0.14.2.
79363
79364 2005-02-23  Simon Josefsson  <jas@extundo.com>
79365
79366         * m4/iconvme.m4: New file.
79367
79368 2005-02-23  Jim Meyering  <jim@meyering.net>
79369
79370         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79371         change.
79372         Thanks to Bruno Haible for catching it.
79373
79374 2005-02-22  Simon Josefsson  <jas@extundo.com>
79375
79376         * modules/iconvme: New file.
79377
79378         * MODULES.html.sh: Add iconvme.
79379
79380 2005-02-22  Simon Josefsson  <jas@extundo.com>
79381
79382         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79383
79384 2005-02-22  Simon Josefsson  <jas@extundo.com>
79385
79386         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79387
79388 2005-02-22  Jim Meyering  <jim@meyering.net>
79389
79390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79391         s/ifndef/ifdef/.
79392
79393 2005-02-20  Neil Conway  <neilc@samurai.com>
79394
79395         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79396         returned by OSX/Darwin if the specified buffer is not large
79397         enough for the hostname.
79398
79399 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79400
79401         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79402         pass it to _help, otherwise the latter coredumps trying to
79403         dereference state.root_argp.
79404
79405 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         * modules/chdir-long (Depends-on): Add memrchr.
79408         * modules/memrchr (Files): Add lib/memrchr.h.
79409         (Include): "memrchr.h".
79410
79411 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79412
79413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79414
79415 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * lib/memrchr.h: New file.
79418         * lib/chdir-long.c: Include it.
79419         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79420         Don't bother including stddef.h.
79421
79422 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79425         inclusion.
79426         Include <sys/types.h>, for dev_t.
79427         (ME_DUMMY, ME_REMOTE): Move from here....
79428         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79429         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79430         Dmitry V. Levin.
79431         Include mountlist.h first, to test the interface.
79432
79433 2005-01-29  Bruno Haible  <bruno@clisp.org>
79434
79435         * lib/progname.c (program_name): Initialize.
79436         Needed when linking statically on MacOS X.
79437
79438 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         Sync from coreutils.
79441         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79442         (Depends-on): Add c-strtod.
79443         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79444
79445 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         Sync from coreutils.
79448         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79449
79450         Remove files that are specific to coreutils.
79451         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79452
79453 2005-01-28  Bruno Haible  <bruno@clisp.org>
79454
79455         * modules/javacomp: New file.
79456         * MODULES.html.sh (Java): Add javacomp.
79457
79458 2005-01-28  Bruno Haible  <bruno@clisp.org>
79459
79460         * m4/javacomp.m4: New file, from GNU gettext.
79461
79462 2005-01-28  Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/javacomp.sh.in: New file, from GNU gettext.
79465         * lib/javacomp.h: New file, from GNU gettext.
79466         * lib/javacomp.c: New file, from GNU gettext.
79467
79468 2005-01-26  Simon Josefsson  <jas@extundo.com>
79469
79470         * lib/gai_strerror.c: Use GPL in header.
79471
79472 2005-01-26  Bruno Haible  <bruno@clisp.org>
79473
79474         * modules/javaexec: New file.
79475         * MODULES.html.sh (Java): Add javaexec.
79476
79477 2005-01-26  Bruno Haible  <bruno@clisp.org>
79478
79479         * m4/javaexec.m4: New file, from GNU gettext.
79480
79481 2005-01-26  Bruno Haible  <bruno@clisp.org>
79482
79483         * lib/javaexec.sh.in: New file, from GNU gettext.
79484         * lib/javaexec.h: New file, from GNU gettext.
79485         * lib/javaexec.c: New file, from GNU gettext.
79486
79487 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79488
79489         * modules/lchown (Depends-on): Remove lchown.h
79490
79491 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79492
79493         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79494         must be defined if the header file was not found, in order
79495         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79496
79497 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79498
79499         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79500         initializers for struct pentry_state.
79501         (__argp_error): Check return value of __asprintf
79502         (__argp_failure): Translate error message
79503
79504         * lib/argp-parse.c: Removed braces around the expansion of N_()
79505
79506 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79507
79508         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79509         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79510         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79511         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79512         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79513         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79514         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79515         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79516         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79517         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79518         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79519         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79520         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79521         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79522         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79523         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79524         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79525         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79526         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79527         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79528         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79529         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79530         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79531         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79532         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79533         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79534         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79535         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79536         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79537         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79538         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79539         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79540         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79541         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79542         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79543         Use an all-permissive copyright notice, recommended by RMS.
79544
79545 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * modules/chdir-long (Depends-on): Remove mempcpy.
79548
79549 2005-01-21  Jim Meyering  <jim@meyering.net>
79550
79551         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79552         same value as for Solaris 9.
79553
79554         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79555         component length.  This included changing the parameter to be
79556         of type `char *' rather than `char const *'.
79557         * lib/chdir-long.h (chdir_long): Update prototype.
79558
79559         * lib/openat.c (fdopendir, fstatat): New functions.
79560         * lib/openat.h: Include headers required for use of DIR and struct
79561         stat.
79562         [AT_SYMLINK_NOFOLLOW]: Define.
79563         (fdopendir, fstatat): Add prototypes.
79564
79565 2005-01-21  Bruno Haible  <bruno@clisp.org>
79566
79567         * modules/classpath: New file.
79568         * MODULES.html.sh (Java): Add classpath.
79569
79570 2005-01-21  Bruno Haible  <bruno@clisp.org>
79571
79572         * lib/classpath.h: New file, from GNU gettext.
79573         * lib/classpath.c: New file, from GNU gettext.
79574
79575 2005-01-20  Simon Josefsson  <jas@extundo.com>
79576
79577         * modules/version-etc-fsf: New file.
79578
79579 2005-01-20  Simon Josefsson  <jas@extundo.com>
79580
79581         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79582         * lib/version-etc.c: Remove version_etc_copyright.
79583         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79584         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79585
79586 2005-01-20  Simon Josefsson  <jas@extundo.com>
79587
79588         * lib/base64.h (isbase64): Add.
79589
79590         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79591         using a unsigned prototype, don't inline.
79592         (base64_decode): Use it.
79593
79594 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79597         it.
79598
79599 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * lib/save-cwd.c (save_cwd): Remove code to support the case
79602         where fchdir is missing or flaky.
79603
79604 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79607
79608 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79611         AC_LIBSOURCES now does this.
79612         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79613         with new ullong_max module.
79614
79615 2005-01-19  Bruno Haible  <bruno@clisp.org>
79616
79617         * modules/sh-quote: New file.
79618         * MODULES.html.sh (Executing programs): Add sh-quote.
79619
79620 2005-01-19  Bruno Haible  <bruno@clisp.org>
79621
79622         * lib/sh-quote.h: New file, from GNU gettext.
79623         * lib/sh-quote.c: New file, from GNU gettext.
79624
79625 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         Merge from coreutils.
79628         * m4/ullong_max.m4: New file.
79629         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79630         (gl_MACROS): Assume localeconv exists.
79631
79632 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79633
79634         Merge changes from coreutils, as described below in several
79635         changelogs dated today.
79636
79637         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79638         (O_DIRECTORY): Remove; not needed here, since "." must be
79639         a directory.  All uses removed.
79640         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79641         universal on Suns, and we also need to test for IRIX.
79642         Revamp code to use 'if' rather than '#if'.
79643         Avoid unnecessary comparison of cwd->desc to 0.
79644
79645         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79646         for known valid error numbers rather than observed invalid ones.
79647
79648 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         * modules/ullong_max: New file.
79651
79652         * modules/chdir-long, modules/openat: New files.
79653         * modules/save-cwd (Depends-on): Depend on chdir-long.
79654         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79655
79656 2005-01-18  Jim Meyering  <jim@meyering.net>
79657
79658         Merge from coreutils.
79659         * m4/chdir-long.m4, m4/openat.m4: New files.
79660         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79661         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79662         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79663         is sane and DOES follow symlinks.  Besides, testing 20 different
79664         systems found no broken chown implementations.
79665         Prompted by a change in rsync's copy of this macro.
79666         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79667
79668         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79669
79670         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79671         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79672         NULL-means-set-to-current-time semantics.
79673         Remove temporary file immediately, rather than waiting
79674         for configure's at-exit trap code to do it.
79675
79676 2005-01-18  Jim Meyering  <jim@meyering.net>
79677
79678         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79679
79680         * lib/utimens.c (futimens): Account for the fact that futimes
79681         can also fail with errno == ENOSYS or errno == ENOENT.
79682         Patch from Dmitry V. Levin.
79683
79684         Change the name of the robust chdir function from chdir to chdir_long.
79685         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79686         (restore_cwd): Use chdir_long, not chdir.
79687         * lib/chdir-long.c: Renamed from chdir.c.
79688         * lib/chdir-long.h: Renamed from chdir.h.
79689         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79690         Hurd.
79691
79692 2005-01-18  Bruno Haible  <bruno@clisp.org>
79693
79694         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79695         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79696         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79697         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79698         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79699         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79700         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79701         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79702         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79703         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79704         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79705         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79706         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79707         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79708         Use an all-permissive copyright notice, recommended by RMS.
79709
79710 2005-01-18  Bob Proulx  <bob@proulx.com>
79711
79712         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79713         simplify offsetof() macro construct to avoid compile failure with
79714         native HP-UX 11.0 ANSI C compiler.
79715
79716 2005-01-17  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79719         redundant because stpncpy.m4 takes care of it.
79720
79721 2005-01-17  Bruno Haible  <bruno@clisp.org>
79722
79723         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79724
79725 2005-01-17  Bruno Haible  <bruno@clisp.org>
79726
79727         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79728         used.
79729
79730 2005-01-17  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/fwriteerror.h (fwriteerror): Change specification to include
79733         fclose.
79734         * lib/fwriteerror.c: Include <stdbool.h>.
79735         (fwriteerror): At the end, close the file stream. Record whether
79736         stdout was already closed.
79737
79738 2005-01-17  Bruno Haible  <bruno@clisp.org>
79739
79740         * lib/execute.c (environ): Declare if needed.
79741         * lib/pipe.c (environ): Likewise.
79742         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79743
79744 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79745
79746         * modules/argp: Depend on vsnprintf
79747
79748 2005-01-10  Jim Meyering  <jim@meyering.net>
79749
79750         * modules/closeout (Depends-on): Add atexit.
79751
79752 2005-01-06  Bruno Haible  <bruno@clisp.org>
79753
79754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79755
79756 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79757
79758         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79759         definitions to be after all include files, to avoid collisions.
79760         Problem reported by Bob Proulx.
79761
79762 2005-01-04  Jim Meyering  <jim@meyering.net>
79763
79764         Changes imported from coreutils.
79765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79766         as the mkstemp template, use a temporary directory and an
79767         8.3-friendly template to avoid trouble on systems like DJGPP.
79768         Reported by Juan M. Guerrero via Stepan Kasal.
79769         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79770         close. Remove the temporary directory right away, rather than waiting
79771         for configure's at-exit trap code to do it.
79772         Suggestion from Stepan Kasal.
79773
79774 2005-01-01  Simon Josefsson  <jas@extundo.com>
79775
79776         * gnulib-tool: Print #include directives when --import'ing.
79777
79778 2004-12-28  Simon Josefsson  <jas@extundo.com>
79779
79780         * tests/test-base64.c: Include required header files.  Remove
79781         unused variables.
79782
79783 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79784
79785         * modules/error (Depends-on): Remove gettext.
79786
79787 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79790         not needed.  This removes a dependency on the gettext module.
79791         [defined _LIBC]: Do not include <libintl.h>; not needed.
79792
79793 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79794
79795         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79796         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79797
79798 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79801         HAVE_DECL_STRTOLD.
79802
79803 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79804
79805         * modules/getdate (Depends-on): Remove alloca-opt.
79806
79807 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79810
79811 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * lib/argp-parse.c: Include <stddef.h>.
79814         (alignof, alignto): New macros.
79815         (parser_init): Don't assume that void * is aligned sufficiently
79816         for struct option.
79817
79818         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79819         need to extend the stack.
79820         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79821         large.
79822
79823 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79824
79825         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79826
79827 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79830         (2004-10-24) change.  Apparently this was a false alarm.
79831
79832         * modules/getdate: Depend on alloca-opt, not alloca.
79833
79834 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79837         Remove now-obsolete comment about AIX.
79838         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79839         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79840         (YYMAXDEPTH): New macro.
79841
79842 2004-12-18  Simon Josefsson  <jas@extundo.com>
79843
79844         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79845
79846 2004-12-18  Bruno Haible  <bruno@clisp.org>
79847
79848         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79849
79850 2004-12-18  Bruno Haible  <bruno@clisp.org>
79851
79852         * lib/fatal-signal.c (fatal_signals): Make non-const.
79853         (init_fatal_signals): New function.
79854         (uninstall_handlers, install_handlers): Ignore signals that were set to
79855         SIG_IGN.
79856         (at_fatal_signal): Call init_fatal_signals.
79857         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79858         SIG_IGN.
79859         Reported by Paul Eggert.
79860
79861 2004-12-18  Bruno Haible  <bruno@clisp.org>
79862
79863         * doc/alloca.texi: New file.
79864         * doc/alloca-opt.texi: New file.
79865
79866 2004-12-17  Jim Meyering  <jim@meyering.net>
79867
79868         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79869         Otherwise, install-sh could exit with improper exit status when
79870         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79871
79872 2004-12-16  Simon Josefsson  <jas@extundo.com>
79873
79874         * tests/test-base64.c: Add license.
79875
79876 2004-12-15  Stepan Kasal  <address@hidden>
79877
79878         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79879
79880 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * modules/getcwd (Files): Add m4/d-ino.m4.
79883         Suggested by Mark D. Baushke.
79884
79885 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         * lib/getdate.y (textint): New member "negative".
79888         (time_zone_hhmm): New function.
79889         Expect 14 shift-reduce conflicts, not 13.
79890         (o_colon_minutes): New rule.
79891         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79892         (yylex): Set the "negative" member of signed numbers.
79893
79894 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         * doc/getdate.texi (Time of day items, Time zone items):
79897         Describe new formats +00:00, UTC+00:00.
79898
79899 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79900
79901         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79902         spurious "-l"s.  Problem reported by Stepan Kasal.
79903
79904 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79907         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79908
79909 2004-12-04  Simon Josefsson  <jas@extundo.com>
79910
79911         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79912         Vandoorselaere <yoann@prelude-ids.org>.
79913
79914 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         Changes imported from coreutils.
79917         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79918         exist.
79919         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79920
79921 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         Changes imported from coreutils.
79924         * lib/hard-locale.c: Assume <locale.h> exists.
79925         Include "strdup.h".
79926         (GLIBC_VERSION): New macro.
79927         (hard_locale): Assume setlocale exists.
79928         Rewrite to avoid #ifdef.
79929         Use strdup rather than malloc + strcpy.
79930         * lib/human.c: Assume <locale.h> exists.
79931         (human_readable): Assume localeconv exists.
79932
79933 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * modules/hard-locale (Depends-on): Add strdup.
79936
79937 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79938
79939         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79940         convert T2, not T.  (Imported from libc.)
79941
79942 2004-11-30  Simon Josefsson  <jas@extundo.com>
79943
79944         * modules/restrict (License): Change to LGPL.
79945
79946 2004-11-30  Simon Josefsson  <jas@extundo.com>
79947
79948         * m4/restrict.m4: Add copyright and copying conditions.
79949
79950 2004-11-30  Simon Josefsson  <jas@extundo.com>
79951
79952         * m4/base64.m4: New file.
79953
79954 2004-11-30  Simon Josefsson  <jas@extundo.com>
79955
79956         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79957         base64.
79958
79959         * tests/test-base64.c: New file.
79960
79961         * modules/base64: New file.
79962
79963 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79964
79965         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79966         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79967
79968         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79969
79970 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79973         (__getcwd.c): Don't restore errno; glibc doesn't.
79974         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79975         first, falling back to our code only if its results look suspicious.
79976         Ensure that the resulting buffer is only as large as necessary.
79977
79978         * lib/readutmp.c: Include readutmp.h first.
79979         Include <errno.h>, since readutmp.h no longer does that.
79980         * lib/readutmp.h: Don't include <errno.h>,
79981         <sys/param.h>, <time.h>; not needed to establish interface.
79982         (errno): Remove decl.
79983         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79984         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79985         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79986
79987 2004-11-28  Simon Josefsson  <jas@extundo.com>
79988
79989         * lib/base64.h, base64.c: New file.
79990
79991 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79994
79995 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79998         (Depends-on): Remove pathmax, same.  Add mempcpy.
79999         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80000         (Makefile.am): Append getcwd.h to lib_SOURCES.
80001         (Include): Add getcwd.h.
80002         (Maintainer): Change from Jim Meyering to "all, glibc",
80003         since getdate now uses intended-for-glibc code.
80004         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80005         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80006
80007 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80008
80009         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80010         HP's ANSI C compiler.
80011         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80012         Declaring int functions causes warnings on some modern systems and
80013         shouldn't be needed to compile on ancient ones.
80014         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80015         defined.
80016
80017         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80018         with the following changes.
80019         (__set_errno): Parenthesize properly.
80020         Include <stdbool.h>.
80021         (MIN, MAX, MATCHING_INO): New macros.
80022         (__getcwd): Define with prototype, not K&R form.
80023         Use heuristics to allocate default buffer on stack if possible.
80024         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80025         behavior, and to avoid the PATH_MAX limit when computing
80026         ../../../../...
80027         Use MATCHING_INO to compare inode number to file.
80028         Check for arithmetic overflow in size calculations.
80029         Fix bug in reallocation of dot array that caused getcwd to fail
80030         on directories nested deeper than 75.
80031         Be more careful about saving errno on error.
80032         Do not use realloc; use only free+malloc, as this is a bit
80033         more flexible and avoids a needless copy operation.
80034         Do not inspect st_dev and st_ino for symbolic links; POSIX
80035         doesn't specify the latter.
80036         Check for closedir errors.
80037         Avoid needless casts.
80038         Use "#ifdef weak_alias" around weak_alias, to be like other
80039         glibc code.
80040         The following changes to getcwd.c have effect only when used in
80041         gnulib; they have no effect inside glibc proper.
80042         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80043         as alloca isn't used.
80044         (alloca, __alloca): Likewise.
80045         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80046         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80047         unconditionally, as gnulib assumes C89 or better.
80048         Do not include <sys/param.h>.
80049         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80050         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80051         better.
80052         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80053         Include <dirent.h> in a way that is compatible with modern Autoconf.
80054         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80055         New macros, if not already defined.
80056         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80057         Use "_LIBC", not "defined _LIBC", for consistency.
80058         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80059         a mempcpy module.
80060         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80061         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80062         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80063         credit only to Jim Meyering and adjust the copyright dates.
80064         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80065         <stdlib.h>, <unistd.h>, "pathmax.h".
80066         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80067         (INITIAL_BUFFER_SIZE): Remove.
80068         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80069
80070 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80073         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80074         Use the _ONCE methods, for efficiency.
80075         Check for fcntl.h.  In test program, include <errno.h>
80076         and <fcntl.h> if available.  Remove old K&R cruft from
80077         test program.  Check for common errors in GNU/Linux,
80078         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80079         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80080         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80081         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80082         name accordingly.
80083         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80084         accommodate new getcwd.c.
80085         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80086         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80087         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80088         that's all we need now.
80089
80090 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80091
80092         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80093         argp-parse.c depends on getopt internals, that means we should
80094         always use our getopt, to be on the safe side.
80095         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80096         order not to spoil the result of an eventual previous invocation
80097         of gl_GETOPT_SUBSTITUTE.
80098
80099 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80100
80101         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80102         redefinition warnings. To avoid them, include the defines
80103         in `#if !defined __need_getopt ... #endif'. The only place
80104         where __getopt_argv_const is used is in definitions
80105         of getopt_long and getopt_long_only below, which are as well
80106         protected by `#ifndef __need_getopt'.
80107         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80108         __need_getopt after including <stdio.h> and <unistd.h> These
80109         headers might have defined it.
80110
80111 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80114
80115 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80118         (futimens): New function, which uses futimes if available.
80119         (futimens, utimens): Support timespec==NULL, with same semantics
80120         as utime and utimens.
80121         * lib/utimens.h (futimens): New decl.
80122
80123 2004-11-23  Jim Meyering  <jim@meyering.net>
80124
80125         * lib/getopt_.h: Remove trailing blanks.
80126
80127 2004-11-23  Jim Meyering  <jim@meyering.net>
80128
80129         * lib/__fpending.c: Add comment.
80130
80131 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * modules/canonicalize (Depends-on): Add xreadlink.
80134         Problem reported by James Youngman.
80135
80136 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80137
80138         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80139         New macros.
80140         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80141         optopt): Use them instead of invoking ## directly; otherwise, the
80142         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80143
80144 2004-11-19  Bruno Haible  <bruno@clisp.org>
80145
80146         * lib/strtok_r.c: Move comments from here...
80147         * lib/strtok_r.h: ... to here.
80148
80149 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80152         implementations that mishandle size_t overflow.
80153
80154 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80157         might fail.  Problem reported by Yoann Vandoorselaere.
80158         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80159         implementations that mishandle size_t overflow.
80160
80161 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * modules/canon-host (Depends-on): Add strdup.
80164
80165 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80168
80169 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * lib/canon-host.c: Include "strdup.h".
80172         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80173         Use strdup instead of malloc/strcpy to duplicate strings.
80174
80175         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80176         (human_space_before_unit): New constant.
80177         * lib/human.c (human_readable): Support it.
80178
80179         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80180         (xgetcwd): Set errno correctly when failing.
80181         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80182         the failure is actually due to a PATH_MAX problem.
80183
80184         Further getopt changes to make it more likely that glibc will
80185         buy the changes back.
80186         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80187         (getopt): Use it, so to preserve glibc semantic
80188         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80189         when compiling for libc.
80190         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80191         (getopt_long, getopt_long_only): Use it.
80192
80193         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80194         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80195         (getopt): Argv is now char * const *, as per standard.
80196         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80197         not char *__getopt_argv_const *.
80198         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80199         _getopt_long_only_r): Likewise.
80200         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80201         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80202         _getopt_long_r, _getopt_long_only_r): Likewise.
80203         * lib/getopt_.h (__getopt_argv_const): Remove.
80204         (getopt): Argv is now char * const *, as per standard.
80205
80206         * lib/getdate.y (tORDINAL): New token.
80207         (day, relunit): Allow it for relative times.
80208         (relative_time_table): Use tORDINAL for ordinals.
80209
80210 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80213         Document that "second" isn't allowed as an ordinal number.
80214
80215 2004-11-16  Jim Meyering  <jim@meyering.net>
80216
80217         * modules/closeout (Depends-on): Add fpending.
80218
80219 2004-11-15  Jim Meyering  <jim@meyering.net>
80220
80221         * lib/closeout.c: Include "__fpending.h" once again.
80222         Include <stdbool.h>.
80223         (close_stdout): Don't fail just because stdout was closed initially,
80224         since some programs don't write to stdout in the normal course of
80225         operation (other than --version and --help), and we don't want this
80226         function to make e.g. `touch file >&-' fail.
80227         But do fail if it was closed and someone has tried to write to it.
80228         E.g., `printf foo >&-' must fail.
80229
80230 2004-11-13  Jim Meyering  <jim@meyering.net>
80231
80232         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80233
80234 2004-11-12  Simon Josefsson  <jas@extundo.com>
80235
80236         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80237         small doc fix is still pending.
80238
80239 2004-11-11  Simon Josefsson  <jas@extundo.com>
80240
80241         * modules/strtok_r: New file.
80242
80243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80244         strtok_r.
80245
80246 2004-11-11  Simon Josefsson  <jas@extundo.com>
80247
80248         * m4/strtok_r.m4: New file.
80249
80250         * m4/getopt.m4: Replace opterr.
80251
80252 2004-11-11  Simon Josefsson  <jas@extundo.com>
80253
80254         * lib/strtok_r.h, strtok_r.c: New file.
80255
80256 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80259         of replacing opterr, getopt, etc.  This should handle the
80260         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80261
80262 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80265         we can stop lying to compilers about the constness of argv when we
80266         are compiled outside glibc.
80267         (getopt, getopt_long, getopt_long_only): Use it.
80268         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80269         _getopt_internal, getopt): Likewise.
80270         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80271         _getopt_long_only_r): Likewise.
80272         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80273         _getopt_long_r, _getopt_long_only_r): Likewise.
80274
80275         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80276         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80277         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80278         the other external symbols.
80279         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80280         declaration, since the above renaming now works around collisions.
80281
80282 2004-11-11  Jim Meyering  <jim@meyering.net>
80283
80284         * lib/linebreak.c: Remove trailing blanks.
80285         * lib/alloca_.h: Likewise.
80286         * lib/acosl.c: Likewise.
80287         * lib/euidaccess.c: Likewise.
80288         * lib/allocsa.h: Likewise.
80289
80290 2004-11-10  Simon Josefsson  <jas@extundo.com>
80291
80292         * m4/getaddrinfo.m4: New file.
80293
80294 2004-11-10  Simon Josefsson  <jas@extundo.com>
80295
80296         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80297
80298 2004-11-10  Simon Josefsson  <jas@extundo.com>
80299
80300         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80301         getaddrinfo.
80302
80303         * modules/getaddrinfo: New file.
80304
80305 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80308
80309 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * lib/mktime.c (SHR): New macro, which is a portable
80312         substitute for >> that should work even on Crays.
80313         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80314         Problem reported by Mark D. Baushke in
80315         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80316         * lib/getdate.y (SHR): Likewise.
80317         (tm_diff): Use it.
80318         * lib/strftime.c (SHR): Likewise.
80319         (tm_diff): Use it.
80320         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80321         quote_these_too, so that right shifts are well defined.  All uses
80322         changed.
80323
80324 2004-11-10  Jim Meyering  <jim@meyering.net>
80325
80326         Ensure that no close failure goes unreported.
80327         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80328         return early when it seems there's nothing to flush.
80329         Don't include __fpending.h.
80330
80331 2004-11-10  Jim Meyering  <jim@meyering.net>
80332
80333         * modules/closeout (Depends-on): Remove fpending.
80334
80335 2004-11-10  Jim Meyering  <jim@meyering.net>
80336
80337         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80338
80339 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80340
80341         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80342         gl_FUNC_STRFTIME.
80343         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80344         and AC_REQUIRE when possible, to avoid duplicate checks.
80345         Check for <wchar.h>.
80346
80347 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80348
80349         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80350
80351 2004-11-09  Bruno Haible  <bruno@clisp.org>
80352
80353         * m4/sockpfaf.m4: New file.
80354
80355 2004-11-05  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80358         Reported by Mark D. Baushke <mdb@cvshome.org>.
80359
80360 2004-11-04  Bruno Haible  <bruno@clisp.org>
80361
80362         2004-09-11  Bruno Haible  <bruno@clisp.org>
80363                 * allocsa.valgrind: New file.
80364         2004-02-06  Bruno Haible  <bruno@clisp.org>
80365                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80366                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80367                 Reported by Christopher Seip <chris.seip@hp.com>.
80368
80369 2004-11-04  Bruno Haible  <bruno@clisp.org>
80370
80371         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80372         (Makefile.am): Distribute it.
80373
80374 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80377         with errno == ERANGE if the buffer is too small.
80378         Problem reported by Mark D. Baushke.
80379
80380 2004-11-03  Albert Chin  <china@thewrittenword.com>
80381             Paul Eggert  <eggert@cs.ucla.edu>
80382
80383         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80384         equivalent, substitute $ac_type for equivalent type rather than
80385         blindly using uint32_t *always* which won't work if uint32_t is not
80386         available.  Define _UINT32_T to work around typedef of uint32_t if
80387         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80388         2.5.1.
80389
80390 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         * m4/jm-macros.m4: Sync from coreutils.
80393         (gl_MACROS): Check for mbrlen, for pathchk.
80394         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80395
80396 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * lib/xreadlink.c (MAXSIZE): New macro.
80399         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80400         size does not exceed MAXSIZE.  Avoid cast.
80401         As suggested by Mark D. Baushke in
80402         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80403         if readlink fails with buffer size just under MAXSIZE, try again
80404         with MAXSIZE.
80405
80406 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80407
80408         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80409
80410 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80411         and  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80414         (get_date): Overparenthesize to avoid GCC warning.
80415
80416 2004-11-02  Bruno Haible  <bruno@clisp.org>
80417
80418         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80419         returns void.
80420
80421 2004-11-02  Bruno Haible  <bruno@clisp.org>
80422
80423         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80424         function returns void.
80425
80426 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80429         fflush_unlocked, flockfile, funlockfile, funlockfile,
80430         fputs_unlocked, putc_unlocked.
80431
80432 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80433
80434         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80435         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80436         already declared.
80437
80438 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80439
80440         * modules/getdate (Files): Add doc/getdate.texi.
80441         (Depends-on): Add setenv, xalloc.
80442
80443 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         * lib/getdate.y: Add support for TZ="foo" within a date string.
80446         Fix some bugs near time_t boundaries.  Reject dates with
80447         out-of-range components, e.g., "Sept 31".
80448         Include <stdlib.h>, "setenv.h", "xalloc.h".
80449         (ISDIGIT_LOCALE): Remove; unused.
80450         Note that the TZ and time functions used here are not reentrant.
80451         (mktime_ok, get_tz): New functions.
80452         (TZBUFSIZE): New constant.
80453         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80454         This requires that we sometimes generate our own TZ="XXX..." setting.
80455
80456 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80457
80458         * doc/getdate.texi: New file, from coreutils with modifications for
80459         the new TZ parsing.
80460
80461 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80462
80463         * lib/mktime.c (not_equal_tm): Remove redundant check.
80464
80465 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * modules/regex (lib_SOURCES): Add regex.c.
80468         Reported by James Youngman in
80469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80470
80471 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * lib/getdate.y: Use Bison 1.875 features, and some minor
80474         code cleanups.  This change does not affect semantics.
80475         Don't include <stdlib.h>; no longer needed.
80476         Don't include unlocked-io.h; only the "#if TEST" code uses
80477         stdio, and performance isn't crucial there.
80478         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80479         Bison 1.875 features as described below.
80480         All uses of "PC." replaced by "pc->".
80481         (YYSTYPE): Add a forward declaration.
80482         (yylex, yyerror): Use full prototypes in forward decls.
80483         Use "%pure-parser" rather than obsolescent "%pure_parser".
80484         Use %parse-param and %lex-param instead of obsolescent
80485         YYPARSE_PARAM and YYLEX_PARAM.
80486         (meridian_table, month_and_day_table, time_units_table,
80487         relative_time_table, time_zone_table, military_table,
80488         lookup_zone, lookup_word, get_date):
80489         Use NULL instead of 0 where appropriate.
80490         (to_hour): Avoid abort (), to avoid a dependency on
80491         stdlib.h.
80492         (yyerror, yylex): Now accepts parser_control * arg.
80493         (main) [TEST]: Use '\0' rather than 0 for char.
80494
80495 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80498
80499 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80502         It's now the caller's responsibility to handle the case where
80503         !HAVE_GETPAGESIZE && !defined getpagesize.
80504
80505         * lib/mktime.c (leapyear): Arg is long int, not int.
80506
80507 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80510
80511 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80512
80513         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80514         missing.  Problem reported by James Youngman.
80515
80516 2004-10-16  Simon Josefsson  <jas@extundo.com>
80517
80518         * gnulib-tool: Fix comments.  Fix parse problem.
80519         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80520
80521 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80522
80523         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80524         implementation of getopt_long.  Problem reported by Alexander Taler in:
80525         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80526
80527 2004-10-15  Bruno Haible  <bruno@clisp.org>
80528
80529         * gnulib-tool: Untabify. Initialize supplied_libname.
80530         (func_usage): More homogenous output.
80531         (func_modules_transitive_closure, func_modules_to_filelist,
80532         func_emit_lib_Makefile_am): New functions.
80533         (func_import): New function, extracted from big case statement. Use
80534         func_get_license, func_modules_transitive_closure,
80535         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80536         opt_lgpl. Don't use test -a, as it's not portable.
80537         (func_create_testdir): Use func_modules_transitive_closure,
80538         func_modules_to_filelist, func_emit_lib_Makefile_am.
80539
80540 2004-10-15  Bruno Haible  <bruno@clisp.org>
80541
80542         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80543
80544 2004-10-15  Bruno Haible  <bruno@clisp.org>
80545
80546         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80547         the portions belonging to each module.
80548         Suggested by Derek Robert Price <derek@ximbiot.com>.
80549
80550 2004-10-12  Simon Josefsson  <jas@extundo.com>
80551
80552         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80553         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80554         to real functions.
80555
80556 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80557
80558         * modules/vsnprintf: New file.
80559
80560 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80561
80562         * m4/vsnprintf.m4: New file.
80563
80564 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80565
80566         * lib/vsnprintf.h: New file.
80567         * lib/vsnprintf.c: New file.
80568
80569 2004-10-11  Bruno Haible  <bruno@clisp.org>
80570
80571         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80572         vsnprintf.
80573
80574 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80577
80578 2004-10-07  Bruno Haible  <bruno@clisp.org>
80579
80580         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80581         fits into the provided buffer.
80582
80583 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80584
80585         * lib/diacrit.c, diacrit.h: Add GPL notice.
80586
80587         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80588         notice.
80589         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80590         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80591         This avoids a potential constant-folding bug.
80592
80593 2004-10-05  Bruno Haible  <bruno@clisp.org>
80594
80595         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80596         for the declaration of strsep.
80597
80598 2004-10-05  Bruno Haible  <bruno@clisp.org>
80599
80600         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80601
80602 2004-10-04  Simon Josefsson  <jas@extundo.com>
80603
80604         * modules/memmem: New file.
80605         * tests/test-memmem.c: New file.
80606         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80607
80608 2004-10-04  Simon Josefsson  <jas@extundo.com>
80609
80610         * m4/memmem.m4: New file.
80611
80612 2004-10-04  Simon Josefsson  <jas@extundo.com>
80613
80614         * lib/memmem.h: New file.
80615         * lib/memmem.c: New file, taken from glibc.
80616
80617 2004-10-04  Simon Josefsson  <jas@extundo.com>
80618
80619         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80620         '#ifdef USE_UNLOCKED_IO'.
80621
80622 2004-10-04  Simon Josefsson  <jas@extundo.com>
80623
80624         * config/srclist.txt: Add memmem from glibc.
80625
80626 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80627
80628         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80629
80630         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80631         modules/exclude, modules/getdate, modules/getline,
80632         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80633         modules/getusershell, modules/linebuffer, modules/md5,
80634         modules/mountlist, modules/posixtm, modules/readtokens,
80635         modules/readutmp, modules/regex, modules/sha1,
80636         modules/version-etc, modules/yesno:
80637         Remove dependency on unlocked-io.
80638
80639 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80640
80641         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80642
80643         * m4/unlocked-io.m4: Add copyright notice.
80644         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80645
80646 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80647
80648         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80649         * lib/xmalloc.c (xmemdup): Likewise.
80650         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80651         XFREE): Remove these long-obsolescent macros.
80652         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80653         * lib/xstrdup.c: Remove.
80654
80655         * lib/regex.c (re_comp): Cast gettext return value to char *,
80656         Problem reported by Martin Neitzel via Mark D. Baushke.
80657
80658 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80661         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80662         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80663         regex.c, sha1.c, version-etc.c, yesno.c:
80664         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80665         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80666         the includer's responsibility.
80667
80668         Sync from coreutils.
80669
80670         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80671         points to the start of a string, as the C Standard says the
80672         resulting behavior is undefined.
80673
80674         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80675         simple -> simple_backups, numbered_existing ->
80676         numbered_existing_backups, numbered -> numbered_backups
80677         to avoid shadowing problems.  All uses changed.
80678         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80679         * lib/backupfile.c (check_extension, numbered_backup):
80680         Rename locals to avoid shadowing 'basename'.
80681         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80682         once.
80683
80684         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80685         * lib/.cvsignore: Add getopt.h.
80686
80687 2004-10-04  Bruno Haible  <bruno@clisp.org>
80688
80689         * modules/README: New file.
80690         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80691         not a module.
80692
80693 2004-10-02  Jim Meyering  <jim@meyering.net>
80694
80695         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80696
80697 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80698
80699         * modules/strsep: New file.
80700
80701 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80702
80703         * m4/strsep.m4: New file.
80704
80705 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80706
80707         * lib/strsep.h: New file.
80708         * lib/strsep.c: New file.
80709
80710 2004-10-01  Simon Josefsson  <jas@extundo.com>
80711
80712         * lib/snprintf.c (snprintf): Handle size==0.
80713
80714 2004-10-01  Simon Josefsson  <jas@extundo.com>
80715             Bruno Haible  <bruno@clisp.org>
80716
80717         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80718         (snprintf): Declare 'args'.
80719
80720 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         * lib/snprintf.c: Remove comments as to why each header is needed.
80723
80724 2004-10-01  Bruno Haible  <bruno@clisp.org>
80725
80726         * MODULES.html.sh: Add strsep.
80727
80728 2004-09-30  Simon Josefsson  <jas@extundo.com>
80729
80730         * modules/snprintf: New file.
80731
80732 2004-09-30  Simon Josefsson  <jas@extundo.com>
80733
80734         * m4/snprintf.m4: New file.
80735
80736 2004-09-30  Simon Josefsson  <jas@extundo.com>
80737
80738         * lib/snprintf.h, lib/snprintf.c: New files.
80739
80740 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80741
80742         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80743         (hol_entry_help): Never translate an empty string.
80744         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80745         * lib/argp.h (OPTION_NO_TRANS): New option.
80746
80747 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80748
80749         * modules/argp (Maintainer): Replace Simon Josefsson
80750         by Sergey Poznyakoff.
80751
80752 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80753
80754         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80755         changes merged back into glibc.
80756
80757 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80758
80759         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80760
80761 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80762
80763         * lib/xvasprintf.c: Include xalloc.h.
80764         (xvasprintf): Use xalloc_die, not xmalloc_die.
80765
80766 2004-09-29  Bruno Haible  <bruno@clisp.org>
80767
80768         * modules/alloca-opt: New file, derived from modules/alloca.
80769         * modules/allocsa: Depend on alloca-opt instead of alloca.
80770         * modules/setenv: Likewise.
80771         * modules/vasnprintf: Likewise.
80772         * MODULES.html.sh: Add alloca-opt.
80773
80774 2004-09-28  Simon Josefsson  <jas@extundo.com>
80775
80776         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80777         LGPL, and to replace license template from GPL to LGPL.
80778
80779 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80780
80781         * modules/dummy: Change license to LGPL.
80782
80783 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80784
80785         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80786
80787 2004-09-24  Simon Josefsson  <jas@extundo.com>
80788
80789         * modules/minmax (License): Change from GPL to LGPL.
80790
80791 2004-09-23  Simon Josefsson  <jas@extundo.com>
80792
80793         * gnulib-tool (--import): Typo.
80794
80795 2004-09-23  Simon Josefsson  <jas@extundo.com>
80796
80797         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80798
80799 2004-09-22  Bruno Haible  <bruno@clisp.org>
80800
80801         * modules/*: Add 'License' field.
80802         * gnulib-tool: Accept --extract-license option.
80803         (func_get_license): New function.
80804
80805 2004-09-21  Bruno Haible  <bruno@clisp.org>
80806
80807         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80808         Reported by Simon Josefsson.
80809
80810 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80813         gl_AC_TYPE_LONG_LONG.
80814
80815 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80816
80817         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80818
80819 2004-09-18  Simon Josefsson  <jas@extundo.com>
80820         and  Paul Eggert  <eggert@cs.ucla.edu>
80821
80822         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80823         calls with autoreconf.  Define GL_LIB.
80824
80825 2004-09-14  Karl Berry  <karl@gnu.org>
80826
80827         * config/srclist.txt: unsync setenv.c, sigh.
80828
80829 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80830
80831         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80832         Problem reported by Bruno Haible in:
80833         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80834
80835 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80836
80837         * config/srclist.txt: Comment out argp-pvh.c.
80838
80839 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80840
80841         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80842         in case some system header has #define'd it.  Problem reported by
80843         Soeren D. Schulze in
80844         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80845
80846 2004-09-09  Karl Berry  <karl@gnu.org>
80847
80848         * regex.[ch]: delete from the root.  These were supposed to be
80849                 synced with emacs cvs, but this has not happened for about
80850                 a year, and anyway nothing else uses emacs regex.[ch].
80851                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80852                 lib/regex[.ch] is untouched.
80853
80854 2004-09-09  Bruno Haible  <bruno@clisp.org>
80855
80856         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80857
80858 2004-09-09  Bruno Haible  <bruno@clisp.org>
80859
80860         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80861         modifications.
80862         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80863
80864 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80865
80866         * modules/xvasprintf: New file.
80867         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80868
80869 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80870
80871         * lib/xvasprintf.h: New file.
80872         * lib/xvasprintf.c: New file.
80873         * lib/xasprintf.c: New file.
80874
80875 2004-09-08  Bruno Haible  <bruno@clisp.org>
80876
80877         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80878
80879 2004-09-08  Bruno Haible  <bruno@clisp.org>
80880
80881         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80882         length is > INT_MAX.
80883         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80884         more.
80885
80886 2004-09-08  Bruno Haible  <bruno@clisp.org>
80887
80888         * lib/stdint_.h: New file, taken from GNU clisp.
80889
80890 2004-09-08  Bruno Haible  <bruno@clisp.org>
80891             Oskar Liljeblad  <oskar@osk.mine.nu>
80892
80893         * modules/stdint: New file.
80894         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80895
80896 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80897
80898         Import from coreutils.
80899         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80900         strings on unbounded length.  alloca's performance benefits aren't
80901         that important here.
80902         (V_STRDUP): Remove.
80903         (parse_with_separator): New function, with most of the internals
80904         of the old parse_user_spec.  Allow user to omit both user and group,
80905         for compatibility with FreeBSD.
80906         Clone only the user name, not the entire spec.
80907         Do not set *uid, *gid unless entirely successful.
80908         Avoid memory leak in some failing cases.
80909         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80910         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80911         (parse_user_spec): Rewrite to use parse_with_separator.
80912
80913 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80914
80915         * modules/userspec: Don't depend on alloca.
80916
80917 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80918
80919         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80920
80921 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80924         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80925         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80926
80927 2004-08-16  Simon Josefsson  <jas@extundo.com>
80928
80929         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80930         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80931         Add --dry-run for --import.
80932         Let user provided command line parameters override configure.ac
80933         settings.
80934
80935 2004-08-12  Simon Josefsson  <jas@extundo.com>
80936
80937         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80938         as discussed with Paul Eggert in threads rooted at
80939         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80940         and
80941         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80942         Before, the test was empty, and relied on ELIDE_CODE in source
80943         code.)
80944         (gl_PREREQ_GETOPT): New macro.
80945         (gl_GETOPT): Use them.
80946
80947 2004-08-12  Simon Josefsson  <jas@extundo.com>
80948
80949         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80950         * lib/getopt_.h: Renamed from getopt.h.
80951
80952 2004-08-12  Simon Josefsson  <jas@extundo.com>
80953
80954         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80955         Change default library name from libfoo to libgnu.
80956         Now, if you have a configure.ac that says:
80957                 gl_SOURCE_BASE(gl)
80958                 gl_M4_BASE(gl/m4)
80959                 gl_MODULES(error getopt etcetera)
80960                 gl_INIT
80961         you can import all you need by running:
80962                 ../gnulib/gnulib-tool --import
80963
80964         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80965         (Makefile.am): Rewrite, use logic from argz.
80966         (Include): Use <getopt.h> instead of "getopt.h".
80967
80968 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80969
80970         * modules/argp (Files): Add m4/unlocked-io.m4.
80971         (Depends-on): Add extensions.
80972
80973 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80974
80975         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80976         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80977         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80978         Check for program_invocation_name, program_invocation_short_name,
80979         flockfile, funlockfile, features.h, _getopt_long_only_r.
80980
80981 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80984         its complicated substitute.
80985         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80986         and program_invocation_name.
80987         (__argp_basename) [!_LIBC]: Remove; the only use was
80988         replaced by its body.
80989         (__argp_short_program_name): Change condition from
80990         !defined __argp_short_program_name to
80991         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80992         to match argp-namefrob.h.
80993         (__argp_failure): Don't assume strerror_r returns char *.
80994         * lib/argp-parse.c (N_): Define unconditionally.
80995         (argp_default_options): Fill out initializers with 0 to avoid
80996         gcc warnings.
80997
80998 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80999
81000         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81001         getopt1.c.
81002
81003 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         Merge from coreutils.
81006
81007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81008
81009         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81010         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81011
81012 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         Merge from coreutils.
81015
81016         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81017         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81018         for Reliant Unix 5.43.
81019
81020         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81021         (union fooround): Use uintmax_t, not long int.
81022         The rest is a merge from libc:
81023         [defined _LIBC]: Include <shlib-compat.h>.
81024         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81025
81026         * lib/settime.c (settime): Recode to avoid warning with
81027         Sun Forte C 6U2.
81028
81029         * lib/strverscmp.c: Convert to UTF-8.
81030
81031 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81032
81033         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81034         m4/uintmax_t.m4.
81035
81036 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81037
81038         * modules/xalloc-die: New file.
81039         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81040
81041         * modules/md5 (Files): Add m4/uint32_t.m4.
81042         * modules/sha1: Renamed from modules/sha.
81043         (Files):
81044         Rename lib/sha.h to lib/sha1.h.
81045         Rename lib/sha.c to lib/sha1.c.
81046         Rename m4/sha.m4 to m4/sha1.m4.
81047         (lib_SOURCES): Likewise.
81048         (configure.ac): Rename gl_SHA to gl_SHA1.
81049         (Include): sha.h -> sha1.h.
81050
81051 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81052
81053         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81054         * m4/sha1.m4: Renamed from sha.m4.
81055         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81056
81057 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         * lib/obstack.h (obstack_empty_p):
81060         Don't assume that chunk->contents is suitably aligned.
81061         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81062         Likewise. Problem reported by Benno in
81063         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81064
81065         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81066         readable.  This could be improved further but it'd take some work.
81067
81068 2004-08-08  Simon Josefsson  <jas@extundo.com>
81069
81070         * modules/xgethostname (Depends-on): Remove exit and error (not
81071         used).
81072
81073         * modules/getpass-gnu: Add getpass.h.
81074         (Depends-on): Add stdbool.
81075         * modules/getpass: Add getpass.h.
81076
81077 2004-08-08  Simon Josefsson  <jas@extundo.com>
81078
81079         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81080         Check getpass declaration.
81081
81082 2004-08-08  Simon Josefsson  <jas@extundo.com>
81083
81084         * lib/xgethostname.c: Don't include error.h (not used).
81085
81086         * lib/getpass.h: Add.
81087         * lib/getpass.c: Include getpass.h first.
81088
81089 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81090
81091         * lib/xalloc-die.c: New file.
81092         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81093         All uses removed.
81094         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81095         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81096         xalloc-die.c.
81097         (_, N_, xalloc_die): Move to xalloc-die.c.
81098         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81099         so that we needn't mess with xalloc_msg_memory_exhausted.
81100
81101         * lib/sha1.h: Renamed from sha.h.
81102         (SHA1_H): Renamed from _SHA_H.
81103         (sha1_ctx): Renamed from sha_ctx.
81104         (sha1_init_ctx): Renamed from sha_init_ctx.
81105         (sha1_process_block): Renamed from sha_process_block.
81106         (sha1_process_bytes): Renamed from sha_process_bytes.
81107         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81108         (sha1_read_ctx): Renamed from sha_read_ctx.
81109         (sha1_stream): Renamed from sha_stream.
81110         (sha1_buffer): Renamed from sha_buffer.
81111         * lib/sha1.c: Likewise; renamed from sha.c.
81112         Do not include <sys/types.h>.
81113         Include <stddef.h> rather than <stdlib.h>.
81114
81115 2004-08-08  Bruno Haible  <bruno@clisp.org>
81116
81117         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81118         FILESYSTEM_PREFIX_LEN.
81119         * lib/progreloc.c: Likewise.
81120         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81121
81122 2004-08-06  Simon Josefsson  <jas@extundo.com>
81123
81124         * modules/progname (Depends-on): Don't depend on stdbool.
81125
81126 2004-08-06  Simon Josefsson  <jas@extundo.com>
81127
81128         * modules/getsubopt: New file.
81129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81130         getsubopt.
81131
81132 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81133
81134         More merge from coreutils.
81135
81136         * m4/utimens.m4, m4/utimecmp.m4: New files.
81137         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81138         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81139         prereq.m4, sha.m4: Import changes from coreutils.
81140
81141 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         More merge from coreutils.
81144         * modules/raise, modules/readtokens0, modules/utimens:
81145         * modules/utimecmp, module/xnanosleep: New files.
81146         * modules/strftime: Add lib/strftime.h.
81147         Change include from <time.h> to "strftime.h".
81148         * modules/yesno: Add lib/yesno.h.
81149         * modules/backupfile: Remove lib/addext.c.
81150         * modules/euidaccess: Add stat-macros.h.
81151         * modules/canonicalize, modules/euidaccess,
81152         modules/filemode, modules/lchown, modules/makepath,
81153         modules/rmdir, modules/stat: Likewise.
81154
81155 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         Merge from tar.
81158         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81159         SIZE_MAX is a valid preprocessor constant.
81160         (__argp_basename): Change from "#ifndef _LIBC"
81161         to "#ifndef __argp_short_program_name", so that
81162         we don't compile these functions for tar.
81163
81164         More merges from coreutils.
81165         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81166         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81167         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81168         * lib/addext.c: Remove; no longer needed.
81169         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81170         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81171         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81172         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81173         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81174         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81175         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81176         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81177         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81178         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81179         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81180         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81181         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81182         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81183         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81184         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81185         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81186         Import changes from coreutils.
81187
81188 2004-08-05  Simon Josefsson  <jas@extundo.com>
81189
81190         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81191
81192 2004-08-05  Simon Josefsson  <jas@extundo.com>
81193
81194         * m4/getsubopt.m4: New file.
81195
81196 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81197
81198         Merge from coreutils.
81199
81200         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81201         * m4/getcwd-path-max.m4: New files.
81202
81203         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81204         FILESYSTEM_PREFIX_LEN ->
81205         FILE_SYSTEM_PREFIX_LEN.
81206         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81207         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81208         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81209         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81210
81211         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81212         prerequisite modules now handle the DOS stuff.
81213         Don't check for unistd.h.
81214
81215 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         Merge from coreutils.
81218
81219         * lib/.gdb-history: Remove; this doesn't belong here.
81220
81221         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81222         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81223         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81224         * lib/getcwd.c: New files.
81225
81226         * lib/dirname.h: Include <stdbool.h>.
81227         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81228         for consistency with POSIX terminology.  All uses changed.
81229         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81230         (strip_trailing_slashes): Use bool for booleans.
81231         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81232
81233         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81234         sometimes returns a positive errno value even when it succeeds.
81235         (print_errno_message) [!LIBC]: Fall back on strerror if
81236         __strerror_r fails.
81237
81238         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81239         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81240         (longest_relative_suffix): New function.
81241         (path_concat): Use it.  Assume first argument is not NULL.
81242         Port to DOS.  Omit redundant separators.
81243         Report an error instead of returning NULL.
81244         Use mempcpy instead of memcpy.
81245         (xpath_concat): Remove: not declared or used.
81246
81247         * lib/same.h: Include <stdbool.h>
81248         (same_name): Return bool, not int.
81249         * lib/same.c (same_name): Likewise.
81250         (errno): Don't declare; we assume C89 or better now.
81251
81252         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81253         if not already defined.
81254
81255         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81256         * lib/dup-safer.c (errno): Likewise.
81257
81258 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         Merge from coreutils.
81261         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81262         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81263         * modules/path-concat: Don't depend on strdup.
81264
81265 2004-08-03  Simon Josefsson  <jas@extundo.com>
81266
81267         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81268         * lib/progname.h: Don't include stdbool.h.
81269
81270 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81273         * MODULES.html.sh (func_all_modules): Remove fatal.
81274
81275 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81278
81279 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81282         working.
81283
81284 2004-08-02  Simon Josefsson  <jas@extundo.com>
81285
81286         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81287         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81288         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81289
81290 2004-08-01  Simon Josefsson  <jas@extundo.com>
81291
81292         * lib/xgetdomainname.c: Include stdlib.h, for free().
81293
81294 2004-07-19  Bruno Haible  <bruno@clisp.org>
81295
81296         * MODULES.html.sh (func_all_modules): Add dummy.
81297
81298 2004-07-16  Simon Josefsson  <jas@extundo.com>
81299
81300         * modules/dummy: New file.
81301
81302 2004-07-16  Simon Josefsson  <jas@extundo.com>
81303
81304         * lib/dummy.c: New file.
81305
81306 2004-07-16  Bruno Haible  <bruno@clisp.org>
81307
81308         * lib/backupfile.h: Add extern "C" for C++.
81309         * lib/closeout.h: Likewise.
81310         * lib/copy-file.h: Likewise.
81311         * lib/findprog.h: Likewise.
81312         * lib/full-write.h: Likewise.
81313         * lib/pathname.h: Likewise.
81314         * lib/progname.h: Likewise.
81315         * lib/stpcpy.h: Likewise.
81316         * lib/stpncpy.h: Likewise.
81317         * lib/strcase.h: Likewise.
81318         * lib/strstr.h: Likewise.
81319         * lib/xalloc.h: Likewise.
81320
81321         * lib/mbswidth.h: Add extern "C" for C++.
81322         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81323
81324 2004-07-13  Robert Millan  <robertmh@gnu.org>
81325
81326         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81327
81328 2004-07-09  Simon Josefsson  <jas@extundo.com>
81329
81330         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81331         failed without this.)
81332
81333 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * modules/chown (Files): Add lib/fchown-stub.c, since
81336         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81337
81338 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81339
81340         * lib/fchown-stub.c: New file.
81341
81342 2004-06-24  Jim Meyering  <jim@meyering.net>
81343
81344         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81345
81346 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81347
81348         * modules/argz: Omit "#include".
81349
81350         * MODULES.html.sh (func_all_modules): Add calloc, to match
81351         2004-06-01 addition of calloc module.
81352
81353 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81354
81355         * m4/argz.m4: New file, which is autoupdated from libtool.
81356
81357 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81360         libtool.
81361
81362 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * config/srclist-update: Don't insist on "USA." before the
81365         close-comment, as libtool omits the period and puts the */ on a
81366         separate line.
81367         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81368         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81369
81370 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81371
81372         * modules/argz: New file.
81373         * MODULES.html.sh (func_all_modules): Add argz.
81374
81375 2004-06-12  Jim Meyering  <jim@meyering.net>
81376         and  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * modules/hash (Files): Add lib/xalloc.h.
81379         * modules/pipe (Depends-on): Add wait-process.
81380         * modules/stat (Depends-on): Add xalloc.
81381         * modules/userspec (Files): Add lib/userspec.h.
81382         * modules/xstrto
81383
81384         Upgrade from gettext-0.13.
81385         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81386         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81387         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81388
81389 2004-06-10  Jim Meyering  <jim@meyering.net>
81390
81391         * lib/calloc.c: New file.
81392
81393 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81394
81395         * lib/getdate.y (yylex): Allow space between sign and number.
81396         Problem reported by Dan Jacobson.
81397
81398 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81399
81400         Merge from coreutils CVS.
81401
81402         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81403         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81404         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81405         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81406         xstrtol.m4: Fix copyright date and/or serial number.
81407
81408         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81409         See if we need an fchown replacement.
81410         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81411         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81412         and use the replacement function if we detect either defect.
81413
81414         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81415         gl_UTIMECMP.
81416
81417 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81418         and  Jim Meyering  <jim@meyering.net>
81419
81420         Merge from coreutils CVS.
81421
81422         * lib/stat-macros.h: New file, with contents from file-type.h
81423         and coreutils' system.h.
81424         * lib/file-type.c: Include "stat-macros.h".
81425         * lib/file-type.h (file_type): Move all macro definitions to new file,
81426         stat-macros.h.
81427
81428         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81429         Wrap old code with this conditional.
81430         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81431         function that does not dereference symlinks.
81432         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81433
81434         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81435         dependency problems.
81436         (xreadlink): Accept new arg SIZE, for efficiency.
81437         All decls and uses changed.
81438         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81439
81440         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81441         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81442
81443         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81444         sysexits.h.
81445
81446 2004-06-01  Jim Meyering  <jim@meyering.net>
81447
81448         * m4/calloc.m4: New file.
81449
81450 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81451
81452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81453         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81454         Also, fix a typo in a diagnostic.
81455
81456 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81457
81458         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81459         or AC_FUNC_REALLOC.
81460
81461 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81464         macros to be defined.
81465         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81466         the allocator returns NULL because the requested size is zero.
81467
81468 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81469
81470         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81471         var.  Add comment explaining why libc still defines it.  This
81472         merges the following patch from glibc:
81473         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81474
81475 2004-05-20  Andreas Schwab  <schwab@suse.de>
81476
81477         * m4/free.m4: Replace free if it not known to work, not the other
81478         way round.
81479
81480 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81483         present in glibc since revision 1.1 of this file.
81484         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81485         obstack_alignment_mask, obstack_alloc, obstack_base,
81486         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81487         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81488         obstack_grow0, obstack_init, obstack_int_grow,
81489         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81490         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81491         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81492         nonexistent functions.
81493
81494 2004-05-18  Karl Berry  <karl@gnu.org>
81495
81496         * config/srclist.txt: break link for vasnprintf.c.
81497
81498 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         Port obstack to the AS/400, where pointers are 16 bytes wide and
81501         you cannot cast an integer to a valid pointer.  This patch is
81502         currently waiting to be integrated into glibc; see
81503         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81504
81505         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81506         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81507         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81508         (struct obstack): temp member is now a union of a pointer and
81509         an integer, instead of an integer.  All integer uses changed.
81510         This does not affect the physical layout of struct obstack,
81511         except on hosts (like the AS/400) where the size or alignment of
81512         void * is greater than that of ptrdiff_t.
81513         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81514         __STDC__)]: Store temporary in pointer member of union, not
81515         integer member.
81516         * lib/obstack.c: Include <stddef.h>, for offsetof.
81517         (struct fooalign): Remove; it doesn't need a name.
81518         (union fooround): Change double to long double, and add void *.
81519         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81520         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81521         not a macro.  Hence the values are always int; so remove all
81522         casts-to-int in uses.
81523
81524 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81527         we can get this patch merged into glibc.
81528
81529 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81530             Paul Eggert  <eggert@cs.ucla.edu>
81531
81532         * m4/argp: Depend on alloca.
81533
81534 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81535             Paul Eggert  <eggert@cs.ucla.edu>
81536
81537         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81538         freecoding.
81539
81540 2004-05-17  Bruno Haible  <bruno@clisp.org>
81541
81542         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81543         precision that consists of a '.' followed by an empty digit string.
81544         Patch by Tor Lillqvist <tml@iki.fi>.
81545
81546 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81547
81548         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81549         for backward compatibility with older code.  We need our own
81550         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81551         it under some other name, and our alloca.h will define it.
81552
81553 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81554             Derek Price  <derek@ximbiot.com>
81555
81556         * lib/alloca.c: Include <alloca.h>, to get our interface.
81557         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81558         include <alloca.h> first.  Use C89 prototype for alloca; this
81559         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81560         Use #elif for simplicity, since we can assume C89 now.
81561         Don't try to source the system alloca.h since it will not be found
81562         and to prevent recursively including its replacement.
81563         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81564         * lib/regex.c: Likewise.
81565
81566 2004-05-16  Derek Price  <derek@ximbiot.com>
81567             Paul Eggert  <eggert@cs.ucla.edu>
81568
81569         getline cleanup.  This changes the getndelim2 API: both order of
81570         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81571         no delimiter).
81572
81573         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81574         interface does that.
81575         (getline): Always use getdelim, so that we don't have two
81576         copies of this code.
81577         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81578         if available.
81579         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81580         (GETNDELIM2_MAXIMUM): New macro.
81581         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81582         instead of the old practice of delim2==0.  All callers changed.
81583         Return -1 on overflow, instead of returning junk.
81584         Do not set *linesize unless allocation succeeds.
81585         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81586         that we include sys/types.h.
81587         * lib/getnline.h: Likewise.
81588         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81589         (getndelim2): Reorder arguments.
81590         * lib/getnline.c (getnline, getndelim):
81591         Don't discard the NMAX argument.
81592         (getnline): Invoke getndelim, to avoid code duplication.
81593         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81594         of (size_t) -1 by callers of the getnline family.
81595
81596 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81597
81598         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81599         Check for gettimeofday.
81600         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81601         Check for settimeofday, stime.
81602
81603 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81604
81605         * lib/nanosleep.c (suspended): Change its type from int to
81606         sig_atomic_t volatile.
81607         (first_call): Make it private to rpl_nanosleep, and have it
81608         be zero initially as that's a bit faster.
81609         (my_usleep): Round up fractional times instead of truncating them,
81610         as this is the usual meaning for 'sleep'.
81611
81612         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81613         doesn't work.
81614         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81615         (ENOSYS): Define if not defined.
81616         (settime): Fall back on stime if it exists and settimeofday fails.
81617         But don't bother with fallbacks if a method fails with errno == EPERM.
81618
81619 2004-05-11  Jim Meyering  <jim@meyering.net>
81620
81621         Prior to this change, the save_cwd caller required read access to the
81622         current directory on most systems (ones with the fchdir function).
81623
81624         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81625         fails, try write-only, and finally, resort to using xgetcwd.
81626
81627 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81628
81629         * lib/obstack.c, obstack.h: Import changes from libc.
81630
81631 2004-04-28  Bruno Haible  <bruno@clisp.org>
81632
81633         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81634         also implicitly appends .exe to executables.
81635         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81636         accepts Windows pathnames.
81637         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81638         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81639         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81640         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81641         Reported by Derek Robert Price <derek@ximbiot.com>.
81642
81643 2004-04-21  Karl Berry  <karl@gnu.org>
81644
81645         * config/srclist.txt (localcharset.c): break sync.
81646
81647 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81648
81649         * m4/host-os.m4: Add a copyright notice.
81650
81651 2004-04-20  Jim Meyering  <jim@meyering.net>
81652
81653         Change UTILS_ to gl_ in AC_DEFINE'd names.
81654         Change utils_- and jm_-prefixed variables, too.
81655         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81656         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81657         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81658
81659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81660         Don't emit trailing blanks.
81661         Also rename jm_-prefixed variables to have gl_ prefix.
81662
81663         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81664         Also rename jm_-prefixed variables to have gl_ prefix.
81665
81666         * m4/jm-macros.m4: Reflect the renamings.
81667         * m4/prereq.m4: Likewise.
81668
81669 2004-04-20  Jim Meyering  <jim@meyering.net>
81670
81671         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81672         memory.
81673
81674 2004-04-20  Jim Meyering  <jim@meyering.net>
81675             Bruno Haible  <bruno@clisp.org>
81676
81677         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81678         memory when realloc fails.
81679
81680 2004-04-19  Jim Meyering  <jim@meyering.net>
81681
81682         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81683         now that readutmp.c may call `free (0)'.
81684
81685 2004-04-19  Bruno Haible  <bruno@clisp.org>
81686
81687         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81688         * m4/inttypes_h.m4: Likewise.
81689         * m4/stdint_h.m4: Likewise.
81690         * m4/intmax_t.m4: Likewise.
81691         * m4/uintmax_t.m4: Likewise.
81692
81693 2004-04-18  Jim Meyering  <jim@meyering.net>
81694
81695         * m4/prereq.m4: Don't forbid jm_ prefix.
81696
81697         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81698         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81699         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81700         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81701         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81702         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81703         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81704         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81705         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81706         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81707         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81708         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81709         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81710         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81711         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81712         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81713         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81714         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81715         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81716
81717 2004-04-18  Jim Meyering  <jim@meyering.net>
81718
81719         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81720         failure, don't leak memory and do call END_UTMP_ENT.
81721
81722 2004-04-16  Jim Meyering  <jim@meyering.net>
81723
81724         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81725         coreutils' stat program.
81726         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81727
81728 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81729
81730         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81731         C89.
81732         (CHAR_BIT): Remove, since we assume C89.
81733         Include <stdint.h> if available, as per current Autoconf CVS advice.
81734
81735 2004-03-31  Jim Meyering  <jim@meyering.net>
81736
81737         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81738         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81739         * m4/xalloc.m4: Likewise.
81740
81741 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81742
81743         Merge from coreutils.
81744
81745         * m4/inttostr.m4: New file.
81746         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81747         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81748         Require gl_CLOCK_TIME.
81749         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81750
81751 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81752
81753         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81754         not bool, to be more consistent with Unix conventions.
81755         Suggested by Bruno Haible.
81756
81757         Merge from coreutils.
81758
81759         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81760         * lib/umaxtostr.c: New files.
81761
81762         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81763         the usual <time.h> dance.
81764         (get_date): Change signature to support fractional time stamps.
81765         All callers changed.
81766         * lib/getdate.y: Include "getdate.h" first, as we can now
81767         assume C89 and don't need to worry about 'const'.
81768         Similarly, include "unlocked-io.h" near start, not in middle.
81769         Include <limits.h>.
81770         (textint.value): Use long int rather than int.
81771         (textint.digits): Use size_t rather than int.
81772         (BILLION, LOG10_BILLION): New constants.
81773         (parser_control): New member rel_ns.  Members day_ordinal,
81774         time_zone, month, day, hour, minutes, rel_year, rel_month,
81775         rel_day, rel_hour, rel_minutes, rel_seconds
81776         are now long int, not int.  Member seconds is now struct timespec,
81777         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81778         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81779         not int.
81780         (%union.intval): Now long int, not int.
81781         New member timespec.
81782         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81783         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81784         (spec): Now is a timespec or an item list.
81785         (timespec, items): New nonterminals.
81786         (time, rel, relunit, number, get_date):
81787         Add support for fractional seconds.
81788         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81789         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81790         (to_hour): First arg is now long int, not int.
81791         (to_year): Returns long int, not int.
81792         Don't treat year -70 like 70.
81793         (tm_diff): Returns long int, not int.
81794         (lookup_word): Use bool instead of int when appropriate.
81795         (yylex): Use size_t for count, not int.
81796         Detect overflow when parsing large integer constants.
81797         Add support for fractions.
81798         (get_date): Make pointers 'const' if possible.
81799         Use more-portable code to detect integer overflow.
81800         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81801         Don't use ctime; it's not reliable if the year has >4 digits.
81802
81803         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81804         This is for compatibility with BSD.
81805
81806         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81807         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81808         From coreutils' system.h.
81809
81810         * lib/userspec.c: Don't include "posixver.h".
81811         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81812         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81813         compatible extension.  Simplify code by removing a boolean int
81814         that was always nonzero if a string was nonnull.
81815
81816 2004-03-30  Jim Meyering  <jim@meyering.net>
81817
81818         Merge from coreutils.
81819
81820         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81821         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81822         on some systems one must include <grp.h> before it.
81823         Reported by Christian Krackowizer.
81824
81825 2004-03-30  Jim Meyering  <jim@meyering.net>
81826
81827         Merge from coreutils.
81828
81829         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81830
81831         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81832         an empty input stream.
81833
81834         * lib/readtokens.c: Include <stdbool.h>.
81835         (readtoken): Use `size_t' rather than int/long.
81836         All callers adjusted.
81837         Use `bool' rather than `int' where appropriate.
81838         Use memset rather than an explicit loop.
81839         Use x2nrealloc rather than xrealloc.
81840         Allow the use of `\0' as a delimiter.
81841         (readtokens): Likewise.
81842         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81843
81844 2004-03-30  Jim Meyering  <jim@meyering.net>
81845
81846         * m4/realloc.m4: Remove file, since now it does no more than
81847         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81848         the `configure.ac' section of module/realloc.
81849         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81850
81851 2004-03-30  Bruno Haible  <bruno@clisp.org>
81852
81853         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81854         nonnull.
81855
81856 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81857
81858         Merge changes to getloadavg.c from coreutils and Emacs.
81859
81860         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81861         Define to an expression, not to the empty string.
81862         Include cloexec.h and xalloc.h.
81863         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81864         Use set_cloexec_flag rather than rolling our own.
81865         * lib/cloexec.c, lib/cloexec.h: New files.
81866
81867 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81868
81869         * m4/cloexec.m4: New file.
81870
81871 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81872
81873         * lib/getopt.h: Sync with libc CVS.
81874
81875 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81876             Bruno Haible  <bruno@clisp.org>
81877
81878         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81879         mbswidth.
81880
81881 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81882             Bruno Haible  <bruno@clisp.org>
81883
81884         * lib/mbswidth.h: Include <wchar.h> only if
81885         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81886         <wchar.h>.
81887         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81888
81889 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81890
81891         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81892         Sync with libc CVS.
81893         * lib/getopt_int.h: New file, also synced from libc.
81894
81895 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81896
81897         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81898         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81899         Bring back getopt.c, getopt.h, getopt1.c.
81900
81901 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81902
81903         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81904         All uses changed.  Check for sa_sigaction member; this fixes
81905         a bug first reported by Jason Andrade in
81906         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81907
81908 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81909
81910         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81911         '#if' expressions.  Unlike the code it replaces, it does not
81912         depend on (defined _SC_PAGESIZE).  However, it does depend on
81913         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81914         first reported by Jason Andrade in
81915         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81916
81917 2004-02-25  Simon Josefsson  <jas@extundo.com>
81918
81919         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81920
81921 2004-02-25  Simon Josefsson  <jas@extundo.com>
81922
81923         * lib/strdup.h: New file.
81924         * lib/strdup.c: Include it.
81925         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81926         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81927
81928 2004-02-23  Karl Berry  <karl@gnu.org>
81929
81930         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81931         (from fencepost.gnu.org:/gd/gnuorg).
81932
81933 2004-02-23  Karl Berry  <karl@gnu.org>
81934
81935         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81936         * config/srclist.txt: add maintain/standards documents.
81937
81938 2004-02-18  Bruno Haible  <bruno@clisp.org>
81939
81940         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81941         Reported by Derek Robert Price <derek@ximbiot.com>.
81942
81943 2004-02-16  Karl Berry  <karl@gnu.org>
81944
81945         * config/mkinstalldirs, install-sh: update from automake.
81946
81947 2004-02-06  Karl Berry  <karl@gnu.org>
81948
81949         * m4/po.m4: update from gettext 0.14.1.
81950
81951 2004-02-06  Karl Berry  <karl@gnu.org>
81952
81953         * lib/config.charset: update from gettext 0.14.1.
81954
81955 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81956
81957         Add comments and code, prompted by suggestions from Bruno Haible
81958         for sh-quote.
81959         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81960         describing the enum quoting_style values.
81961         * lib/quotearg.c (quotearg_alloc): New function.
81962         (quotearg_buffer_restyled): Treat lone { and } as special.
81963         Treat = as special.  Work around bug with older shells
81964         that "see" a '\' that is really the 2nd byte of a multibyte char.
81965         Quote empty string with shell_quoting_style.
81966
81967 2004-02-03  Bruno Haible  <bruno@clisp.org>
81968
81969         * m4/pipe.m4: New file, from GNU gettext.
81970
81971 2004-02-03  Bruno Haible  <bruno@clisp.org>
81972
81973         * lib/pipe.h: New file, from GNU gettext.
81974         * lib/pipe.c: New file, from GNU gettext.
81975
81976 2004-01-27  Bruno Haible  <bruno@clisp.org>
81977
81978         * m4/execute.m4: New file, from GNU gettext.
81979
81980 2004-01-27  Bruno Haible  <bruno@clisp.org>
81981
81982         * lib/execute.h: New file, from GNU gettext.
81983         * lib/execute.c: New file, from GNU gettext.
81984         * lib/w32spawn.h: New file, from GNU gettext.
81985
81986 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81987
81988         Merge from diffutils.
81989
81990         * lib/file-type.c (file_type): Add typed memory objects.
81991         * lib/file-type.h (S_TYPEISTMO): New macro.
81992
81993         * lib/c-stack.h (c_stack_action): Remove argv argument.
81994         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81995         (die): Don't calculate message unless segv_action returns.
81996         (get_stack_location, min_address_from_argv, max_address_from_argv,
81997         volatile stack_base, volatile_stack_size): Remove.
81998         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81999         that every segmentation violation is a stack overflow.  (Ouch!)
82000         See Debian bug 136249 (still outstanding) for more info about why
82001         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82002
82003 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82004
82005         Exit-status fix from coreutils.
82006
82007         Use exit_failure consistently in place of EXIT_FAILURE,
82008         so that program exit statuses are consistent on failure.
82009
82010         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82011         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82012         * lib/argmatch.h: Comment fix to match the above.
82013         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82014         Now a macro referring to exit_failure, instead of a separate
82015         variable.  Include "exitfail.h" to get it.
82016         * lib/xstrtol.h: Include "exitfail.h".
82017         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82018
82019         * lib/long-options.c (parse_long_options): Use prototype
82020         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82021         for clarity.
82022
82023 2004-01-21  Jim Meyering  <jim@meyering.net>
82024
82025         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82026         so as not to conflict with a different-sized __mktime_internal
82027         function in GNU libc.
82028         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82029         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82030
82031 2004-01-20  Karl Berry  <karl@gnu.org>
82032
82033         * config/config.guess: update from config.
82034
82035         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82036
82037 2004-01-20  Bruno Haible  <bruno@clisp.org>
82038
82039         Safer stack allocation.
82040         * lib/setenv.c: Include allocsa.h.
82041         (alloca): Remove fallback definition.
82042         (freea): Remove macro.
82043         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82044         instead of freea.
82045
82046 2004-01-20  Bruno Haible  <bruno@clisp.org>
82047
82048         * m4/eealloc.m4: New file, from GNU gettext.
82049
82050 2004-01-20  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/allocsa.m4: New file, from GNU gettext.
82053
82054 2004-01-20  Bruno Haible  <bruno@clisp.org>
82055
82056         * lib/xallocsa.h: New file, from GNU gettext.
82057         * lib/xallocsa.c: New file, from GNU gettext.
82058
82059 2004-01-20  Bruno Haible  <bruno@clisp.org>
82060
82061         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82062
82063 2004-01-20  Bruno Haible  <bruno@clisp.org>
82064
82065         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82066         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82067         specially.
82068
82069 2004-01-20  Bruno Haible  <bruno@clisp.org>
82070
82071         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82072         patch.
82073
82074 2004-01-20  Bruno Haible  <bruno@clisp.org>
82075
82076         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82077
82078 2004-01-20  Bruno Haible  <bruno@clisp.org>
82079
82080         * lib/eealloc.h: New file.
82081
82082 2004-01-20  Bruno Haible  <bruno@clisp.org>
82083
82084         * lib/binary-io.h: Avoid warnings on Cygwin.
82085
82086 2004-01-20  Bruno Haible  <bruno@clisp.org>
82087
82088         * lib/allocsa.h: New file, from GNU gettext.
82089         * lib/allocsa.c: New file, from GNU gettext.
82090
82091 2004-01-18  Karl Berry  <karl@gnu.org>
82092
82093         * doc/gpl.texi, doc/lgpl.texi: new files.
82094
82095 2004-01-18  Karl Berry  <karl@gnu.org>
82096
82097         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82098         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82099
82100 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82101
82102         Merge from coreutils.
82103
82104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82105         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82106         (gl_DEFAULT_POSIX2_VERSION): Move
82107         the documentation from 'configure' into 'config.hin',
82108         so that 'configure --help' isn't burdened by it and
82109         we don't have to worry about its formatting there.
82110         Reword the documentation so that it's more succinct
82111         and can be run together into a single paragraph.
82112         * m4/same.m4 (gl_SAME): Check for pathconf.
82113
82114 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82115
82116         Merge from coreutils.
82117
82118         * lib/posixver.c: Include posixver.h.
82119
82120         * lib/same.c: Include <stdbool.h>, <limits.h>.
82121         (_POSIX_NAME_MAX): Define if not defined.
82122         (MIN): New macro.
82123         (same_name): If file names are silently truncated, report
82124         that the file names are the same if they are the same after
82125         the silent truncation.
82126
82127         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82128         conversion function.
82129         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82130         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82131         longer needed.
82132
82133 2004-01-15  Jim Meyering  <jim@meyering.net>
82134
82135         Merge from coreutils.
82136
82137         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82138         if no library is required.
82139         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82140         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82141         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82142         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82143         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82144         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82145         value, $ac_cv_search_crypt, if it's "none required".
82146         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82147         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82148         not gl_FUNC_GETLOADAVG.
82149         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82150         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82151
82152 2004-01-15  Jim Meyering  <jim@meyering.net>
82153
82154         Merge from coreutils.
82155
82156         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82157         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82158         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82159
82160         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82161         optional configure-time default.
82162
82163         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82164
82165         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82166
82167 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82168
82169         Merge from coreutils.
82170
82171         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82172         value, $ac_cv_search_nanosleep, if it's "none required".
82173
82174 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82175
82176         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82177         with like-named macro in fnmatch.c.
82178         (EXT): Use an internal constant instead.
82179
82180         Merge fnmatch patches from glibc.
82181         * lib/fnmatch.c (mbsinit): Remove define.
82182         Add libc_hidden_ver (__fnmatch, fnmatch).
82183         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82184         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82185
82186 2004-01-14  Karl Berry  <karl@gnu.org>
82187
82188         * config/install-sh: update from automake.
82189
82190 2004-01-13  Karl Berry  <karl@gnu.org>
82191
82192         * config/install-sh: update from automake.
82193
82194 2004-01-09  Karl Berry  <karl@gnu.org>
82195
82196         * config/install-sh: update from automake.
82197
82198 2004-01-05  Karl Berry  <karl@gnu.org>
82199
82200         * config/config.{sub,guess}: update from config.
82201
82202 2003-12-31  Karl Berry  <karl@gnu.org>
82203
82204         * config/depcomp: update from automake.
82205
82206 2003-12-14  Karl Berry  <karl@gnu.org>
82207
82208         * lib/config.charset: update from gettext-runtime.
82209
82210 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82211
82212         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82213         Bug reported by Alfred M. Szmidt.
82214
82215 2003-12-03  Bruno Haible  <bruno@clisp.org>
82216
82217         * m4/gettext.m4: Upgrade from gettext-0.13.
82218         * m4/po.m4: Upgrade from gettext-0.13.
82219         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82220         * m4/intmax.m4: New file, from gettext-0.13.
82221         * m4/printf-posix.m4: New file, from gettext-0.13.
82222
82223 2003-11-29  Karl Berry  <karl@gnu.org>
82224
82225         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82226
82227 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82228             Bruno Haible  <bruno@clisp.org>
82229
82230         * lib/printf-parse.h: Don't include sys/types.h.
82231         (ARG_NONE): New macro.
82232         (char_directive): Change type of *arg_index fields to size_t.
82233         * lib/printf-parse.c: Don't include sys/types.h.
82234         (SSIZE_MAX): Remove macro.
82235         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82236         Remove unnecessary overflow check.
82237         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82238         fields.
82239
82240 2003-11-25  Bruno Haible  <bruno@clisp.org>
82241
82242         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82243
82244 2003-11-25  Bruno Haible  <bruno@clisp.org>
82245
82246         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82247         gt_TYPE_SSIZE_T.
82248
82249 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82250
82251         * modules/alloca: Remove dependency on xalloc.
82252
82253 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82254
82255         * lib/alloca.c: Remove dependency on xalloc module.
82256         (xalloc_die): Remove.
82257         (memory_full) [!defined emacs]: New macro.
82258         [!defined emacs]: Don't include xalloc.h.
82259         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82260         address arithmetic overflows.  Change datatypes a bit to avoid
82261         unnecessary casts.
82262
82263 2003-11-22  Jim Meyering  <jim@meyering.net>
82264
82265         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82266         s/size/size_t/.
82267
82268 2003-11-21  Karl Berry  <karl@gnu.org>
82269
82270         * config/config.{sub,guess}: update from config.
82271
82272 2003-11-18  Karl Berry  <karl@gnu.org>
82273
82274         * config/config.{sub,guess}: update from config.
82275
82276         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82277
82278 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82279
82280         * README: Mention that S+T cannot overflow if S is the size of
82281         an existing object and T is sufficiently small.
82282
82283 2003-11-17  Jim Meyering  <jim@meyering.net>
82284
82285         On systems without utime and without a utimes function capable of
82286         dealing with a NULL struct utimbuf* argument, this utime replacement
82287         could -- in unusual circumstances -- leak a file descriptor.
82288         * lib/utime.c: Include <unistd.h> and <errno.h>.
82289         (utime_null): Be sure to close `fd' and to preserve errno.
82290         Reported by Geoff Collyer via Arnold Robbins.
82291
82292 2003-11-17  Bruno Haible  <bruno@clisp.org>
82293
82294         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82295         (Depends-on): Add xsize.
82296
82297 2003-11-17  Bruno Haible  <bruno@clisp.org>
82298
82299         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82300
82301 2003-11-17  Bruno Haible  <bruno@clisp.org>
82302
82303         * lib/vasnprintf.c (alloca): Remove fallback definition.
82304         (freea): Remove definition.
82305         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82306         Reported by Paul Eggert.
82307
82308 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82309             Bruno Haible  <bruno@clisp.org>
82310
82311         Protect against address arithmetic overflow.
82312         * lib/printf-args.h: Include stddef.h.
82313         (arguments): Change type of field 'count' to size_t.
82314         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82315         'unsigned int' where appropriate.
82316         * lib/printf-parse.h: Include sys/types.h.
82317         (char_directive): Change type of *arg_index fields to ssize_t.
82318         (char_directives): Change type of fields 'count', max_*_length to
82319         size_t.
82320         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82321         (SSIZE_MAX): Define fallback value.
82322         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82323         instead of 'int' where appropriate. Check a_allocated, d_allocated
82324         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82325         * lib/vasnprintf.c: Include xsize.h.
82326         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82327         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82328         overflow. Avoid wraparound when converting a width or precision from
82329         decimal to binary.
82330
82331 2003-11-16  Bruno Haible  <bruno@clisp.org>
82332
82333         Update from GNU gettext.
82334         * lib/printf-parse.c: Generalize to it can be compiled for wide
82335         strings.
82336         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82337         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82338         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82339         SNPRINTF): New macros.
82340         Don't include <alloca.h> if the file is used inside libintl.
82341         (local_wcslen): New function, for Solaris 2.5.1.
82342         (VASNPRINTF): Use it instead of wcslen.
82343
82344 2003-11-16  Bruno Haible  <bruno@clisp.org>
82345
82346         * lib/xsize.h (xmax): New function.
82347         (xsum, xsum3, xsum4): Declare as "pure" functions.
82348
82349 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82350
82351         * modules/xalloc (Files): Undo latest change, since xalloc.h
82352         no longer needs SIZE_MAX or PTRDIFF_MAX.
82353
82354 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82355
82356         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82357         gl_PTRDIFF_MAX.
82358
82359 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82360
82361         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82362         "return", to pacify some unknown compiler.  Problem reported
82363         by Joerg Schilling.
82364
82365 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82366
82367         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82368         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82369         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82370         heuristic is just as accurate as far as we know, and it removes a
82371         dependency on size_max.m4 and ptrdiff_max.m4.
82372
82373 2003-11-11  Bruno Haible  <bruno@clisp.org>
82374
82375         * modules/xsize (Files): Add m4/size_max.m4.
82376         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82377
82378 2003-11-11  Bruno Haible  <bruno@clisp.org>
82379
82380         * m4/size_max.m4: New file.
82381         * m4/ptrdiff_max.m4: New file.
82382         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82383         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82384         (gl_XALLOC): Invoke it.
82385
82386 2003-11-11  Bruno Haible  <bruno@clisp.org>
82387
82388         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82389         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82390         defined.
82391
82392 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82393
82394         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82395         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82396         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82397         From Bruno Haible.
82398         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82399         not (size_t) -1, since it's defined here.
82400
82401 2003-11-09  Karl Berry  <karl@gnu.org>
82402
82403         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82404
82405 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82406
82407         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82408         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82409         Reject sizes of exactly SIZE_MAX bytes.
82410         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82411         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82412
82413 2003-11-05  Bruno Haible  <bruno@clisp.org>
82414
82415         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82416         SIZE_MAX defined in <limits.h> on Solaris.
82417
82418 2003-11-04  Jim Meyering  <jim@meyering.net>
82419
82420         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82421         variable names, rather than @VAR@.
82422         * modules/poll: Likewise.
82423
82424 2003-11-04  Bruno Haible  <bruno@clisp.org>
82425
82426         * modules/xsize: New file.
82427         * modules/linebreak: Depend on xsize.
82428         * MODULES.html.sh (func_all_modules): Add xsize.
82429
82430 2003-11-04  Bruno Haible  <bruno@clisp.org>
82431
82432         * m4/xsize.m4: New file.
82433
82434 2003-11-04  Bruno Haible  <bruno@clisp.org>
82435
82436         * lib/xsize.h: New file.
82437         * lib/linebreak.c: Include xsize.h.
82438         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82439         argument for overflow.
82440         Suggested by Paul Eggert.
82441
82442 2003-11-03  Karl Berry  <karl@gnu.org>
82443
82444         * config/config.{guess,sub}: update from config.
82445
82446 2003-11-03  Jim Meyering  <jim@meyering.net>
82447
82448         * modules/userspec (lib_SOURCES): Add userspec.h.
82449         (Include): Add "userspec.h".
82450         Improve description.
82451
82452 2003-11-03  Jim Meyering  <jim@meyering.net>
82453
82454         * lib/userspec.c: Include "userspec.h".
82455         * lib/userspec.h: New file.
82456
82457 2003-11-03  Bruno Haible  <bruno@clisp.org>
82458
82459         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82460
82461 2003-11-03  Bruno Haible  <bruno@clisp.org>
82462
82463         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82464         available, to avoid (extremely rare) race condition.
82465         Suggested by Paul Eggert.
82466
82467 2003-11-02  Karl Berry  <karl@gnu.org>
82468
82469         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82470
82471 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82472
82473         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82474         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82475         (read_filesystem_list): Set and use me_type_malloced.
82476         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82477         whatever the type happens to be), for brevity and consistency.
82478         Check for size calculation overflow on Alphas running OSF/1.
82479
82480 2003-10-31  Jim Meyering  <jim@meyering.net>
82481
82482         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82483
82484         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82485
82486 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82487             Bruno Haible  <bruno@clisp.org>
82488
82489         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82490         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82491
82492 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82493
82494         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82495         netbsd*-gnu*.  Suggested by Robert Millan.
82496
82497 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82498
82499         * modules/group-member: Depend on stdbool.
82500
82501 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82502
82503         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82504
82505 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82506
82507         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82508         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82509         after the 'gnu' in these cases.  This fixes some bugs in the
82510         previous change, and is based on suggestions by Robert Millan.
82511
82512 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82513
82514         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82515         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82516         no longer needed.
82517         * lib/quotearg.c (quotearg_n_options): Use it.
82518         * lib/group-member.c: Include <stdbool.h>.
82519         (free_group_info): Arg is now const *; don't free arg.
82520         (get_group_info): Now returns bool and accepts struct group_info *,
82521         rather than returning a malloc'ed struct group_info *.
82522         All uses changed.  Check for overflow in internal size calculation.
82523
82524         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82525         rather than xmalloc/xrealloc.
82526         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82527         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82528         conformance bug: the old code used a pointer after freeing the
82529         storage that it addressed.
82530         * lib/hash.c (hash_initialize): Simplify the code by using
82531         xalloc_oversized rather than doing it by hand.
82532         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82533         the buffer preserved.  Use free and xmalloc instead.
82534         * lib/quotearg.c (quotearg_n_options): Likewise.
82535         Use a simpler test for size overflow.  Don't use xalloc_oversized
82536         because unsigned int might be wider than size_t (!); this suggests
82537         that we should switch from unsigned int to size_t for slot numbers.
82538
82539 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82540
82541         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82542         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82543         NetBSD kernels.  Requested by Richard Stallman.
82544
82545 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82546
82547         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82548         to allocate the returned structure.  Do not allocate a subarray,
82549         as x2nrealloc will do that.
82550         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82551         instead of xnrealloc.
82552         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82553
82554 2003-10-27  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/stdbool_.h: Better support for BeOS.
82557
82558 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82559
82560         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82561         now uses inline.
82562
82563 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82564
82565         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82566         callers that want to do their own size-overflow checking.  Include
82567         <stdbool.h>, since xalloc_oversized returns bool.
82568         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82569         to use xalloc_oversized.
82570
82571         Add two functions x2realloc, x2nrealloc, for programs that grow
82572         arrays dynamically by doubling their sizes.
82573         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82574         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82575         New functions.
82576
82577         Port to C99 semantics for 'inline' of external functions.
82578         Bug reported by Bruno Haible.
82579         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82580         with the old contents of xnmalloc.
82581         (xnmalloc, xmalloc): Use it.
82582         (xnrealloc_inline): New static inline function,
82583         with the old contents of xnrealloc.
82584         (xnrealloc, xrealloc): Use it.
82585
82586         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82587         that.
82588
82589 2003-10-26  Karl Berry  <karl@gnu.org>
82590
82591         * config/srclist.txt (COPYING.DOC): no longer available from
82592         /gd/gnuorg; don't know where the ultimate source is.
82593
82594 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82595
82596         Fix several address-calculation bugs in the hash modules,
82597         plus some minor code cleanup.
82598
82599         * lib/hash.h: Include <stdbool.h>, for bool.
82600         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82601         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82602         hash_get_n_entries, hash_get_max_bucket_length,
82603         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82604         hash_rehash): Use size_t rather than unsigned.
82605         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82606         hash_get_n_buckets_used, hash_get_n_entries,
82607         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82608         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82609         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82610         Likewise.
82611         (SIZE_MAX): Define if not defined.
82612         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82613         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82614         hash_print):
82615         Use const * when possible.
82616         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82617         (check_tuning): Fix bug: if tuning parameters were very close to
82618         0 or 1, rounding errors could have caused subscript violations.
82619         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82620         (hash_initialize): Add 'fail:' label
82621         to free table and return NULL, and use it to simplify code.
82622         Use calloc rather than clearing the storage ourself.
82623         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82624         buffer size calculations.
82625         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82626         Include <stddef.h>, for size_t.
82627         * lib/hash-pjw.c (hash_pjw): Likewise.
82628         Switch to method described by Bruno Haible.
82629         Include <limits.h>, for CHAR_BIT.
82630         (SIZE_BITS): New macro.
82631
82632 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82633
82634         * m4/getline.m4 (AM_FUNC_GETLINE):
82635         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82636         hosts.  Problem reported by Derek Robert Price in
82637         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82638         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82639         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82640
82641 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82642
82643         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82644         ceiling the allocation at NMAX bytes rather than silently
82645         discarding input bytes before NMAX is reached.  This makes
82646         a difference only if NMAX exceeds SIZE_MAX / 2.
82647
82648         * lib/obstack.c: Merge from glibc.
82649         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82650         Add libc_hidden_def (_obstack_newchunk).
82651         (_obstack_free) [! defined _LIBC]: Remove.
82652         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82653         a clone of the function body.
82654         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82655         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82656
82657         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82658         glibc.
82659         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82660         arg to memcpy.
82661
82662         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82663         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82664         Don't use lvalue casts, as GCC plans to remove support for them
82665         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82666         was also present in the non-GCC version, indicating that this
82667         code had always been buggy and had never been widely used.
82668         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82669         Use the fast variant of each macro, rather than copying the
82670         definiens of the fast variant; that way, we'll be more likely to
82671         catch future bugs in the fast variants.
82672
82673 2003-10-20  Bruno Haible  <bruno@clisp.org>
82674
82675         * modules/wait-process: New file.
82676         * MODULES.html.sh (func_all_modules): Add wait-process.
82677
82678 2003-10-20  Bruno Haible  <bruno@clisp.org>
82679
82680         * m4/wait-process.m4: New file.
82681
82682 2003-10-20  Bruno Haible  <bruno@clisp.org>
82683
82684         * lib/wait-process.h: New file, from GNU gettext.
82685         * lib/wait-process.c: New file, from GNU gettext.
82686
82687 2003-10-19  Jim Meyering  <jim@meyering.net>
82688
82689         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82690         HPUX 10.20.
82691
82692 2003-10-18  Karl Berry  <karl@gnu.org>
82693
82694         * config/config.guess: update from config.
82695
82696 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82697
82698         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82699         (getgroups): First arg is int, not size_t.
82700         Don't let 'free' mangle errno.
82701
82702 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82703
82704         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82705
82706 2003-10-16  Karl Berry  <karl@gnu.org>
82707
82708         * config/config.{guess,sub}: update from config.
82709
82710 2003-10-16  Jim Meyering  <jim@meyering.net>
82711
82712         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82713         memcpy.
82714
82715 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82716
82717         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82718         (SIZE_MAX): Remove.
82719         (new_exclude, add_exclude_file): Initial size no longer needs to
82720         be a power of 2.
82721         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82722         our own address arithmetic overflow checking.
82723
82724         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82725         (fnmatch): Do not alloca more than 2000 wide characters;
82726         instead, use malloc for large buffers.
82727         Check for address arithmetic overflow, and return -1
82728         with errno set to ENOMEM in that case.
82729         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82730         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82731         instead, return -1.  Check for address arithmetic overflow.
82732
82733 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82734
82735         Handle invalid suffixes and overflow independently, so that
82736         callers can treat them independently as needed.  Fix some bugs in
82737         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82738         suffix for a human-readable blocksize.  The major caller-visible
82739         change is the addition of a new
82740         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82741         that both overflow and suffix chars were found.
82742
82743         * lib/human.c (humblock): Don't check separately for invalid suffix
82744         char; that is xstrtoumax's job (now that its bug is fixed).
82745         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82746         INTMAX_MAX]: New macros.
82747         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82748         TYPE_MAXIMUM): New macros.
82749         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82750         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82751         if overflow occurs, as it's what __strtol does and it's more useful
82752         in practice.
82753         (__xstrtol): If __strtol reports some error other than ERANGE,
82754         reflect it to the caller as LONGINT_INVALID.  If it reports
82755         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82756         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82757         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82758         value.
82759         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82760         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82761         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82762         [defined UINTMAX_MAX]: New macros.
82763
82764 2003-10-14  Bruno Haible  <bruno@clisp.org>
82765
82766         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82767
82768 2003-10-14  Bruno Haible  <bruno@clisp.org>
82769
82770         * m4/sig_atomic_t: New file, from GNU gettext.
82771         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82772
82773 2003-10-14  Bruno Haible  <bruno@clisp.org>
82774
82775         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82776         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82777         Also use volatile where needed.
82778
82779 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82780
82781         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82782         Change maintainer from Bruno Haible to 'all'.
82783
82784 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82785
82786         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82787
82788 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82789
82790         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82791         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82792         and define in terms of the other primitives.
82793         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82794         (SIZE_MAX): Define if not already defined.
82795         (array_size_overflow): New function.
82796         (xalloc_die): Abort instead of exiting if 'error' returns.
82797         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82798         (xmalloc, xrealloc): Use them.
82799         (xcalloc): Check for address arithmetic overflow.
82800         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82801         a bit faster than strcpy.
82802
82803 2003-10-10  Simon Josefsson  <jas@extundo.com>
82804
82805         * modules/argp (Depends-on): Add restrict and strcase.
82806
82807 2003-10-10  Simon Josefsson  <jas@extundo.com>
82808
82809         * m4/argp.m4: Add AC_C_INLINE.
82810
82811 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82812
82813         Merge getpass from libc, plus a few fixes.
82814
82815         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82816         Include <stdbool.h>.
82817         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82818         __fsetlocking to empty.
82819         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82820         do include <bits/libc-lock.h>.
82821         Do not include <fcntl.h>; not needed.
82822         [_LIBC]: Include <wchar.h>.
82823         (NOTCANCEL_MODE): New macro.
82824         (flockfile, funlockfile) [_LIBC]: New macros.
82825         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82826         [!_LIBC]: New macros.
82827         (call_fclose): New function.
82828         (getpass): Use it.  Save tty stream separately; this simplifies the
82829         code and makes it more reliable if stdin happens to equal stdout.
82830         Invoke __fsetlocking on tty.
82831         Handle thread cancellation if needed.
82832         Namespace cleanup (use __tcgetattr, __getline).
82833         Use bool for Booleans.
82834         [USE_IN_LIBIO]: Handle wide streams.
82835         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82836         stream might go where.
82837
82838         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82839         doesn't have to include <stdio.h> before us.
82840         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82841         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82842         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82843         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82844         if not declared, so that we can use getpass.c code from libc without
82845         rewriting it.
82846         (flockfile, ftrylockfile, funlockfile): New macros.
82847
82848 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82849
82850         * modules/getpass: Depend on stdbool.
82851
82852 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82853
82854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82855
82856 2003-10-07  Karl Berry  <karl@gnu.org>
82857
82858         * config/config.{guess,sub}: update from config.
82859
82860 2003-10-06  Jim Meyering  <jim@meyering.net>
82861             Bruno Haible  <bruno@clisp.org>
82862
82863         This lets translators provide better translations for the
82864         "Written by ..." part of --version output.
82865         * lib/version-etc.h: Include stdarg.h.
82866         (version_etc_copyright): Declare as readonly.
82867         (version_etc): Make this function variadic with a NULL-terminated list
82868         of author name strings.
82869         (version_etc_va): New declaration.
82870         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82871         (version_etc_copyright): Declare as readonly.
82872         (version_etc_va): New function. Provide a different translatable string
82873         for each possible number of authors < 10. Abbreviate when there are 10
82874         authors or more.
82875         (version_etc): Make this function variadic. Call version_etc_va.
82876         Suggestion from Gary V. Vaughan.
82877
82878         * lib/long-options.h (parse_long_options): Change prototype: the
82879         authors string is moved to the end and becomes variadic.
82880         * lib/long-options.c: Include stdarg.h.
82881         (parse_long_options): Make this function variadic, too.
82882         Call version_etc_va, not version_etc.
82883
82884 2003-10-06  Bruno Haible  <bruno@clisp.org>
82885
82886         * modules/version-etc-2: Remove file.
82887         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82888
82889 2003-10-06  Bruno Haible  <bruno@clisp.org>
82890
82891         * modules/fatal-signal: New file.
82892         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82893
82894 2003-10-06  Bruno Haible  <bruno@clisp.org>
82895
82896         * m4/fatal-signal.m4: New file.
82897         * m4/signalblocking.m4: New file, from GNU gettext.
82898
82899 2003-10-06  Bruno Haible  <bruno@clisp.org>
82900
82901         * lib/version-etc-2.h: Remove file.
82902         * lib/version-etc-2.c: Remove file.
82903
82904 2003-10-06  Bruno Haible  <bruno@clisp.org>
82905
82906         * lib/fatal-signal.h: New file, from GNU gettext.
82907         * lib/fatal-signal.c: New file, from GNU gettext.
82908
82909 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82910
82911         * README: Rework advice for preventing empty .o files.
82912         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82913         not <sys/types.h>.
82914
82915 2003-10-04  Karl Berry  <karl@gnu.org>
82916
82917         * lib/argp*: update from libc.
82918
82919 2003-10-04  Karl Berry  <karl@gnu.org>
82920
82921         * config/config.{guess,sub}: update from config.
82922
82923 2003-10-02  Bruno Haible  <bruno@clisp.org>
82924
82925         * modules/lchown (Include): Add lchown.h.
82926         * modules/time_r (Include): Use "..." syntax.
82927         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82928
82929 2003-10-01  Simon Josefsson  <jas@extundo.com>
82930
82931         * MODULES.html.sh (func_all_modules): Move gethostname from section
82932         'based on' to section 'lacking' POSIX:2001.
82933
82934 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82935
82936         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82937         to output mode on the same stream.
82938
82939 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82940
82941         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82942         Fix arg typo in previous patch.
82943
82944 2003-09-28  Jim Meyering  <jim@meyering.net>
82945
82946         * lib/error.c: Correct cpp indentation.
82947
82948 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82949
82950         * modules/free: New file.
82951
82952 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82953
82954         * m4/free.m4: New file.
82955
82956 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82957
82958         * lib/minmax.h (MIN, MAX)
82959         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82960         Omit the special code that used __typeof__, since we worry that
82961         it could be more trouble than it's worth.  See:
82962         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82963         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82964
82965         * lib/free.c: New file.
82966
82967 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82968
82969         Trivial fixes to Makefile.am parts of module listings.
82970         * modules/strstr: Append strstr.h to lib_SOURCES.
82971         * modules/strcase: Likewise, for strcase.h.
82972
82973 2003-09-27  Karl Berry  <karl@gnu.org>
82974
82975         * config/mkinstalldirs: update from automake.
82976
82977 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82978
82979         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82980         (error_tail): Do not loop, reallocating temporary buffer, since
82981         the output cannot contain more wide characters than the input
82982         contains bytes, the size must be big enough already.  This avoids
82983         one potential size overflow calculation.  Check for size overflow
82984         when calculating temporary buffer size.  Free temporary buffer
82985         when done, if it was allocated with malloc; this plugs a memory
82986         leak.  Remove casts from void * to pointers, that are no longer
82987         needed now that we're assuming C89 or better.
82988
82989         Merge error changes from glibc.
82990
82991         * lib/error.c, error.h: Update copyright notice header to match glibc.
82992         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82993         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82994         Disable cancellation while printing error.
82995         * lib/error.h: Prepend __ to parameter names.
82996
82997 2003-09-26  Jim Meyering  <jim@meyering.net>
82998
82999         * lib/error.c (error_tail): Move some declarations
83000         into inner scope where the local variables are used.
83001
83002 2003-09-26  Bruno Haible  <bruno@clisp.org>
83003
83004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83005         stpncpy().
83006         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83007
83008 2003-09-26  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83011         (stpncpy): Define as alias for gnu_stpncpy.
83012         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83013
83014 2003-09-25  Simon Josefsson  <jas@extundo.com>
83015
83016         * lib/xgetdomainname.h: New file.
83017         * lib/xgetdomainname.c: New file.
83018
83019 2003-09-25  Simon Josefsson  <jas@extundo.com>
83020             Bruno Haible  <bruno@clisp.org>
83021
83022         * modules/getdomainname: New file.
83023         * modules/xgetdomainname: New file.
83024         * MODULES.html.sh (func_all_modules): Add getdomainname,
83025         xgetdomainname.
83026
83027 2003-09-25  Simon Josefsson  <jas@extundo.com>
83028             Bruno Haible  <bruno@clisp.org>
83029
83030         * m4/getdomainname.m4: New file.
83031
83032 2003-09-25  Simon Josefsson  <jas@extundo.com>
83033             Bruno Haible  <bruno@clisp.org>
83034
83035         * lib/getdomainname.h: New file.
83036         * lib/getdomainname.c: New file.
83037
83038 2003-09-25  Karl Berry  <karl@gnu.org>
83039
83040         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83041
83042 2003-09-25  Karl Berry  <karl@gnu.org>
83043
83044         * config/install-sh: update from automake.
83045
83046 2003-09-25  Bruno Haible  <bruno@clisp.org>
83047
83048         * modules/version-etc-2: New file, from modules/version-etc with
83049         modifications.
83050         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83051
83052 2003-09-25  Bruno Haible  <bruno@clisp.org>
83053
83054         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83055         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83056
83057 2003-09-24  Simon Josefsson  <jas@extundo.com>
83058
83059         * modules/xgethostname: Add xgethostname.h.
83060
83061 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83062
83063         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83064         the buffer associated with the argument.  Bug reported by
83065         Simon Josefsson.
83066
83067 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83068
83069         * README: Document assumptions that 'int' is at least 32 bits
83070         wide, that integer arithmetic is 2's complement without overflow,
83071         that there are no holes in integer values, that adding sizes of
83072         two nonoverlapping objects can't overflow, and that all-bits-zero
83073         yields scalar zero.  Fix spelling and capitalization typos.
83074
83075 2003-09-19  Karl Berry  <karl@gnu.org>
83076
83077         * lib/argp.h: update from libc.
83078
83079 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83080
83081         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83082         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83083         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83084
83085 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83086
83087         * gnulib-tool: Use "test -h", not "test -L", for portability
83088         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83089         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83090         (sed_extract_prog): Issue s commands one-by-one, rather than
83091         using \| in one s command.
83092
83093 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83094
83095         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83096         input error, instead of returning NULL the next time we are called
83097         (and therefore losing track of errno).
83098
83099 2003-09-16  Bruno Haible  <bruno@clisp.org>
83100
83101         * gnulib-tool (func_create_testdir): Warn about duplicated
83102         dependencies.
83103
83104 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83105
83106         * modules/argmatch, modules/fatal, modules/obstack,
83107         modules/xalloc, modules/xgethostname: Sort dependencies by
83108         importance, not alphabetically.
83109
83110 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83111
83112         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83113         fails, so that the caller gets the proper errno.
83114
83115         * lib/readutmp.c (read_utmp): Likewise.
83116         Check for fstat error.  Close stream and free storage
83117         when failing.
83118
83119 2003-09-14  Karl Berry  <karl@gnu.org>
83120
83121         * config/srclist.txt (strdup.c): disable for c89 changes.
83122
83123 2003-09-14  Jim Meyering  <jim@meyering.net>
83124
83125         * lib/getloadavg.c: Correct cpp indentation.
83126         * lib/strdup.c: Likewise.
83127         * lib/vasnprintf.c: Likewise.
83128
83129 2003-09-14  Bruno Haible  <bruno@clisp.org>
83130
83131         * modules/fwriteerror: New file.
83132         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83133
83134 2003-09-14  Bruno Haible  <bruno@clisp.org>
83135
83136         * lib/fwriteerror.h: New file.
83137         * lib/fwriteerror.c: New file.
83138
83139 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83140
83141         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83142         modules/xgethostname, modules/xalloc: Depend on exit.
83143
83144 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83145
83146         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83147
83148         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83149         and AC_MINIX, too, so that their extensions are available.
83150
83151         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83152         This macro has been superseded by gl_BACKUPFILE.
83153
83154         More patches to assume C89 or better.
83155
83156         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83157
83158         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83159         unconditionally.
83160         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83161         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83162         Include <string.h>, <stdlib.h> unconditionally.
83163         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83164         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83165         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83166         headers or for string.h.
83167         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83168         or strtoul.
83169
83170         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83171         headers.
83172         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83173         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83174         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83175         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83176         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83177         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83178         memcpy, memset.
83179         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83180         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83181         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83182         strtol.
83183         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83184         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83185         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83186         strtoul.
83187
83188 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83189
83190         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83191         * lib/obstack.c [!defined _LIBC]: Likewise.
83192         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83193         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83194         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83195
83196         More changes to assume C89 or better.
83197
83198         * lib/error.c (error_tail): Assume vprintf.
83199
83200         * lib/argmatch.c (getenv): Remove decl.
83201         * lib/progreloc.c (get_full_program_name): Define via prototype.
83202         * lib/setenv.c (clearenv): Likewise.
83203         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83204         needed.
83205         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83206         (malloc, memcpy): Remove decls.
83207         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83208         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83209         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83210         (memcpy): Remove macro.
83211         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83212         (__P): Remove.  All uses removed.
83213         (PTR): Remove.  All uses changed to void *.
83214         (CHAR_BIT, NULL): Remove.
83215         (spaces, zeros, memset_space, memset_zero)
83216         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83217         Remove.
83218         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83219         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83220         Define with prototype.
83221         Remove now-unnecessary prototype decl.
83222         (extra_args_spec): Assume ANSI C.  All uses changed.
83223         (extra_args_spec_iso): Remove.
83224         (my_strftime, emacs_strftimeu): Define via prototype.
83225         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83226         unconditionally.
83227         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83228         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83229         (strtoul, strtol): Remove decls.
83230         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83231         LONG_MAX): Remove.
83232         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83233         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83234         (LOCALE_PARAM_PROTO): New macro.
83235         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83236         (INTERNAL (strtol), strtol): Define with a prototype.
83237         (PARAMS): Remove.  All uses removed.
83238         * lib/tempname.c: Include <string.h> unconditionally.
83239         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83240         * lib/xgethostname.c (main): Define with a prototype.
83241         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83242         Include <stdlib.h> unconditionally.
83243         (calloc, malloc, realloc, free): Remove decls.
83244         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83245         Include <stdlib.h> unconditionally.  Sort include file names.
83246         (strtod): Remove.
83247         (xstrtod): Define with a prototype.
83248         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83249         (strtol, strtoul): Remove decls.
83250
83251 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83252
83253         More patches to assume C89 or better.
83254         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83255         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83256         string.h, memchr, STDC_HEADERS.
83257
83258 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83259
83260         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83261         Include <stdlib.h>, <string.h> unconditionally.
83262         Remove now-unnecessary cast to char *.
83263         * lib/strnlen.c: Include <string.h> unconditionally.
83264         * lib/yesno.c (yesno): Define with a prototype.
83265
83266 2003-09-11  Bruno Haible  <bruno@clisp.org>
83267
83268         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83269
83270 2003-09-10  Jim Meyering  <jim@meyering.net>
83271
83272         * lib/error.c: Correct indentation of cpp directives.
83273
83274 2003-09-10  Bruno Haible  <bruno@clisp.org>
83275
83276         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83277         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83278         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83279         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83280         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83281         <stdlib.h> and <string.h> checks.
83282         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83283         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83284
83285 2003-09-10  Bruno Haible  <bruno@clisp.org>
83286
83287         * lib/strcspn.c: Include <string.h> unconditionally.
83288         * lib/strpbrk.c: Include <string.h> unconditionally.
83289         * lib/strstr.c: Include <string.h> unconditionally.
83290         * lib/unicodeio.c: Include <string.h> unconditionally.
83291         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83292         * lib/unsetenv.c: Likewise.
83293         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83294         * lib/yesno.c: Include <stdlib.h> unconditionally.
83295         (rpmatch): Add prototype.
83296
83297 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83298
83299         More patches to assume C89 or better.
83300         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83301         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83302         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83303         or for string.h.
83304         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83305         stdlib.h.
83306         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83307         C headers.
83308         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83309         string.h.
83310         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83311         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83312         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83313         or for string.h.
83314         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83315         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83316         C headers.
83317         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83318         memcpy.
83319         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83320         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83321         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83322         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83323         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83324         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83325         string.h, free.
83326         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83327         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83328         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83329         C headers, or for string.h.
83330         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83331         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83332         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83333         headers, memory.h, stdlib.h, string.h, strings.h.
83334         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83335         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83336         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83337         strchr.
83338         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83339         headers, memory.h, string.h.
83340         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83341         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83342         free.
83343         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83344         headers.
83345         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83346         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83347         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83348         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83349         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83350
83351 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83352
83353         More K&R removal.
83354
83355         * lib/acosl.c (main): Use a prototype.
83356         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83357         tanl.c: Likewise.
83358
83359         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83360
83361         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83362         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83363         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83364         with a prototype.
83365         * lib/getopt.c (const): Remove macro.
83366         Include <string.h> unconditionally.
83367         (my_index): Remove; all uses changed to strchr.
83368         (strlen): Remove decl.
83369         (exchange): Remove forward decl; no longer needed.
83370         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83371         Define with prototype.
83372         * lib/getopt1.c (const): Remove macro.
83373         (getopt_long, getopt_long_only, main): Define with prototype.
83374
83375         * lib/getugroups.c: Include <string.h> unconditionally.
83376
83377         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83378         (getusershell, setusershell, endusershell, readname, main):
83379         Define with prototypes.
83380
83381         * lib/group-member.c: Include group-member.h first.
83382         Include <stdlib.h> unconditionally.
83383
83384         * lib/hard-locale.c: Include hard-locale.h first.
83385         Include <stdlib.h>, <string.h> unconditionally.
83386
83387         * lib/hash.c (free, malloc): Remove decls.
83388         Include <stdlib.h> unconditionally.
83389
83390         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83391         (getenv): Do not declare.
83392
83393         * lib/idcache.c: Include <string.h> unconditionally.
83394
83395         * lib/long-options.c: Include long-options.h first, to test interface.
83396         Include <stdlib.h> unconditionally.
83397
83398         * lib/makepath.c: Include makepath.h first, to test interface.
83399         Include <stdlib.h> and <string.h> unconditionally.
83400
83401         * lib/linebuffer.c: Include <stdlib.h>.
83402         (free): Remove decl.
83403
83404         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83405         stddef.h. rpl_malloc returns void *, not char *.
83406         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83407         prototype.
83408
83409         * lib/md5.h: Include <limits.h> unconditionally.
83410         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83411         (__P): Remove; all uses removed.
83412         * lib/md5.c: Include "md5.h" first.
83413         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83414         md5_buffer, md5_process_bytes, md5_process_block):
83415         Define with prototypes.
83416         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83417         * lib/sha.c: Include "sha.h" first.
83418         Include <stdlib.h>, <string.h> unconditionally.
83419
83420         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83421         * lib/memcmp.c (__ptr_t): Likewise.
83422         * lib/memrchr.c (__ptr_t): Likewise.
83423         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83424         Include <string.h> unconditionally.
83425         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83426         * lib/memchr.c: Include <stdlib.h> unconditionally.
83427         * lib/memchr.c (LONG_MAX): Remove.
83428         * lib/memrchr.c (LONG_MAX): Likewise.
83429         * lib/memchr.c (__memchr): Define via a prototype.
83430         * lib/memrchr.c (__memrchr): Likewise.
83431         * lib/memcmp.c (__P): Remove, and remove all uses.
83432         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83433         Remove forward decls; no longer needed.
83434         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83435         Use types required by C89 in prototype.
83436
83437         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83438         * lib/savedir.c: Likewise.
83439         * lib/mkdir.c (free): Remove decl.
83440         * lib/rmdir.c (rmdir): Define with a prototype.
83441         * lib/savedir.c: Include savedir.h first, to test interface.
83442
83443         * lib/mktime.c (STDC_HEADERS): Remove.
83444         Include <stdlib.h>, <string.h> unconditionally.
83445
83446         * lib/modechange.c: Include <stdlib.h> unconditionally.
83447         (malloc): Remove decl.
83448
83449         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83450         (free): Remove decl.
83451
83452         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83453         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83454         (This type really should be intptr_t, but that's a C99ism.)
83455         (_obstack_memcpy): Remove: all uses changed to memcpy.
83456         Include <string.h> unconditionally.
83457         (struct obstack): Assume __STDC__ for types of members
83458         chunkfun, freefun, extra_arg.
83459         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83460         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83461         obstack_begin, obstack_specify_allocation,
83462         obstack_specify_allocation_with_arg, obstack_chunkfun,
83463         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83464         Remove unprototyped decls and the macros that use them.
83465         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83466         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83467         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83468         (defined __STDC__ && __STDC__)]:
83469         Remove nonprototyped code.
83470         Include <stdlib.h> unconditionally.
83471         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83472         _obstack_allocated_p, _obstack_free, obstack_free,
83473         _obstack_memory_used, print_and_abort):
83474         Define using prototypes.
83475         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83476         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83477         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83478         obstack_next_free, obstack_object_size, obstack_room) [0]:
83479         Remove unused, unprototyped code.
83480
83481         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83482
83483         * lib/physmem.c (physmem_total, physmem_available, main): Define
83484         with prototypes.
83485
83486         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83487         (main): Define with a prototype.
83488
83489         * lib/posixver.c (getenv): Remove decl.
83490
83491         * lib/putenv.c (malloc): Returns void *, not char *.
83492         Include <string.h> unconditionally.
83493         (strchr, memcpy, NULL): Do not define.
83494
83495         * lib/readtokens.c: Include readtokens.h first, to test interface.
83496         Include <stdlib.h>, <string.h> unconditionally.
83497         (init_tokenbuffer): Define with a prototype.
83498
83499         * lib/regex.c (PARAMS): Remove.  All uses removed.
83500         All uses of _RE_ARGS removed, too.
83501         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83502         unconditionally.
83503         (bzero): Assume memset exists.
83504         (memcmp, memcpy, NULL): Remove.
83505         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83506         char, or assignments to local vars of type signed char.
83507         (init_syntax_once, PREFIX(extract_number_and_incr),
83508         PREFIX(print_partial_compiled_pattern),
83509         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83510         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83511         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83512         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83513         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83514         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83515         wcs_compile_range, byte_compile_range, truncate_wchar,
83516         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83517         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83518         count_mbs_length, wcs_re_match_2_internal,
83519         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83520         PREFIX(alt_match_null_string_p),
83521         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83522         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83523         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83524         now-unnecessary declaration, if any.
83525         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83526         regcomp, regexec):
83527         Remove now-unnecessary casts among pointer types.
83528         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83529
83530         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83531         (free): Remove decl.
83532
83533         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83534
83535         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83536         (free): Remove decl.
83537
83538         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83539         * lib/xgetcwd.c: Likewise.
83540
83541         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83542         (free): Remove decl.
83543
83544         * lib/strchrnul.c (strchrnul): Define with a prototype.
83545         Fix bug: c_in was not converted to char before searching.
83546
83547         The following changes are not K&R related:
83548
83549         * lib/group-member.h: Include <sys/types.h>, so that this file is
83550         self-contained.
83551         * lib/makepath.h: Likewise.
83552
83553         * lib/getusershell.c (readname, default_index, line_size, readname):
83554         Use size_t, not int, for sizes.
83555         (readname): If the size overflows, report an error instead of
83556         looping forever.
83557
83558 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83559
83560         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83561         libc.
83562
83563 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83564
83565         * README: New section: portability guidelines.
83566
83567 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83568
83569         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83570         C89 spec.
83571
83572 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83573
83574         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83575
83576 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83577
83578         Assume C89 or better; remove K&R cruft.
83579         A few of these changes were first proposed by Derek Robert Price
83580         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83581
83582         * lib/addext.c: Include <string.h> unconditionally.
83583         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83584         Don't declare getenv or malloc.
83585
83586         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83587         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83588         (NULL): Remove.
83589         (find_stack_direction, alloca): Use prototypes.
83590
83591         * lib/atexit.c (atexit): Define using a prototype.
83592
83593         * lib/basename.c, dirname.c, stripslash.c:
83594         Include <string.h> unconditionally.
83595
83596         * lib/bcopy.c: Include <stddef.h>.
83597         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83598
83599         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83600
83601         * lib/error.h (error, error_at_line, error_print_progname)
83602         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83603         * lib/error.c: Include error.h first, to check interface.
83604         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83605         (VA_START): Remove; all uses changeed to va_start.
83606         (exit, strerror): Remove decls.
83607         (error_print_progname): Prototype uncondionally.
83608         Don't include <errno.h>; no longer needed.
83609         (private_strerror): Remove.
83610         (error_tail): Always define.
83611         (error, error_at_line): Assume C89 or better; always use prototypes.
83612         * lib/fatal.c: Include "fatal.h" first, to test interface.
83613         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83614         (VA_START): Remove; all uses changed to va_start.
83615         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83616         this case.
83617         (exit): Remove decl.
83618         (fatal): Prototype unconditionally.  Assume va_start works.
83619         Abort at end, to pacify gcc.
83620
83621         * lib/euidaccess.c (main): Define with a prototype.
83622
83623         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83624
83625         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83626
83627         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83628         prototypes.
83629         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83630         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83631         (getenv): Remove decl.
83632         (fnmatch): Define using a prototype.
83633         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83634         (FCT): Define using a prototype.
83635
83636         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83637
83638         * lib/gethostname.c: Include <stddef.h>.
83639         (gethostname): Define with prototype.  Length is size_t, not int.
83640
83641 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83642
83643         Assume C89 or better; remove K&R cruft.
83644         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83645         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83646         string.h, getenv, malloc.
83647         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83648         headers.
83649         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83650         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83651         do not check for strerror.
83652         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83653         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83654         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83655         do not check for doprnt or vprintf.
83656         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83657         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83658
83659 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83660
83661         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83662         getversion.c should have been removed then, but was accidentally
83663         preserved.
83664
83665         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83666         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83667
83668 2003-09-08  Karl Berry  <karl@gnu.org>
83669
83670         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83671                 config, forget about prep.
83672
83673         * config/depcomp, missing: update from automake.
83674
83675 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83676
83677         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83678         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83679
83680 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83681
83682         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83683         copy_tm_result.  Bug reported by Simon Josefsson in
83684         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83685
83686 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83687
83688         * m4/time_r.m4: New file.
83689         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83691         is. Check for timegm declaration.
83692         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83693         Do not check for gmtime_r.
83694         Replace mktime if __mktime_internal does not exist and if mktime
83695         hasn't been replaced already.
83696
83697 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83698
83699         * lib/time_r.c, lib/time_r.h: New files.
83700
83701         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83702         __localtime_r.
83703         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83704         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83705
83706         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83707         __gmtime_r.
83708         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83709         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83710         Include <time_r.h>.
83711
83712         * lib/timegm.c: Switch to glibc implementation, with the following
83713         changes:
83714         [defined HAVE_CONFIG_H]: Include <config.h>.
83715         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83716         (__mktime_internal) [!defined _LIBC]: New decl.
83717         (__gmtime_r) [!defined _LIBC]: New macro and function.
83718         (timegm): Use a prototype, since gnulib assumes C89.
83719         Do not bother declaring tmp to be const, as it's not really usefu.
83720         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83721         (timegm): Declare only if HAVE_DECL_TIMEGM.
83722
83723 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83724
83725         * MODULES.html.sh (func_all_modules): Add time_r.
83726         * modules/time_r: New file.
83727         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83728         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83729
83730 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83731
83732         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83733         Bug reported by Lute Kamstra in
83734         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83735
83736         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83737         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83738         course with correspondingly smaller numbers for tomorrow and
83739         yesterday.  From Tadayoshi Funaba.  Originally installed into
83740         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83741         coreutils merge?).
83742
83743 2003-08-31  Simon Josefsson  <jas@extundo.com>
83744
83745         * modules/timegm: New file.
83746         * MODULES.html.sh (func_all_modules): Add timegm.
83747
83748 2003-08-31  Simon Josefsson  <jas@extundo.com>
83749
83750         * m4/timegm.m4: New file.
83751
83752 2003-08-31  Simon Josefsson  <jas@extundo.com>
83753
83754         * lib/timegm.h: New file.
83755         * lib/timegm.c: New file.  Based on
83756         wget-1.8.2/src/http.c:mktime_from_utc.
83757
83758 2003-08-31  Karl Berry  <karl@gnu.org>
83759
83760         * lib/argp.h: update from libc.
83761
83762 2003-08-28  Bruno Haible  <bruno@clisp.org>
83763
83764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83765         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83766         followed by '#define fnmatch fnmatch_posix' gives an error.
83767
83768 2003-08-28  Bruno Haible  <bruno@clisp.org>
83769
83770         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83771         warning on QNX, which defines O_BINARY to 000000.
83772
83773 2003-08-27  Jim Meyering  <jim@meyering.net>
83774
83775         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83776         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83777         would fail after 32.  Reported by Danny Levinson.  Details here:
83778         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83779
83780 2003-08-24  Bruno Haible  <bruno@clisp.org>
83781
83782         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83783         MSVC7 <stdio.h> is included later.
83784
83785 2003-08-22  Simon Josefsson  <jas@extundo.com>
83786
83787         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83788
83789 2003-08-20  Karl Berry  <karl@gnu.org>
83790
83791         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83792
83793 2003-08-20  Bruno Haible  <bruno@clisp.org>
83794
83795         * modules/progname: New file.
83796         * MODULES.html.sh (func_all_modules): Add progname.
83797
83798 2003-08-20  Bruno Haible  <bruno@clisp.org>
83799
83800         * lib/progname.h: New file, from GNU gettext.
83801         * lib/progname.c: New file, from GNU gettext.
83802         * lib/progreloc.c: New file, from GNU gettext.
83803
83804 2003-08-19  Jim Meyering  <jim@meyering.net>
83805
83806         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83807         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83808
83809 2003-08-19  Bruno Haible  <bruno@clisp.org>
83810
83811         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83812         more.
83813
83814 2003-08-19  Bruno Haible  <bruno@clisp.org>
83815
83816         * lib/xstrdup.c: Assume <string.h> exists.
83817
83818 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83819
83820         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83821         in makefile rules.
83822
83823 2003-08-18  Jim Meyering  <jim@meyering.net>
83824
83825         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83826         * m4/lib-ld.m4: Likewise.
83827
83828 2003-08-18  Jim Meyering  <jim@meyering.net>
83829
83830         * lib/setenv.h: Indent nested cpp directive.
83831         * lib/vasnprintf.c: Remove trailing blanks.
83832
83833 2003-08-17  Simon Josefsson  <jas@extundo.com>
83834
83835         * modules/xstrndup: New file.
83836         * MODULES.html.sh (func_all_modules): Add xstrndup.
83837
83838 2003-08-17  Simon Josefsson  <jas@extundo.com>
83839
83840         * modules/argp: Fix autoconf macro name. Add more dependencies.
83841
83842 2003-08-17  Simon Josefsson  <jas@extundo.com>
83843
83844         * m4/xstrndup.m4: New file.
83845
83846 2003-08-17  Simon Josefsson  <jas@extundo.com>
83847
83848         * m4/argp.m4: New file.
83849
83850 2003-08-17  Simon Josefsson  <jas@extundo.com>
83851             Bruno Haible  <bruno@clisp.org>
83852
83853         * lib/xstrndup.h: New file.
83854         * lib/xstrndup.c: New file.
83855
83856 2003-08-17  Bruno Haible  <bruno@clisp.org>
83857
83858         * modules/strndup (Files, Include): Add lib/strndup.h.
83859
83860 2003-08-17  Bruno Haible  <bruno@clisp.org>
83861
83862         * modules/euidaccess (Files): Add lib/euidaccess.h.
83863
83864 2003-08-17  Bruno Haible  <bruno@clisp.org>
83865
83866         * lib/strndup.h: New file.
83867
83868 2003-08-17  Bruno Haible  <bruno@clisp.org>
83869
83870         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83871         like AC_GNU_SOURCE.
83872         * modules/extensions (configure.ac): Comment out the invocation of
83873         gl_USE_SYSTEM_EXTENSIONS.
83874
83875 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83876
83877         Merges from coreutils, etc.
83878         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83879         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83880         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83881         fixing a typo.
83882         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83883         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83884
83885 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83886
83887         Document merge from coreutils.
83888         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83889         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83890         * modules/utime: Add m4/utimes-null.m4.
83891
83892 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83893
83894         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83895         space, undoing this 2003-08-12 change:
83896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83897
83898 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83899
83900         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83901         strtoul.c from libc, undoing this 2003-08-12 change:
83902         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83903
83904 2003-08-16  Jim Meyering  <jim@meyering.net>
83905
83906         Merges from coreutils.
83907         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83908         prefix.  Adjust cache variables similarly.  Create 500 rather than
83909         just 300 files, to exercise bug on Darwin6.5, too.
83910         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83911         $missing_dir.
83912         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83913         AM_SYS_POSIX_TERMIOS.
83914         Reported by mkc@mathdogs.com.
83915         Also change use of $am_cv_sys_posix_termios
83916         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83917         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83918         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83919         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83920         in /proc/mounts until it finds one with matching device number.  This
83921         is unnecessary when the FILE argument *is* a mount point.  No stat call
83922         is necessary in that case.  So, disable the statvfs-testing code on
83923         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83924         as RedHat bug# 84846.
83925         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83926         to 1MB, so as not to render systems with no stack size limit (e.g.,
83927         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83928         Include <unistd.h>.  On some systems,
83929         it is required for the definition of _SC_PAGESIZE.
83930
83931 2003-08-16  Jim Meyering  <jim@meyering.net>
83932
83933         Merge from coreutils.
83934         * lib/xstrtoimax.c: #else #if -> #elif.
83935         * lib/xstrtoumax.c: Likewise.
83936
83937 2003-08-16  Jim Meyering  <jim@meyering.net>
83938
83939         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83940         * m4/utimes.m4: Removed.
83941         * m4/utimes-null.m4: Renamed from utimes.m4.
83942
83943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83944         to 1MB, so as not to render systems with no stack size limit (e.g.,
83945         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83946         Include <unistd.h>.  On some systems,
83947         it is required for the definition of _SC_PAGESIZE.
83948
83949 2003-08-16  Jim Meyering  <jim@meyering.net>
83950         and Paul Eggert  <eggert@cs.ucla.edu>
83951
83952         Merges from coreutils, etc.
83953
83954         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83955         using the latest version from cvs.  This avoids problems with #line
83956         directives using a vendor (Sun) compiler.
83957         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83958         Don't set GETGROUPS_LIB here; now it's
83959         done via getgroups.m4's wrapper function.
83960         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83961         rather than just in sh-util/configure.in, so that the
83962         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83963         same.
83964         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83965         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83966         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83967         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83968         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83969         Remove code that is now done by the newly-required macros.
83970         Append $(EXEEXT) to DF_PROG.
83971         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83972         Do not invoke or require the following here,
83973         since prereq.m4 or some gnulib .m4 now does this for us:
83974         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83975         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83976         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83977         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83978         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83979         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83980         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83981         AC_FUNC_OBSTACK.
83982         Do not replace the following functions, as this is now the job
83983         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83984         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83985         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83986         atexit getpass, strdup, getpagesize.
83987         Replace 'raise'.
83988         Do not check for the following functions, as this is now the job
83989         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83990         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83991         setregid.
83992         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83993         Check for sys/sysctl.h.
83994         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83995         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83996         of checking for ssize_t ourselves.
83997
83998         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83999         Require every macro that gnulib/modules/* suggests for us.
84000         (jm_PREREQ_ADDEXT): New macro.
84001         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84002         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84003
84004         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84005         (gl_PHYSMEM): Use it.
84006         Also check for `table' function.
84007         Check for new headers and functions.
84008         Add check for sys/sysmp.h.
84009         With suggestions from Kaveh Ghazi.
84010         Ignore headers that are present but cannot be compiled.  This
84011         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84012         C 5.4.
84013
84014 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84015
84016         Document merge from coreutils.
84017         * modules/userspec: Depend on posixver.
84018         * modules/strftime: Depend on tzset.
84019
84020 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84021
84022         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84023         rather than tab, after '#' in shell-script copyright notices.
84024         Suggested by Bruno Haible.
84025
84026 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84027
84028         * config/srclist-update: Use three spaces, rather than tab, after '#'
84029         in shell-script copyright notices.  Suggested by Bruno Haible.
84030         Remove unnecessary parenthesization in regular expression.
84031
84032 2003-08-15  Jim Meyering  <jim@meyering.net>
84033
84034         Merge from coreutils.
84035         * lib/xgethostname.c: Include <stdlib.h>.
84036         (xghostname): Don't exit for anything other than memory-related
84037         failure; just return NULL.
84038         * lib/userspec.c: Include "posixver.h".
84039         (parse_user_spec): Accept `.' as a separator only
84040         in pre-POSIX-200112 mode.
84041         * lib/strtoimax.c: Use #elif rather than #else #if.
84042         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84043         Remove function, now that we can rely on a working tzset function.
84044         [!_LIBC]: Ensure that the required autoconf test has been run.
84045         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84046         Use underlying_strftime for %r.
84047         * lib/sha.c: Merge in some clean-up and optimization changes from
84048         glibc.
84049         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84050         Ensure that it is a multiple of 64.
84051         Rearrange loop exit tests so as to avoid performing an
84052         additional fread after encountering an error or EOF.
84053         * lib/realloc.c: Update copyright date.
84054
84055 2003-08-15  Jim Meyering  <jim@meyering.net>
84056         and Paul Eggert  <eggert@twinsun.com>
84057
84058         Merge from coreutils.
84059         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84060         member but strut utmpx does not.  Needed for AIX 4.3.3.
84061         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84062
84063 2003-08-15  Jim Meyering  <jim@meyering.net>
84064         and Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         Merges from coreutils, etc.
84067         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84068         Require gl_FUNC_TZSET_CLOBBER.
84069         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84070         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84071         members.
84072
84073 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84074
84075         Help the merge from coreutils.
84076         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84077         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84078         * m4/tzset.m4: Use it too.
84079
84080 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84081
84082         * modules/tzset: New file.
84083
84084 2003-08-14  Jim Meyering  <jim@meyering.net>
84085
84086         Merges from coreutils.
84087         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84088         variable names, rather than @FNMATCH_H@.
84089         * modules/alloca: Likewise for $(ALLOCA_H).
84090
84091         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84092         the three copies of the literal target, `fnmatch.h'.
84093         * modules/alloca (alloca.h): Likewise.
84094
84095 2003-08-14  Jim Meyering  <jim@meyering.net>
84096
84097         Merge from coreutils.
84098         * m4/tzset.m4: New file.
84099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84100         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84101         otherwise, AIX 5.1 systems would end up using the latter.
84102         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84103         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84104         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84105         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84106
84107 2003-08-14  Jim Meyering  <jim@meyering.net>
84108
84109         Merge from coreutils.
84110         * lib/obstack.h: Whitespace changes.
84111         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84112         and xcalloc return values.
84113         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84114         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84115         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84116         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84117         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84118         error from mntctl.
84119         Use mntctl's return value to drive the entry-processing loop, since
84120         we can't rely on the value of the vmt_length member in the last
84121         entry.  On some systems doing so could result in exhausting
84122         virtual memory.  Based in part on a patch from Mike Jetzer.
84123
84124 2003-08-14  Jim Meyering  <jim@meyering.net>
84125         and Paul Eggert  <eggert@twinsun.com>
84126
84127         Merges from coreutils, plus other fixes.
84128         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84129         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84130         for credits and details.  Thanks to Kaveh Ghazi for helping
84131         to keep these files in sync.
84132         (ARRAY_SIZE): Define it.
84133         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84134         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84135         (memcasecmp): Don't assume size_t fits in unsigned int.
84136         Remove casts and duplicate code.
84137         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84138         (memcpy): Remove definition.
84139         Merge in some clean-up and optimization changes from glibc.
84140         [BLOCKSIZE]: Move definition to top of file.
84141         Ensure that it is a multiple of 64.
84142         Rearrange loop exit tests so as to avoid performing an
84143         additional fread after encountering an error or EOF.
84144         * lib/md5.h (md5_uintptr): Define.
84145         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84146         return to the initial working directory.  Preserve errno
84147         for caller.
84148         * lib/idcache.c: Include "xalloc.h".
84149         (xmalloc, xrealloc): Remove decls.
84150         (getuser): Remove casts no longer required in C89.
84151         * lib/human.c: Include stdio.h, for sprintf.
84152         * lib/group-member.c: Include "xalloc.h".
84153         (xmalloc, xrealloc): Remove decls.
84154         (get_group_info): Remove casts no longer required in C89.
84155         * lib/getusershell.c (readname): Remove casts no longer required in
84156         C89.
84157         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84158         * lib/getline.c: Whitespace fix, from coreutils.
84159
84160 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84161
84162         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84163         Check for isascii.
84164
84165         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84166         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84167         Undo previous (whitespace-only) change.
84168
84169 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84170
84171         * lib/exclude.c: Include <ctype.h>
84172         (IN_CTYPE_DOMAIN): New macro.
84173         (is_space): New fn.
84174         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84175         and empty lines.
84176
84177         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84178         Undo previous (whitespace-only) change.
84179
84180 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84181
84182         * config/srclist-update: Change update back to the old behavior,
84183         leaving whitespace alone.  Use one 'sed' command rather than a
84184         pipeline.
84185         (fixlicense): Now a variable, not a function.
84186         (remove_trailing_blanks): Remove.
84187         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84188         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84189         Undo previous (whitespace-only) change.
84190
84191 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84192
84193         Merge from coreutils.
84194         * modules/euidaccess: Add lib_SOURCES, include for new
84195         file euidaccess.h
84196
84197 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84198
84199         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84200         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84201         Normalize leading white space and remove trailing white space.
84202
84203         Merge from coreutils
84204         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84205
84206         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84207         0.12.1.  These files are now being upgraded automatically by
84208         ../config/srclist-update.
84209
84210 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84211
84212         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84213         Normalize leading white space and remove trailing white space.
84214         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84215         notice, as per ../config/srclist-update.
84216
84217         Merge from coreutils.
84218         * lib/euidaccess.h: New file.
84219         * lib/euidaccess.c: Include it.
84220         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84221         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84222         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84223
84224 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84225
84226         * config/srclist-update: Add copyright notice.
84227         (remove_id_lines, remove_trailing_blanks): New constants.
84228         (fixfile): Use them to normalize spacing a bit in copied files.
84229         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84230         Normalize leading white space and remove trailing white space.
84231
84232         * config/texinfo.tex: Sync with texinfo.
84233
84234         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84235         strtoul.c from libc, to merge coreutils whitespace changes.
84236
84237         * config/srclist.txt: Get the following m4 files from gettext:
84238         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84239         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84240         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84241         wint_t.m4.
84242
84243 2003-08-12  Karl Berry  <karl@gnu.org>
84244
84245         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84246         been made.
84247
84248 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84249
84250         * modules/gnu-source, m4/gnu-source.m4:
84251         Remove; we're assuming Autoconf 2.54 or later now.
84252         Suggested by Bruno Haible.
84253         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84254
84255 2003-08-11  Bruno Haible  <bruno@clisp.org>
84256
84257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84258
84259 2003-08-11  Bruno Haible  <bruno@clisp.org>
84260
84261         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84262         (vasnprintf): Use it instead of wcslen.
84263
84264 2003-08-11  Bruno Haible  <bruno@clisp.org>
84265
84266         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84267         value to ensure that _Bool promotes to int. Use #define for _Bool when
84268         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84269
84270 2003-08-10  Karl Berry  <karl@gnu.org>
84271
84272         * lib/regex.h: update from libc (whitespace fix).
84273
84274 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84275
84276         Merge some files from coreutils.  These changes were
84277         originally made by Jim Meyering.
84278         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84279         many older Unixes require this.
84280         * lib/alloca.c (alloca): Remove cast to argument of free;
84281         no longer needed in C89.
84282         * lib/alloca_.h, regex.h: Fix white space to match
84283         what GNU indent does.
84284
84285 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84286
84287         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84288         apparently Emacs's Unicode mode got confused before my 2003-08-05
84289         checkin.
84290
84291 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84292
84293         * m4/extensions.m4: New file.
84294         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84295         Require gl_USE_SYSTEM_EXTENSIONS.
84296         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84297         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84298
84299 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84300
84301         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84302         * modules/extensions, modules/gnu-source: New files.
84303         * modules/timespec, modules/unlocked-io: Depend on extensions.
84304
84305 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84306
84307         * modules/restrict: New file.
84308         * MODULES.html.sh (func_all_modules): Add restrict.
84309         * modules/regex: Depend on restrict.
84310
84311 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84312
84313         * m4/restrict.m4: New file.
84314         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84315
84316 2003-08-07  Bruno Haible  <bruno@clisp.org>
84317
84318         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84319         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84320
84321 2003-08-07  Bruno Haible  <bruno@clisp.org>
84322
84323         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84324         makes the module 'getndelim2' compatible with the module 'getline'.
84325
84326 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84327
84328         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84329         byte with "\201" to avoid glitches when editing that source file
84330         with multi-gnome-terminal.
84331
84332 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84333
84334         * lib/bumpalloc.h: Remove.
84335
84336 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84337
84338         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84339         * modules/bumpalloc: Remove.
84340
84341 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84342
84343         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84344         GNU coding style.
84345
84346         Merge from coreutils.
84347         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84348         1. From glibc.
84349         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84350         from Karl Berry, implemented by Jim Meyering.
84351         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84352         from Dmitry V. Levin.
84353         Remove anachronistic cast of xrealloc.
84354         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84355         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84356         type. Otherwise, it wouldn't compile with at least /bin/cc on
84357         ymp-cray-unicos9.0.2.X.
84358         Combine two mostly-identical uses of alloca into one.
84359         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84360
84361 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84362
84363         [From Emacs.]
84364
84365         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84366         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84367         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84368         obsolete NLIST_NAME_UNION.
84369         [__GNU__]: Undef BSD and FSCALE.
84370         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84371
84372 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84373
84374         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84375         an enum type, so that it's guaranteed to promote to int.  See:
84376         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84377
84378 2003-08-03  Karl Berry  <karl@gnu.org>
84379
84380         * config/depcomp: update from automake.
84381
84382 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84383
84384         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84385         (strerror): Don't assume that a printable int fits in 14 bytes.
84386
84387 2003-07-31  Bruno Haible  <bruno@clisp.org>
84388
84389         * modules/getpass-gnu: New file.
84390         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84391
84392 2003-07-31  Bruno Haible  <bruno@clisp.org>
84393
84394         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84395
84396 2003-07-24  Karl Berry  <karl@gnu.org>
84397
84398         * config/missing: update from automake.
84399
84400 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84401             Bruno Haible  <bruno@clisp.org>
84402
84403         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84404         * lib/getline.c (getline, getdelim): Likewise.
84405         Remove _GNU_SOURCE define; now it's defined in config.h through
84406         m4/getline.m4.
84407
84408 2003-07-23  Karl Berry  <karl@gnu.org>
84409
84410         * config/config.sub: update from prep.
84411
84412 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84413
84414         * modules/xalloc (Depends-on): Add exitfail.
84415         * modules/xmemcoll: Likewise.
84416
84417 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84418
84419         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84420         over-parenthesization in macros.
84421
84422         Sync with coreutils.
84423
84424         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84425         required by C99.
84426
84427         Use `exit_failure' for xalloc and xmemcoll instead of their own
84428         private exit-failure variables.
84429         * lib/xalloc.h (xalloc_exit_failure): Remove.
84430         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84431         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84432         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84433         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84434         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84435
84436 2003-07-20  Jim Meyering  <jim@meyering.net>
84437
84438         * modules/closeout (Depends-on): Add exitfail.
84439         Suggestion from Bruno Haible.
84440
84441 2003-07-19  Karl Berry  <karl@gnu.org>
84442
84443         * config/config.sub: update from prep.
84444
84445 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84446
84447         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84448         Remove.
84449         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84450         to test that it can stand by itself.  Include "exitfail.h".
84451         Clients should set exit_failure instead.
84452         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84453
84454 2003-07-18  Bruno Haible  <bruno@clisp.org>
84455
84456         * modules/getndelim2: New file.
84457         * modules/getline: Share files with module getndelim2.
84458         * modules/getnline: Depend on getndelim2 instead of sharing files with
84459         it. Add getnline.c to lib_SOURCES.
84460         * MODULES.html.sh (func_all_modules): Add getndelim2.
84461
84462 2003-07-18  Bruno Haible  <bruno@clisp.org>
84463
84464         * m4/getndelim2.m4: New file.
84465         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84466         invoke gl_PREREQ_GETNDELIM2.
84467         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84468         gl_PREREQ_GETNDELIM2.
84469         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84470         gl_GETNDELIM2.
84471
84472 2003-07-18  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/getndelim2.h: New file.
84475         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84476         getndelim2.h.
84477         (getndelim2): Make non-static. Change return type to ssize_t.
84478         * lib/getline.h: Change argument names.
84479         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84480         * lib/getnline.c: Include getndelim2.h.
84481
84482 2003-07-18  Andreas Schwab  <schwab@suse.de>
84483
84484         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84485
84486 2003-07-17  Karl Berry  <karl@gnu.org>
84487
84488         * config/config.sub: update from prep.
84489
84490 2003-07-17  Bruno Haible  <bruno@clisp.org>
84491
84492         * modules/getnline: New file.
84493         * modules/getline: Add lib/getndelim2.c to source file list.
84494         * MODULES.html.sh (func_all_modules): Add getnline.
84495
84496 2003-07-17  Bruno Haible  <bruno@clisp.org>
84497
84498         * m4/getnline.m4: New file.
84499
84500 2003-07-17  Bruno Haible  <bruno@clisp.org>
84501
84502         * m4/Makefile.am.in: Remove file.
84503         * m4/Makefile.am: Remove file.
84504         * m4/Makefile.in: Remove file.
84505
84506 2003-07-17  Bruno Haible  <bruno@clisp.org>
84507
84508         * lib/getnline.h: New file.
84509         * lib/getnline.c: New file.
84510         * lib/getndelim2.c: New file, extracted from getline.c.
84511         (getndelim2): Renamed from getdelim2, with added nmax argument.
84512         * lib/getline.c: Include getndelim2.c.
84513         (getdelim2): Moved out to getndelim2.c.
84514         (getline, getdelim): Update.
84515
84516 2003-07-17  Bruno Haible  <bruno@clisp.org>
84517
84518         * lib/Makefile.am: Remove file.
84519         * lib/Makefile.in: Remove file.
84520
84521 2003-07-17  Bruno Haible  <bruno@clisp.org>
84522
84523         * configure.in: Remove file.
84524         * Makefile.in: Remove file.
84525
84526 2003-07-17  Bruno Haible  <bruno@clisp.org>
84527
84528         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84529
84530 2003-07-16  Karl Berry  <karl@gnu.org>
84531
84532         * config/srclist-update: was running fixlicense twice, which caused
84533                 texinfo.tex to be nullified for some reason.  Simplify,
84534                 $gplsrc is no longer needed as far as I can see?
84535
84536 2003-07-16  Jim Meyering  <jim@meyering.net>
84537
84538         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84539
84540 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84541
84542         * config/srclist.txt: Get the following files from gettext-runtime/intl
84543         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84544         ref-del.sin.  From Bruno Haible.
84545         * config/srclist-update (fixfile): Change grep pattern again, since the
84546         previous fix didn't work (there was another trailing $).  Use
84547         '[$]' to escape the $s.
84548
84549 2003-07-15  Karl Berry  <karl@gnu.org>
84550
84551         * lib/vasnprintf.c: update from gettext.
84552
84553 2003-07-15  Karl Berry  <karl@gnu.org>
84554
84555         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84556         gets expanded when surrounded by '$'.
84557
84558 2003-07-15  Jim Meyering  <jim@meyering.net>
84559
84560         * modules/save-cwd: Don't depend on error.  From Derek Price.
84561
84562 2003-07-15  Jim Meyering  <jim@meyering.net>
84563
84564         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84565
84566 2003-07-14  Simon Josefsson  <jas@extundo.com>
84567
84568         * modules/mempcpy: New file.
84569         * MODULES.html.sh (func_all_modules): Add mempcpy.
84570
84571 2003-07-14  Simon Josefsson  <jas@extundo.com>
84572
84573         * m4/mempcpy.m4: New file.
84574
84575 2003-07-14  Simon Josefsson  <jas@extundo.com>
84576
84577         * lib/mempcpy.h: New file.
84578         * lib/mempcpy.c: New file.
84579
84580 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84581
84582         * modules/getdate, modules/posixtm: Depend on mktime.
84583
84584 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84585
84586         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84587         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84588         unicodeio.c, unicodeio.h, unlocked-io.h:
84589         Switch from LGPL to GPL.
84590
84591 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84592
84593         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84594         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84595         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84596         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84597         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84598         updated automatically by ../config/srclist-update.  This changes
84599         their license from LPGL to GPL.
84600
84601 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84602
84603         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84604         assumed to refer to the root of the most recent stable gettext version.
84605         * config/srclistvars.sh: Add defaults for eggert.
84606         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84607         Match "This program" as well as "The program".  This is needed
84608         for gettext.
84609
84610 2003-07-14  Jim Meyering  <jim@meyering.net>
84611
84612         Don't emit diagnostics.  Let callers do that.
84613         * lib/save-cwd.c: Don't include "error.h".
84614         (save_cwd): Don't call error.  Ensure that errno is valid
84615         when returning nonzero.
84616
84617         * lib/save-cwd.h (restore_cwd): Update prototype.
84618         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84619         Simplify.  Don't call error upon failure.  Let callers do that.
84620         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84621         when auditing is enabled.  But don't bother updating the #if.
84622
84623 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84624
84625         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84626         it breaks C++ compilation.
84627         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84628
84629 2003-07-10  Simon Josefsson  <jas@extundo.com>
84630
84631         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84632
84633 2003-07-10  Jim Meyering  <jim@meyering.net>
84634
84635         * m4/clock_time.m4: Remove trailing blank.
84636         * m4/intmax_t.m4: Likewise.
84637
84638 2003-07-10  Jim Meyering  <jim@meyering.net>
84639
84640         * lib/vasnprintf.c: Remove trailing blanks.
84641         Make cpp indentation consistent.
84642
84643 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84644
84645         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84646         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84647         Switch from LGPL to GPL.
84648
84649 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84650
84651         * config/srclist.txt: Sort sublists.  Add
84652         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84653         that differ from gnulib for one reason or another; we'd like this list
84654         to be smaller but for now let's document what we have.
84655
84656 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84657
84658         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84659         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84660         and sweeter "eval x=$x".
84661         * config/srclist.txt: Get lib/argp* from glibc.
84662
84663 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84664
84665         * lib/mktime.c: Fix some boundary cases and remove need for floating
84666         point.
84667
84668         Issue a compile-time diagnostic if time_t is floating point, or if
84669         two's complement arithmetic is not in effect, or if arithmetic
84670         right shift does not propagate the sign.  These assumptions were
84671         all in the original code but they weren't checked.
84672
84673         (TIME_T_MIDPOINT, verify): New macros.
84674         (__isleap): Remove; it has integer overflow problems.
84675         (leapyear): New function, without those problems.
84676         (ydhms_tm_diff): Remove; splitting into two parts.
84677         (ydhms_diff): New function, containing the arithmetic part of
84678         the old ydhms_tm_diff function.  Issue a compile-time
84679         diagnostic if we are not using C99 integer division.
84680         Avoid casts when possible.
84681         (guess_time_tm): New function, containing the checking part of
84682         the old ydhms_tm_diff function.  Return the new value, rather than
84683         the difference between it and the old.  Accept a new argument T
84684         so that *T specifies the old value.  Check for overflow in the result.
84685
84686         (__mktime_internal): Use a time_t offset, not a long int offset.
84687         This undoes the 2003-06-04 change, which is no longer needed now
84688         that we have better overflow checking.
84689         (localtime_offset): Likewise.
84690
84691         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84692         and long are 64-bit but int is only 32-bit.
84693         (ydhms_diff): Use long int to store year1 and yday1.
84694         Issue a compile-time diagnostic if long int is not wide enough.
84695
84696         (__mktime_internal): Use long int to store adjusted year and yday.
84697         Use plain C rather than preprocessor commands, if that doesn't
84698         affect efficiency.
84699         Check for overflow (and try to repair) after each probe
84700         rather than checking only at the very end.  This avoids some bugs
84701         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84702         does not equal GMT offset at maximum time).
84703         Use integer to check for overflow rather than floating point; this
84704         is more portable to non-IEEE hosts, and is a tad faster.
84705         When we detect that we are oscillating between two values,
84706         don't check whether tm_isdst has the requested value, since
84707         we already know the answer.  When tm_isdst has the wrong value,
84708         use a different heuristic to find the right one, based on the
84709         extreme values actually observed in practice in tz2003a,
84710         rather than the (overly optimistic) "previous 3 calendar quarters".
84711
84712         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84713         "T const" to accommodate glibc style.
84714         (check_result): Use less-confusing report format.  "long" -> "long int.
84715         (main): Likewise.
84716         Don't loop if the iteration overflows time_t.
84717         Allow a negative step in the iteration.
84718
84719 2003-07-06  Karl Berry  <karl@gnu.org>
84720
84721         * config/depcomp: update from automake.
84722         * config/config.sub: update from prep.
84723
84724 2003-07-03  Karl Berry  <karl@gnu.org>
84725
84726         * config/config.guess: update from prep.
84727
84728 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84729
84730         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84731         xreadlink.c now includes it unconditionally.
84732
84733 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84734
84735         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84736         having it depend on HAVE_SYS_TYPES_H.
84737
84738 2003-07-01  Bruno Haible  <bruno@clisp.org>
84739
84740         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84741         <sys/types.h> should be sufficient.
84742         Reported by Paul Eggert.
84743
84744 2003-06-26  Karl Berry  <karl@gnu.org>
84745
84746         * config/depcomp: update from automake.
84747
84748 2003-06-26  Bruno Haible  <bruno@clisp.org>
84749
84750         * modules/human: Depend on module stdbool.
84751
84752 2003-06-25  Bruno Haible  <bruno@clisp.org>
84753
84754         * modules/readlink: New file.
84755         * modules/xreadlink: Depend on it.
84756         * MODULES.html.sh (func_all_modules): Add readlink.
84757
84758 2003-06-25  Bruno Haible  <bruno@clisp.org>
84759
84760         * m4/readlink.m4: New file.
84761
84762 2003-06-25  Bruno Haible  <bruno@clisp.org>
84763
84764         * lib/readlink.c: New file.
84765
84766 2003-06-22  Karl Berry  <karl@gnu.org>
84767
84768         * config/srclist.txt: update mkinstalldirs from automake.
84769         * config/mkinstalldirs: update.
84770
84771 2003-06-22  Bruno Haible  <bruno@clisp.org>
84772
84773         Portability to mingw32.
84774         * m4/ssize_t.m4: New file, from GNU gettext.
84775         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84776         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84777
84778 2003-06-22  Bruno Haible  <bruno@clisp.org>
84779
84780         * modules/safe-read: Add m4/ssize_t.m4.
84781         * modules/xreadlink: Add m4/ssize_t.m4.
84782
84783 2003-06-20  Bruno Haible  <bruno@clisp.org>
84784
84785         Assume C89, so PARAMS isn't needed.
84786         * lib/unicodeio.h (PARAMS): Remove.
84787         * lib/unicodeio.c: Don't use PARAMS.
84788
84789 2003-06-18  Karl Berry  <karl@gnu.org>
84790
84791         * config/config.{guess,sub}: update from prep.
84792
84793 2003-06-18  Jim Meyering  <jim@meyering.net>
84794
84795         Merge changes from coreutils.
84796         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84797         Remove explicit declarations of xmalloc and realloc.
84798         Include xalloc.h.
84799         (read_utmp): Remove anachronistic cast of xmalloc.
84800
84801 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84802
84803         Assume C89, so PARAMS isn't needed.
84804         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84805         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84806         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84807         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84808         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84809         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84810         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84811         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84812         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84813         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84814         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84815         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84816         no longer needed. Anyway, config.h should always be included before any
84817         other file.
84818
84819 2003-06-11  Simon Josefsson  <jas@extundo.com>
84820
84821         * modules/sysexits: New file.
84822         * MODULES.html.sh (func_all_modules): Add sysexits.
84823
84824 2003-06-11  Simon Josefsson  <jas@extundo.com>
84825
84826         * lib/sysexit_.h: New file.
84827
84828 2003-06-11  Derek Price  <derek@ximbiot.com>
84829
84830         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84831         necessary.
84832
84833 2003-06-11  Bruno Haible  <bruno@clisp.org>
84834
84835         * m4/sysexits.m4: New file.
84836
84837 2003-06-10  Simon Josefsson  <jas@extundo.com>
84838
84839         * lib/argp.h: New file, from glibc.
84840         * lib/argp-ba.c: New file, from glibc.
84841         * lib/argp-eexst.c: New file, from glibc.
84842         * lib/argp-fmtstream.c: New file, from glibc.
84843         * lib/argp-fmtstream.h: New file, from glibc.
84844         * lib/argp-fs-xinl.c: New file, from glibc.
84845         * lib/argp-help.c: New file, from glibc.
84846         * lib/argp-namefrob.h: New file, from glibc.
84847         * lib/argp-parse.c: New file, from glibc.
84848         * lib/argp-pv.c: New file, from glibc.
84849         * lib/argp-pvh.c: New file, from glibc.
84850         * lib/argp-xinl.c: New file, from glibc.
84851
84852 2003-06-10  Simon Josefsson  <jas@extundo.com>
84853
84854         * modules/strchrnul: New file.
84855
84856 2003-06-10  Simon Josefsson  <jas@extundo.com>
84857
84858         * modules/argp: New file.
84859
84860 2003-06-10  Simon Josefsson  <jas@extundo.com>
84861
84862         * m4/strchrnul.m4: New file.
84863
84864 2003-06-10  Simon Josefsson  <jas@extundo.com>
84865
84866         * lib/strchrnul.h: New file.
84867         * lib/strchrnul.c: New file.
84868
84869 2003-06-10  Bruno Haible  <bruno@clisp.org>
84870
84871         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84872
84873 2003-06-07  Karl Berry  <karl@gnu.org>
84874
84875         * config/config.{guess,sub}: update from prep.
84876
84877 2003-06-07  Jim Meyering  <jim@meyering.net>
84878
84879         * modules/strtod: Use $(...) notation, not @...@ for
84880         AC_REPLACE'd variables.
84881         * modules/localcharset: Likewise.
84882
84883 2003-06-07  Jim Meyering  <jim@meyering.net>
84884
84885         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84886         in place of my name in the copyright comment.
84887         Remove definition and uses of __P.
84888
84889         From coreutils.
84890         * lib/stat.c: Don't declare xmalloc explicitly.
84891         Instead, include "xalloc.h".
84892         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84893         xrealloc, and xcalloc return values.
84894         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84895         Improve comment.
84896         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84897
84898 2003-06-07  Bruno Haible  <bruno@clisp.org>
84899
84900         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84901         avoid AC_CONFIG_LINKS.
84902         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84903         fnmatch.h, to avoid AC_CONFIG_LINKS.
84904         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84905
84906 2003-06-07  Bruno Haible  <bruno@clisp.org>
84907
84908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84909         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84910         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84911         directory.
84912         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84913         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84914         directory.
84915
84916 2003-06-06  Jim Meyering  <jim@meyering.net>
84917
84918         Merge from coreutils.
84919         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84920         Consolidate declarations and initializations of *_base* locals.
84921
84922         Merge from coreutils.
84923         This avoids a core dump on systems without GNU putenv,
84924         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84925         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84926         (unsetenv): New static function, from GNU libc.
84927         (rpl_putenv): Use it.
84928
84929         * lib/modechange.c: Remove trailing blanks.
84930
84931         Merge from coreutils.
84932         * lib/fsusage.c: Remove declaration of statfs.
84933         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84934
84935         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84936
84937 2003-06-06  Jim Meyering  <jim@meyering.net>
84938
84939         * lib/stdbool_.h: Renamed from stdbool.h.in.
84940
84941 2003-06-06  Jim Meyering  <jim@meyering.net>
84942             Bruno Haible  <bruno@clisp.org>
84943
84944         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84945         Adjust Makefile.am snippet not to redirect directly to target.
84946         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84947
84948 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84949
84950         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84951         mismatch, look in future quarters as well as past.  This fixes a
84952         bug when processing fall-backwards gaps immediately after a long
84953         period of daylight-saving time.
84954
84955         * lib/mktime.c: Assume freestanding C89 or better.
84956         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84957         (__P): Remove; not used.
84958         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84959         (mktime, not_equal_tm, print_tm, check_result,
84960         main): Use prototypes.  Use const * where appropriate.
84961         (main): Fix typo in testing code that uncovered by above changes.
84962         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84963
84964 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84965
84966         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84967         locale.h, localeconv.  This merges changes from coreutils.
84968
84969         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84970         It can be removed after the next Autoconf is released.
84971         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84972         needed.
84973
84974 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84975
84976         * lib/mktime.c: Fix Debian bug 177940
84977         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84978         (localtime_offset): Now long int, not time_t, because we want it
84979         to be guaranteed to be signed.  All uses changed.
84980         (__mktime_internal): If overflow would occur when adding offset,
84981         don't add it.
84982
84983         Merge 'human' changes from coreutils.  Rewrite to support
84984         locale-specific notations like thousands separators.
84985         * lib/human.c: Simplify authorship notice.
84986         Include human.h immediately after config.h.
84987         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84988         <limits.h>: Do not include, since human.h does.
84989         (SIZE_MAX, UINTMAX_MAX): New macros.
84990         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84991         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84992         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84993         (power_letter): Renamed from suffixes.
84994         (generate_suffix_backwards): Remove.
84995         (adjust_value): Now takes int style (because of human.h changes)
84996         and long double value (for greater precision on some platforms).
84997         (group_number): New function.
84998         (human_readable): Use it.  Use integer options, not enum.
84999         Put the options before the sizes in the arg list.
85000         Support all the new options.
85001         The old human_readable function has been removed;
85002         use inttostr.h instead.
85003         (human_readable, default_block_size, humblock):
85004         Use uintmax_t, not int, for block sizes.
85005         (human_readable_inexact, block_size_types): Remove.
85006         (block_size_opts): New constant.
85007         (human_options): Renamed from human_block_size, with new signature
85008         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85009         * lib/human.h: Add copyright and authorship notice.
85010         Include <limits.h> and <stdbool.h> unconditionally.
85011         (PARAMS): Remove.  All uses removed.
85012         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85013         (enum human_inexact_style): Remove tag; now a nameless enum.
85014         (human_floor, human_ceiling, human_round_to_even): Now have
85015         values 2, 0, 1 rather than -1, 1, 0.
85016         (human_group_digits, human_suppress_point_zero, human_autoscale,
85017         human_base_1024, human_SI, human_B): New constants.
85018         (human_readable_inexact, human_block_size): Remove.
85019         (human_readable): Size args are now uintmax_t, not int.
85020         (human_options): New decl.
85021
85022         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85023         unnecessary now that we assume C89 or better.  This change
85024         imported from coreutils.
85025
85026         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85027         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85028         in the 2003-05-30 sync from glibc.
85029
85030         .h files should stand alone, but we shouldn't include <sys/types.h>
85031         if we can get away with just <stddef.h>.
85032
85033         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85034         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85035         rather than <sys/types.h>, as we merely need size_t.
85036         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85037         to get size_t.
85038         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85039         Include <stdio.h>, to get FILE.
85040         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85041         memcasecmp.h has included <stddef.h> and all we need is size_t.
85042         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85043         our interface, instead of including <sys/types.h>
85044
85045 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85046
85047         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85048         now, as glibc mktime is buggy on non-glibc systems.
85049
85050 2003-06-03  Karl Berry  <karl@gnu.org>
85051
85052         * config/config.sub: update from prep.
85053
85054 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85055
85056         [from coreutils]
85057         Fix some minor time-related bugs with POSIX time arguments.
85058         Some valid time stamps were being rejected (notably -1, and
85059         time stamps before 1900 on 64-bit hosts).  And some invalid
85060         time stamps were being accepted, e.g. September 31.
85061
85062         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85063         that we can return (time_t) -1 successfully.
85064         * lib/posixtm.c: Likewise.
85065         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85066         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85067         (t): Remove static var.
85068         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85069         of static var.  All uses changed.
85070         (year): Do not reject years before 1900; they can occur with
85071         64-bit time_t.
85072         (posix_time_parse): Do not check for out-of-range components;
85073         that is now the caller's responsibility, since our checks were
85074         only approximations.
85075         (posixtime): Use mktime to check for out-of-range components,
85076         since it knows them exactly.
85077         If mktime returns (time_t) -1, check whether an error actually occurred
85078         by invoking localtime on -1.
85079         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85080         posixtime failures better.
85081         Improve the test data (in comments only).
85082
85083 2003-06-02  Karl Berry  <karl@gnu.org>
85084
85085         * config/mkinstalldirs (version): new variable.
85086         (--version): new option.
85087         (usage): improve message.
85088
85089 2003-05-30  Karl Berry  <karl@gnu.org>
85090
85091         * lib/mktime.c: update from libc.
85092
85093 2003-05-30  Bruno Haible  <bruno@clisp.org>
85094
85095         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85096         * config/config.rpath: Upgrade to gettext-0.12.1.
85097
85098 2003-05-30  Bruno Haible  <bruno@clisp.org>
85099
85100         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85101         * m4/nls.m4: New file, from gettext-0.12.1.
85102         * m4/po.m4: New file, from gettext-0.12.1.
85103         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85104
85105 2003-05-30  Bruno Haible  <bruno@clisp.org>
85106
85107         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85108         * lib/localcharset.h: Likewise.
85109         * lib/localcharset.c: Likewise.
85110
85111 2003-05-29  Karl Berry  <karl@gnu.org>
85112
85113         * config/config.rpath: update from gettext.
85114
85115 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85116
85117         Assume the headers required for C89 freestanding compilers.
85118         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85119         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85120         * m4/human.m4 (gl_HUMAN): Likewise.
85121         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85122         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85123         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85124         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85125         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85126         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85127
85128 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85129
85130         Assume the headers required for C89 freestanding compilers.
85131         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85132         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85133         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85134         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85135         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85136         define, since <limits.h> is guaranteed to do that.
85137         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85138         * lib/exclude.c: Include <stdbool.h> unconditionally.
85139         * lib/tempname.c: Include <stddef.h> unconditionally.
85140         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85141         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85142         <stddef.h> does that.
85143         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85144         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85145         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85146         needed.
85147         * lib/xstrtol.c: Likewise.
85148         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85149         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85150
85151         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85152         warnings on some platforms.
85153
85154         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85155         arbitrarily.
85156
85157 2003-05-26  Jim Meyering  <jim@meyering.net>
85158
85159         Merge in a change from coreutils:
85160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85161         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85162         that condition, rather than `-1' which is slightly misleading.
85163         Change the name of the cache variable to have the gl_ prefix.
85164         Prompted by a patch from Richard Dawe for DJGPP.
85165
85166 2003-05-24  Karl Berry  <karl@gnu.org>
85167
85168         * config/config.guess: update from prep.
85169
85170 2003-05-22  Karl Berry  <karl@gnu.org>
85171
85172         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85173
85174 2003-05-20  Karl Berry  <karl@gnu.org>
85175
85176         * config/config.guess: update from prep.
85177
85178 2003-05-18  Karl Berry  <karl@gnu.org>
85179
85180         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85181         might actually be set by the user.
85182
85183         * config/depcomp, install-sh, mdate-sh: update from automake.
85184
85185 2003-05-17  Bruno Haible  <bruno@clisp.org>
85186
85187         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85188         invalid expansion for AC_EGREP_CPP.
85189         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85190         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85191         Suggested by Akim Demaille <akim@epita.fr> in
85192         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85193
85194 2003-05-12  Jim Meyering  <jim@meyering.net>
85195
85196         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85197         the space-padded-by-default conversion specifiers, %e, %k, %l.
85198
85199 2003-05-12  Bruno Haible  <bruno@clisp.org>
85200
85201         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85202         the string is longer than 4 KB.
85203
85204 2003-05-11  Karl Berry  <karl@gnu.org>
85205
85206         * config/config.{guess,sub}: update from prep.
85207
85208 2003-05-09  Bruno Haible  <bruno@clisp.org>
85209
85210         * modules/error: Add m4/strerror_r.m4 to file list.
85211
85212 2003-05-03  Bruno Haible  <bruno@clisp.org>
85213
85214         Upgrade to Unicode-4.0.
85215         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85216         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85217         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85218         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85219         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85220         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85221         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85222         Change width of U+E0100..U+E01EF from 1 to 0.
85223
85224 2003-04-25  Jim Meyering  <jim@meyering.net>
85225
85226         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85227         of type size_t, not int.
85228
85229 2003-04-25  Bruno Haible  <bruno@clisp.org>
85230
85231         * lib/copy-file.c: Include <stddef.h>, for size_t.
85232
85233 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85234
85235         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85236         code which expansion is under static control.  Patch imported from
85237         Akim Demaille's patch to Bison; see
85238         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85239
85240 2003-04-14  Bruno Haible  <bruno@clisp.org>
85241
85242         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85243
85244 2003-04-11  Jim Meyering  <jim@meyering.net>
85245
85246         Merge changes from Coreutils.
85247
85248         2003-03-22  Jim Meyering  <jim@meyering.net>
85249
85250         * lib/strftime.c (widen): Cast alloca return value to proper type.
85251
85252         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85253
85254         From GNU libc.
85255         * lib/strftime.c (my_strftime): Handle very large width
85256         specifications for numeric values correctly.  Improve checks for
85257         overflow.
85258
85259         2003-01-19  Jim Meyering  <jim@meyering.net>
85260
85261         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85262         definitions.
85263         (nl_get_alt_digit) [! defined my_strftime]: Define.
85264         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85265         _nl_get_alt_digit and _nl_get_walt_digit.
85266
85267         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85268         libc. These changes have no effect outside of _LIBC.
85269
85270 2003-04-10  Bruno Haible  <bruno@clisp.org>
85271
85272         * modules/findprog: New file.
85273         * MODULES.html.sh (func_all_modules): Add it.
85274
85275 2003-04-10  Bruno Haible  <bruno@clisp.org>
85276
85277         * m4/findprog.m4: New file.
85278         * m4/eaccess.m4: New file.
85279
85280 2003-04-10  Bruno Haible  <bruno@clisp.org>
85281
85282         * lib/findprog.h: New file, from GNU gettext.
85283         * lib/findprog.c: New file, from GNU gettext.
85284
85285 2003-04-05  Jim Meyering  <jim@meyering.net>
85286
85287         Merge changes from Coreutils.
85288
85289         * lib/exclude.h (PARAMS): Remove definition and uses.
85290         * lib/exclude.c: Remove uses of `PARAMS'.
85291
85292         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85293         Add test-cases for DOS filenames. Declare program_name.
85294         (main): Set up program_name.  Patch by Rich Dawe.
85295
85296         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85297         error from mntctl.
85298         Use mntctl's return value to drive the entry-processing loop, since
85299         we can't rely on the value of the vmt_length member in the last
85300         entry.  On some systems doing so could result in exhausting
85301         virtual memory.  Based in part on a patch from Mike Jetzer.
85302
85303 2003-04-04  Bruno Haible  <bruno@clisp.org>
85304
85305         * modules/linebreak: New file.
85306         * MODULES.html.sh (func_all_modules): Add it.
85307
85308 2003-04-04  Bruno Haible  <bruno@clisp.org>
85309
85310         * m4/linebreak.m4: New file.
85311
85312 2003-04-04  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/linebreak.h: New file, from GNU gettext.
85315         * lib/linebreak.c: New file, from GNU gettext with slight
85316         modifications.
85317         * lib/lbrkprop.h: New file, from GNU gettext.
85318
85319 2003-04-03  Bruno Haible  <bruno@clisp.org>
85320
85321         * modules/utf8-ucs4: New file.
85322         * modules/utf16-ucs4: New file.
85323         * modules/ucs4-utf8: New file.
85324         * modules/ucs4-utf16: New file.
85325         * MODULES.html.sh (func_all_modules): Add them.
85326
85327 2003-04-03  Bruno Haible  <bruno@clisp.org>
85328
85329         * m4/utf-ucs4.m4: New file.
85330         * m4/ucs4-utf.m4: New file.
85331
85332 2003-04-03  Bruno Haible  <bruno@clisp.org>
85333
85334         * lib/utf8-ucs4.h: New file, from GNU gettext.
85335         * lib/utf16-ucs4.h: New file, from GNU gettext.
85336         * lib/ucs4-utf8.h: New file, from GNU gettext.
85337         * lib/ucs4-utf16.h: New file, from GNU gettext.
85338
85339 2003-04-02  Bruno Haible  <bruno@clisp.org>
85340
85341         * modules/binary-io: New file.
85342         * MODULES.html.sh (func_all_modules): Add it.
85343
85344 2003-04-02  Bruno Haible  <bruno@clisp.org>
85345
85346         * lib/binary-io.h: New file, from GNU gettext.
85347
85348 2003-04-01  Bruno Haible  <bruno@clisp.org>
85349
85350         * modules/pathname: New file.
85351         * MODULES.html.sh (func_all_modules): Add it.
85352
85353 2003-04-01  Bruno Haible  <bruno@clisp.org>
85354
85355         * lib/pathname.h: New file, from GNU gettext.
85356         * lib/concatpath.c: New file, from GNU gettext.
85357
85358 2003-03-30  Bruno Haible  <bruno@clisp.org>
85359
85360         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85361
85362 2003-03-30  Bruno Haible  <bruno@clisp.org>
85363
85364         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85365         function chown() doesn't exist.
85366
85367 2003-03-28  Bruno Haible  <bruno@clisp.org>
85368
85369         * modules/copy-file: New file.
85370         * MODULES.html.sh (func_all_modules): Add it.
85371
85372 2003-03-28  Bruno Haible  <bruno@clisp.org>
85373
85374         * m4/copy-file.m4: New file.
85375
85376 2003-03-28  Bruno Haible  <bruno@clisp.org>
85377
85378         * lib/copy-file.h: New file, from GNU gettext.
85379         * lib/copy-file.c: New file, from GNU gettext.
85380
85381 2003-03-18  Jim Meyering  <jim@meyering.net>
85382
85383         * lib/quote.c (quote_n): Fix typo in comment.
85384
85385 2003-03-18  Bruno Haible  <bruno@clisp.org>
85386
85387         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85388         checking.
85389         * m4/onceonly_2_57.m4: Likewise.
85390
85391 2003-03-17  Bruno Haible  <bruno@clisp.org>
85392
85393         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85394         (m4_quote): Remove macro.
85395         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85396
85397 2003-03-14  Jim Meyering  <jim@meyering.net>
85398
85399         Merge changes from Coreutils.
85400         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85401         to be const, in order to avoid warnings.
85402         (obstack_room): Likewise.
85403         (obstack_empty_p): Likewise.
85404
85405 2003-03-14  Bruno Haible  <bruno@clisp.org>
85406
85407         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85408         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85409
85410 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85411
85412         Merge changes from Bison.
85413         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85414         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85415         when compiling Bison 1.875's `bitset bset = obstack_alloc
85416         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85417         * lib/hash.c: Include <stdbool.h> unconditionally.
85418
85419 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85420
85421         * m4/onceonly.m4 (m4_quote): New macro.
85422         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85423         Quote AC_FOREACH variable-expansions properly.
85424
85425 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85426
85427         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85428
85429 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85430
85431         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85432         Reported by Bruce Becker; see:
85433         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85434
85435 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85436             Bruno Haible  <bruno@clisp.org>
85437
85438         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85439         Reported by John Hughes, see
85440         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85441
85442 2003-02-20  Bruno Haible  <bruno@clisp.org>
85443
85444         * MODULES.html.sh (func_all_modules): Add poll.
85445
85446 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85447
85448         * modules/poll: New file.
85449
85450 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85451
85452         * lib/poll_.h: New file.
85453         * lib/poll.c: New file.
85454
85455 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85456
85457         * m4/poll.m4: New file.
85458
85459 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85460
85461         * modules/mathl: New file.
85462
85463 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85464
85465         * lib/mathl.h: New file.
85466         * lib/acosl.c: New file.
85467         * lib/asinl.c: New file.
85468         * lib/atanl.c: New file.
85469         * lib/ceill.c: New file.
85470         * lib/cosl.c: New file.
85471         * lib/expl.c: New file.
85472         * lib/floorl.c: New file.
85473         * lib/frexpl.c: New file.
85474         * lib/ldexpl.c: New file.
85475         * lib/logl.c: New file.
85476         * lib/sincosl.c: New file.
85477         * lib/sinl.c: New file.
85478         * lib/sqrtl.c: New file.
85479         * lib/tanl.c: New file.
85480         * lib/trigl.c: New file.
85481         * lib/trigl.h: New file.
85482
85483 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85484
85485         * m4/mathl.m4: New file.
85486
85487 2003-02-18  Bruno Haible  <bruno@clisp.org>
85488
85489         * MODULES.html.sh (func_all_modules): Add mathl.
85490
85491 2003-02-17  Bruno Haible  <bruno@clisp.org>
85492
85493         * modules/mkdtemp: New module.
85494         * MODULES.html.sh (func_all_modules): Add it.
85495
85496 2003-02-17  Bruno Haible  <bruno@clisp.org>
85497
85498         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85499
85500 2003-02-17  Bruno Haible  <bruno@clisp.org>
85501
85502         * lib/mkdtemp.h: New file, from GNU gettext.
85503         * lib/mkdtemp.c: New file, from GNU gettext.
85504
85505 2003-02-02  Jim Meyering  <jim@meyering.net>
85506
85507         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85508         e.g. glibc-2.2.93.
85509
85510 2003-01-31  Bruno Haible  <bruno@clisp.org>
85511
85512         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85513         'rpl_rename'.
85514         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85515         'rpl_strnlen'.
85516         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85517         'rpl_strtod'.
85518         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85519         'rpl_utime'.
85520
85521 2003-01-31  Bruno Haible  <bruno@clisp.org>
85522
85523         * lib/rename.c: #undef rename before defining rpl_rename.
85524         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85525
85526 2003-01-30  Bruno Haible  <bruno@clisp.org>
85527
85528         * modules/vasnprintf, modules/vasprintf: New modules.
85529         * MODULES.html.sh (func_all_modules): Add them.
85530
85531 2003-01-30  Bruno Haible  <bruno@clisp.org>
85532
85533         * m4/signed.m4: New file, from GNU gettext.
85534         * m4/longdouble.m4: New file, from GNU gettext.
85535         * m4/wchar_t.m4: New file, from GNU gettext.
85536         * m4/wint_t.m4: New file, from GNU gettext.
85537         * m4/vasnprintf.m4: New file.
85538         * m4/vasprintf.m4: New file.
85539
85540 2003-01-30  Bruno Haible  <bruno@clisp.org>
85541
85542         * lib/printf-args.h: New file, from GNU gettext.
85543         * lib/printf-args.c: New file, from GNU gettext.
85544         * lib/printf-parse.h: New file, from GNU gettext.
85545         * lib/printf-parse.c: New file, from GNU gettext.
85546         * lib/vasnprintf.h: New file, from GNU gettext.
85547         * lib/vasnprintf.c: New file, from GNU gettext.
85548         * lib/asnprintf.c: New file, from GNU gettext.
85549         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85550         * lib/vasprintf.c: New file, from GNU gettext.
85551         * lib/asprintf.c: New file, from GNU gettext.
85552
85553 2003-01-29  Bruno Haible  <bruno@clisp.org>
85554
85555         * modules/stpncpy: New module.
85556         * MODULES.html.sh (func_all_modules): Add it.
85557
85558 2003-01-29  Bruno Haible  <bruno@clisp.org>
85559
85560         * m4/stpncpy.m4: New file.
85561
85562 2003-01-29  Bruno Haible  <bruno@clisp.org>
85563
85564         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85565         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85566
85567 2003-01-28  Bruno Haible  <bruno@clisp.org>
85568
85569         * modules/c-ctype: New module.
85570         * MODULES.html.sh (func_all_modules): Add it.
85571
85572 2003-01-28  Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85575         Paul Eggert.
85576         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85577         Paul Eggert.
85578
85579 2003-01-27  Bruno Haible  <bruno@clisp.org>
85580
85581         * modules/xsetenv: New module.
85582         * MODULES.html.sh (func_all_modules): Add it.
85583
85584 2003-01-27  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/xsetenv.h: New file, from GNU gettext.
85587         * lib/xsetenv.c: New file, from GNU gettext.
85588
85589 2003-01-23  Jim Meyering  <jim@meyering.net>
85590
85591         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85592         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85593
85594 2003-01-23  Bruno Haible  <bruno@clisp.org>
85595
85596         * modules/minmax: New module.
85597         * MODULES.html.sh (func_all_modules): Add it.
85598
85599 2003-01-23  Bruno Haible  <bruno@clisp.org>
85600
85601         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85602         Eggert.
85603
85604 2003-01-22  Bruno Haible  <bruno@clisp.org>
85605
85606         * modules/exit: New module.
85607         * MODULES.html.sh (func_all_modules): Add it.
85608
85609 2003-01-22  Bruno Haible  <bruno@clisp.org>
85610
85611         * lib/exit.h: New file, from GNU gettext.
85612
85613 2003-01-19  Bruno Haible  <bruno@clisp.org>
85614
85615         * gnulib-tool: Recognize option --extract-maintainer.
85616         (func_get_maintainer): New function.
85617         * modules/*: Add Maintainer entry.
85618
85619 2003-01-16  Jim Meyering  <jim@meyering.net>
85620
85621         * m4/regex.m4: The `regex' struct is both input and output.
85622         Initialize it before each use.  Patch by Tim Waugh.
85623
85624 2003-01-16  Bruno Haible  <bruno@clisp.org>
85625
85626         * MODULES.html.sh: Add a table of contents. Add the module name as
85627         leftmost column. Add hyperlinks.
85628
85629 2003-01-15  Bruno Haible  <bruno@clisp.org>
85630
85631         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85632
85633 2003-01-15  Bruno Haible  <bruno@clisp.org>
85634
85635         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85636         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85637         suffix.
85638
85639 2003-01-15  Bruno Haible  <bruno@clisp.org>
85640
85641         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85642
85643 2003-01-15  Bruno Haible  <bruno@clisp.org>
85644
85645         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85646         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85647
85648 2003-01-14  Jim Meyering  <jim@meyering.net>
85649
85650         * lib/same.c (same_name): Tweak a comment.
85651
85652 2003-01-14  Bruno Haible  <bruno@clisp.org>
85653
85654         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85655         when a string comparison is sufficient.
85656
85657 2003-01-14  Bruno Haible  <bruno@clisp.org>
85658
85659         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85660         'unsigned int'.
85661
85662 2003-01-14  Bruno Haible  <bruno@clisp.org>
85663
85664         * lib/hash-pjw.c: Add comment about low quality of this function.
85665
85666 2003-01-13  Bruno Haible  <bruno@clisp.org>
85667
85668         * modules/stpcpy: Distribute lib/stpcpy.h.
85669         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85670
85671 2003-01-13  Bruno Haible  <bruno@clisp.org>
85672
85673         * modules/*: Add a description.
85674         * modules/strpbrk: Fix Makefile.am snippet.
85675         * modules/strtoimax: Fix dependencies.
85676         * modules/strtoumax: Likewise.
85677
85678 2003-01-13  Bruno Haible  <bruno@clisp.org>
85679
85680         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85681         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85682         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85683
85684 2003-01-13  Bruno Haible  <bruno@clisp.org>
85685
85686         * gnulib-tool (func_create_testdir): Store config/* files in the main
85687         directory.
85688         * config.rpath: Move to ...
85689         * config/config.rpath: ... here.
85690         * modules/gettext: Contains config/config.rpath, not config.rpath.
85691         * modules/iconv: Likewise.
85692
85693 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85694
85695         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85696         to avoid collisions with libcurses and libreadline.
85697
85698         * m4/getstr.m4: Remove.
85699         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85700
85701 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85702
85703         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85704         to avoid collisions with libcurses and libreadline.
85705
85706         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85707         * lib/getstr.h, getstr.c: Remove.
85708         * lib/getline.c: Include "getline.h", to check interface.
85709         Move body of old getstr.c here: this defines MIN_CHUNK and
85710         declares getdelim2, which is renamed from getstr.
85711         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85712
85713         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85714         All uses changed.
85715         * lib/linebuffer.h: Likewise.
85716         (readline): Remove backward-compatibility macro.
85717
85718 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85719
85720         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85721         to avoid collisions with libcurses and libreadline.
85722         * getstr: Remove.
85723         * MODULES.html.sh: Remove getstr.
85724         * modules/getline: Depend on unlocked-io, not getstr.
85725
85726 2003-01-12  Jim Meyering  <jim@meyering.net>
85727
85728         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85729
85730 2003-01-10  Bruno Haible  <bruno@clisp.org>
85731
85732         * modules/alloca: Change Makefile.am requirements. Simplify Include
85733         requirements. Add lib/alloca_.h to file list.
85734
85735 2003-01-10  Bruno Haible  <bruno@clisp.org>
85736
85737         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85738
85739 2003-01-10  Bruno Haible  <bruno@clisp.org>
85740
85741         * lib/alloca_.h: New file.
85742         * lib/getdate.y: Unconditionally include alloca.h.
85743         * lib/makepath.c: Likewise.
85744         * lib/setenv.c: Likewise.
85745         * lib/userspec.c: Likewise.
85746
85747 2003-01-09  Karl Berry  <karl@gnu.org>
85748
85749         * MODULES.html.sh: include `dirname $0` in PATH, to find
85750         gnulib-tool.
85751
85752 2003-01-09  Bruno Haible  <bruno@clisp.org>
85753
85754         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85755         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85756
85757 2003-01-09  Bruno Haible  <bruno@clisp.org>
85758
85759         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85760
85761 2003-01-09  Bruno Haible  <bruno@clisp.org>
85762
85763         * lib/stdbool.h.in: New file.
85764
85765 2003-01-09  Bruno Haible  <bruno@clisp.org>
85766
85767         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85768         * MODULES.html.sh: Likewise.
85769
85770 2003-01-08  Jim Meyering  <jim@meyering.net>
85771
85772         * lib/full-write.c: Undefine and define-away `const' after inclusion
85773         of errno.h, not before.  Suggestion from Bruno Haible.
85774
85775 2003-01-08  Bruno Haible  <bruno@clisp.org>
85776
85777         * modules/full-read: Depend on full-write.
85778
85779 2003-01-08  Bruno Haible  <bruno@clisp.org>
85780
85781         * lib/safe-read.c: Include specification header first, to ensure its
85782         selfcontainedness.
85783         * lib/full-write.c: Likewise.
85784
85785 2003-01-07  Jim Meyering  <jim@meyering.net>
85786
85787         * lib/full-write.c: Rework so that it may serve to define full_read,
85788         too.
85789         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85790
85791 2003-01-07  Bruno Haible  <bruno@clisp.org>
85792
85793         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85794         <inttypes.h>.
85795         * lib/xstrtol.h: Likewise.
85796         * lib/xstrtoimax.c: Likewise.
85797         * lib/xstrtoumax.c: Likewise.
85798         * lib/human.h: Likewise.
85799
85800         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85801         on systems that have <inttypes.h> but not <stdint.h>.
85802
85803 2003-01-07  Bruno Haible  <bruno@clisp.org>
85804
85805         * MODULES.html.sh: Add copyright notice.
85806         (missed_files): Omit CVS directory entries.
85807         (func_module): Make it work with sed-3.02.
85808         * MODULES.txt: Remove file.
85809
85810 2003-01-06  Jim Meyering  <jim@meyering.net>
85811
85812         * lib/version-etc.c: Update year in translatable copyright string.
85813
85814 2003-01-03  Karl Berry  <karl@gnu.org>
85815
85816         * config/config.{guess,sub}: update from prep.
85817
85818 2003-01-02  Karl Berry  <karl@gnu.org>
85819
85820         * doc/COPYING.DOC: belatedly updated to 1.2.
85821
85822 2003-01-01  Karl Berry  <karl@gnu.org>
85823
85824         * gnulib-tool (func_verify_module): report module name $module in
85825         error message, not $1.
85826         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85827         be created, only if it doesn't exist.
85828         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85829
85830 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85831
85832         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85833
85834 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85835
85836         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85837         memcmp if strcoll doesn't work.
85838
85839 2002-12-31  Bruno Haible  <bruno@clisp.org>
85840
85841         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85842         nonempty.
85843
85844 2002-12-31  Bruno Haible  <bruno@clisp.org>
85845
85846         * lib/memcoll.c (STRCOLL): New macro.
85847         (memcoll): Use it.
85848
85849 2002-12-31  Bruno Haible  <bruno@clisp.org>
85850
85851         * lib/localcharset.h: New file.
85852         * lib/localcharset.c: Include it.
85853         * lib/unicodeio.c: Likewise.
85854
85855 2002-12-31  Bruno Haible  <bruno@clisp.org>
85856
85857         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85858         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85859
85860 2002-12-31  Bruno Haible  <bruno@clisp.org>
85861
85862         * lib/getline.h: Include <stddef.h>, for size_t.
85863
85864         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85865         * lib/unicodeio.c: Don't include <stddef.h>.
85866
85867 2002-12-31  Bruno Haible  <bruno@clisp.org>
85868
85869         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85870         HAVE_TM_ZONE.
85871
85872 2002-12-24  Karl Berry  <karl@gnu.org>
85873
85874         * config/config.guess: update from prep.
85875
85876 2002-12-24  Bruno Haible  <bruno@clisp.org>
85877
85878         General infrasructure.
85879         * m4/README: Rewritten.
85880         * m4/onceonly.m4: New file.
85881         * m4/onceonly_2_57.m4: New file.
85882
85883         Module atexit.
85884         * m4/atexit.m4: New file.
85885
85886         Module strtod.
85887         * m4/strtod.m4: New file.
85888
85889         Module strtol.
85890         * m4/strtol.m4: New file.
85891
85892         Module strtoul.
85893         * m4/strtoul.m4: New file.
85894
85895         Module memchr.
85896         * m4/memchr.m4: New file.
85897
85898         Module memcmp.
85899         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85900         (jm_FUNC_MEMCMP): Invoke it.
85901
85902         Module memcpy.
85903         * m4/memcpy.m4: New file.
85904
85905         Module memmove.
85906         * m4/memmove.m4: New file.
85907
85908         Module memset.
85909         * m4/memset.m4: New file.
85910
85911         Module strcspn.
85912         * m4/strcspn.m4: New file.
85913
85914         Module strpbrk.
85915         * m4/strpbrk.m4: New file.
85916
85917         Module strstr.
85918         * m4/strstr.m4: New file.
85919
85920         Module strerror.
85921         * m4/strerror.m4: New file.
85922
85923         Module mktime.
85924         * m4/mktime.m4: Renamed from jm-mktime.m4.
85925         (gl_PREREQ_MKTIME): New macro.
85926         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85927
85928         Module malloc.
85929         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85930         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85931         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85932
85933         Module realloc.
85934         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85935         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85936         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85937
85938         Module strftime.
85939         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85941         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85942         gl_TM_GMTOFF.
85943         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85944
85945         Module xalloc.
85946         * m4/xalloc.m4: New file.
85947
85948         Module alloca.
85949         * m4/alloca.m4: New file.
85950
85951         Module putenv.
85952         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85953         (jm_FUNC_PUTENV): Invoke it.
85954
85955         Module setenv.
85956         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85957         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85958         when invoked twice.
85959         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85960         gt_FUNC_SETENV.
85961
85962         Module memrchr.
85963         * m4/memrchr.m4: New file.
85964
85965         Module stpcpy.
85966         * m4/stpcpy.m4: New file.
85967
85968         Module strcase.
85969         * m4/strcase.m4: New file.
85970
85971         Module strdup.
85972         * m4/strdup.m4: New file.
85973
85974         Module strnlen.
85975         * m4/strnlen.m4: New file.
85976
85977         Module strndup.
85978         * m4/strndup.m4: New file.
85979
85980         Module xstrtod.
85981         * m4/xstrtod.m4: New file.
85982
85983         Module xstrtol.
85984         * m4/xstrtol.m4: New file.
85985
85986         Module getdate.
85987         * m4/getdate.m4: New file.
85988
85989         Module unlocked-io.
85990         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85991         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85992         * m4/jm-glibc-io.m4n: Remove file.
85993
85994         Module long-options.
85995         * m4/long-options.m4: New file.
85996
85997         Module md5.
85998         * m4/md5.m4: New file.
85999
86000         Module sha.
86001         * m4/sha.m4: New file.
86002
86003         Module getstr.
86004         * m4/getstr.m4: New file.
86005
86006         Module getline.
86007         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86008         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86009         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86010         simply getline. Infoke gl_PREREQ_GETLINE.
86011
86012         Module obstack.
86013         * m4/obstack.m4: New file.
86014
86015         Module hash.
86016         * m4/hash.m4: New file.
86017
86018         Module readtokens.
86019         * m4/readtokens.m4: New file.
86020
86021         Module strverscmp.
86022         * m4/strverscmp.m4: New file.
86023
86024         Module stdbool.
86025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86026         OSF/1.
86027
86028         Module strtoll.
86029         * m4/strtoll.m4: New file.
86030
86031         Module strtoull.
86032         * m4/strtoull.m4: New file.
86033
86034         Module strtoimax.
86035         * m4/strtoimax.m4: New file.
86036
86037         Module strtoumax.
86038         * m4/strtoumax.m4: New file.
86039
86040         Module xstrtoimax.
86041         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86042         jm_AC_PREREQ_XSTRTOIMAX.
86043         Moved the strtol prerequisites to strtol.m4.
86044         Moved the strtoll prerequisites to strtoll.m4.
86045         Moved the strtoimax prerequisites to strtoimax.m4.
86046
86047         Module xstrtoumax.
86048         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86049         jm_AC_PREREQ_XSTRTOUMAX.
86050         Moved the strtoul prerequisites to strtoul.m4.
86051         Moved the strtoull prerequisites to strtoull.m4.
86052         Moved the strtoumax prerequisites to strtoumax.m4.
86053
86054         Module chown.
86055         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86056         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86057
86058         Module dup2.
86059         * m4/dup2.m4: New file.
86060
86061         Module ftruncate.
86062         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86063         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86064
86065         Module getgroups.
86066         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86067         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86068
86069         Module gettimeofday.
86070         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86071         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86072         gl_PREREQ_GETTIMEOFDAY.
86073
86074         Module mkdir.
86075         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86076         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86077
86078         Module mkstemp.
86079         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86080         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86081         jm_AC_TYPE_UINTMAX_T.
86082         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86083
86084         Module stat.
86085         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86086         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86087
86088         Module lstat.
86089         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86090         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86091
86092         Module timespec.
86093         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86094         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86095         * m4/st_mtim.m4: Indentation.
86096
86097         Module nanosleep.
86098         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86099         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86100         gl_PREREQ_NANOSLEEP.
86101
86102         Module regex.
86103         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86104         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86105         (gl_REGEX): New macro.
86106
86107         Module rename.
86108         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86109         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86110
86111         Module rmdir.
86112         * m4/rmdir.m4: New file.
86113
86114         Module utime.
86115         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86116         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86117         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86118
86119         Module dirname.
86120         * m4/dirname.m4: New file.
86121
86122         Module getopt.
86123         * m4/getopt.m4: New file.
86124
86125         Module unistd-safer.
86126         * m4/unistd-safer.m4: New file.
86127
86128         Module fnmatch.
86129         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86130         declaration.
86131         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86132         (gl_FUNC_FNMATCH_POSIX): New macro.
86133         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86134         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86135         simply fnmatch.
86136
86137         Module exclude.
86138         * m4/exclude.m4: New file.
86139
86140         Module human.
86141         * m4/human.m4: New file.
86142
86143         Module acl.
86144         * m4/acl.m4: Nop.
86145
86146         Module backupfile.
86147         * m4/backupfile.m4: New file.
86148         * m4/d-ino.m4: Indentation.
86149
86150         Module fsusage.
86151         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86152         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86153         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86154
86155         Module dirfd.
86156         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86157         requirements.
86158
86159         Module euidaccess.
86160         * m4/euidaccess.m4: New file.
86161
86162         Module file-type.
86163         * m4/file-type.m4: New file.
86164
86165         Module fileblocks.
86166         * m4/fileblocks.m4: New file.
86167
86168         Module filemode.
86169         * m4/filemode.m4: New file.
86170
86171         Module isdir.
86172         * m4/isdir.m4: New file.
86173
86174         Module lchown.
86175         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86176         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86177
86178         Module makepath.
86179         * m4/makepath.m4: New file.
86180
86181         Module modechange.
86182         * m4/modechange.m4: New file.
86183
86184         Module mountlist.
86185         * m4/mountlist.m4: New file.
86186         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86187         Indentation.
86188
86189         Module path-concat.
86190         * m4/path-concat.m4: New file.
86191
86192         Module pathmax.
86193         * m4/pathmax.m4: New file.
86194
86195         Module same.
86196         * m4/same.m4: New file.
86197
86198         Module save-cwd.
86199         * m4/save-cwd.m4: New file.
86200
86201         Module savedir.
86202         * m4/savedir.m4: New file.
86203
86204         Module xgetcwd.
86205         * m4/xgetcwd.m4: New file.
86206         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86207
86208         Module xreadlink.
86209         * m4/xreadlink.m4: New file.
86210
86211         Module safe-read.
86212         * m4/safe-read.m4: New file.
86213
86214         Module safe-write.
86215         * m4/safe-write.m4: New file.
86216
86217         Module closeout.
86218         * m4/closeout.m4: New file.
86219
86220         Module stdio-safer.
86221         * m4/stdio-safer.m4: New file.
86222
86223         Module getpass.
86224         * m4/getpass.m4: New file.
86225
86226         Module getugroups.
86227         * m4/getugroups.m4: New file.
86228
86229         Module group-member.
86230         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86231         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86232
86233         Module idcache.
86234         * m4/idcache.m4: New file.
86235
86236         Module userspec.
86237         * m4/userspec.m4: New file.
86238
86239         Module gettime.
86240         * m4/clock_time.m4: New file.
86241         * m4/gettime.m4: New file.
86242
86243         Module settime.
86244         * m4/settime.m4: New file.
86245
86246         Module posixtm.
86247         * m4/posixtm.m4: New file.
86248
86249         Module gethostname.
86250         * m4/gethostname.m4: New file.
86251
86252         Module canon-host.
86253         * m4/canon-host.m4: New file.
86254
86255         Module gettext.
86256         * m4/codeset.m4: New file, from gettext-0.11.5.
86257         * m4/gettext.m4: New file, from gettext-0.11.5.
86258         * m4/glibc21.m4: New file, from gettext-0.11.5.
86259         * m4/iconv.m4: New file, from gettext-0.11.5.
86260         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86261         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86262         * m4/inttypes.m4: New file, from gettext-0.11.5.
86263         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86264         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86265         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86266         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86267         * m4/lib-link.m4: New file, from gettext-0.11.5.
86268         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86269         * m4/progtest.m4: New file, from gettext-0.11.5.
86270         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86271         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86272         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86273
86274         Module localcharset.
86275         * m4/localcharset.m4: New file.
86276
86277         Module hard-locale.
86278         * m4/hard-locale.m4: New file.
86279
86280         Module mbswidth.
86281         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86282         onceonly macros.
86283         * m4/mbrtowc.m4: Add comment.
86284
86285         Module memcasecmp.
86286         * m4/memcasecmp.m4: New file.
86287
86288         Module memcoll.
86289         * m4/memcoll.m4: New file.
86290
86291         Module unicodeio.
86292         * m4/unicodeio.m4: New file.
86293
86294         Module rpmatch.
86295         * m4/rpmatch.m4: New file.
86296
86297         Module yesno.
86298         * m4/yesno.m4: New file.
86299
86300         Module exitfail.
86301         * m4/exitfail.m4: New file.
86302
86303         Module c-stack.
86304         * m4/c-stack.m4 (gl_C_STACK): New macro.
86305         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86306
86307         Module error.
86308         * m4/error.m4 (gl_ERROR): New macro.
86309         (jm_PREREQ_ERROR): Use onceonly macros.
86310
86311         Module fatal.
86312         * m4/fatal.m4: New file.
86313
86314         Module getloadavg.
86315         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86316         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86317
86318         Module getpagesize.
86319         * m4/getpagesize.m4: New file.
86320
86321         Module getusershell.
86322         * m4/getusershell.m4: New file.
86323
86324         Module physmem.
86325         * m4/physmem.m4: New file.
86326
86327         Module posixver.
86328         * m4/posixver.m4: New file.
86329
86330         Module quotearg.
86331         * m4/quotearg.m4: New file.
86332
86333         Module quote.
86334         * m4/quote.m4: New file.
86335
86336         Module readutmp.
86337         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86338
86339         Module sig2str.
86340         * m4/sig2str.m4: New file.
86341
86342         Other.
86343         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86344         ulonglong.m4.
86345         * m4/intmax_t.m4: New file.
86346         * m4/d-type.m4: Indentation.
86347         * m4/jm-macros.m4: Update.
86348         * m4/prereq.m4 (jm_PREREQ): Update.
86349         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86350         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86351         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86352         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86353         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86354         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86355         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86356         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86357         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86358         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86359         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86360         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86361         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86362         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86363         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86364         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86365         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86366         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86367         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86368
86369 2002-12-24  Bruno Haible  <bruno@clisp.org>
86370
86371         * MODULES.txt: Update according to m4/ changes.
86372
86373         Module gettext.
86374         * config.rpath: New file, from gettext-0.11.5.
86375
86376         * modules/*: New module descriptions.
86377         * gnulib-tool: New file.
86378         * MODULES.html.sh: New file.
86379
86380 2002-12-21  Karl Berry  <karl@gnu.org>
86381
86382         * doc/fdl.texi: update to version 1.2.
86383
86384 2002-12-19  Karl Berry  <karl@gnu.org>
86385
86386         * config/config.guess: update from prep.
86387
86388 2002-12-18  Bruno Haible  <bruno@clisp.org>
86389
86390         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86391         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86392
86393 2002-12-17  Bruno Haible  <bruno@clisp.org>
86394
86395         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86396         stdlib.h, string.h.
86397
86398 2002-12-17  Bruno Haible  <bruno@clisp.org>
86399
86400         * lib/canon-host.c (strdup): Remove unused declaration.
86401
86402         * lib/fsusage.c: Include full_read.h.
86403         (get_fs_usage): Use full_read instead of safe_read.
86404
86405         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86406
86407 2002-12-12  Karl Berry  <karl@gnu.org>
86408
86409         * config/config.guess: update from prep.
86410
86411 2002-12-11  Bruno Haible  <bruno@clisp.org>
86412
86413         * m4/setenv.m4: New file, from gettext-0.11.5.
86414
86415 2002-12-11  Bruno Haible  <bruno@clisp.org>
86416
86417         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86418         not unsetenv().
86419         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86420         modifications:
86421
86422         2002-12-11  Bruno Haible  <bruno@clisp.org>
86423
86424                 * setenv.c (alloca): Fall back to malloc.
86425                 (freea): New macro.
86426                 (setenv): Use freea() to free memory allocated with alloca().
86427
86428         2002-11-13  Bruno Haible  <bruno@clisp.org>
86429
86430                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86431                 function declarations.
86432                 * unsetenv.c (unsetenv): Likewise.
86433
86434         2002-03-04  Bruno Haible  <bruno@clisp.org>
86435
86436                 Portability to AIX 4.3.3.
86437                 * unsetenv.c: New file, extracted from setenv.c.
86438                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86439
86440         2001-12-20  Bruno Haible  <bruno@clisp.org>
86441
86442                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86443                 use malloc instead. For SunOS 4.
86444
86445         2001-12-11  Bruno Haible  <bruno@clisp.org>
86446
86447                 * setenv.c: Declare alloca.
86448                 (compar_fn_t): New typedef.
86449                 (KNOWN_VALUE, STORE_VALUE): Use it.
86450
86451         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86452         setenv.h.
86453
86454 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86455
86456         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86457         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86458         Choose values that are less likely to collide with system fnmatch
86459         options.
86460         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86461         defined (e.g., a pure POSIX system).
86462         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86463         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86464
86465 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86466
86467         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86468         a pain in practice to deal with generated m4 files.  This change
86469         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86470
86471         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86472         and jm-glibc-io.m4, as they are no longer a special case.
86473         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86474         kludge and the auto-generation stuff.  Check only whether the
86475         functions are declared, not whether they exist, since older hosts
86476         that don't declare the functions can't use the optimization anyway.
86477
86478 2002-12-06  Jim Meyering  <jim@meyering.net>
86479
86480         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86481
86482         Merge in changes from libc's misc/error.c, in preparation
86483         for the merge of gnulib's changes back into libc.
86484
86485         * lib/error.c (_): Define only if not already defined.
86486         Move definition to follow all #include directives.
86487         Include unlocked-io.h only if !_LIBC.
86488         [_LIBC]: Include <libio/libioP.h>.
86489         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86490         (fflush): Tweak definition to use INTUSE.
86491         (putc): Define.
86492
86493 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86494
86495         * lib/alloca.c [defined emacs]: Include "lisp.h".
86496         (xalloc_die) [defined emacs]: New macro.
86497         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86498         [! defined emacs]: Include <xalloc.h>.
86499         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86500         (pointer): Typedef to POINTER_TYPE *.
86501         (malloc): Remove decl; we now always use xmalloc.
86502         (alloca): Use old-style definition, since Emacs needs this.
86503         Check for arithmetic overflow when computing combined size.
86504
86505 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86506
86507         Do not generate unlocked-io.h automatically, since it's easier to
86508         maintain it by hand.
86509
86510         * lib/unlocked-io.h: New file, from GNU diffutils,
86511         but with proper copyright notice and attribution.
86512         * lib/gen-uio: Remove.
86513         * lib/Makefile.am: Add copyright notice.
86514         (libfetish_a_SOURCES): Add unlocked-io.h.
86515         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86516         (DISTCLEANFILES, io_functions): Remove macros.
86517         (EXTRA_DIST): Remove gen_uio.
86518         (unlocked-io.h): Remove rule.
86519
86520 2002-12-04  Jim Meyering  <jim@meyering.net>
86521
86522         Reflect the fact that stat.c and lstat.c are no longer generated.
86523         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86524         (DISTCLEANFILES): Likewise.
86525         (EXTRA_DIST): Likewise.
86526         (all_local): Don't depend on stat.c or lstat.c.
86527         (stat.c, lstat.c): Remove rules.
86528         (EXTRA_DIST): Remove xstat.in.
86529
86530         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86531         * lib/stat.c: New file.  Contents mostly from xstat.in.
86532         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86533         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86534
86535         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86536         too.
86537         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86538
86539 2002-12-03  Jim Meyering  <jim@meyering.net>
86540
86541         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86542         but not semantics, to minimize the differences between these two files.
86543         (safe_read): Change comment to mention SAFE_READ_ERROR.
86544
86545         * lib/safe-read.c (IS_EINTR): Define.
86546         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86547
86548 2002-12-02  Jim Meyering  <jim@meyering.net>
86549
86550         * lib/safe-read.c (EINTR): Define.
86551         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86552         (INT_MAX): Provide fallback.
86553         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86554
86555         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86556
86557 2002-12-02  Bruno Haible  <bruno@clisp.org>
86558
86559         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86560         Define, taken from safe-read.c.
86561         (INT_MAX): Provide fallback.
86562         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86563         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86564
86565         * lib/safe-read.c (EINTR): Remove definition.
86566         (safe_read): Don't use EINTR if it is absent.
86567
86568 2002-12-01  Jim Meyering  <jim@meyering.net>
86569
86570         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86571         zero.
86572         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86573
86574 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86575
86576         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86577         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86578         with `if (! (value < limit)) abort ();', for readability.
86579
86580 2002-11-26  Karl Berry  <karl@gnu.org>
86581
86582         * lib/strdup.c: copy from libc again, with jim's ok.
86583         * lib/.cppi-disable: re-add strdup.c
86584
86585 2002-11-25  Karl Berry  <karl@gnu.org>
86586
86587         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86588         instead of "strtol.c".
86589
86590 2002-11-25  Karl Berry  <karl@gnu.org>
86591
86592         * config/install-sh: update from automake for variable quoting, $0 in
86593         error msgs, etc.
86594
86595         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86596         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86597         entry.
86598
86599 2002-11-25  Jim Meyering  <jim@meyering.net>
86600
86601         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86602
86603 2002-11-24  Karl Berry  <karl@gnu.org>
86604
86605         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86606         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86607
86608 2002-11-24  Jim Meyering  <jim@meyering.net>
86609
86610         Update from coreutils:
86611
86612         * lib/mktime.c: Merge in changes from libc.
86613
86614         Avoid a link-time failure on some Linux systems.
86615         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86616         (otherwise).
86617         (__mon_yday): Declare with the STATIC attribute.
86618         (__mktime_internal): Likewise.
86619         Based on a report from Greg Schafer.
86620
86621 2002-11-23  Jim Meyering  <jim@meyering.net>
86622
86623         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86624         Use `unsigned', not `int', as type of index.
86625
86626         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86627
86628         * lib/fsusage.c: Remove unneeded parentheses around operands of
86629         `defined'.
86630
86631 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86632
86633         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86634         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86635         so that we can be included first.
86636         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86637         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86638         No need to include stddef.h or sys/types.h any more.
86639         Surround local include files with "", not "<>".
86640         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86641         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86642         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86643         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86644         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86645         (ISPRINT): Remove; no longer needed now that we assume C89.
86646
86647         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86648         Preserve errno.
86649
86650         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86651         quotearg_char): Use SIZE_MAX rather than
86652         (size_t) -1 when we are talking about "infinity".
86653
86654         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86655
86656 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86657
86658         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86659         hint that one should use `if (! x) abort ();' rather than `assert
86660         (x);', and anyway it's one less thing to worry about configuring.
86661         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86662         hash_rehash, hash_insert): Use abort rather than assert.
86663
86664 2002-11-22  Bruno Haible  <bruno@clisp.org>
86665
86666         * lib/safe-read.h: Assume C89. Add comments.
86667         (safe_read): Change return type to size_t.
86668         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86669         byte counts > SSIZE_MAX correctly.
86670         * lib/safe-write.h: New file.
86671         * lib/safe-write.c: New file.
86672         * lib/full-read.h: New file.
86673         * lib/full-read.c: New file.
86674         * lib/full-write.h: Assume C89. Add comments.
86675         * lib/full-write.c: Include safe-write.h.
86676         (full_write): Rewritten to use safe_write.
86677         Suggested by Jim Meyering and Paul Eggert.
86678
86679 2002-11-21  Jim Meyering  <jim@meyering.net>
86680
86681         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86682
86683         Merge in changes from the coreutils.
86684
86685         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86686         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86687         <stdint.h>.
86688         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86689         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86690         int.  Work more efficiently if X is the same width as uintmax_t.
86691         Do not compare X to -1, to avoid bogus compiler warning.
86692         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86693         Don't assume that f_frsize and f_bsize are the same type.
86694
86695         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86696         warning on FreeBSD.
86697
86698         * lib/makepath.c (make_path): Restore umask *before* creating the final
86699         component.
86700         (make_path): Minor reformatting.
86701
86702         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86703         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86704         HAVE_MALLOC/HAVE_REALLOC.
86705
86706         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86707         dummy ones.  At least on GNU/Linux systems, `auto' means something
86708         else.
86709         From Michael Stone.
86710
86711 2002-11-21  Bruno Haible  <bruno@clisp.org>
86712
86713         Remove case insensitive option matching.
86714         * lib/argmatch.h (argcasematch): Remove declaration.
86715         (ARGCASEMATCH): Remove macro.
86716         (__xargmatch_internal): Remove case_sensitive argument.
86717         (XARGMATCH): Update.
86718         (XARGCASEMATCH): Remove macro.
86719         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86720         case_sensitive argument.
86721         (argcasematch): Remove function.
86722         (__xargmatch_internal): Remove case_sensitive argument.
86723         (main): Use XARGMATCH instead of XARGCASEMATCH.
86724
86725         * lib/xmalloc.c: Change compile-time error message. Add comment about
86726         required autoconf version.
86727
86728 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86729
86730         Merge argmatch cleanups from Bison.  Assume C89.
86731
86732         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86733         Include stdlib.h, for EXIT_FAILURE.
86734         Always include <string.h>, since we assume C89.
86735         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86736         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86737         Include <stddef.h> instead, since it's all we need for size_t.
86738         (PARAMS): Remove.  All uses removed.
86739         (ARRAY_CARDINALITY): Do not bother to #undef.
86740         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86741         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86742         Remove unnecessary parentheses.
86743         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86744         Insert necessary parentheses.
86745         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86746         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86747
86748 2002-11-19  Bruno Haible  <bruno@clisp.org>
86749
86750         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86751         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86752
86753         * lib/mbswidth.h (PARAMS): Remove macro.
86754         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86755         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86756
86757         * lib/gcd.h (PARAMS): Remove macro.
86758         (gcd): Use ANSI C function declarations.
86759         * lib/gcd.c (gcd): Likewise.
86760
86761 2002-11-15  Bruno Haible  <bruno@clisp.org>
86762
86763         * lib/strcspn.c: Include <stddef.h>.
86764         (strcspn): Use ANSI C function declaration. Change return type to
86765         size_t. Use NULL.
86766         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86767         (strpbrk): Use NULL.
86768         * lib/strpbrk.h (PARAMS): Remove macro.
86769         (strpbrk): Use ANSI C function declaration.
86770         * lib/strstr.c: Don't include <sys/types.h>.
86771         * lib/strstr.h (PARAMS): Remove macro.
86772         (strstr): Use ANSI C function declarations.
86773
86774 2002-11-14  Karl Berry  <karl@gnu.org>
86775
86776         * config/mkinstalldirs: `do' on separate line, instead of
86777         `for var; do'.
86778
86779 2002-11-06  Bruno Haible  <bruno@clisp.org>
86780
86781         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86782         * lib/gcd.c (gcd): Likewise.
86783
86784 2002-11-05  Bruno Haible  <bruno@clisp.org>
86785
86786         * lib/gcd.h: New file, from gettext-0.11.5.
86787         * lib/gcd.c: New file, from gettext-0.11.5.
86788
86789 2002-11-05  Bruno Haible  <bruno@clisp.org>
86790
86791         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86792         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86793         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86794         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86795
86796         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86797         <libintl.h>.
86798         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86799         <libintl.h>.
86800
86801         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86802         * lib/human.c: Include gettext.h instead of <libintl.h>.
86803         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86804         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86805         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86806         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86807         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86808         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86809         (textdomain): Remove definition.
86810         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86811
86812         * lib/long-options.c: Remove include of <libintl.h> and definition of
86813         _.
86814         * lib/same.c: Remove include of <libintl.h> and definition of _.
86815
86816 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86817
86818         * lib/config.charset: A few additions for Solaris.
86819
86820 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86821
86822         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86823         * lib/localcharset.c (locale_charset): Declare as extern "C".
86824
86825 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86826
86827         * lib/config.charset: msdos in uk_UA uses CP1125.
86828
86829 2002-11-04  Bruno Haible  <bruno@clisp.org>
86830
86831         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86832         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86833         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86834         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86835         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86836
86837 2002-11-04  Bruno Haible  <bruno@clisp.org>
86838
86839         * lib/localcharset.c (locale_charset): Don't return an empty string.
86840
86841 2002-11-04  Bruno Haible  <bruno@clisp.org>
86842
86843         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86844         aliases.
86845
86846 2002-11-04  Bruno Haible  <bruno@clisp.org>
86847
86848         * lib/config.charset: Update for newest glibc. Add canonical names
86849         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86850
86851 2002-11-04  Bruno Haible  <bruno@clisp.org>
86852
86853         * lib/config.charset: Add support for NetBSD.
86854
86855 2002-11-04  Bruno Haible  <bruno@clisp.org>
86856
86857         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86858
86859 2002-11-01  Bruno Haible  <bruno@clisp.org>
86860
86861         * configure.in: Add AC_CONFIG_AUX_DIR call.
86862         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86863         test/Makefile.
86864         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86865
86866 2002-09-28  Karl Berry  <karl@gnu.org>
86867
86868         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86869         installed automake until the next release, since changes have been
86870         made.
86871
86872 2002-09-25  Karl Berry  <karl@gnu.org>
86873
86874         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86875         * lib/getopt*: copy from libc/posix.
86876         * lib/gettext.h: copy from gettext.
86877         * lib/.cppi-disable: add strdup.c, gettext.h.
86878
86879 2002-09-25  Karl Berry  <karl@gnu.org>
86880
86881         * config/srclist.txt: enable gettext.h check.
86882         * config/config.{guess,sub}: update from prep.
86883         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86884                 from automake 1.6.3.
86885         See srclist*.
86886
86887 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86888
86889         * regex.c (PATFETCH): Remove the translating fetch.
86890         (PATFETCH_RAW): Rename to PATFETCH.
86891         (set_image_of_range): New fun.
86892         (SET_RANGE_TABLE_WORK_AREA): Use it.
86893         (regex_compile): Don't translate the pattern chars so eagerly.
86894         Only do it when inserting an `exactn' bytecode or when handling
86895         a char-range.
86896         (mutually_exclusive_p): Avoid empty statement.
86897
86898 2002-07-06  Jim Meyering  <meyering@lucent.com>
86899
86900         * m4/README: Don't mention Makefile.am.in.
86901         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86902
86903 2002-07-01  Jim Meyering  <meyering@lucent.com>
86904
86905         * lib/c-stack.c: Include sys/time.h.
86906         From Volker Borchert.
86907
86908 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86909
86910         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86911
86912 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86913
86914         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86915         New macro.  Use it uniformly instead of
86916         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86917         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86918         reported by Vin Shelton.
86919
86920 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86921
86922         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86923         Do not assume SA_SIGINFO behavior.
86924         Bug reported by Jim Meyering on NetBSD 1.5.2.
86925
86926 2002-06-22  Jim Meyering  <meyering@lucent.com>
86927
86928         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86929         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86930
86931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86932         now that configure.ac uses AC_GNU_SOURCE.
86933         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86934         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86935
86936         Update to latest tools.  Suggestions from Paul Eggert.
86937         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86938         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86939         * m4/fnmatch.m4: Likewise.
86940         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86941         to AC_HEADER_STDBOOL
86942
86943 2002-06-22  Jim Meyering  <meyering@lucent.com>
86944
86945         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86946         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86947
86948 2002-06-22  Jim Meyering  <meyering@lucent.com>
86949
86950         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86951
86952         * lib/exitfail.c, exitfail.h: Likewise.
86953         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86954
86955         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86956         of fnmatch.h.
86957         (EXTRA_DIST): Add fnmatch_loop.c.
86958         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86959
86960         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86961         * lib/fnmatch.c: Update from diffutils-2.8.2.
86962         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86963         * lib/fnmatch.h: Remove file.
86964
86965 2002-06-21  Jim Meyering  <meyering@lucent.com>
86966
86967         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86968         * m4/mbrtowc.m4: Likewise.
86969
86970         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86971         * m4/mbswidth.m4: Reflect name change:
86972         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86973         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86974
86975         * m4/lib-link.m4: Update from gettext-0.11.2.
86976         * m4/gettext.m4: Likewise.
86977
86978         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86979         From Alfred M. Szmidt.
86980
86981 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86982
86983         * lib/file-type.h: Report an error if neither S_ISREG nor
86984         S_IFREG is defined, instead of using a test specific to glibc
86985         2.2.  This should be safe, since POSIX requires S_ISREG and
86986         Unix Version 7 had S_IFREG.  We don't need to check for
86987         <sys/types.h> since we don't use any symbols that it defines.
86988
86989 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86990
86991         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86992         $@-t, so that each temporary file name is unique and valid in the first
86993         8 characters, for operation under DOS.
86994
86995 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86996
86997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86998
86999 2002-06-15  Jim Meyering  <meyering@lucent.com>
87000
87001         Work even with DJGPP 2.03, which lacks support for symlinks.
87002         From Richard Dawe.
87003         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87004         is defined.
87005         * lib/lchown.c (S_ISLNK): Likewise.
87006
87007 2002-06-15  Jim Meyering  <meyering@lucent.com>
87008
87009         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87010         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87011         have been included before this file.
87012
87013 2002-06-14  Jim Meyering  <meyering@lucent.com>
87014
87015         * lib/file-type.h: Use the version from diffutils-2.8.2.
87016         * lib/file-type.c: Likewise.
87017
87018 2002-06-07  Jim Meyering  <meyering@lucent.com>
87019
87020         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87021         They're needed at least for NetBSD 1.5.2.
87022         ($statxfs_includes): Include those same headers.
87023         ($statxfs_includes): Include sys/vfs.h if available.
87024         ($statxfs_includes): Likewise for sys/statvfs.h.
87025         Check for the following members in both structs statfs and statvfs:
87026         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87027
87028 2002-06-01  Jim Meyering  <meyering@lucent.com>
87029
87030         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87031         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87032
87033 2002-05-28  Jim Meyering  <meyering@lucent.com>
87034
87035         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87036         Reported by Volker Borchert.
87037
87038 2002-05-27  Jim Meyering  <meyering@lucent.com>
87039
87040         Fix a problem seen only on nonconforming systems whereby ls.c's
87041         use of localtime, and then of gettimeofday would cause trouble:
87042         the localtime call used to initialize rpl_gettimeofday's save
87043         mechanism would clobber ls's current local time information so
87044         that in any long listing the first file would always be listed
87045         with date 1970-01-01.  Analysis by Volker Borchert.
87046
87047         * lib/gettimeofday.c (localtime): Undefine.
87048         (rpl_localtime): New function.
87049
87050 2002-05-27  Jim Meyering  <meyering@lucent.com>
87051
87052         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87053         localtime.
87054
87055         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87056         use the replacement function; it wouldn't resolve at link time.
87057         Reported by Volker Borchert.
87058
87059 2002-05-22  Jim Meyering  <meyering@lucent.com>
87060
87061         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87062         file-type.h.
87063         * lib/file-type.h: New file.
87064         * lib/file-type.c (file_type): New file/function.  Extracted from
87065         diffutils.
87066
87067 2002-04-30  Jim Meyering  <meyering@lucent.com>
87068
87069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87070
87071 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87072
87073         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87074
87075 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87076
87077         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87078         Do not check for alloca.h (no longer used) or stdbool.h (was never
87079         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87080
87081 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87082
87083         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87084
87085 2002-04-29  Jim Meyering  <meyering@lucent.com>
87086
87087         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87088         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87089         Use AC_FUNC_STRNLEN here instead.
87090
87091         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87092         With autoconf-2.53a, it's part of AC_PROG_CC.
87093
87094 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87095
87096         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87098
87099 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87100
87101         * lib/sig2str.h, lib/sig2str.c: New files.
87102         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87103
87104 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87105
87106         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87107         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87108         of 127, since 64 is the largest conceivable number for ancient
87109         nonstandard hosts.
87110         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87111
87112 2002-04-28  Jim Meyering  <meyering@lucent.com>
87113
87114         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87115
87116 2002-04-24  Jim Meyering  <meyering@lucent.com>
87117
87118         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87119         (jm_PREREQ): Use it.
87120
87121         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87122         mach/mach.h fcntl.h.
87123         Check for this function: setlocale.
87124
87125 2002-04-24  Jim Meyering  <meyering@lucent.com>
87126
87127         * lib/gettext.h: New file, from Gettext.
87128         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87129         (libfetish_a_SOURCES): Add gettext.h.
87130
87131 2002-04-16  Jim Meyering  <meyering@lucent.com>
87132
87133         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87134         ut_pid, ut_id, ut_exit.
87135
87136 2002-04-16  Jim Meyering  <meyering@lucent.com>
87137
87138         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87139         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87140         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87141
87142 2002-04-12  Jim Meyering  <meyering@lucent.com>
87143
87144         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87145         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87146         existence of the getmntinfo function.  Needed for Darwin 5.3.
87147
87148         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87149         This is necessary at least on Darwin 5.3.
87150
87151         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87152         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87153         strnlen.o in the library, and that makes some versions of ranlib
87154         object.
87155
87156 2002-04-12  Jim Meyering  <meyering@lucent.com>
87157
87158         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87159
87160 2002-04-09  Jim Meyering  <meyering@lucent.com>
87161
87162         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87163         to be more precise.  Rather than saying we're checking whether the
87164         function `works', say what we're testing.
87165         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87166         Reported by Bruno Haible.
87167
87168 2002-03-10  Jim Meyering  <meyering@lucent.com>
87169
87170         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87171         Suggestion from Santiago Vila.
87172
87173 2002-03-08  Jim Meyering  <meyering@lucent.com>
87174
87175         * lib/rename.c: Mention that this wrapper is needed also on
87176         mips-dec-ultrix4.4 systems.
87177
87178 2002-03-02  Jim Meyering  <meyering@lucent.com>
87179
87180         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87181         not HAVE_CLOCK_SETTIME.
87182
87183 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87184
87185         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87186         Check for clock_settime.
87187
87188 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87189
87190         * lib/nanosleep.h: Rename to....
87191         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87192
87193         * lib/gettime.c: New file.
87194         * lib/settime.c: New file.
87195         * lib/stime.c: Remove.
87196
87197         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87198         timespec.h.  Remove nanosleep.h.
87199
87200 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87201
87202         * m4/acl.m4: New file.
87203         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87204         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87205
87206 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87207
87208         * lib/acl.c, lib/acl.h: New files.
87209         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87210
87211 2002-02-24  Jim Meyering  <meyering@lucent.com>
87212
87213         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87214         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87215         cause trouble.  Reported by Nelson Beebe.
87216
87217 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87218
87219         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87220         compilers that don't know that xalloc_die never returns.
87221
87222 2002-02-20  Jim Meyering  <meyering@lucent.com>
87223
87224         * lib/getdate.c: Regenerate using bison-1.33.
87225
87226 2002-02-17  Jim Meyering  <meyering@lucent.com>
87227
87228         * config/config.guess (main): Don't use `head -1'; it's no longer
87229         portable. Use `sed 1q' instead.
87230
87231 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87232
87233         * m4/codeset.m4: Upgrade to gettext-0.11.
87234         * m4/gettext.m4: Upgrade to gettext-0.11.
87235         * m4/glibc21.m4: Upgrade to gettext-0.11.
87236         * m4/iconv.m4: Upgrade to gettext-0.11.
87237         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87238         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87239         * m4/lib-ld.m4: New file, from gettext-0.11.
87240         * m4/lib-link.m4: New file, from gettext-0.11.
87241         * m4/lib-prefix.m4: New file, from gettext-0.11.
87242         * m4/progtest.m4: Upgrade to gettext-0.11.
87243
87244 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87245
87246         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87247         (jm_PREREQ): Use it.
87248
87249 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87250
87251         * lib/posixver.c, lib/posixver.h: New files.
87252         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87253
87254 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87255             Bruno Haible  <bruno@clisp.org>
87256
87257         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87258         (fwrite_success_callback): New declaration.
87259         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87260         print_unicode_char. Call failure callback instead of error.
87261         (fwrite_success_callback): New function.
87262         (exit_failure_callback): New function.
87263         (fallback_failure_callback): New function.
87264         (print_unicode_char): Call unicode_to_mb.
87265
87266 2002-01-26  Jim Meyering  <meyering@lucent.com>
87267
87268         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87269         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87270
87271 2002-01-26  Jim Meyering  <meyering@lucent.com>
87272
87273         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87274
87275 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87276
87277         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87278
87279 2002-01-22  Jim Meyering  <meyering@lucent.com>
87280
87281         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87282         Otherwise, some versions of automake would omit the rule that makes
87283         Makefile from Makefile.in.
87284
87285 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87286
87287         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87288         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87289         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87290         (memcoll): Set errno to zero if there is no error.
87291
87292         * lib/quotearg.c (quotearg_buffer_restyled):
87293         Fix bug with quoting buffers containing NUL when backslashing escapes.
87294         This bug was exposed by the other changes in this patch.
87295         (quotearg_n_options): New arg ARGSIZE.
87296         All callers changed.
87297         (quoting_options_from_style): New function.
87298         (quotearg_n_style): Use it.
87299         (quotearg_n_style_mem): New function.
87300
87301         * lib/quotearg.h (quotearg_n_style_mem): New function.
87302
87303 2002-01-19  Jim Meyering  <meyering@lucent.com>
87304
87305         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87306         Remove useless quotes: DF_PROG="df".
87307         * m4/strnlen.m4: New file.
87308
87309 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87310
87311         * lib/backupfile.c (ISDIGIT): Comment fix.
87312         * lib/getdate.y (ISDIGIT): Likewise.
87313         * lib/posixtm.c (ISDIGIT, year): Likewise.
87314         * lib/strverscmp.c (ISDIGIT): Likewise.
87315         * lib/userspec.c (ISDIGIT): Likewise.
87316
87317 2002-01-16  Jim Meyering  <meyering@lucent.com>
87318
87319         * lib/getdate.y: Add three semicolons, each just before a closing
87320         brace. Bison (as of version 1.31) no longer papers over that mistake.
87321
87322 2002-01-05  Jim Meyering  <meyering@lucent.com>
87323
87324         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87325
87326 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87327
87328         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87329         not silently exit merely because the output buffer happens to
87330         have nothing pending.
87331
87332 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87333
87334         See the big note in ../ChangeLog.
87335         * lib/human.c (suffixes): Prefer K to k for 1024.
87336         (generate_suffix_backwards): New function.
87337         (human_readable_inexact): Use it.
87338         * lib/xstrtol.c (__xstrtol): If there is no number but there
87339         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87340         Accept 'K' as well as 'k'.
87341
87342 2001-12-15  Jim Meyering  <meyering@lucent.com>
87343
87344         * lib/regex.h (__restrict_arr): Update from libc.
87345
87346         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87347         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87348         (STREQ): Define.
87349
87350 2001-12-14  Jim Meyering  <meyering@lucent.com>
87351
87352         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87353         Suggestion from Bruno Haible.
87354
87355 2001-12-10  Jim Meyering  <meyering@lucent.com>
87356
87357         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87358         xrealloc, Instead, include "xalloc.h".
87359         (initbuffer): Don't cast xmalloc return value to char*.
87360         (readline): Reword comment.
87361         Don't cast xrealloc return value to char*
87362         Return NULL, not 0.
87363
87364 2001-12-09  Jim Meyering  <meyering@lucent.com>
87365
87366         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87367         about `signed and unsigned type in conditional expression'.
87368         * lib/posixtm.c (posix_time_parse): Likewise.
87369
87370         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87371
87372         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87373         to avoid a pedantic warning.
87374
87375         * lib/getstr.c: Don't include assert.h.
87376         (getstr): Remove warning-evoking assertions.
87377         Return -1 if offset parameter is out of bounds.
87378         Change the type of a local from int to size_t.
87379
87380         * lib/strftime.c (my_strftime_localtime_r): Include this function
87381         definition in the `#if ! HAVE_TM_GMTOFF' block.
87382
87383         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87384         Include xalloc.h instead.
87385
87386 2001-12-02  Jim Meyering  <meyering@lucent.com>
87387
87388         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87389         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87390         included.
87391
87392         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87393         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87394
87395 2001-11-30  Akim Demaille  <akim@epita.fr>
87396
87397         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87398         before being defined.
87399
87400 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87401
87402         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87403         First arg is int, not unsigned.
87404         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87405         (SIZE_MAX, UINT_MAX): New macros.
87406         (quotearg_n_options): Abort if N is negative.
87407         Avoid overflow check on hosts where size_t is 64 bits and int
87408         is 32 bits, as overflow is impossible there.
87409         Fix off-by-one typo that caused unnecessary reallocation.
87410
87411 2001-11-27  Jim Meyering  <meyering@lucent.com>
87412
87413         * lib/tempname.c: Merge with version from libc.
87414         * lib/regex.c: Likewise.
87415
87416         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87417         systems for which STDC_HEADERS is 0, it was not included, resulting in
87418         a warning about an integer-to-pointer conversion problem with getenv.
87419         Reported by Volker Borchert.
87420
87421 2001-11-26  Jim Meyering  <meyering@lucent.com>
87422
87423         * lib/gtod.h: Remove file.
87424         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87425         * lib/gettimeofday.c: Don't include gtod.h.
87426         (GTOD_init): Remove function.
87427         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87428         Suggestion from Volker Borchert.
87429
87430 2001-11-23  Jim Meyering  <meyering@lucent.com>
87431
87432         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87433         it.
87434         * lib/hash.c (struct hash_table): Define it here instead.
87435
87436 2001-11-22  Jim Meyering  <meyering@lucent.com>
87437
87438         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87439
87440 2001-11-20  Jim Meyering  <meyering@lucent.com>
87441
87442         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87443         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87444
87445 2001-11-19  Jim Meyering  <meyering@lucent.com>
87446
87447         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87448         directory.  Use "conftestXXXXXX" as the template.
87449         Suggestion from Paul Eggert.
87450
87451         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87452         immediately, so the test doesn't mistakenly hit the max-open-files
87453         limit.
87454
87455 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87456
87457         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87458         (TEMPORARIES): New macro.
87459         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87460         removes an artificial limitation (e.g. HP-UX 10.20, where
87461         TMP_MAX is 17576).
87462
87463 2001-11-18  Jim Meyering  <meyering@lucent.com>
87464
87465         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87466
87467 2001-11-18  Jim Meyering  <meyering@lucent.com>
87468
87469         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87470         on SunOS 4.
87471
87472         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87473         files will be created before anything else.
87474
87475 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87476
87477         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87478         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87479
87480 2001-11-17  Jim Meyering  <meyering@lucent.com>
87481
87482         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87483         Prompted by a report from Bob Proulx.
87484
87485         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87486         Instead, require UTILS_FUNC_MKSTEMP.
87487
87488 2001-11-17  Jim Meyering  <meyering@lucent.com>
87489
87490         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87491         Now, that's done as part of AC_FUNC_STRTOD.
87492
87493 2001-11-17  Jim Meyering  <meyering@lucent.com>
87494
87495         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87496         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87497         rather than group writable.  Patch by Juan F. Codagnone.
87498
87499         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87500         xrealloc, Instead, include "xalloc.h".
87501
87502         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87503         Remove explicit declarations of xmalloc, xrealloc,
87504         and xstrdup.  Instead, include "xalloc.h".
87505
87506         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87507         unlocked-io.h.
87508         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87509         Likewise.
87510         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87511
87512         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87513         Reported by Padraig Brady.
87514
87515         * lib/mkstemp.c: #undef mkstemp.
87516         Include config.h.
87517         (rpl_mkstemp): Rename from mkstemp.
87518         Protoize.
87519
87520 2001-11-16  Jim Meyering  <meyering@lucent.com>
87521
87522         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87523         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87524         determine the amount of total physical memory, use pstat_getstatic.
87525         HPUX-11 doesn't define _SC_PHYS_PAGES.
87526         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87527         If sysconf couldn't be used to determine the amount of available
87528         physical memory, use both pstat_getstatic and pstat_getdynamic.
87529         Based on a patch from Bob Proulx.
87530
87531 2001-11-10  Jim Meyering  <meyering@lucent.com>
87532
87533         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87534         (jm_PREREQ): Use it.
87535
87536 2001-11-09  Jim Meyering  <meyering@lucent.com>
87537
87538         * m4/jm-macros.m4: Require autoconf-2.52f.
87539         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87540         Use these AC_-prefixed names, not the AM_-prefixed ones.
87541
87542         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87543
87544 2001-11-05  Jim Meyering  <meyering@lucent.com>
87545
87546         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87547
87548 2001-11-04  Jim Meyering  <meyering@lucent.com>
87549
87550         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87551         $DEFS.
87552
87553 2001-11-03  Jim Meyering  <meyering@lucent.com>
87554
87555         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87556         of AC_DEFUN.
87557
87558         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87559         know the name of the variable in the macro definition.
87560
87561 2001-11-03  Jim Meyering  <meyering@lucent.com>
87562
87563         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87564         in argmatch_to_argument call.
87565
87566         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87567         argument.
87568
87569         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87570         e.g., a fault due to an attempt to free a NULL pointer.
87571
87572 2001-11-01  Jim Meyering  <meyering@lucent.com>
87573
87574         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87575         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87576
87577 2001-11-01  Jim Meyering  <meyering@lucent.com>
87578
87579         * lib/dirfd.c, lib/dirfd.h: New files.
87580         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87581
87582         * lib/hash.c (hash_print) [TESTING]: Clean up.
87583
87584 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87585
87586         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87587         to avoid a warning if -Wall.
87588
87589 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87590
87591         * README: New file
87592         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87593         (per RMS's instructions, this is now the canonical source)
87594         * lgpl/, gpl/: New directories.
87595
87596 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87597
87598         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87599
87600 2001-10-21  Jim Meyering  <meyering@lucent.com>
87601
87602         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87603         this code would end up calling gettext even in packages built
87604         with --disable-nls.
87605         * lib/getopt.c (_): Likewise.
87606         * lib/regex.c (_): Likewise.
87607
87608 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87609
87610         * m4/error.m4 (jm_PREREQ_ERROR):
87611         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87612         AC_FUNC_STRERROR_R does that.
87613         Check for strerror declaration.
87614
87615         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87616         are supposed to have them these days.
87617         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87618         Merge changes from latest Autoconf CVS.
87619         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87620         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87621         POSIX decided to standardize on the int flavor of strerror_r.
87622
87623 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87624
87625         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87626         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87627         Use strerror_r that is only a macro, even if it is not a function.
87628         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87629         (private_strerror): Use prototypes, not old-style function definition.
87630         (print_errno_message): New function.
87631         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87632         char*-flavored one.
87633         (error_tail, error, error_at_line): Use it.
87634
87635 2001-10-11  Jim Meyering  <meyering@lucent.com>
87636
87637         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87638         and quote_n (1, ... to avoid clobbering a buffer.
87639
87640 2001-10-05  Jim Meyering  <meyering@lucent.com>
87641
87642         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87643         hash-pjw.h.
87644         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87645         * lib/hash-pjw.h: New file.
87646
87647 2001-09-30  Jim Meyering  <meyering@lucent.com>
87648
87649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87650         `struct fsstat' has the `f_fstypename' member.
87651         Use that to define FS_TYPE, which is now used to make
87652         the getfsstat link test tighter.
87653
87654 2001-09-30  Jim Meyering  <meyering@lucent.com>
87655
87656         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87657         Include <sys/ucred.h>, for Apple Darwin.
87658         Include sys/mount.h and sys/fs_types.h only if available.
87659         (FS_TYPE): Define.
87660         (read_filesystem_list): Use FS_TYPE.
87661
87662 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87663
87664         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87665         a boolean context.
87666
87667 2001-09-29  Jim Meyering  <meyering@lucent.com>
87668
87669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87670         [one-argument getmntent function]): Include stdio.h before mntent.h.
87671         SunOS 4.1.x needs it for the declaration of `FILE'.
87672         Patch by Volker Borchert.
87673
87674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87675         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87676         sys/fs_types.h, and make the link-test for getfsstat guard #include
87677         directives with appropriate #if HAVE_*_H tests so that we can
87678         detect getfsstat on Apple Darwin1.3.7 systems.
87679         Reported by Nelson Beebe.
87680         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87681
87682 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87683
87684         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87685         #defines strtoimax.  Also treat the other strto* functions
87686         like strtoimax.
87687
87688         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87689         Check for strtoul and strtoumax,
87690         as those declarations are made even in the signed case.
87691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87692         Likewise, for strtol and strtoimax.
87693
87694 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87695
87696         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87697         #defines strtoimax.  Also treat the other strto* functions
87698         like strtoimax.
87699
87700         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87701         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87702         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87703
87704 2001-09-26  Jim Meyering  <meyering@lucent.com>
87705
87706         Most macros in unlocked-io.h had the wrong number of arguments.
87707         * lib/gen-uio: New script.
87708         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87709         * lib/unlocked-io.hin: Remove file.
87710         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87711         rather than trying to embed it here.
87712         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87713         Reported by Padraig Brady.
87714
87715 2001-09-25  Volker Borchert  <bt@teknon.de>
87716
87717         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87718         `result'.
87719
87720 2001-09-24  Jim Meyering  <meyering@lucent.com>
87721
87722         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87723
87724 2001-09-23  Jim Meyering  <meyering@lucent.com>
87725
87726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87727         instead of the mere test for existence of mntent.h.  The latter
87728         would get a false-positive on AIX 3.4 systems.
87729         In the outer getmntent if-block, don't die if neither of the getmntent
87730         tests succeeds.  Instead, just fall through and continue with the
87731         remaining tests.
87732
87733 2001-09-23  Jim Meyering  <meyering@lucent.com>
87734
87735         * lib/mountlist.c: Remove useless parentheses in #if directives.
87736         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87737         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87738
87739 2001-09-22  Jim Meyering  <meyering@lucent.com>
87740
87741         * m4/gettext.m4: New file.  From gettext.
87742         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87743         * m4/progtest.m4: Likewise
87744         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87745         * m4/glibc21.m4: Likewise.
87746
87747         * m4/libintl.m4: Remove.  No longer used.
87748
87749 2001-09-22  Jim Meyering  <meyering@lucent.com>
87750
87751         * lib/localcharset.c: Update from latest gettext.
87752         * lib/config.charset: Likewise.
87753
87754 2001-09-20  Jim Meyering  <meyering@lucent.com>
87755
87756         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87757         strtoimax.
87758         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87759         strtoumax.
87760
87761 2001-09-20  Jim Meyering  <meyering@lucent.com>
87762
87763         * lib/xstrtol.c (strtoimax): Guard declaration with
87764         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87765         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87766         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87767         (strtoumax): Likewise, for completeness (it wasn't necessary).
87768
87769 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87770
87771         * lib/strtoimax.c (HAVE_LONG_LONG):
87772         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87773         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87774         to work around bug in IBM C compiler.
87775
87776 2001-09-17  Jim Meyering  <meyering@lucent.com>
87777
87778         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87779         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87780         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87781         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87782         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87783         whenever the right hand side need not be expanded by the shell.
87784
87785 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87786
87787         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87788         library.  It's not correct, as some older glibcs are buggy.
87789         fnmatch wasn't fixed until glibc 2.2.
87790
87791         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87792         special shell magic here.
87793
87794 2001-09-16  Jim Meyering  <meyering@lucent.com>
87795
87796         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87797         * m4/jm-macros.m4: Require it.
87798
87799 2001-09-16  Jim Meyering  <meyering@lucent.com>
87800
87801         * lib/mkdir.c: New file.
87802
87803 2001-09-15  Jim Meyering  <meyering@lucent.com>
87804
87805         * m4/jm-macros.m4: Check for help2man.
87806
87807 2001-09-11  Jim Meyering  <meyering@lucent.com>
87808
87809         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87810         The body, by Paul Eggert, was moved here from configure.in.
87811         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87812
87813 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87814
87815         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87816         (jm_PREREQ): Use it.
87817
87818 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87819
87820         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87821         Use ssize_t, not int, to store result of readlink.
87822         Check for ssize_t overflow as well as size_t overflow,
87823         as POSIX says the result of readlink is implementation-defined
87824         when ssize_t overflows.
87825         Remove unnecessary cast to char*.
87826         Use free+malloc instead of realloc, as the storage doesn't need
87827         to be preserved and it's clearer and can be more efficient that way.
87828         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87829         * lib/xreadlink.h (xreadlink): Update prototype.
87830
87831 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87832
87833         * lib/xgetcwd.c: Revert some of the previous change; intead,
87834         fix the HAVE_GETCWD_NULL code to behave more like the
87835         !HAVE_GETCWD_NULL code used to.
87836
87837         Include "xalloc.h".
87838         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87839         invoke xalloc_die.
87840
87841 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87842
87843         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87844         sys/param.h, as pathmax.h includes them.
87845
87846 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87847
87848         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87849         (jm_PREREQ_XGETCWD): New macro.
87850
87851         * m4/getcwd.m4: New file.
87852
87853 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87854
87855         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87856         like the HAVE_GETCWD_NULL code.
87857         Include pathmax.h if not HAVE_GETCWD.
87858         Do not include xalloc.h.
87859         (INITIAL_BUFFER_SIZE): New symbol.
87860         Do not use xmalloc / xrealloc, since the caller is responsible for
87861         handling errors.  Preserve errno around `free' during failure.
87862         Do not overrun buffer when using getwd.
87863
87864 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87865
87866         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87867         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87868         getcwd (NULL, 0).
87869
87870 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87871
87872         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87873         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87874         spotted by Jim Meyering.
87875
87876 2001-09-03  Jim Meyering  <meyering@lucent.com>
87877
87878         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87879         failure.
87880
87881 2001-09-02  Jim Meyering  <meyering@lucent.com>
87882
87883         * lib/error.c: Update from GNU libc.
87884
87885 2001-09-01  Jim Meyering  <meyering@lucent.com>
87886
87887         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87888         Used by df.
87889
87890 2001-09-01  Jim Meyering  <meyering@lucent.com>
87891
87892         * lib/xreadlink.c: New file.
87893         * lib/xreadlink.h: New file.
87894         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87895         xreadlink.h.
87896
87897         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87898         doesn't conflict with sparc Solaris 7's definition in
87899         /usr/include/sys/int_types.h.
87900
87901         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87902         files.
87903         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87904         and strncasecmp as r-values.  Unixware didn't have declarations.
87905
87906 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87907
87908         * lib/xstrtol.h: Add copyright notice.
87909         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87910         LONGINT_INVALID_SUFFIX_CHAR.
87911
87912 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87913
87914         * lib/xstrtol.c (strtoimax): New decl.
87915
87916 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87917
87918         * lib/xgetcwd.c: Don't include pathmax.h.
87919         Include stdlib.h and unistd.h if available.
87920         Include xalloc.h.
87921         (xmalloc, xstrdup, free): Remove decls.
87922         (xgetcwd): Don't assume sizes fit in unsigned.
87923         Check for overflow when computing sizes.
87924         Simplify reallocation code.
87925
87926 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87927
87928         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87929         a directory's st_size can have an arbitrary value, so the old
87930         usage could waste an arbitrary amount of memory.  All uses
87931         changed.
87932         * lib/savedir.h: Update prototype.
87933
87934 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87935
87936         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87937
87938         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87939         old strtoimax.c.
87940
87941         Also, make the following further changes to make this file's
87942         configuration more similar to that of strtol.c:
87943         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87944         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87945         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87946         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87947         changed to signed values.
87948
87949         And make the following changes as well:
87950         Fix copyright notice, as 1999 was missing.
87951         (verify): New macro.
87952         (strtoimax): Check sizes at compile-time, not run-time.
87953         Prefer strtol to strtoll if both work.
87954         (main): Remove; it was not that useful and was a pain to maintain.
87955
87956         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87957
87958 2001-08-31  Jim Meyering  <meyering@lucent.com>
87959
87960         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87961         Use an initial, malloc'd, buffer of length 128 rather than
87962         a statically allocated one of length 1024.
87963
87964 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87965
87966         Simplify code, partly by assuming autoconf 2.52 semantics.
87967
87968         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87969
87970         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87971         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87972         All uses removed.
87973         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87974         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87975         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87976         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87977         jm_AC_HEADER_INTTYPES_H.
87978         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87979
87980         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87981
87982         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87983         Quote first arg of AC_DEFUN.
87984         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87985         since they are needed to parse the include file even if we need
87986         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87987         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87988         but with opposite signedness.
87989
87990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87991
87992         Merge 'exclude' changes from tar 1.13.22.
87993         This fixes one or two unlikely storage allocation overflow bugs,
87994         but doesn't change user-visible behavior otherwise.
87995
87996 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87997
87998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87999         (jm_PREREQ_EXCLUDE): New macro.
88000
88001 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88002
88003         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88004         tm to be declared.
88005
88006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88007
88008         * lib/hash.c: Remove '2001' from copyright notice.
88009
88010 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88011
88012         * lib/full-write.h: New file.
88013         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88014         * lib/full-write.c: Correct credits, as cccp.c no longer
88015         exists and anyway it was so heavily changed from the old cccp
88016         code as to be unrecognizable.  Include full-write.h.
88017         (full_write): Return size_t, with short writes meaning failure.
88018         All callers changed.  This fixes a bug with large buffers
88019         on 64-bit hosts.
88020         * lib/utime.c: Include full-write.h.
88021
88022 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88023
88024         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88025         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88026         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88027         Include if available.
88028         (<xalloc.h>): Include
88029         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88030         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88031         collide with FNM macros.
88032         (struct patopts): New struct.
88033         (struct exclude): Use it, as exclude patterns now come with options.
88034         (new_exclude): Support above changes.
88035         (new_exclude, add_exclude_file):
88036         Initial size must now be a power of two to simplify overflow checking.
88037         (free_exclude, fnmatch_no_wildcards): New function.
88038         (excluded_filename): No longer requires options arg, as the options
88039         are determined by add_exclude.  Now returns bool, not int.
88040         (excluded_filename, add_exclude):
88041         Add support for the fancy new exclusion options.
88042         (add_exclude, add_exclude_file): Now takes int options arg.
88043         Check for arithmetic overflow when computing sizes.
88044         (add_exclude_file): xrealloc might modify errno, so don't
88045         realloc until after errno might be used.
88046
88047         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88048         New macros.
88049         (free_exclude): New decl.
88050         (add_exclude, add_exclude_file): Now takes int options arg.
88051         (excluded_filename): No longer requires options arg, as the options
88052         are determined by add_exclude.  Now returns bool, not int.
88053
88054 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88055
88056         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88057
88058 2001-08-27  Jim Meyering  <meyering@lucent.com>
88059
88060         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88061
88062         * lib/version-etc.c (N_): Remove definition.
88063         Revert most of last change.
88064         Instead, simply don't mark the `Copyright...' string for translation.
88065         Based on advice from Paul Eggert.
88066
88067         * lib/strtoxmax.c: Tweak comment.
88068
88069 2001-08-26  Jim Meyering  <meyering@lucent.com>
88070
88071         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88072
88073         * m4/xstrtoimax.m4: New file.
88074         * m4/xstrtoumax.m4: Add comments explaining why we
88075         AC_REPLACE_FUNCS(strtol).
88076
88077 2001-08-26  Jim Meyering  <meyering@lucent.com>
88078
88079         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88080         of copyright with `%s' so translators don't get an untranslated
88081         message in 2002.
88082         (COPYRIGHT_YEAR): Define.
88083         (version_etc): Use fprintf rather than fputs.
88084         Suggestion from Ulrich Drepper.
88085
88086         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88087
88088         * lib/strtoll.c: New file, from GNU libc.
88089         * lib/xstrtoimax.c: New file.
88090
88091         * lib/xstrtol.h: Add xstrtoimax.
88092         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88093         * lib/strtoimax.c: New file.  Likewise, but first define
88094         STRTOUXMAX_SIGNED.
88095
88096         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88097         ...
88098         * lib/strtoxmax.c: ... then renamed to this.
88099
88100 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88101
88102         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88103         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88104         (jm_AC_TYPE_INTMAX_T): New macro.
88105         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88106
88107         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88108
88109         * m4/longlong.m4: Renamed from ulonglong.m4.
88110         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88111         * m4/uintmax_t.m4: Removed.
88112
88113 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88114
88115         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88116         Port to Solaris 8, where 'sed' requires a space after the 'r'
88117         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88118         Redirect output to $tmp just once.
88119
88120 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88121
88122         * lib/addext.c (<errno.h>): Include.
88123         (errno): Declare if not defined.
88124         (addext): Work correctly when pathconf returns -1 and leaves
88125         errno alone because there is no limit.  Also, work even if
88126         pathconf returns a value greater than SIZE_MAX.
88127
88128 2001-08-12  Jim Meyering  <meyering@lucent.com>
88129
88130         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88131         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88132         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88133         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88134         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88135         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88136         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88137         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88138         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88139         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88140         utime.m4, utimes.m4, xstrtoumax.m4:
88141         Quote the first argument in each use of AC_DEFUN.
88142
88143 2001-08-12  Jim Meyering  <meyering@lucent.com>
88144
88145         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88146         Simply `return getcwd (NULL, 0);'.
88147         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88148         Use 1300 as initial value for length, not PATH_MAX.
88149
88150         * lib/pathmax.h: Clean up cpp syntax.
88151
88152 2001-08-12  Jim Meyering  <meyering@lucent.com>
88153
88154         * lib/gettimeofday.c: New file.
88155         * lib/gtod.h: New file.
88156         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88157
88158 2001-08-05  Jim Meyering  <meyering@lucent.com>
88159
88160         * m4/jm-macros.m4: Require autoconf-2.52.
88161
88162 2001-08-04  Jim Meyering  <meyering@lucent.com>
88163
88164         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88165         stmt, to get in sync with glibc.
88166
88167 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88168
88169         The following changes are from gettext 0.10.39 as maintained by
88170         Bruno Haible.
88171
88172         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88173         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88174         with inverted sense.  All uses changed.
88175
88176         * lib/mbswidth.c: Don't include <limits.h>.
88177         Include <stdlib.h> and <string.h> unconditionally.
88178         (iswcntrl, mbsinit, ISCNTRL): New macros.
88179         (mbsnwidth): Use K&R style function declarations.
88180         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88181         can optimize it when MB_CUR_MAX == 1.
88182         The width of control characters is zero, not 1.
88183
88184 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88185
88186         The following changes are from gettext 0.10.39 as maintained by
88187         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88188
88189         * m4/codeset.m4: Upgrade to serial AM1.
88190         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88191         all uses changed.  Quote first arg of AC_DEFUN.
88192         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88193
88194         * m4/iconv.m4: Upgrade to serial AM2.
88195         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88196         Add --with-libconv-prefix.
88197         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88198         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88199         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88200         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88201         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88202
88203         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88204         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88205         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88206         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88207         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88208         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88209         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88210         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88211         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88212
88213         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88214         string.h any more.
88215
88216         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88217         not the default value.
88218
88219         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88220         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88221         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88222         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88223         Also check for iswcntrl, used for wcwidth fallback.
88224         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88225         to Autoconf 2.13.
88226
88227 2001-08-03  Jim Meyering  <meyering@lucent.com>
88228
88229         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88230         as it was in the original.  Reported by Paul Eggert.
88231
88232 2001-07-16  Jim Meyering  <meyering@lucent.com>
88233
88234         * m4/gettimeofday.m4: New file.
88235         Prompted by a report from Bernhard Baehr.
88236
88237 2001-07-15  Jim Meyering  <meyering@lucent.com>
88238
88239         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88240         stuff. Now it's in ../Makefile.cfg.
88241
88242 2001-07-15  Jim Meyering  <meyering@lucent.com>
88243
88244         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88245         (BUILT_SOURCES): Add unlocked-io.h.
88246         (io_functions): Define.
88247         (unlocked-io.h): New rule.
88248         (DISTCLEANFILES): Add unlocked-io.h.
88249         (all-local): Depend on unlocked-io.h, to ensure it is created.
88250
88251         * lib/unlocked-io.hin: New file
88252
88253         * lib/regex.c: Update from glibc.
88254
88255 2001-07-05  Jim Meyering  <meyering@lucent.com>
88256
88257         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88258         recommendation.
88259         (libfetish_a_SOURCES): Put all .h files here instead.
88260         Remove a thus-exposed (better checks in automake) duplicate and
88261         two unnecessary .h files.
88262
88263 2001-07-04  Jim Meyering  <meyering@lucent.com>
88264
88265         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88266         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88267         distcheck failure.
88268
88269 2001-07-02  Jim Meyering  <meyering@lucent.com>
88270
88271         The following changes were prompted by suggestions from Bruno Haible.
88272
88273         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88274         is now generated.
88275         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88276         definition of EXTRA_DIST.
88277         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88278         ensure that the generated file is created/updated whenever the list
88279         of $(unlocked_functions) is changed.
88280         (jm-glibc-io.m4): New rule.
88281         (unlocked-io.h): New rule -- currently unused.
88282
88283 2001-06-24  Jim Meyering  <meyering@lucent.com>
88284
88285         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88286         unmatched right bracket, rather than kludging it with an extra,
88287         falsely-matching quote in a comment.  Patch by Akim Demaille.
88288
88289 2001-06-11  Jim Meyering  <meyering@lucent.com>
88290
88291         * lib/regex.c: Update from GNU libc.
88292
88293 2001-05-27  Jim Meyering  <meyering@lucent.com>
88294
88295         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88296         Check for ut_type in struct utmp.
88297
88298 2001-05-27  Jim Meyering  <meyering@lucent.com>
88299
88300         * lib/readutmp.h (UT_TYPE): Define.
88301
88302 2001-05-24  Jim Meyering  <meyering@lucent.com>
88303
88304         * lib/argmatch.c: Include "quote.h".
88305         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88306         quote function.  Reported by Göran Uddeborg.
88307
88308 2001-05-22  Jim Meyering  <meyering@lucent.com>
88309
88310         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88311         now that we use the package-supplied version unconditionally.
88312         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88313
88314 2001-05-21  Jim Meyering  <meyering@lucent.com>
88315
88316         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88317         shell syntax errors.
88318
88319 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88320
88321         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88322
88323 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88324
88325         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88326         Don't bother to check library strftime, since
88327         we'll be using our own my_strftime function anyway.
88328         Define my_strftime instead of strftime.
88329
88330 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88331
88332         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88333         which is not yet declared.
88334
88335 2001-05-15  Jim Meyering  <meyering@lucent.com>
88336
88337         * m4/regex.m4: Use proper quoting so brackets appear in the test
88338         program.
88339         Reported by, and with help from, Bruno Haible.
88340
88341 2001-05-13  Jim Meyering  <meyering@lucent.com>
88342
88343         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88344         undefined.
88345
88346 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88347
88348         dirname code cleanup.  base_name now behaves more compatibly
88349         with POSIX basename when given file names that have trailing
88350         slashes, and similarly for dir_name.  Add new primitives
88351         base_len and dir_len.  Put the directory-name-related decls
88352         into dirname.h.
88353
88354         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88355         * lib/backupfile.c (base_name): Likewise.
88356         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88357         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88358         * lib/makepath.c (strip_trailing_slashes): Likewise.
88359         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88360         ISSLASH): Likewise.
88361         * lib/rename.c (strip_trailing_slashes): Likewise.
88362         * lib/same.c (base_name): Likewise.
88363         * lib/stripslash.c (ISSLASH): Likewise.
88364
88365         * lib/addext.c: Include <dirname.h> after size_t is defined.
88366         * lib/backupfile.c: Likewise.
88367
88368         * lib/addext.c (addext): Use base_len to trim redundant
88369         trailing slashes instead of doing it ourselves.
88370         But do not trim the last slash if it is not redundant.
88371
88372         * lib/backupfile.c (find_backup_file_name,
88373         max_backup_version): Use base_len instead of rolling it ourselves.
88374         Handle the case of "" and (on DOS) "C:" correctly.
88375
88376         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88377         needed. Include <string.h>, <dirname.h>.
88378         (base_name): Allow file names ending in slashes, other than names
88379         that are all slashes.  In this case, return the basename followed
88380         by the slashes.  This is more general, and can be used in places
88381         where the original base_name purposely had an assertion failure.
88382         (base_len): New function.
88383
88384         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88385         Do not include <assert.h>; no longer needed.
88386         Include xalloc.h.
88387         (memrchr): Remove decl.
88388         (dir_name_r): Remove.
88389         (dir_len): Renamed from dirlen.  All callers changed.
88390         Rewrite in terms of base_name, for simplicity and consistency.
88391         (dir_name): Never return NULL.  All callers changed.
88392         Do not include <stdlib.h> in test program; no longer needed.
88393         return 0; is fine for test program.
88394
88395         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88396         New macros.
88397         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88398
88399         * lib/path-concat.c (path_concat): Use base_len to compute
88400         base length, not strlen; this means we cannot rely on memcpy
88401         to null-terminate.
88402
88403         * lib/same.c (STREQ): Remove.
88404         (same_name): Handle the case where the basename ends in trailing '/'.
88405
88406         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88407         a slash was stripped.  Do not strip the last slash after a
88408         file system prefix.
88409
88410 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88411
88412         * lib/Makefile.am (libfetish_a_SOURCES):
88413         Add strftime.c, since we now compile it on all hosts.
88414
88415         * lib/strftime.c (my_strftime):
88416         Define to nstrftime if emacs, but only if my_strftime is not defined.
88417         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88418         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88419         Add one more extra argument: a nanoseconds value.
88420         All uses changed.
88421         (ns): New macro.
88422         (my_strftime function): Add %N format.
88423         (emacs_strftimeu): Renamed from emacs_strftime,
88424         with extra ut argument.
88425
88426 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88427
88428         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88429
88430 2001-04-21  Jim Meyering  <meyering@lucent.com>
88431
88432         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88433         doesn't interfere.
88434
88435 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88436
88437         * m4/ftruncate.m4: Check for chsize.
88438         Link with ftruncate.o unconditionally if ftruncate is missing.
88439         This was required when cross-compiling to i586-mingw32msvc.
88440
88441 2001-04-08  Jim Meyering  <meyering@lucent.com>
88442
88443         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88444         recomputed; that's necessary when the offset spans a DST transition.
88445         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88446
88447 2001-04-02  Jim Meyering  <meyering@lucent.com>
88448
88449         * lib/regex.h, regex.c: Update from GNU libc.
88450
88451 2001-03-24  Jim Meyering  <meyering@lucent.com>
88452
88453         * m4/jm-macros.m4: Require autoconf-2.49d.
88454
88455 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88456
88457         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88458
88459 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88460
88461         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88462
88463 2001-03-17  Jim Meyering  <meyering@lucent.com>
88464
88465         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88466         now that the version in autoconf is equivalent.
88467         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88468
88469         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88470         Suggestion from Akim Demaille.
88471
88472         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88473         (jm_PREREQ_TEMPNAME): New function.
88474
88475 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88476
88477         * lib/tempname.c (uint64_t): Define to uintmax_t if
88478         not defined, and if UINT64_MAX is not defined.
88479         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88480         Reported by John David Anglin.
88481
88482 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88483
88484         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88485         resolve alias if codeset is empty.
88486         * lib/config.charset (BeOS): Use wildcard syntax.
88487
88488 2001-03-13  Jim Meyering  <meyering@lucent.com>
88489
88490         * lib/path-concat.c (path_concat)
88491         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88492         concatenating e.g., `C:' and `foo'.
88493         From Bruno Haible.
88494
88495 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88496
88497         * lib/localcharset.c (locale_charset): Don't use
88498         setlocale(LC_CTYPE,NULL). Don't return NULL.
88499         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88500
88501 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88502
88503         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88504         support for DOS/DJGPP.
88505
88506 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88507
88508         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88509         lacks mkstemp.  Compile our own tempname.c if we compile our own
88510         mkstemp.c, as mkstemp relies on tempname.
88511
88512 2001-03-01  Jim Meyering  <meyering@lucent.com>
88513
88514         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88515         AH_VERBATIM really does output its argument verbatim.
88516
88517 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88518
88519         * lib/Makefile.am (libfetish_a_SOURCES):
88520         Add dup-safer.c, fopen-safer.c.
88521         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88522
88523         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88524         * lib/unistd-safer.h: New files.
88525
88526 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88527
88528         The mkstemp replacement is taken from glibc 2.2.2, with some
88529         portability fixes for use outside glibc, as follows:
88530
88531         * lib/tempname.c (struct_stat64): New macro.
88532         (direxists, __gen_tempname): Use it.
88533         This avoids a portability problem with Solaris 8.
88534
88535         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88536         (<stddef.h>, <stdint.h>, <string.h>):
88537         Include only if STDC_HEADERS || _LIBC.
88538         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88539         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88540         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88541         (__set_errno): Define this macro if <errno.h> doesn't.
88542         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88543         Define these macros if <stdio.h> doesn't.
88544         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88545         Define these macros if <sys/stat.h>
88546         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88547         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88548         __xstat64): Define if not _LIBC.
88549         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88550         (__gen_tempname): Invoke gettimeofday only if
88551         HAVE_GETTIMEOFDAY || _LIBC;
88552         otherwise, fall back on plain "time".
88553         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88554
88555         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88556
88557         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88558
88559 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88560
88561         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88562
88563 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88564
88565         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88566         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88567         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88568         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88569
88570 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88571
88572         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88573         Remove workaround macros for hosts that have mbrtowc but not
88574         mbstate_t, as we now insist on proper declarations for both
88575         before using mbrtowc.
88576
88577 2001-02-17  Jim Meyering  <meyering@lucent.com>
88578
88579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88580         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88581         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88582         UnixWare 7.1.1.
88583
88584         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88585         rather than AC_CACHE_VAL.
88586
88587 2001-02-17  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88590         around included file name.
88591
88592         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88593
88594         * lib/strftime.c: Update from GNU libc (the only changes were to
88595         comments).
88596
88597 2001-02-17  Jim Meyering  <meyering@lucent.com>
88598
88599         * lib/regex.c: Update from libc.
88600
88601 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88602
88603         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88604         clash.
88605
88606 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88609         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88610         Reported by Mark Hounschell via Paul Eggert.
88611
88612 2001-02-07  Jim Meyering  <meyering@lucent.com>
88613
88614         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88615
88616 2001-02-05  Jim Meyering  <meyering@lucent.com>
88617
88618         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88619         it includes the patch required for `large file' support with at least
88620         HP-UX's 10.20 /bin/cc.
88621
88622 2001-02-03  Jim Meyering  <meyering@lucent.com>
88623
88624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88625         AS_IF, now that it works once again (mysteriously).
88626         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88627
88628 2001-01-30  Jim Meyering  <meyering@lucent.com>
88629
88630         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88631         * m4/chown.m4: Rename conftestchown to conftest.chown.
88632         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88633         s/conftestdir2/conftest.d2/.
88634         * m4/utimes.m4: s/conftestdata/conftest.data/
88635         Inspired by Pavel Roskin's change in autoconf.
88636
88637 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88638
88639         * lib/config.charset: Update for FreeBSD 4.2.
88640
88641 2001-01-27  Jim Meyering  <meyering@lucent.com>
88642
88643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88644         a use of AS_IF.
88645         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88646
88647 2001-01-26  Jim Meyering  <meyering@lucent.com>
88648
88649         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88650         quotearg.c includes it.
88651
88652 2001-01-26  Jim Meyering  <meyering@lucent.com>
88653
88654         * lib/quotearg.c: Include stddef.h.
88655         * lib/quote.c: Include stddef.h.
88656         Reported by Axel Kittenberger.
88657
88658         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88659         line in double quotes so that it evokes a better diagnostic.
88660         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88661         Reported by Axel Kittenberger.
88662
88663 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88664
88665         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88666         as if it was a `charset'.
88667
88668 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88669
88670         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88671         has const.
88672
88673 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88674
88675         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88676         to avoid a warning.  Add back 'const' to inptr.
88677
88678 2001-01-20  Jim Meyering  <meyering@lucent.com>
88679
88680         Be sure that headers are checked before used in code compiled
88681         for the type checks.
88682         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88683         In place of that, invoke jm_CHECK_ALL_TYPES.
88684         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88685         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88686         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88687         The check for ssize_t was mistakenly run before the test for unistd.h.
88688
88689         The configure-time check for stdbool.h was missing.
88690         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88691         (jm_PREREQ_HASH): New function.
88692
88693 2001-01-17  Jim Meyering  <meyering@lucent.com>
88694
88695         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88696         for autoconf-2.49c.
88697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88698
88699 2001-01-16  Jim Meyering  <meyering@lucent.com>
88700
88701         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88702         From Bruno Haible.
88703
88704 2001-01-14  Jim Meyering  <meyering@lucent.com>
88705
88706         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88707         foo and bar.  Create conftestdir/ in the script, not in the C code.
88708         Remove directories in the script, not in the C code.
88709         Remove conftestdir{,2} before trying to create the directory.
88710         Make the entire configure script fail if the mkdir fails.
88711
88712 2001-01-14  Jim Meyering  <meyering@lucent.com>
88713
88714         * lib/rename.c: New file.  From Volker Borchert.
88715         Include stdlib.h, string.h or strings.h, and xalloc.h.
88716         Use strip_trailing_slashes rather than open-coding it.
88717
88718 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88719
88720         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88721
88722 2001-01-03  Jim Meyering  <meyering@lucent.com>
88723
88724         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88725         of local `inptr' to avoid warning with some system declarations of
88726         iconv.
88727
88728 2001-01-02  Volker Borchert  <bt@teknon.de>
88729
88730         * m4/rename.m4: New file.
88731         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88732
88733 2001-01-01  Jim Meyering  <meyering@lucent.com>
88734
88735         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88736         even on systems with utmpx.h.  It's necessary for the declaration of
88737         utmp's ut_user member.  Reported by Andreas Jaeger.
88738
88739         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88740         available. They are required for the declarations of getgrgid and
88741         getpwuid resp.
88742         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88743         Reported by Andreas Jaeger.
88744
88745 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88746
88747         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88748         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88749         so `make install' also works in VPATH builds.
88750
88751 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88752
88753         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88754         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88755         can be used in subdirectories.
88756
88757 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88758
88759         * lib/modechange.c: Do not assume that mode_t uses the
88760         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88761         the other-execute bit of FOO even if S_IXOTH != 1.
88762
88763         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88764         WOTH, XOTH, ALLM): New macros.
88765         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88766          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88767         Use them.
88768         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88769         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88770         (mode_compile):
88771         No need to use uintmax_t; unsigned long is long enough.
88772         Don't bother to get suffix since we don't use it.
88773
88774 2000-12-26  Jim Meyering  <meyering@lucent.com>
88775
88776         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88777         better with autoheader.
88778
88779 2000-12-24  Jim Meyering  <meyering@lucent.com>
88780
88781         * lib/hash.c (is_prime): Return explicit boolean values.
88782         (hash_get_first): Return NULL to appease Irix5.6's 89.
88783         Reported by Nelson Beebe.
88784
88785 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88786
88787         * lib/localcharset.c (locale_charset): Add support for Win32.
88788
88789 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88790
88791         * lib/physmem.h, lib/physmem.c: New files.
88792
88793         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88794         (noinst_HEADERS): Add physmem.h.
88795
88796         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88797         't' for compatibility with Solaris 8 sort.
88798
88799 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88800
88801         * lib/config.charset: Add support for BeOS.
88802
88803 2000-12-17  Jim Meyering  <meyering@lucent.com>
88804
88805         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88806         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88807
88808 2000-12-16  Jim Meyering  <meyering@lucent.com>
88809
88810         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88811         N and M) would have treated it like `chown N:N FILE'.
88812
88813         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88814
88815 2000-12-16  Jim Meyering  <meyering@lucent.com>
88816
88817         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88818         SHELLS_FILE to a file name that's useful on djgpp systems.
88819         Include stdlib.h.
88820         (ADDITIONAL_DEFAULT_SHELLS): Define.
88821         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88822         Based mostly on a patch from Prashant TR.
88823
88824 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88825
88826         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88827         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88828         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88829
88830 2000-12-08  Andreas Schwab  <schwab@suse.de>
88831
88832         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88833         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88834
88835 2000-12-07  Jim Meyering  <meyering@lucent.com>
88836
88837         * lib/stripslash.c (ISSLASH): Define.
88838         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88839         `/'.
88840         From Prashant TR.
88841
88842         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88843         (dir_name_r): Declare this function as static.
88844         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88845         manifest itself on a name containing a mix of slashes and
88846         backslashes.
88847         Make this function work with names starting with a DOS-style
88848         drive letter and colon prefix.
88849         (dir_name): Append `.' if necessary.
88850         Based mostly on patches from Prashant TR and Eli Zaretskii.
88851
88852         * lib/dirname.h (dir_name_r): Remove prototype.
88853
88854 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88855
88856         * m4/off_t-format.m4: Remove this file.
88857         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88858
88859 2000-12-06  Jim Meyering  <meyering@lucent.com>
88860
88861         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88862         replacement strtoull, we may well need the replacement strtoul, too.
88863         Check for declarations of strtoul and strtoull.
88864         Check for strtol.  Mainly as a cue to cause automake to include
88865         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88866         Check for limits.h -- strtol.c needs it.
88867
88868 2000-12-05  Jim Meyering  <meyering@lucent.com>
88869
88870         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88871
88872 2000-12-04  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88875         Also include memory.h, stdlib.h, unistd.h if appropriate.
88876         Reported by Andreas Jaeger (conflicting declaration of malloc).
88877
88878 2000-12-02  Jim Meyering  <meyering@lucent.com>
88879
88880         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88881         * m4/jm-macros.m4 (jm_MACROS): require it.
88882
88883 2000-12-02  Jim Meyering  <meyering@lucent.com>
88884
88885         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88886
88887 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88888
88889         * lib/memrchr.c: Include <config.h> before any system include file.
88890
88891 2000-11-30  Jim Meyering  <meyering@lucent.com>
88892
88893         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88894
88895 2000-11-30  Jim Meyering  <meyering@lucent.com>
88896
88897         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88898
88899 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88900
88901         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88902
88903 2000-11-26  Jim Meyering  <meyering@lucent.com>
88904
88905         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88906
88907 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88908
88909         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88910         size of (size_t) -1; it's not portable.
88911
88912 2000-11-17  Jim Meyering  <meyering@lucent.com>
88913
88914         * lib/strstr.c: Update from GNU libc.
88915
88916 2000-11-17  Akim Demaille  <akim@epita.fr>
88917
88918         * lib/obstack.h: Formatting changes.
88919         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88920         prevent type checking.
88921         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88922         cast the value to (void *): assigning a `foo *' to a `void *'
88923         variable is valid.
88924         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88925
88926 2000-11-16  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88929
88930 2000-11-11  Jim Meyering  <meyering@lucent.com>
88931
88932         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88933
88934 2000-11-10  Jim Meyering  <meyering@lucent.com>
88935
88936         * lib/obstack.h: Update from GNU libc.
88937         * lib/obstack.c: Likewise.
88938
88939 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88940
88941         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88942
88943 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88944
88945         * lib/getusershell.c (setusershell): Use rewind rather than
88946         fseek/fseeko, to avoid configuration hassles with fseeko.
88947         Don't bother opening SHELLS_FILE if shellstream is NULL;
88948         it's not necessary.
88949
88950 2000-11-05  Jim Meyering  <meyering@lucent.com>
88951
88952         * lib/makepath.h (make_dir): Declare.
88953         * lib/makepath.c (make_dir): Remove `static' attribute.
88954         Tweak a comment.
88955
88956 2000-11-04  Jim Meyering  <meyering@lucent.com>
88957
88958         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88959
88960 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88961
88962         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88963         last one in a bucket, advance to the next bucket.
88964
88965 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88966
88967         * lib/fnmatch.c: Do not comment out all the code if we are using
88968         the GNU C library, because in some cases we are replacing buggy
88969         code in the GNU C library itself.
88970
88971 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88972
88973         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88974         (regex_compile): Catch bogus \(\1\).
88975
88976 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88977
88978         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88979         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88980         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88981
88982 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88983
88984         * lib/error.h, getline.h, modechange.h:
88985         Remove "2000" from Copyright line, as the file hasn't been
88986         changed this year other than in the copyright notice.
88987
88988         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88989         was changed this year.
88990
88991 2000-10-29  Jim Meyering  <meyering@lucent.com>
88992
88993         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88994         renaming.
88995         * m4/ls-mntd-fs.m4: Likewise
88996
88997 2000-10-29  Jim Meyering  <meyering@lucent.com>
88998
88999         * lib/xstat.in: Fix grammar in comment.
89000
89001 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89002
89003         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89004         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89005         doesn't define __restrict_arr.
89006
89007 2000-10-28  Jim Meyering  <meyering@lucent.com>
89008
89009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89010         (jm_PREREQ_MEMCHR): New function.
89011
89012 2000-10-28  Jim Meyering  <meyering@lucent.com>
89013
89014         * lib/memchr.c: Update from libc.
89015         Adjust for portability:
89016         [HAVE_STDLIB_H]: Include stdlib.h.
89017         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89018         Undef __memchr, too.
89019         [!weak_alias]: Define __memchr to memchr.
89020
89021         * lib/regex.c: Update from libc.
89022         * lib/regex.h: Likewise.
89023         * lib/getopt1.c: Likewise.
89024         * lib/memcmp.c: Likewise.
89025
89026         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89027         Avoid using fseek, when possible -- it's broken by design.
89028         Patch by Ulrich Drepper.
89029
89030 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89031
89032         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89033         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89034         Giving in to popular pressure to shut up the compiler with casts.
89035
89036 2000-10-26  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/strftime.c: Update from libc.
89039
89040 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89041
89042         * regex.c: More `unsigned char' -> `re_char' changes.
89043         Also change several `int' into `re_wchar_t'.
89044         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89045         (PUSH_FAILURE_POINTER): Don't cast any more.
89046         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89047         We want GCC to complain, since this piece of code makes
89048         re_match non-reentrant, which *should* be fixed.
89049         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89050         (EXTEND_BUFFER): Use RETALLOC.
89051         (SET_LIST_BIT): Don't cast.
89052         (re_wchar_t): New type.
89053         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89054         that those two functions will always properly return.
89055         (IMMEDIATE_QUIT_CHECK): Cast to void.
89056         (analyse_first): Use recursion rather than an explicit stack.
89057         (re_compile_fastmap): Can't fail anymore.
89058         (re_search_2): Don't check re_compile_fastmap for failure.
89059         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89060         Now also sets the new value (passed in a new argument).
89061         (re_match_2_internal): Use it.
89062         Also, use a new var `reg' of type size_t when looping through regs
89063         rather than reuse the inappropriate `mcnt'.
89064
89065 2000-10-25  Jim Meyering  <meyering@lucent.com>
89066
89067         * lib/obstack.c: Update from libc.
89068
89069 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89070
89071         * regex.c (regex_compile): Change the way of handling a range from
89072         a char less than 256 to a char not less than 256.
89073
89074 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89075
89076         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89077         NT-Emacs only.
89078         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89079         so that re_search functions only quit when callers expect them to.
89080
89081 2000-10-23  Jim Meyering  <meyering@lucent.com>
89082
89083         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89084         wrong.  That set_locale call must not have any side effects.
89085         From Paul Eggert.
89086
89087 2000-10-22  Jim Meyering  <meyering@lucent.com>
89088
89089         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89090         [CYCLIC]: Remove now-unused definition.
89091
89092         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89093         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89094         Suggestion from Ulrich Drepper.
89095
89096 2000-10-21  Jim Meyering  <meyering@lucent.com>
89097
89098         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89099         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89101
89102 2000-10-21  Jim Meyering  <meyering@lucent.com>
89103
89104         * lib/dirname.c (memrchr): Declare if necessary.
89105         (dir_name): Remove the restriction that there be no
89106         trailing slashes.  Now, this code skips past them, effectively
89107         ignoring them.
89108         [TEST_DIRNAME] (main): New unit tests.
89109
89110         * lib/memrchr.c: New file from GNU libc.
89111         Undef __memrchr, too.
89112         [!weak_alias]: Define __memrchr to memrchr.
89113         Guard weak_alias use with `#ifdef weak_alias'.
89114
89115 2000-10-21  Jim Meyering  <meyering@lucent.com>
89116
89117         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89118         (dir_name): Use dir_name_r.
89119         * lib/dirname.h (dir_name_r): Declare it.
89120
89121 2000-10-17  Jim Meyering  <meyering@lucent.com>
89122
89123         * lib/quote.h (PARAMS): Define and use.
89124         Reported by Akim Demaille.
89125
89126         * lib/getopt.c: Update from libc.
89127
89128 2000-10-16  Jim Meyering  <meyering@lucent.com>
89129
89130         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89131         setlocale.
89132         From Jan Fedak.
89133
89134 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89135
89136         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89137
89138 2000-09-25  Jim Meyering  <meyering@lucent.com>
89139
89140         * lib/md5.h (rol): Define (from GnuPG).
89141
89142         * lib/sha.c: Give credit (GnuPG) where due.
89143         (M): Use rol rather than open-coding it.
89144         Add a FIXME comment.
89145
89146 2000-09-21  Jim Meyering  <meyering@lucent.com>
89147
89148         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89149         Reported by Michael Stone.
89150
89151 2000-09-20  Jim Meyering  <meyering@lucent.com>
89152
89153         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89154         (noinst_HEADERS): Add sha.h.
89155         Based on code from Scott G. Miller and from GnuPG.
89156
89157 2000-09-18  Jim Meyering  <meyering@lucent.com>
89158
89159         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89160         LIBS. Otherwise, everyone ends up linking with -lelf for some
89161         configurations.
89162         Reported by Mike Stone.
89163
89164 2000-09-15  Jim Meyering  <meyering@lucent.com>
89165
89166         * lib/regex.c: Update from libc.
89167
89168 2000-09-10  Jim Meyering  <meyering@lucent.com>
89169
89170         * lib/getopt.c (_getopt_internal): Update from glibc.
89171
89172 2000-09-09  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89175         think it should be used as a general replacement for isascii.
89176         * lib/fnmatch.c: Likewise.
89177         * lib/mbswidth.c: Likewise
89178         * lib/regex.c: Likewise.
89179
89180         Don't use atoi.
89181         * lib/userspec.c: Include sys/param.h and limits.h.
89182         Include xstrtol.h.
89183         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89184         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89185         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89186         UID, GID.  Check range.
89187
89188 2000-09-06  Jim Meyering  <meyering@lucent.com>
89189
89190         * lib/getopt.c (_getopt_internal): Update from glibc.
89191
89192 2000-08-30  Jim Meyering  <meyering@lucent.com>
89193
89194         * lib/strftime.c: Merge in changes from GNU libc.
89195
89196 2000-08-26  Jim Meyering  <meyering@lucent.com>
89197
89198         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89199         * m4/fpending.m4: New file.
89200
89201 2000-08-26  Jim Meyering  <meyering@lucent.com>
89202
89203         * lib/closeout.c: Include "__fpending.h".
89204         (close_stdout_status): Return right away if there's nothing to flush.
89205
89206         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89207         * lib/__fpending.c: New file.
89208         * lib/__fpending.h: New file.
89209
89210 2000-08-20  Jim Meyering  <meyering@lucent.com>
89211
89212         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89213         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89214         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89215
89216 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89217
89218         Improve fileutils installation on systems where running
89219         programs (like install) can't be unlinked.
89220         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89221         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89222
89223 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89224
89225         Standardize on "memory exhausted" instead of "Memory exhausted"
89226         or "virtual memory exhausted".
89227         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89228         "virtual memory exhausted".
89229         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89230         our own message.
89231         * lib/userspec.c (parse_user_spec): Likewise.
89232         * lib/bumpalloc.h: comment fix
89233         * lib/same.c, userspec.c: Include xalloc.h.
89234
89235         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89236         not char *const and pointing to a constant array.
89237         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89238         (xrealloc): Comment fix.
89239
89240         * lib/userspec.c (parse_user_spec):
89241         Don't translate a message until just before returning,
89242         to avoid unnecessary translation.
89243
89244 2000-08-07  Jim Meyering  <meyering@lucent.com>
89245
89246         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89247         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89248         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89249         getgroups.c, gethostname.c, getopt.h, group-member.c,
89250         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89251         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89252         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89253         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89254         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89255         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89256         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89257         yesno.c: Back out Copyright date changes for each file with no change
89258         this year.  This eases coordination with other programs using the same
89259         source code modules.  From Paul Eggert.
89260
89261 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89262
89263         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89264         not char, for compatibility with glibc 2.1.3 strftime.c.
89265
89266 2000-08-03  Greg McGary  <greg@mcgary.org>
89267
89268         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89269         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89270         (EXTEND_BUFFER): Use them.
89271
89272 2000-08-01  Jim Meyering  <meyering@lucent.com>
89273
89274         * lib/dirname.c (ISSLASH): Define.
89275         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89276         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89277         both `\' and `/' may be use as path separators.
89278         Based on a patch from Prashant TR.
89279
89280 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89281
89282         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89283         slot vector a constant, since it might get modified.
89284
89285 2000-07-31  Jim Meyering  <meyering@lucent.com>
89286
89287         * lib/xmalloc.c: Use `virtual memory exhausted', not
89288         `Memory exhausted'.
89289         * lib/obstack.c (print_and_abort): Likewise.
89290
89291 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89292
89293         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89294         buffer, so that the caller can always quote one small
89295         component of a "memory exhausted" message in slot 0.
89296         From a suggestion by Jim Meyering.
89297
89298 2000-07-30  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/makepath.c (make_path): Quote the other instance, too.
89301
89302         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89303         (STATIC_BUF_SIZE): Define.
89304         (quotearg_n_options): Use only statically allocated storage when
89305         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89306         than STATIC_BUF_SIZE.
89307
89308 2000-07-29  Jim Meyering  <meyering@lucent.com>
89309
89310         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89311         * lib/dirname.c (dir_name): Likewise.
89312
89313         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89314         `/'.
89315
89316         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89317         (dir_name): Assert that there are no trailing slashes.
89318
89319 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89320
89321         * lib/mbswidth.h (mbswidth): Add a flags argument.
89322         (mbswidth): New declaration.
89323         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89324         * lib/mbswidth.c (mbswidth): Add a flags argument.
89325         (mbsnwidth): New function.
89326
89327 2000-07-24  Jim Meyering  <meyering@lucent.com>
89328
89329         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89330
89331 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89332
89333         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89334
89335 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89336
89337         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89338         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89339         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89340         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89341         invoke multibyte primitives.
89342
89343 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89344
89345         * lib/quotearg.c:
89346         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89347         so that mbstate_t is always defined.
89348
89349         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89350         be 1 in at least one GCC installation, and this configuration
89351         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89352         performance on hosts that have mbrtowc but have only unibyte
89353         locales, but I assume these hosts are rare.
89354
89355 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89356
89357         * lib/mbswidth.c (_XOPEN_SOURCE):
89358         Don't define; this causes problems on Solaris 7.
89359         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89360
89361 2000-07-23  Jim Meyering  <meyering@lucent.com>
89362
89363         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89364         too: getgrgid, getpwuid, getuid.
89365
89366 2000-07-23  Jim Meyering  <meyering@lucent.com>
89367
89368         * lib/basename.c (base_name): Add an assertion.
89369
89370 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89371
89372         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89373         shadow its mbsinit function.
89374
89375 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89376
89377         * lib/mbswidth.h: New file.
89378         * lib/mbswidth.c: New file.
89379         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89380         (noinst_HEADERS): Add mbswidth.h.
89381
89382 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89383
89384         * lib/config.charset: Add support for FreeBSD. Improve support for
89385         HP-UX and IRIX 6.
89386
89387 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89388
89389         * m4/mbswidth.m4: New file.
89390         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89391
89392 2000-07-15  Jim Meyering  <meyering@lucent.com>
89393
89394         * lib/makepath.c: Include quote.h.
89395         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89396         corresponding argument in a `quote (...)' call.
89397         Give better diagnostics.
89398
89399         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89400         (noinst_HEADERS): Add quote.h.
89401
89402         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89403         from tar's src/misc.c.
89404         * lib/quote.h: New file.  Prototypes for same.
89405
89406 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89407
89408         From a suggestion by Bruno Haible.
89409         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89410         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89411         to decide whether to define the BeOS workaround macro;
89412         this adjusts to the change to AC_MBSTATE_T.
89413
89414 2000-07-14  Jim Meyering  <meyering@lucent.com>
89415
89416         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89417         jm_AC_TYPE_UINTMAX_T.
89418
89419 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89420
89421         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89422
89423         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89424         quotearg_buffer_restyled): Add support for
89425         clocale_quoting_style.  Undo previous change to
89426         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89427         and "{RIGHT QUOTATION MARK}" msgids.
89428
89429 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89430
89431         From a suggestion by Bruno Haible.
89432         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89433         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89434         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89435         and mbstate_t, to a single-part test that simply defines mbstate_t.
89436         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89437         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89438
89439 2000-07-10  Jim Meyering  <meyering@lucent.com>
89440
89441         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89442
89443         * m4/gnu-source.m4: Output to confdefs.h directly.
89444         Suggestion from Akim Demaille.
89445
89446 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89447
89448         The old behavior of quoting `like this' doesn't look good with
89449         newer, ISO-style fonts.  See:
89450         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89451
89452         Instead, quote "like this" by default.  Let the translator
89453         tailor the locale-specific quoting behavior by providing
89454         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89455
89456         * lib/quotearg.c (N_): New macro.
89457         (gettext_default): New function.
89458         (quotearg_buffer_restyled): Use
89459         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89460         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89461
89462 2000-07-09  Jim Meyering  <meyering@lucent.com>
89463
89464         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89465         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89466
89467         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89469
89470 2000-07-09  Jim Meyering  <meyering@lucent.com>
89471
89472         * lib/Most files: Update copyright dates to include 2000.
89473
89474 2000-07-08  Jim Meyering  <meyering@lucent.com>
89475
89476         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89477         if not defined.
89478         (xgethostname): Remove now-unnecessary #ifdef.
89479         Move declaration of `err' into loop where it's used.
89480
89481 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89482         and Bruno Haible  <haible@clisp.cons.org>
89483
89484         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89485         only if the test for an object-type mbstate_t fails.  This
89486         prevents us from mistakenly reporting that mbstate_t is a
89487         system object type after we "#define mbstate_t int" to work
89488         around its lack.
89489
89490 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89491         and Bruno Haible  <haible@clisp.cons.org>
89492
89493         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89494
89495 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89496
89497         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89498         to strerror_r.
89499         Include <ctype.h> for use of isalpha.
89500
89501 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89502
89503         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89504         by allocating a larger buffer. Test the gethostname return value for
89505         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89506         returns an error and ENAMETOOLONG isn't defined.
89507
89508 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89509
89510         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89511         dimension.
89512
89513 2000-07-04  Jim Meyering  <meyering@lucent.com>
89514
89515         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89516         of the deprecated AC_CHECKING.
89517
89518 2000-07-04  Jim Meyering  <meyering@lucent.com>
89519
89520         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89521         Reported by Bruno Haible.
89522
89523 2000-07-04  Jim Meyering  <meyering@lucent.com>
89524
89525         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89526         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89527         lacks mbrtowc.
89528
89529 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89530
89531         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89532         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89533
89534 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89535         and Bruno Haible  <haible@clisp.cons.org>
89536
89537         * lib/quotearg.c (mbrtowc):
89538         Assign to *pwc, and return 1 only if result is nonzero.
89539         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89540
89541 2000-07-03  Jim Meyering  <meyering@lucent.com>
89542
89543         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89544
89545 2000-07-03  Jim Meyering  <meyering@lucent.com>
89546
89547         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89548         This is necessary to get a definition of e.g., UTMP_FILE on
89549         HP-UX 10.20.
89550         From Bob Proulx.
89551
89552 2000-07-02  Jim Meyering  <meyering@lucent.com>
89553
89554         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89555
89556         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89557         AC_LIBOBJ(function_name).
89558         * m4/chown.m4: Likewise.
89559         * m4/fnmatch.m4: Likewise.
89560         * m4/ftruncate.m4: Likewise.
89561         * m4/getgroups.m4: Likewise.
89562         * m4/getline.m4: Likewise.
89563         * m4/group-member.m4: Likewise.
89564         * m4/jm-macros.m4: Likewise.
89565         * m4/lstat.m4: Likewise.
89566         * m4/malloc.m4: Likewise.
89567         * m4/memcmp.m4: Likewise.
89568         * m4/nanosleep.m4: Likewise.
89569         * m4/putenv.m4: Likewise.
89570         * m4/realloc.m4: Likewise.
89571         * m4/regex.m4: Likewise.
89572         * m4/stat.m4: Likewise.
89573         * m4/strftime.m4: Likewise.
89574
89575 2000-07-02  Jim Meyering  <meyering@lucent.com>
89576
89577         * lib/quotearg.c (mbstate_t): Don't define here.
89578
89579 2000-07-02  Jim Meyering  <meyering@lucent.com>
89580
89581         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89582
89583 2000-07-01  Jim Meyering  <meyering@lucent.com>
89584
89585         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89586
89587 2000-07-01  Jim Meyering  <meyering@lucent.com>
89588
89589         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89590         problem.
89591
89592 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89593
89594         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89595         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89596
89597 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89598
89599         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89600         per change in ../m4/ls-mntd-fs.m4.
89601         (read_filesystem_list): Ignore symbolic links.
89602
89603 2000-06-29  Jim Meyering  <meyering@lucent.com>
89604
89605         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89606         for declaration of strcmp.
89607
89608         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89609
89610         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89611         Avoid warning by casting result to `char *' to remove `const'.
89612
89613 2000-06-28  Jim Meyering  <meyering@lucent.com>
89614
89615         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89616         included by quotearg.c, for which we perform this test.  From
89617         Bruno Haible.
89618
89619 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89620
89621         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89622         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89623         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89624
89625 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89626
89627         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89628
89629 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89630
89631         savedir now sets errno on failure and invokes xmalloc to get memory.
89632         Fix a couple of other minor bugs while we're at it.
89633
89634         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89635         (NAMLEN): Remove macro.
89636         (malloc, realloc): Remove decls.
89637         (stpcpy): Likewise.
89638         ("xalloc.h"): Include.
89639         (NAME_SIZE_DEFAULT): New macro.
89640         (savedir): Use xmalloc / xrealloc to allocate memory.
89641         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89642         Skip "" directory entries.
89643         Use strlen to calculate directory entry length, since the old method
89644         is rarely used these days and isn't worth supporting.
89645         Don't use a pointer after freeing it.
89646         Check for integer overflow when calculating allocation size.
89647         Use memcpy to copy entries, instead of stpcpy.
89648         Set errno properly when returning NULL.
89649         Check for readdir error.
89650
89651 2000-06-26  Jim Meyering  <meyering@lucent.com>
89652
89653         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89654
89655 2000-06-25  Jim Meyering  <meyering@lucent.com>
89656
89657         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89658         Linux header bug when _XOPEN_SOURCE is defined to 500.
89659
89660 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89661
89662         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89663         deficiency.
89664
89665 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89666
89667         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89668         Include xalloc.h.
89669         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89670
89671 2000-06-24  Jim Meyering  <meyering@lucent.com>
89672
89673         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89674         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89675         for which strerror does return char*, but which lacks a conveniently
89676         accessible declaration of the function.  If the compile-test says
89677         strerror_r doesn't work, then resort to a `run'-test that works on
89678         BeOS and segfaults on DEC Unix.
89679
89680 2000-06-24  Jim Meyering  <meyering@lucent.com>
89681
89682         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89683
89684 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89685
89686         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89688
89689 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89690
89691         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89692         (mbrtowc, mbstate_t): Define substitutes if
89693         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89694         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89695         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89696
89697 2000-06-23  Jim Meyering  <meyering@lucent.com>
89698
89699         * m4/afs.m4: Add missing AC_MSG_RESULT.
89700         Reported by Bruno Haible.
89701
89702         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89703         Suggestion from Bruno Haible.
89704
89705 2000-06-23  Jim Meyering  <meyering@lucent.com>
89706
89707         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89708
89709 2000-06-21  Jim Meyering  <meyering@lucent.com>
89710
89711         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89712
89713 2000-06-21  Jim Meyering  <meyering@lucent.com>
89714
89715         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89716         (noinst_HEADERS): Add getstr.h.
89717
89718         * lib/getline.c (getstr): Move into a separate file.
89719         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89720         the following changes: new parameter, delim2; both delim[12]
89721         parameters have type `int', not `char'.  The latter would lose
89722         with 8-bit delimiters.
89723         * lib/getstr.h: New file.
89724
89725 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89726
89727         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89728         than 1024, return a memory chunk of least possible size, instead
89729         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89730         Use free/xmalloc instead of xrealloc to avoid copying for very long
89731         paths.
89732
89733 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89734
89735         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89736         the empty string.
89737
89738 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89739
89740         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89741         address, not strdup.  Include <stdlib.h> and don't declare free().
89742
89743 2000-06-19  Jim Meyering  <meyering@lucent.com>
89744
89745         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89746
89747 2000-06-18  Jim Meyering  <meyering@lucent.com>
89748
89749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89750
89751         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89752         `checking whether...' message to be consistent with that of the
89753         lstat test.
89754
89755 2000-06-18  Jim Meyering  <meyering@lucent.com>
89756
89757         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89758         Besides, these days every porting target provides a mkdir function.
89759
89760         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89761         needed. (this snippet comes from src/system.h).
89762
89763 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89764
89765         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89766
89767 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89768
89769         * lib/human.c (adjust_value): New function.
89770         (human_readable_inexact): Apply rounding style even when
89771         printing approximate values.
89772
89773 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89774
89775         * lib/human.c (human_readable_inexact): Allow an input block
89776         size that is not a multiple of the output block size, and vice versa.
89777         Reported by Piergiorgio Sartor.
89778
89779 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89780
89781         * lib/getdate.y (get_date): Apply relative times after time
89782         zone indicator, not before.  Reported by Todd A. Jacobs.
89783
89784 2000-06-13  Jim Meyering  <meyering@lucent.com>
89785
89786         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89787
89788         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89789
89790 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89791
89792         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89793
89794 2000-06-12  Jim Meyering  <meyering@lucent.com>
89795
89796         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89797         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89798         optional argument.
89799         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89800         the optional argument, `lib'.
89801
89802 2000-06-08  Jim Meyering  <meyering@lucent.com>
89803
89804         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89805
89806 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89807
89808         Rewrite largefile configuration so that we don't need to run
89809         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89810         AC_CANONICAL_HOST in configure.in -- jmm]
89811
89812         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89813         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89814         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89815         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89816         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89817         All uses changed.
89818         Instead of inspecting the output of getconf, try to compile the
89819         test program without and with the macro definition.
89820         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89821         for getconf.  Instead, check for the needed flags by compiling
89822         test programs.
89823
89824 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89825
89826         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89827
89828 2000-06-04  Jim Meyering  <meyering@lucent.com>
89829
89830         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89831         SunOS 4.1.4 for which gid_t is an unsigned type.
89832
89833 2000-06-03  Jim Meyering  <meyering@lucent.com>
89834
89835         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89836         now that autoconf requires that.
89837
89838         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89839         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89840         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89841
89842 2000-06-03  Jim Meyering  <meyering@lucent.com>
89843
89844         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89845
89846 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89847
89848         * m4/glibc21.m4: New file.
89849         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89850
89851 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89852
89853         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89854         newer, don't install charset.alias.
89855         * lib/config.charset: Change the Linux/glibc rules so they become empty
89856         on glibc-2.1 or newer.
89857
89858 2000-06-02  Jim Meyering  <meyering@lucent.com>
89859
89860         * lib/mountlist.c: Back out last change.  Instead, do this...
89861         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89862         me_dummy member using the same `ignore'-testing code.
89863         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89864         fs_type strings.
89865         From Mark D. Roth.
89866
89867 2000-05-29  Jim Meyering  <meyering@lucent.com>
89868
89869         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89870         mounts with the `ignore' attribute.  Based on a patch from
89871         Mark D. Roth.
89872
89873 2000-05-28  Jim Meyering  <meyering@lucent.com>
89874
89875         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89876         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89877         * m4/stat.m4: Likewise.
89878         * m4/lstat.m4: Likewise.
89879         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89880
89881         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89882         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89883
89884 2000-05-26  Jim Meyering  <meyering@lucent.com>
89885
89886         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89887
89888 2000-05-24  Jim Meyering  <meyering@lucent.com>
89889
89890         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89891         autoconf requires that.
89892         * m4/lib-check.m4: Likewise.
89893         * m4/jm-macros.m4: Likewise.
89894         * m4/strftime.m4: Likewise.
89895
89896         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89897         AC_CHECK_DECLS, now that autoconf requires that.
89898
89899 2000-05-22  Jim Meyering  <meyering@lucent.com>
89900
89901         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89902         * m4/lstat.m4: Likewise.
89903
89904 2000-05-22  Jim Meyering  <meyering@lucent.com>
89905
89906         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89907
89908 2000-05-20  Jim Meyering  <meyering@lucent.com>
89909
89910         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89911         (jm_PREREQ): Use it.
89912
89913 2000-05-18  Jim Meyering  <meyering@lucent.com>
89914
89915         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89916         back, too, since it may have been modified by allocate_entry.
89917         (hash_delete): Rewrite to use neither the assignment operator
89918         nor the comma operator in an if-expression.
89919
89920 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89921
89922         * lib/closeout.c:
89923         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89924         Remove; no longer needed.
89925         "quotearg.h": Add include.
89926         (file_name): Do not bother to explicitly initialize to NULL; it's less
89927         efficient on some hosts.
89928         (close_stdout_status): Remove test as to whether stdout was already
89929         closed; it breaks for the case "echo x | sort >&-".
89930         Quote file name colons.
89931         Do not assume that _("write error") lacks format strings.
89932
89933 2000-05-15  Jim Meyering  <meyering@lucent.com>
89934
89935         * lib/version-etc.c (version_etc_copyright): Update the copyright
89936         string used in all --version output.
89937
89938 2000-05-14  Jim Meyering  <meyering@lucent.com>
89939
89940         * lib/closeout.c (close_stdout_set_file_name): New function.
89941         (close_stdout_status): Use new file-scoped global.
89942         Return right away if fstat says the stdout file descriptor is invalid.
89943         * lib/closeout.h (close_stdout_set_file_name): Declare.
89944
89945 2000-05-10  Jim Meyering  <meyering@lucent.com>
89946
89947         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89948         (close_stdout_set_status): New function.
89949         * lib/closeout.h (close_stdout_set_status): Declare.
89950
89951 2000-05-09  Jim Meyering  <meyering@lucent.com>
89952
89953         * m4/gettext.m4: Rename this...
89954         * m4/libintl.m4: ...to this.
89955
89956 2000-05-08  Jim Meyering  <meyering@lucent.com>
89957
89958         * lib/long-options.c: Don't include closeout.h.
89959         (parse_long_options): Don't call close_stdout for --version.
89960
89961 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89962
89963         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89964         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89965         2.1.3 bug.  This avoids a clash when files like regex.c define
89966         _GNU_SOURCE.
89967
89968 2000-05-06  Jim Meyering  <meyering@lucent.com>
89969
89970         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89971         (AC_REPLACE_FUNCS): Add strnlen.
89972
89973         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89974         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89975
89976         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89977         AC_SEARCH_LIBS call for nanosleep.
89978         (LIB_NANOSLEEP): Set and AC_SUBST.
89979
89980 2000-05-06  Jim Meyering  <meyering@lucent.com>
89981
89982         * lib/strnlen.c: Undefine __strnlen and strnlen.
89983         [!weak_alias]: Define __strnlen to strnlen.
89984
89985         * lib/atexit.c: New file, from libiberty.
89986
89987 2000-05-06  Jim Meyering  <meyering@lucent.com>
89988
89989         * lib/closeout.c (close_stdout_status): Also check for errors on the
89990         stderr stream.
89991
89992 2000-05-05  Jim Meyering  <meyering@lucent.com>
89993
89994         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89995         AC_SEARCH_LIBS call for clock_gettime.
89996         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89997
89998         * m4/search-libs.m4: Update from autoconf.
89999
90000         su doesn't work on Solaris 2.6.
90001         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90002         <shadow.h>.  Reported by Dragos Harabor.
90003
90004 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90005
90006         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90007         memcpy instead of xmalloc, xrealloc, path_concat.
90008         (locale_charset): Treat empty environment variables as absent.
90009         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90010
90011 2000-05-04  Jim Meyering  <meyering@lucent.com>
90012
90013         * lib/getopt.c: Update from glibc.
90014         * lib/obstack.c: Likewise.
90015         * lib/obstack.h: Likewise.
90016         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90017         file
90018
90019         * lib/regex.h: Likewise.
90020         * lib/strndup.c: Likewise.
90021         * lib/strnlen.c: New file, from glibc.
90022
90023 2000-05-03  Jim Meyering  <meyering@lucent.com>
90024
90025         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90026
90027 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90028
90029         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90030         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90031         compile-time test, rather than inspecting host and OS, to
90032         decide whether to define _LARGEFILE_SOURCE.
90033
90034 2000-05-01  Jim Meyering  <meyering@lucent.com>
90035
90036         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90037
90038         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90039         Based on a patch from Bruno Haible.
90040
90041 2000-05-01  Jim Meyering  <meyering@lucent.com>
90042
90043         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90044
90045 2000-04-29  Jim Meyering  <meyering@lucent.com>
90046
90047         * lib/path-concat.c: Declare strdup only if it's not defined.
90048         * lib/canon-host.c: Likewise.
90049
90050 2000-04-28  Jim Meyering  <meyering@lucent.com>
90051
90052         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90053         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90054         is included first, then limits.h is included by locale.h by libintl.h.
90055         From John David Anglin.
90056
90057 2000-04-25  Jim Meyering  <meyering@lucent.com>
90058
90059         * lib/makepath.c (S_IRWXUGO): Define.
90060         (make_path): Always perform explicit chmod if MODE specifies any
90061         of the `special' permission bits.  Prompted by a bug report against
90062         install from Mate Wierdl and Joost van Baal.
90063
90064 2000-04-18  Jim Meyering  <meyering@lucent.com>
90065
90066         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90067         (jm_PREREQ): Use it.
90068
90069 2000-04-18  Jim Meyering  <meyering@lucent.com>
90070
90071         * lib/README: New file.
90072
90073         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90074         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90075
90076 2000-04-17  Jim Meyering  <meyering@lucent.com>
90077
90078         Get it right :-)
90079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90080         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90081         Suggestion from Akim Demaille.
90082
90083 2000-04-17  Jim Meyering  <meyering@lucent.com>
90084
90085         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90086         the definition of it to rpl_strftime also defined-away the system's
90087         declaration.
90088
90089 2000-04-15  Jim Meyering  <meyering@lucent.com>
90090
90091         Use `C' to denote so-called `contiguous' files, the same way
90092         that tar does.
90093         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90094         (ftypelet): Use S_ISCTG.
90095         From Michael Deutschmann.
90096
90097 2000-04-14  Jim Meyering  <meyering@lucent.com>
90098
90099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90100         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90101         clobbered.
90102
90103 2000-04-14  Jim Meyering  <meyering@lucent.com>
90104
90105         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90106
90107 2000-04-13  Jim Meyering  <meyering@lucent.com>
90108
90109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90110         AH_VERBATIM to insert required #ifndef into config.h.in.
90111         Suggestion from Akim Demaille.
90112
90113 2000-04-12  Jim Meyering  <meyering@lucent.com>
90114
90115         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90116         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90117         Christian Krackowizer.
90118
90119         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90120         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90121         (AC_SYS_LARGEFILE): Require.
90122         (AM_C_PROTOTYPES): Require.
90123
90124 2000-04-08  Jim Meyering  <meyering@lucent.com>
90125
90126         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90127         names don't conflict.  Reported by Eli Zaretskii.
90128
90129 2000-04-07  Jim Meyering  <meyering@lucent.com>
90130
90131         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90132         sys/types.h, to work around system header problems on AIX 3.2.5.
90133         From Bruno Haible.
90134
90135 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90136
90137         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90138         bug.  Deal with the different error behavior of Irix iconv.
90139
90140 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90141
90142         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90143         IRIX if the installer said otherwise.
90144
90145 2000-04-05  Jim Meyering  <meyering@lucent.com>
90146
90147         Portability tweaks required for ultrix4.3.
90148         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90149         (jm_CHECK_DECLS): Add getutent to the list of functions.
90150         (_jm_DECL_HEADERS): Add utmpx.h.
90151         From John David Anglin.
90152
90153         * m4/strftime.m4: Back out the 2000-04-02 change.
90154         Instead of that change, simply undefine putenv in the test program.
90155
90156 2000-04-05  Jim Meyering  <meyering@lucent.com>
90157
90158         Portability tweaks required for ultrix4.3.
90159         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90160         getutent.
90161         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90162         * lib/canon-host.c: Declare strdup.
90163         * lib/path-concat.c: Likewise.
90164         From John David Anglin.
90165
90166 2000-04-04  Jim Meyering  <meyering@lucent.com>
90167
90168         Be more DOS 8.3-friendly.
90169         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90170         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90171         * lib/Makefile.am: Reflect renaming.
90172         Reported by Eli Zaretskii.
90173
90174         Use a temporary file name that won't clash with `charset.alias'
90175         in the DOS 8.3 name space.
90176         * lib/Makefile.am (charset_tmp): Define.
90177         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90178         (uninstall-local): Likewise.
90179         Reported by Eli Zaretskii.
90180
90181 2000-04-03  Jim Meyering  <meyering@lucent.com>
90182
90183         * m4/gettext.m4: Fix typo in comment.
90184
90185         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90186         textutils/configure.in).  Suggestion from Paul Eggert.
90187         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90188
90189 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90190
90191         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90192         variable in the shell rather than using putenv, which isn't
90193         portable.  This avoids the configure-time inter-test dependency
90194         on the potentially-renamed putenv function.
90195
90196 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90197
90198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90199         before checking struct stat.st_blksize, so that
90200         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90201
90202 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90203
90204         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90205         since strftime.c uses HAVE_STRFTIME to decide whether to use
90206         the underlying strftime.
90207
90208 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90209
90210         * lib/time/strftime.c (my_strftime): Make sure we call the system
90211         strftime, not ourselves, when invoking the underlying strftime.
90212
90213 2000-03-24  Jim Meyering  <meyering@lucent.com>
90214
90215         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90216         (charset_alias): Define.
90217         (install-exec-local): Factor out common code.
90218         (uninstall-local): Split lines longer than 80.
90219         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90220         (SUFFIXES): Define.
90221         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90222         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90223
90224 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90225
90226         * lib/config.charset: Output a line containing "Packages using this
90227         file".
90228         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90229         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90230         ref-del.sed): New rules.
90231
90232 2000-03-17  Jim Meyering  <meyering@lucent.com>
90233
90234         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90235         Otherwise, include <strings.h>
90236
90237 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90238
90239         * lib/unicodeio.c (utf8_wctomb): New function.
90240         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90241         format instead of in UCS-4 with platform dependent endianness.
90242
90243 2000-03-10  Jim Meyering  <meyering@lucent.com>
90244
90245         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90246         From Marco Franzen.
90247
90248 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90249
90250         * lib/savedir.c (savedir): Work even if directory size is
90251         negative; this can happen with some screwy NFS configurations.
90252
90253 2000-03-06  Jim Meyering  <meyering@lucent.com>
90254
90255         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90256         if it's NULL (because we ran out of memory).  From Bruno Haible.
90257
90258 2000-03-05  Jim Meyering  <meyering@lucent.com>
90259
90260         * lib/localcharset.c ("path-concat.h"): Include.
90261         (get_charset_aliases): Use path_concat instead of ANSI string
90262         concatenation.
90263
90264         * lib/unicodeio.h (PARAMS): Define.
90265         Use it to guard prototype.
90266
90267 2000-03-04  Jim Meyering  <meyering@lucent.com>
90268
90269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90270         for lib/localcharset.c.
90271
90272 2000-03-04  Jim Meyering  <meyering@lucent.com>
90273
90274         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90275         installing into it.
90276         (uninstall-local): Uncomment this rule so `make distcheck' works
90277         once again.
90278
90279         * lib/unicodeio.c (<errno.h>): Include it.
90280         (errno): Declare if not defined.
90281
90282         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90283
90284         * lib/config.charset: New version, incorporating remarks from a linux
90285         i18n mailing list.  From Bruno Haible.
90286
90287 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90288
90289         * m4/codeset.m4: New file.
90290         * m4/iconv.m4: New file.
90291         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90292
90293 2000-03-03  Jim Meyering  <meyering@lucent.com>
90294
90295         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90296
90297 2000-03-02  Jim Meyering  <meyering@lucent.com>
90298
90299         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90300         the messages come out on separate lines.
90301
90302         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90303         rather than jm_CHECK_DECLARATIONS.
90304         * m4/decl.m4: Remove now-unused file.
90305
90306         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90307         geteuid.
90308
90309 2000-03-02  Jim Meyering  <meyering@lucent.com>
90310
90311         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90312
90313 2000-03-01  Jim Meyering  <meyering@lucent.com>
90314
90315         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90316         * lib/unicodeio.c: Likewise.
90317
90318 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90319
90320         * lib/config.charset: New file.
90321         * lib/localcharset.c: New file.
90322         * lib/unicodeio.h, lib/unicodeio.c: New files.
90323         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90324         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90325         (noinst_HEADERS): Add unicodeio.h.
90326         (all-local, install-exec-local, charset.alias): New targets.
90327
90328 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90329
90330         * lib/quotearg.c (ALERT_CHAR): New macro.
90331         (quotearg_buffer_restyled): Use it.
90332
90333 2000-02-27  Jim Meyering  <meyering@lucent.com>
90334
90335         * m4/check-decl.m4: Add getenv to the list.
90336
90337 2000-02-27  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90340         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90341
90342         * lib/backupfile.c: Guard inclusion of stdlib.h with
90343         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90344         Declare malloc if needed.
90345
90346         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90347         `#ifndef HAVE_DECL..'
90348         now that autoconf always defines the HAVE_DECL_ symbols.
90349         * lib/human.c: Likewise.
90350         * lib/same.c: Likewise.
90351         * lib/strtoumax.c: Likewise.
90352
90353         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90354         declaration check was not run.
90355         * lib/hash.c: Likewise.
90356         * lib/human.c: Likewise.
90357         * lib/same.c: Likewise.
90358         * lib/strtoumax.c: Likewise.
90359
90360         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90361         `.', then first look up the entire `.'-containing string as a login
90362         name.
90363
90364 2000-02-23  Jim Meyering  <meyering@lucent.com>
90365
90366         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90367         in place of my hack.
90368
90369 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90370
90371         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90372         (textint): New typedef.
90373         (parser_control): Member year changed from int to textint.
90374         All uses changed.
90375         (YYSTYPE): Removed; replaced by %union with int and textint members.
90376         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90377         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90378         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90379         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90380         (date, number, to_year): Use width of number in digits, not its value,
90381         to determine whether it's a 2-digit year, or a 2-digit time.
90382         (yylex): Store number of digits of numeric tokens.
90383         Reported by John Kendall.
90384
90385         (parser_control): Changed from struct parser_control to typedef (for
90386         consistency).  All uses changed.
90387
90388         (tID): Removed; not used.
90389         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90390
90391 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90392
90393         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90394         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90395
90396 2000-02-12  Jim Meyering  <meyering@lucent.com>
90397
90398         * lib/userspec.c (ISDIGIT): Define it.
90399         (isdigit): Remove definition.
90400         (is_number): Use ISDIGIT, not isdigit.
90401         <libintl.h>: Include.
90402         (_ and N_): Define.
90403         (parse_user_spec): Mark translatable strings.
90404
90405 2000-02-10  Jim Meyering  <meyering@lucent.com>
90406
90407         With these changes, nanosleep.[ch] are finally enough like the other
90408         lib/* replacement files to compile on a few more losing systems.
90409
90410         * lib/nanosleep.h: Don't include config.h.
90411         Remove prototype from declaration of nanosleep.
90412         (PARAMS): Remove now-unneeded definition.
90413         * lib/nanosleep.c: #undef nanosleep.
90414         (rpl_nanosleep): Rename from nanosleep.
90415
90416 2000-02-10  Jim Meyering  <meyering@lucent.com>
90417
90418         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90419         gnu_nanosleep to rpl_nanosleep.
90420
90421 2000-02-09  Jim Meyering  <meyering@lucent.com>
90422
90423         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90424         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90425
90426 2000-02-08  Akim Demaille  <akim@epita.fr>
90427
90428         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90429         `[' and `]' and remove uses of `changequote'.
90430         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90431         (AC_SYS_LARGEFILE): Likewise.
90432         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90433         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90434         of changequote.
90435         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90436         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90437         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90438         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90439
90440 2000-02-05  Jim Meyering  <meyering@lucent.com>
90441
90442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90443         Remove explicit use of AC_HEADER_TIME.  It is required by
90444         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90445         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90446         in autoconf whereby the expansion of the latter ended up preceding
90447         the expansion of its prerequisite, AC_HEADER_TIME.
90448         Reported by Volker Borchert.
90449
90450 2000-02-03  Jim Meyering  <meyering@lucent.com>
90451
90452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90453
90454 2000-02-03  Jim Meyering  <meyering@lucent.com>
90455
90456         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90457         rather than with `#if HAVE_UTMPNAME'.
90458
90459 2000-02-02  Jim Meyering  <meyering@lucent.com>
90460
90461         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90462         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90463         Reported by Eli Zaretskii.
90464
90465 2000-02-01  Jim Meyering  <meyering@lucent.com>
90466
90467         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90468
90469 2000-01-31  Jim Meyering  <meyering@lucent.com>
90470
90471         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90472         functions.  Add the time.h and sys/time.h headers along with the
90473         AC_REQUIRE'ment of AC_HEADER_TIME.
90474
90475 2000-01-31  Jim Meyering  <meyering@lucent.com>
90476
90477         * lib/nanosleep.h (nanosleep): Guard declaration with
90478         `#if ! HAVE_DECL_NANOSLEEP'.
90479         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90480         the declaration in that vendor's sys/timers.h.
90481         Reported by Christian Krackowizer.
90482
90483         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90484         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90485         (ISPRINT): Likewise.
90486         Reported by Tom Tromey.
90487
90488 2000-01-30  Jim Meyering  <meyering@lucent.com>
90489
90490         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90491
90492         * m4/prereq.m4 (utmp_includes): Define.
90493         Check for ut_user and ut_name members in both struct utmpx
90494         and struct utmp.
90495
90496 2000-01-30  Jim Meyering  <meyering@lucent.com>
90497
90498         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90499         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90500         header files where only utmpx.ut_user is declared.
90501
90502         * lib/readutmp.h (UT_USER): Define.
90503
90504 2000-01-29  Jim Meyering  <meyering@lucent.com>
90505
90506         * m4/lib-check.m4: New file containing library-related checks from
90507         fileutils and sh-utils (textutils had none).
90508
90509 2000-01-28  Jim Meyering  <meyering@lucent.com>
90510
90511         * m4/perl.m4: Change format of warning message to look more like that
90512         from the missing script.  Suggestion from François Pinard.
90513
90514 2000-01-25  Jim Meyering  <meyering@lucent.com>
90515
90516         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90517         well as time.h in the compile check.
90518         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90519         Fix typo in cross-compiling case: s/yes/no/.
90520
90521 2000-01-23  Jim Meyering  <meyering@lucent.com>
90522
90523         * m4/jm-macros.m4: Move df-related tests here from
90524         fileutils/configure.in
90525
90526         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90527         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90528
90529         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90530         s/space/ac_fsusage_space/.
90531         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90532
90533         * m4/ftruncate.m4: New file (derived from part of
90534         fileutils/configure.in).
90535         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90536         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90537
90538         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90539         AC_SUBST these here, rather than just in sh-util/configure.in, so
90540         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90541         all the same.
90542         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90543         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90544         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90545         (AC_SUBST(POW_LIBM)): Likewise.
90546         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90547
90548 2000-01-23  Jim Meyering  <meyering@lucent.com>
90549
90550         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90551         obstack.c.
90552
90553 2000-01-22  Jim Meyering  <meyering@lucent.com>
90554
90555         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90556
90557         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90558
90559         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90560         configure.in
90561         (AC_CHECK_HEADERS): Likewise for sh-utils.
90562         (AC_CHECK_HEADERS): Likewise for textutils.
90563         Merge the three lists of headers.
90564
90565         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90566         from fileutils' configure.in.
90567
90568         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90569         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90570         check-decl.m4.
90571
90572         * m4/check-decl.m4: Use #if rather than #ifdef.
90573         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90574         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90575         (_jm_DECL_HEADERS): Define new function.
90576         (jm_CHECK_DECLARATIONS): Require it.
90577
90578 2000-01-22  Jim Meyering  <meyering@lucent.com>
90579
90580         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90581         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90582         Required for some AIX systems.  Reported by Christian Krackowizer.
90583         [TESTING] (main): New function.
90584
90585         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90586         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90587         letters.
90588
90589         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90590         iswprint.
90591
90592         * lib/strverscmp.c (ISDIGIT): Define.
90593         (strverscmp): Use ISDIGIT, not isdigit.
90594
90595 2000-01-19  Jim Meyering  <meyering@lucent.com>
90596
90597         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90598         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90599         defines `struct timespec' in <sys/time.h>
90600
90601         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90602         Thanks to Akim for explaining.
90603
90604 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90605
90606         * lib/nanosleep.c (nanosleep):
90607         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90608         POSIX.1 doesn't require SA_INTERRUPT and some systems
90609         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90610         it's been part of POSIX.1 since day 1 (in 1988).
90611
90612 2000-01-17  Jim Meyering  <meyering@lucent.com>
90613
90614         * lib/interlock: Remove unused file.  Reported by François Pinard.
90615
90616 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90617
90618         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90619         alert, backslash, formfeed, and vertical tab unnecessarily in
90620         shell quoting style.
90621
90622 2000-01-16  Jim Meyering  <meyering@lucent.com>
90623
90624         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90625         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90626         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90627         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90628
90629 2000-01-16  Jim Meyering  <meyering@lucent.com>
90630
90631         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90632         because the latter didn't work.
90633
90634 2000-01-15  Jim Meyering  <meyering@lucent.com>
90635
90636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90637         (AC_REPLACE_FUNCS): Add memcpy and memset.
90638         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90639         Add strpbrk.
90640         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90641
90642 2000-01-12  Jim Meyering  <meyering@lucent.com>
90643
90644         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90645         (jm_PREREQ): Use it.
90646         (jm_PREREQ_READUTMP): New macro.
90647         (jm_PREREQ): Use it.
90648
90649 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90650
90651         Quote multibyte characters correctly.
90652         * m4/c-bs-a.m4: New file.
90653         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90654         (jm_PREREQ): Use it.
90655
90656 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90657
90658         * m4/uintmax_t.m4: Port to autoconf 2.13.
90659
90660 2000-01-08  Jim Meyering  <meyering@ascend.com>
90661
90662         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90663         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90664
90665 2000-01-04  Jim Meyering  <meyering@ascend.com>
90666
90667         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90668         jm_STRUCT_DIRENT_D_TYPE.
90669         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90670         jm_STRUCT_DIRENT_D_INO.
90671         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90672         jm_STRUCT_UTIMBUF.
90673         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90674         renamings.
90675         * m4/utime.m4: Likewise.
90676
90677         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90678         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90679
90680 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90681
90682         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90683         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90684
90685 2000-01-02  Jim Meyering  <meyering@ascend.com>
90686
90687         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90688         remember if this is necessary.
90689
90690 1999-12-26  Jim Meyering  <meyering@ascend.com>
90691
90692         * m4/jm-macros.m4: Use it here.
90693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90694
90695 1999-12-23  Jim Meyering  <meyering@ascend.com>
90696
90697         * m4/jm-macros.m4: Check for clock_gettime (moved from
90698         fileutils/configure.in)
90699         Check for gettimeofday.
90700
90701 1999-12-20  Jim Meyering  <meyering@ascend.com>
90702
90703         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90704         autoconf-2.14a-1999-12-20.
90705
90706 1999-12-19  Jim Meyering  <meyering@ascend.com>
90707
90708         * m4/lstat-slash.m4: New file.
90709         * m4/jm-macros.m4: Use the new macro:
90710         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90711
90712 1999-12-07  Jim Meyering  <meyering@ascend.com>
90713
90714         * m4/perl.m4: Require that File::Compare be available, too.
90715         Too many systems seem to lack it.
90716
90717         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90718         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90719
90720 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90721
90722         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90723         problem with the QNX 4.25 shell, which doesn't propagate exit
90724         status of failed commands inside shell assignments.
90725
90726 1999-11-17  Jim Meyering  <meyering@ascend.com>
90727
90728         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90729
90730 1999-11-07  Jim Meyering  <meyering@ascend.com>
90731
90732         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90733
90734 1999-11-06  Jim Meyering  <meyering@ascend.com>
90735
90736         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90737         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90738
90739 1999-11-05  Jim Meyering  <meyering@ascend.com>
90740
90741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90742         configure.in of textutils, fileutils, and sh-utils into this one
90743         (shared between those packages) file.
90744         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90745         AC_STRUCT_ST_BLKSIZE.
90746
90747 1999-11-03  Jim Meyering  <meyering@ascend.com>
90748
90749         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90750         of AC_CHECK_TYPE checks includes unistd.h.
90751         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90752         Suggestion from Akim Demaille.
90753
90754 1999-10-30  Jim Meyering  <meyering@ascend.com>
90755
90756         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90757         m4-quoted string.
90758         * m4/ls-mntd-fs.m4: Likewise.
90759         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90760         * m4/jm-winsz1.m4: Likewise.
90761
90762         * m4/const.m4: Remove file, since the fix made it into the experimental
90763         version of autoconf.
90764         * m4/mktime.m4: Likewise.
90765
90766         * m4/check-type.m4: Remove file, now that the latest version of
90767         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90768
90769         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90770         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90771         AC_CHECK_TYPE.
90772
90773 1999-10-04  Jim Meyering  <meyering@ascend.com>
90774
90775         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90776
90777 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90778
90779         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90780         2.95.1 bug with HP-UX 10.20.
90781
90782 1999-09-17  Jim Meyering  <meyering@ascend.com>
90783
90784         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90785         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90786         due to missing strdup (against sh-utils-2.0).
90787
90788 1999-08-29  Jim Meyering  <meyering@ascend.com>
90789
90790         * m4/jm-macros.m4: Require jm_BISON.
90791         * m4/bison.m4: New file.
90792
90793 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90794
90795         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90796         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90797
90798 1999-08-05  Jim Meyering  <meyering@ascend.com>
90799
90800         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90801         to avoid conflicts with `conftest' on 8+3 filesystems.
90802         Suggestion from Eli Zaretskii.
90803
90804 1999-08-04  Jim Meyering  <meyering@ascend.com>
90805
90806         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90807         fileutils and sh-utils (textutils's getline test was inadequate).
90808         (AM_FUNC_GETLINE): Run this test.
90809         (AC_CHECK_FUNCS): Check for getdelim.
90810         Reported by Bob Proulx.
90811
90812 1999-08-02  Jim Meyering  <meyering@ascend.com>
90813
90814         * m4/jm-macros.m4: Add a comment.
90815
90816 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90817
90818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90819         <inttypes.h> defines strtoumax as a macro (and not as a
90820         function).
90821
90822 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90823
90824         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90825         that we can shift, multiply and divide unsigned long long
90826         values; Ultrix cc can't do it.
90827
90828 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90829
90830         * m4/mktime.m4: New file, which is a preview of what should appear
90831         in the next public autoconf release.
90832
90833 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90834
90835         * m4/lfs.m4: Remove this file.
90836         * m4/largefile.m4: New file.  It contains the old contents of
90837         lfs.m4, except that all names with prefix AC_LFS have been
90838         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90839         compatible with future autoconf versions.  Also, some minor m4
90840         quoting problems have been fixed.
90841
90842 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90843
90844         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90845         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90846         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90847         and simplify the shell code.
90848
90849 1999-08-01  Jim Meyering  <meyering@ascend.com>
90850
90851         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90852         m4.
90853
90854 1999-07-20  Jim Meyering  <meyering@ascend.com>
90855
90856         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90857
90858 1999-07-15  Jim Meyering  <meyering@ascend.com>
90859
90860         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90861
90862 1999-05-22  Jim Meyering  <meyering@ascend.com>
90863
90864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90865
90866 1999-05-20  Jim Meyering  <meyering@ascend.com>
90867
90868         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90869         Add a colon after each `then' in case $4 is empty.
90870
90871 1999-05-16  Jim Meyering  <meyering@ascend.com>
90872
90873         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90874
90875 1999-05-10  Jim Meyering  <meyering@ascend.com>
90876
90877         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90878
90879         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90880         AC_FUNC_MKTIME.
90881
90882 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90883
90884         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90885
90886 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90887
90888         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90889         not CPPFLAGS, so that linking works correctly in IRIX.
90890
90891 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90892
90893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90894
90895 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90896
90897         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90898         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90900         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90901         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90902
90903         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90904
90905 1999-04-20  Jim Meyering  <meyering@ascend.com>
90906
90907         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90908         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90909         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90910
90911 1999-04-18  Jim Meyering  <meyering@ascend.com>
90912
90913         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90914         * m4/jm-macros.m4: Use it.
90915
90916 1999-04-06  Jim Meyering  <meyering@ascend.com>
90917
90918         * m4/strftime.m4: Remove test for %f.
90919
90920 1999-03-29  Jim Meyering  <meyering@ascend.com>
90921
90922         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90923         superset of the AC_TYPE_* checks in the textutils, fileutils,
90924         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90925         AC_TYPE_PID_T.
90926
90927 1999-03-28  Jim Meyering  <meyering@ascend.com>
90928
90929         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90930         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90931         replaced e.g., in the *.sh files of the sh-utils.
90932
90933 1999-03-20  Jim Meyering  <meyering@ascend.com>
90934
90935         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90936         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90937         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90938
90939 1999-03-19  Jim Meyering  <meyering@ascend.com>
90940
90941         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90942
90943 1999-03-12  Jim Meyering  <meyering@ascend.com>
90944
90945         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90946
90947 1999-03-07  Jim Meyering  <meyering@ascend.com>
90948
90949         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90950         declared.
90951
90952 1999-02-17  Jim Meyering  <meyering@ascend.com>
90953
90954         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90955         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90956
90957 1999-02-07  Jim Meyering  <meyering@ascend.com>
90958
90959         * m4/group-member.m4: New file -- extracted from sh-utils'
90960         configure.in.
90961
90962         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90963         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90964
90965 1999-02-06  Jim Meyering  <meyering@ascend.com>
90966
90967         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90968         * m4/fnmatch.m4: Likewise.
90969         * m4/getgroups.m4: Likewise.
90970         * m4/lstat.m4: Likewise.
90971         * m4/malloc.m4: Likewise.
90972         * m4/putenv.m4: Likewise.
90973         * m4/realloc.m4: Likewise.
90974         * m4/regex.m4: Likewise.
90975         * m4/stat.m4: Likewise.
90976         * m4/strftime.m4: Likewise.
90977         Suggestion from Alain Magloire.
90978
90979         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90980         * m4/fnmatch.m4: Likewise.
90981         * m4/getgroups.m4: Likewise.
90982         * m4/getline.m4: Likewise.
90983         * m4/lstat.m4: Likewise.
90984         * m4/malloc.m4: Likewise.
90985         * m4/memcmp.m4: Likewise.
90986         * m4/putenv.m4: Likewise.
90987         * m4/realloc.m4: Likewise.
90988         * m4/regex.m4: Likewise.
90989         * m4/stat.m4: Likewise.
90990         * m4/strftime.m4: Likewise.
90991         Suggestion from Alain Magloire.
90992
90993         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90994         an argument.
90995
90996         * m4/regex.m4: Add a run-time Test for proper operation of
90997         re_compile_pattern.
90998
90999 1999-01-31  Jim Meyering  <meyering@ascend.com>
91000
91001         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91002
91003 1999-01-30  Jim Meyering  <meyering@ascend.com>
91004
91005         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91006
91007         * m4/jm-mktime.m4: Make this a wrapper around the official
91008         AM_FUNC_MKTIME rather than my private copy, now that the official one
91009         is up to date.
91010         * m4/mktime.m4: Remove file.
91011
91012         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91013         * m4/uptime.m4: Likewise.
91014         * m4/uintmax_t.m4: Likewise.
91015
91016 1999-01-28  Jim Meyering  <meyering@ascend.com>
91017
91018         * m4/jm-macros.m4: Use jm_AFS.
91019         * m4/afs.m4: New file (from fileutils' configure.in).
91020
91021         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91022         * m4/chown.m4: Likewise.
91023         * m4/d-ino.m4: Likewise.
91024         * m4/d-type.m4: Likewise.
91025         * m4/fnmatch.m4: Likewise.
91026         * m4/getgroups.m4: Likewise.
91027         * m4/gettext.m4: Likewise.
91028         * m4/jm-mktime.m4: Likewise.
91029         * m4/jm-winsz2.m4: Likewise.
91030         * m4/lcmessage.m4: Likewise.
91031         * m4/ls-mntd-fs.m4: Likewise.
91032         * m4/malloc.m4: Likewise.
91033         * m4/memcmp.m4: Likewise.
91034         * m4/putenv.m4: Likewise.
91035         * m4/realloc.m4: Likewise.
91036         * m4/st_mtim.m4: Likewise.
91037         * m4/strftime.m4: Likewise.
91038
91039 1999-01-16  Jim Meyering  <meyering@ascend.com>
91040
91041         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91042         (ARGMATCH_DIE_DECL): Define.
91043
91044 1999-01-12  Jim Meyering  <meyering@ascend.com>
91045
91046         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91047         Reported by Lars Hecking.
91048
91049 1999-01-10  Jim Meyering  <meyering@ascend.com>
91050
91051         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91052         gross kludge.
91053         * m4/inttypes_h.m4: Likewise.
91054         * m4/lstat.m4: Likewise.
91055         * m4/malloc.m4: Likewise.
91056         * m4/readdir.m4: Likewise.
91057         * m4/realloc.m4: Likewise.
91058         * m4/st_dm_mode.m4: Likewise.
91059         * m4/stat.m4: Likewise.
91060         * m4/utimbuf.m4: Likewise.
91061         * m4/utimes.m4: Likewise.
91062
91063         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91064         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91065         comments in config.h.in are meaningful.
91066
91067         * m4/jm-macros.m4: Require autoconf-2.13 here.
91068
91069         * m4/regex.m4: By default, don't use the included regex.c on systems
91070         with glibc 2.  Suggestion from Uli Drepper.
91071
91072 1999-01-02  Jim Meyering  <meyering@ascend.com>
91073
91074         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91075
91076 1998-12-18  Jim Meyering  <meyering@ascend.com>
91077
91078         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91079         Based on a suggestion from Lars Hecking.
91080
91081 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91082
91083         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91084
91085 1998-11-16  Jim Meyering  <meyering@ascend.com>
91086
91087         * m4/lfs.m4: Double-quote the `uname...` expression.
91088
91089 1998-11-14  Jim Meyering  <meyering@ascend.com>
91090
91091         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91092         * m4/stat.m4: Likewise.
91093
91094 1998-11-03  Jim Meyering  <meyering@ascend.com>
91095
91096         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91097         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91098
91099 1998-10-18  Jim Meyering  <meyering@ascend.com>
91100
91101         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91102
91103 1998-10-17  Jim Meyering  <meyering@ascend.com>
91104
91105         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91106         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91107         calls for those previously hard-coded headers.  Instead, take a new
91108         parameter.
91109         (jm_CHECK_DECLARATIONS): Reflect interface change.
91110         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91111         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91112
91113         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91114
91115 1998-10-14  Jim Meyering  <meyering@ascend.com>
91116
91117         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91118         instead of "TZ=America/Vancouver".  From Paul Eggert.
91119
91120 1998-10-11  Jim Meyering  <meyering@ascend.com>
91121
91122         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91123         This adds a test for a recently added compatibility fix for mktime.c.
91124         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91125
91126 1998-09-27  Jim Meyering  <meyering@ascend.com>
91127
91128         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91129
91130         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91131         ../configure.in, including a change from Gordon Matzigkeit to allow
91132         cross-compiling for the Hurd.
91133
91134         * m4/glibc.m4: New file/macro to test for the GNU C Library
91135         versions 1 and 2.  From Gordon Matzigkeit.
91136         Indent.
91137
91138 1998-09-21  Jim Meyering  <meyering@ascend.com>
91139
91140         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91141
91142 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91143
91144         Port nanosecond-resolution times to UnixWare 2.1.2 and
91145         pedantic Solaris 2.6.
91146
91147         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91148         AC_STRUCT_ST_MTIM.
91149         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91150         Generate name of ns member, instead of just 1 or undef.
91151         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91152
91153 1998-08-15  Jim Meyering  <meyering@ascend.com>
91154
91155         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91156         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91157         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91158         instead of jm_TYPE_SSIZE_T.
91159
91160 1998-08-12  Jim Meyering  <meyering@ascend.com>
91161
91162         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91163
91164 1998-08-02  Jim Meyering  <meyering@ascend.com>
91165
91166         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91167         in acconfig.h manually.
91168
91169 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91170
91171         * m4/st_mtim.m4: New file.
91172
91173 1998-07-28  Jim Meyering  <meyering@ascend.com>
91174
91175         * m4/utimes.m4: Undef stat.
91176
91177 1998-07-25  Jim Meyering  <meyering@ascend.com>
91178
91179         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91180         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91181
91182 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91183
91184         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91185         uid and gid actually remain unchanged.
91186
91187 1998-07-07  Jim Meyering  <meyering@ascend.com>
91188
91189         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91190
91191 1998-07-04  Jim Meyering  <meyering@ascend.com>
91192
91193         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91194         to prove that this macro can be used in packages without regex.c.
91195
91196 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91197
91198         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91199         is to be used.
91200
91201 1998-07-03  Jim Meyering  <meyering@ascend.com>
91202
91203         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91204
91205         * m4/gettext.m4: New file -- from gettext-0.10.35.
91206         * m4/lcmessage.m4: Likewise.
91207         * m4/progtest.m4: Likewise.
91208
91209         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91210         * m4/jm-macros.m4: Require the new macro.
91211
91212 1998-06-29  Jim Meyering  <meyering@ascend.com>
91213
91214         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91215         for the definition of NGROUPS (used in a system header included
91216         by sys/mount.h).
91217
91218 1998-06-28  Jim Meyering  <meyering@ascend.com>
91219
91220         * m4/ls-mntd-fs.m4: New file.
91221         * m4/fstypename.m4: New file.
91222
91223         * m4/jm-macros.m4: Require the new macro.
91224         * m4/jm-glibc-io.m4: New file.
91225
91226 1998-05-19  Jim Meyering  <meyering@ascend.com>
91227
91228         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91229         * m4/lchown.m4: New file.
91230
91231         * m4/Makefile.am.in: New file.
91232         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91233
91234 1998-05-14  Jim Meyering  <meyering@ascend.com>
91235
91236         * m4/Makefile.am (EXTRA_DIST): Add them.
91237         * m4/jm-macros.m4: New file.
91238         * m4/utimbuf.m4: New file.
91239
91240 1998-05-12  Jim Meyering  <meyering@ascend.com>
91241
91242         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91243
91244 1998-05-11  Jim Meyering  <meyering@ascend.com>
91245
91246         * m4/isc-posix.m4: New file.
91247
91248 1998-05-10  Jim Meyering  <meyering@ascend.com>
91249
91250         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91251
91252 1998-05-09  Jim Meyering  <meyering@ascend.com>
91253
91254         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91255         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91256         with automake.
91257
91258         * m4/ssize_t.m4: New file.
91259         * m4/mktime.m4: Remove file -- the new automake has this now.
91260
91261 1998-04-26  Jim Meyering  <meyering@ascend.com>
91262
91263         * m4/assert.m4: New file.
91264         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91265
91266 1998-04-05  Jim Meyering  <meyering@ascend.com>
91267
91268         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91269         (jm_PREREQ): Use it here.
91270
91271 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91272
91273         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91274         in acconfig.h.
91275
91276 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91277
91278         * m4/prereq.m4: New file.
91279         * m4/error.m4: New file.
91280         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91281
91282 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91283
91284         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91285         cache-check for the same variable -- that defeated the purpose of
91286         the test; the test program was never run.  This was a problem only
91287         on systems with losing getline functions -- HP-UX 10.20 is one.
91288         Reported by Bjorn Helgaas.
91289
91290 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91291
91292         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91293
91294 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91295
91296         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91297
91298         * m4/const.m4: New file.  Use an initializer in this declaration
91299         typedef int charset[2]; const charset x;
91300         Reported by Bob Glickstein.
91301
91302 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91303
91304         * m4/chown.m4: Fix reversed types on -1 args to chown.
91305         From Kaveh Ghazi.
91306
91307 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91308
91309         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91310         Add lseek and memchr.
91311
91312         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91313         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91314         have a 20-character limit on names.
91315
91316 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91317
91318         * m4/inttypes_h.m4: New file.
91319         * m4/uintmax_t.m4: New file.
91320         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91321
91322
91323         -----
91324
91325         Local Variables:
91326         coding: utf-8
91327         End:
91328
91329         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91330
91331         Copying and distribution of this file, with or without
91332         modification, are permitted provided the copyright notice
91333         and this notice are preserved.